diff --git a/README.md b/README.md index 3d5372cb05..93dcff3d04 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,80 @@ -# javascript +# Javascript Kubernetes Client information -Javascript client. Work in progress. +The Javascript clients for Kubernetes is implemented in +[typescript](https://typescriptlang.org), but can be called from either +Javascript or Typescript. +For now, the client is implemented for server-side use with node +using the `request` library. -# Update client +There are future plans to also build a jQuery compatible library but +for now, all of the examples and instructions assume the node client. -to update the client clone `gen` repo and run this command: +# Installation +```sh +$ npm install @kubernetes/client-node +``` + +# Example code + +## List all pods +```javascript +const k8s = require('@kubernetes/typescript-node'); + +var k8sApi = k8s.Config.defaultClient(); +k8sApi.listNamespacedPod('default') + .then((res) => { + console.log(res.body); + }); +``` + +## Create a new namespace +```javascript +const k8s = require('@kubernetes/typescript-node'); + +var k8sApi = k8s.Config.defaultClient(); + +var namespace = { + metadata: { + name: 'test' + } +}; + +k8sApi.createNamespace(namespace).then( + (response) => { + console.log('Created namespace'); + console.log(response); + k8sApi.readNamespace(namespace.metadata.name).then( + (response) => { + console.log(response); + k8sApi.deleteNamespace( + namespace.metadata.name, {} /* delete options */); + }); + }, + (err) => { + console.log('Error!: ' + err); + } +); +``` + +# Development + +All dependencies of this project are expressed in its +[`package.json` file](./package.json). Before you start developing, ensure +that you have [NPM](https://www.npmjs.com/) installed, then run: -```bash -${GEN_REPO_BASE}/openapi/javascript.sh ${CLIENT_ROOT}/kubernetes ./settings +```console +npm install ``` + +# Testing + +Tests are written using the [Chai](http://chaijs.com/) library. See +[`config_test.ts`](./config_test.ts) for an example. + +To run tests, execute the following: + +```console +npm test +``` + diff --git a/examples/client.js b/examples/client.js deleted file mode 100644 index 8ae1d5372f..0000000000 --- a/examples/client.js +++ /dev/null @@ -1,82 +0,0 @@ -'use strict' - -const fs = require('fs'); -const parseArgs = require('minimist'); -const demoType = parseArgs(process.argv.slice(2)); - -// Location of custom CA crt -const ca = fs.readFileSync(__dirname + '/ca.crt'); - -// Unwise option to turn off all TLS security in NodeJS. NodeJS uses a predefined list of trusted CAs and ignores the system CA store. Workaround was to append CA/cert/keys in ApiClient modification. -// process.env.NODE_TLS_REJECT_UNAUTHORIZED = "0"; -const kubernetes = require('./index'); -// UnversionedPatch model file was not generated, so a stub was put in. - -const apiClient = new kubernetes.ApiClient(); -apiClient.ca = ca; -apiClient.basePath = 'https://192.168.99.100:8443/'; -// Authorization of personal minikube setup - not considered a security concern due to local nature - in actual use should be provided by user. -apiClient.defaultHeaders = { - "Authorization": "Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJrdWJlcm5ldGVzL3NlcnZpY2VhY2NvdW50Iiwia3ViZXJuZXRlcy5pby9zZXJ2aWNlYWNjb3VudC9uYW1lc3BhY2UiOiJkZWZhdWx0Iiwia3ViZXJuZXRlcy5pby9zZXJ2aWNlYWNjb3VudC9zZWNyZXQubmFtZSI6ImRlZmF1bHQtdG9rZW4ta24wMHMiLCJrdWJlcm5ldGVzLmlvL3NlcnZpY2VhY2NvdW50L3NlcnZpY2UtYWNjb3VudC5uYW1lIjoiZGVmYXVsdCIsImt1YmVybmV0ZXMuaW8vc2VydmljZWFjY291bnQvc2VydmljZS1hY2NvdW50LnVpZCI6Ijk3MTBkNjc3LWRjNjctMTFlNi05NWMyLTA4MDAyNzY4YjNlYiIsInN1YiI6InN5c3RlbTpzZXJ2aWNlYWNjb3VudDpkZWZhdWx0OmRlZmF1bHQifQ.RqeMeu3zxYqfGHpDV0vlVjG8EYgp_dG4Dr8dNc9zN-5J-tUOE_lBJ5VUWwh08GpN7jL3L66IZJ-zmJevVj7bd3OZBaGGTrEzgCrfuyrLIuPY-af8rZkElAtEaFdiT0m-z7JQqpUJ0yz9cZcOHiKN3vLR9zB7kVYcDWvMPwzzJsP65gPQptU1mRcx7w0wPtO8OmQXkrwrxoySwJpj7ug4Qv-QAIW9_Xa67qUUtKNaP1lgRIt9r4UL1fOrzS0fDNgBQClQ3CupkKRFQ4q7nvp6GkE-8HGzIg4tG65khfD2i750InZHGFZhLCTFmjiS-bmXx-MezEPb5rJ4rovMXcWj9w" -}; - -// Core test - -const core = new kubernetes.CoreApi(apiClient); -const coreApi = new kubernetes.CorevApi(apiClient); -const extensions = new kubernetes.ExtensionsvbetaApi(apiClient); -const version = new kubernetes.VersionApi(apiClient); - -// Versions -if (demoType['v']) { - core.getCoreAPIVersions(function(error, data, response) { - console.log(error, data); - }); - - version.getCodeVersion(function(error, data, response) { - console.log(error, data); - }); -} - -// Test creation of namespace and deployment -if (demoType['c']) { - const testNs = "{\"kind\":\"Namespace\",\"apiVersion\":\"v1\",\"metadata\":{\"name\":\"client-test\",\"creationTimestamp\":null},\"spec\":{},\"status\":{}}\n"; - coreApi.createCoreV1Namespace(testNs, {}, function(error, data, response) { - console.log(error, data); - }); - - - const testDep = "{\"kind\":\"Deployment\",\"apiVersion\":\"extensions/v1beta1\",\"metadata\":{\"name\":\"hello-world\",\"creationTimestamp\":null,\"labels\":{\"run\":\"hello-world\"}},\"spec\":{\"replicas\":1,\"selector\":{\"matchLabels\":{\"run\":\"hello-world\"}},\"template\":{\"metadata\":{\"creationTimestamp\":null,\"labels\":{\"run\":\"hello-world\"}},\"spec\":{\"containers\":[{\"name\":\"hello-world\",\"image\":\"hello-world\",\"ports\":[{\"containerPort\":8080}],\"resources\":{}}]}},\"strategy\":{}},\"status\":{}}\n"; - const deployment = kubernetes.V1beta1Deployment.constructFromObject(JSON.parse(testDep)); - - extensions.createExtensionsV1beta1NamespacedDeployment('default', JSON.stringify(deployment), {pretty: false}, function(error, data, response) { - console.log(error, data); - }); - -} - - -// Read deployment -if (demoType['r']) { - extensions.listExtensionsV1beta1NamespacedDeployment('default', {pretty: false}, function(error, data, response) { - console.log(error, data); - }); - - extensions.readExtensionsV1beta1NamespacedDeployment('hello-world', 'default', {pretty: false}, function(error, data, response) { - console.log(error, data); - }); -} - -// TEARDOWN -if (demoType['d']) { - const testDel = "{\"kind\":\"DeleteOptions\",\"apiVersion\":\"extensions/v1beta1\",\"orphanDependents\":false}\n"; - const delopts = kubernetes.V1beta1Deployment.constructFromObject(JSON.parse(testDel)); - extensions.deleteExtensionsV1beta1NamespacedDeployment('hello-world', 'default', JSON.stringify(delopts), {pretty: false}, function(error, data, response) { - console.log(error, data); - }); - - const delTestNs = "{\"kind\":\"DeleteOptions\",\"apiVersion\":\"v1\",\"metadata\":{\"name\":\"client-test\",\"deletionGracePeriodSeconds\":\"60\"},\"spec\":{},\"status\":{}}\n"; - coreApi.deleteCoreV1Namespace('client-test', delTestNs, {}, function(error, data, response) { - console.log(error, data); - }); -} diff --git a/examples/example.js b/examples/example.js new file mode 100644 index 0000000000..6c24dcd356 --- /dev/null +++ b/examples/example.js @@ -0,0 +1,8 @@ +const k8s = require('@kubernetes/client-node'); + +let k8sApi = k8s.Config.defaultClient(); +k8sApi.listNamespacedPod('default') + .then((res) => { + console.log(res.body); + }); + diff --git a/examples/namespace.js b/examples/namespace.js new file mode 100644 index 0000000000..e69f5423c1 --- /dev/null +++ b/examples/namespace.js @@ -0,0 +1,25 @@ +const k8s = require('@kubernetes/client-node'); + +var k8sApi = k8s.Config.defaultClient(); + +var namespace = { + metadata: { + name: 'test' + } +}; + +k8sApi.createNamespace(namespace).then( + (response) => { + console.log('Created namespace'); + console.log(response); + k8sApi.readNamespace(namespace.metadata.name).then( + (response) => { + console.log(response); + k8sApi.deleteNamespace( + namespace.metadata.name, {} /* delete options */); + }); + }, + (err) => { + console.log('Error!: ' + err); + } +); diff --git a/examples/typescript/attach/attach-example.ts b/examples/typescript/attach/attach-example.ts new file mode 100644 index 0000000000..606165fde1 --- /dev/null +++ b/examples/typescript/attach/attach-example.ts @@ -0,0 +1,7 @@ +import k8s = require('@kubernetes/client-node'); + +let kc = new k8s.KubeConfig(); +kc.loadFromFile(process.env['HOME'] + '/.kube/config'); + +let attach = new k8s.Attach(kc); +attach.attach('default', 'nginx-4217019353-9gl4s', 'nginx', process.stdout, process.stderr, null /* stdin */, false /* tty */); diff --git a/examples/typescript/exec/exec-example.ts b/examples/typescript/exec/exec-example.ts new file mode 100644 index 0000000000..74714504a9 --- /dev/null +++ b/examples/typescript/exec/exec-example.ts @@ -0,0 +1,9 @@ +import k8s = require('@kubernetes/client-node'); + +let command = process.argv[2]; + +let kc = new k8s.KubeConfig(); +kc.loadFromFile(process.env['HOME'] + '/.kube/config'); + +let exec = new k8s.Exec(kc); +exec.exec('default', 'nginx-4217019353-9gl4s', 'nginx', command, process.stdout, process.stderr, process.stdin, true /* tty */); diff --git a/examples/typescript/simple/example.ts b/examples/typescript/simple/example.ts new file mode 100644 index 0000000000..400c9d2005 --- /dev/null +++ b/examples/typescript/simple/example.ts @@ -0,0 +1,12 @@ +import k8s = require('@kubernetes/client-node'); + +let k8sApi = k8s.Config.defaultClient(); + +k8sApi.listNamespacedPod('default') + .then((res) => { + console.log(res.body); + }); + +// Example of instantiating a Pod object. +let pod = { +} as k8s.V1Pod; diff --git a/examples/typescript/watch/watch-example.ts b/examples/typescript/watch/watch-example.ts new file mode 100644 index 0000000000..9c069a123b --- /dev/null +++ b/examples/typescript/watch/watch-example.ts @@ -0,0 +1,31 @@ +import k8s = require('@kubernetes/client-node'); + +let kc = new k8s.KubeConfig(); +kc.loadFromFile(process.env['HOME'] + '/.kube/config'); + +let watch = new k8s.Watch(kc); +let req = watch.watch('/api/v1/namespaces', + // optional query parameters can go here. + {}, + // callback is called for each received object. + (type, obj) => { + if (type == 'ADDED') { + console.log('new object:'); + } else if (type == 'MODIFIED') { + console.log('changed object:') + } else if (type == 'DELETED') { + console.log('deleted object:'); + } else { + console.log('unknown type: ' + type); + } + console.log(obj); + }, + // done callback is called if the watch terminates normally + (err) => { + if (err) { + console.log(err); + } + }); + +// watch returns a request object which you can use to abort the watch. +setTimeout(() => { req.abort(); }, 10 * 1000); diff --git a/kubernetes/.swagger-codegen-ignore b/kubernetes/.swagger-codegen-ignore deleted file mode 100644 index c5fa491b4c..0000000000 --- a/kubernetes/.swagger-codegen-ignore +++ /dev/null @@ -1,23 +0,0 @@ -# Swagger Codegen Ignore -# Generated by swagger-codegen https://github.com/swagger-api/swagger-codegen - -# Use this file to prevent files from being overwritten by the generator. -# The patterns follow closely to .gitignore or .dockerignore. - -# As an example, the C# client generator defines ApiClient.cs. -# You can make changes and tell Swagger Codgen to ignore just this file by uncommenting the following line: -#ApiClient.cs - -# You can match any string of characters against a directory, file or extension with a single asterisk (*): -#foo/*/qux -# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux - -# You can recursively match patterns against a directory, file or extension with a double asterisk (**): -#foo/**/qux -# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux - -# You can also negate patterns with an exclamation (!). -# For example, you can ignore all files in a docs folder with the file extension .md: -#docs/*.md -# Then explicitly reverse the ignore rule for a single file: -#!docs/README.md diff --git a/kubernetes/.travis.yml b/kubernetes/.travis.yml deleted file mode 100644 index e49f4692f7..0000000000 --- a/kubernetes/.travis.yml +++ /dev/null @@ -1,7 +0,0 @@ -language: node_js -node_js: - - "6" - - "6.1" - - "5" - - "5.11" - diff --git a/kubernetes/README.md b/kubernetes/README.md deleted file mode 100644 index 0d4237c59f..0000000000 --- a/kubernetes/README.md +++ /dev/null @@ -1,956 +0,0 @@ -# kubernetes-js-kubernetes.client - -KubernetesJsClient - JavaScript kubernetes.client for kubernetes-js-kubernetes.client -No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) -This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project: - -- API version: v1.6.3 -- Package version: 1.0.0-snapshot -- Build package: io.swagger.codegen.languages.JavascriptClientCodegen - -## Installation - -### For [Node.js](https://nodejs.org/) - -#### npm - -To publish the library as a [npm](https://www.npmjs.com/), -please follow the procedure in ["Publishing npm packages"](https://docs.npmjs.com/getting-started/publishing-npm-packages). - -Then install it via: - -```shell -npm install kubernetes-js-kubernetes.client --save -``` - -#### git -# -If the library is hosted at a git repository, e.g. -https://github.com/kubernetes-incubator/client-javascript -then install it via: - -```shell - npm install kubernetes-incubator/client-javascript --save -``` - -### For browser - -The library also works in the browser environment via npm and [browserify](http://browserify.org/). After following -the above steps with Node.js and installing browserify with `npm install -g browserify`, -perform the following (assuming *main.js* is your entry file): - -```shell -browserify main.js > bundle.js -``` - -Then include *bundle.js* in the HTML pages. - -## Getting Started - -Please follow the [installation](#installation) instruction and execute the following JS code: - -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); - -var defaultClient = KubernetesJsClient.ApiClient.instance; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = "YOUR API KEY" -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix['authorization'] = "Token" - -var api = new KubernetesJsClient.ApisApi() - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -api.getAPIVersions(callback); - -``` - -## Documentation for API Endpoints - -All URIs are relative to *https://localhost* - -Class | Method | HTTP request | Description ------------- | ------------- | ------------- | ------------- -*KubernetesJsClient.ApisApi* | [**getAPIVersions**](docs/ApisApi.md#getAPIVersions) | **GET** /apis/ | -*KubernetesJsClient.AppsApi* | [**getAPIGroup**](docs/AppsApi.md#getAPIGroup) | **GET** /apis/apps/ | -*KubernetesJsClient.Apps_v1beta1Api* | [**createNamespacedDeployment**](docs/Apps_v1beta1Api.md#createNamespacedDeployment) | **POST** /apis/apps/v1beta1/namespaces/{namespace}/deployments | -*KubernetesJsClient.Apps_v1beta1Api* | [**createNamespacedDeploymentRollbackRollback**](docs/Apps_v1beta1Api.md#createNamespacedDeploymentRollbackRollback) | **POST** /apis/apps/v1beta1/namespaces/{namespace}/deployments/{name}/rollback | -*KubernetesJsClient.Apps_v1beta1Api* | [**createNamespacedStatefulSet**](docs/Apps_v1beta1Api.md#createNamespacedStatefulSet) | **POST** /apis/apps/v1beta1/namespaces/{namespace}/statefulsets | -*KubernetesJsClient.Apps_v1beta1Api* | [**deleteCollectionNamespacedDeployment**](docs/Apps_v1beta1Api.md#deleteCollectionNamespacedDeployment) | **DELETE** /apis/apps/v1beta1/namespaces/{namespace}/deployments | -*KubernetesJsClient.Apps_v1beta1Api* | [**deleteCollectionNamespacedStatefulSet**](docs/Apps_v1beta1Api.md#deleteCollectionNamespacedStatefulSet) | **DELETE** /apis/apps/v1beta1/namespaces/{namespace}/statefulsets | -*KubernetesJsClient.Apps_v1beta1Api* | [**deleteNamespacedDeployment**](docs/Apps_v1beta1Api.md#deleteNamespacedDeployment) | **DELETE** /apis/apps/v1beta1/namespaces/{namespace}/deployments/{name} | -*KubernetesJsClient.Apps_v1beta1Api* | [**deleteNamespacedStatefulSet**](docs/Apps_v1beta1Api.md#deleteNamespacedStatefulSet) | **DELETE** /apis/apps/v1beta1/namespaces/{namespace}/statefulsets/{name} | -*KubernetesJsClient.Apps_v1beta1Api* | [**getAPIResources**](docs/Apps_v1beta1Api.md#getAPIResources) | **GET** /apis/apps/v1beta1/ | -*KubernetesJsClient.Apps_v1beta1Api* | [**listDeploymentForAllNamespaces**](docs/Apps_v1beta1Api.md#listDeploymentForAllNamespaces) | **GET** /apis/apps/v1beta1/deployments | -*KubernetesJsClient.Apps_v1beta1Api* | [**listNamespacedDeployment**](docs/Apps_v1beta1Api.md#listNamespacedDeployment) | **GET** /apis/apps/v1beta1/namespaces/{namespace}/deployments | -*KubernetesJsClient.Apps_v1beta1Api* | [**listNamespacedStatefulSet**](docs/Apps_v1beta1Api.md#listNamespacedStatefulSet) | **GET** /apis/apps/v1beta1/namespaces/{namespace}/statefulsets | -*KubernetesJsClient.Apps_v1beta1Api* | [**listStatefulSetForAllNamespaces**](docs/Apps_v1beta1Api.md#listStatefulSetForAllNamespaces) | **GET** /apis/apps/v1beta1/statefulsets | -*KubernetesJsClient.Apps_v1beta1Api* | [**patchNamespacedDeployment**](docs/Apps_v1beta1Api.md#patchNamespacedDeployment) | **PATCH** /apis/apps/v1beta1/namespaces/{namespace}/deployments/{name} | -*KubernetesJsClient.Apps_v1beta1Api* | [**patchNamespacedDeploymentStatus**](docs/Apps_v1beta1Api.md#patchNamespacedDeploymentStatus) | **PATCH** /apis/apps/v1beta1/namespaces/{namespace}/deployments/{name}/status | -*KubernetesJsClient.Apps_v1beta1Api* | [**patchNamespacedScaleScale**](docs/Apps_v1beta1Api.md#patchNamespacedScaleScale) | **PATCH** /apis/apps/v1beta1/namespaces/{namespace}/deployments/{name}/scale | -*KubernetesJsClient.Apps_v1beta1Api* | [**patchNamespacedStatefulSet**](docs/Apps_v1beta1Api.md#patchNamespacedStatefulSet) | **PATCH** /apis/apps/v1beta1/namespaces/{namespace}/statefulsets/{name} | -*KubernetesJsClient.Apps_v1beta1Api* | [**patchNamespacedStatefulSetStatus**](docs/Apps_v1beta1Api.md#patchNamespacedStatefulSetStatus) | **PATCH** /apis/apps/v1beta1/namespaces/{namespace}/statefulsets/{name}/status | -*KubernetesJsClient.Apps_v1beta1Api* | [**readNamespacedDeployment**](docs/Apps_v1beta1Api.md#readNamespacedDeployment) | **GET** /apis/apps/v1beta1/namespaces/{namespace}/deployments/{name} | -*KubernetesJsClient.Apps_v1beta1Api* | [**readNamespacedDeploymentStatus**](docs/Apps_v1beta1Api.md#readNamespacedDeploymentStatus) | **GET** /apis/apps/v1beta1/namespaces/{namespace}/deployments/{name}/status | -*KubernetesJsClient.Apps_v1beta1Api* | [**readNamespacedScaleScale**](docs/Apps_v1beta1Api.md#readNamespacedScaleScale) | **GET** /apis/apps/v1beta1/namespaces/{namespace}/deployments/{name}/scale | -*KubernetesJsClient.Apps_v1beta1Api* | [**readNamespacedStatefulSet**](docs/Apps_v1beta1Api.md#readNamespacedStatefulSet) | **GET** /apis/apps/v1beta1/namespaces/{namespace}/statefulsets/{name} | -*KubernetesJsClient.Apps_v1beta1Api* | [**readNamespacedStatefulSetStatus**](docs/Apps_v1beta1Api.md#readNamespacedStatefulSetStatus) | **GET** /apis/apps/v1beta1/namespaces/{namespace}/statefulsets/{name}/status | -*KubernetesJsClient.Apps_v1beta1Api* | [**replaceNamespacedDeployment**](docs/Apps_v1beta1Api.md#replaceNamespacedDeployment) | **PUT** /apis/apps/v1beta1/namespaces/{namespace}/deployments/{name} | -*KubernetesJsClient.Apps_v1beta1Api* | [**replaceNamespacedDeploymentStatus**](docs/Apps_v1beta1Api.md#replaceNamespacedDeploymentStatus) | **PUT** /apis/apps/v1beta1/namespaces/{namespace}/deployments/{name}/status | -*KubernetesJsClient.Apps_v1beta1Api* | [**replaceNamespacedScaleScale**](docs/Apps_v1beta1Api.md#replaceNamespacedScaleScale) | **PUT** /apis/apps/v1beta1/namespaces/{namespace}/deployments/{name}/scale | -*KubernetesJsClient.Apps_v1beta1Api* | [**replaceNamespacedStatefulSet**](docs/Apps_v1beta1Api.md#replaceNamespacedStatefulSet) | **PUT** /apis/apps/v1beta1/namespaces/{namespace}/statefulsets/{name} | -*KubernetesJsClient.Apps_v1beta1Api* | [**replaceNamespacedStatefulSetStatus**](docs/Apps_v1beta1Api.md#replaceNamespacedStatefulSetStatus) | **PUT** /apis/apps/v1beta1/namespaces/{namespace}/statefulsets/{name}/status | -*KubernetesJsClient.AuthenticationApi* | [**getAPIGroup**](docs/AuthenticationApi.md#getAPIGroup) | **GET** /apis/authentication.k8s.io/ | -*KubernetesJsClient.Authentication_v1Api* | [**createTokenReview**](docs/Authentication_v1Api.md#createTokenReview) | **POST** /apis/authentication.k8s.io/v1/tokenreviews | -*KubernetesJsClient.Authentication_v1Api* | [**getAPIResources**](docs/Authentication_v1Api.md#getAPIResources) | **GET** /apis/authentication.k8s.io/v1/ | -*KubernetesJsClient.Authentication_v1beta1Api* | [**createTokenReview**](docs/Authentication_v1beta1Api.md#createTokenReview) | **POST** /apis/authentication.k8s.io/v1beta1/tokenreviews | -*KubernetesJsClient.Authentication_v1beta1Api* | [**getAPIResources**](docs/Authentication_v1beta1Api.md#getAPIResources) | **GET** /apis/authentication.k8s.io/v1beta1/ | -*KubernetesJsClient.AuthorizationApi* | [**getAPIGroup**](docs/AuthorizationApi.md#getAPIGroup) | **GET** /apis/authorization.k8s.io/ | -*KubernetesJsClient.Authorization_v1Api* | [**createNamespacedLocalSubjectAccessReview**](docs/Authorization_v1Api.md#createNamespacedLocalSubjectAccessReview) | **POST** /apis/authorization.k8s.io/v1/namespaces/{namespace}/localsubjectaccessreviews | -*KubernetesJsClient.Authorization_v1Api* | [**createSelfSubjectAccessReview**](docs/Authorization_v1Api.md#createSelfSubjectAccessReview) | **POST** /apis/authorization.k8s.io/v1/selfsubjectaccessreviews | -*KubernetesJsClient.Authorization_v1Api* | [**createSubjectAccessReview**](docs/Authorization_v1Api.md#createSubjectAccessReview) | **POST** /apis/authorization.k8s.io/v1/subjectaccessreviews | -*KubernetesJsClient.Authorization_v1Api* | [**getAPIResources**](docs/Authorization_v1Api.md#getAPIResources) | **GET** /apis/authorization.k8s.io/v1/ | -*KubernetesJsClient.Authorization_v1beta1Api* | [**createNamespacedLocalSubjectAccessReview**](docs/Authorization_v1beta1Api.md#createNamespacedLocalSubjectAccessReview) | **POST** /apis/authorization.k8s.io/v1beta1/namespaces/{namespace}/localsubjectaccessreviews | -*KubernetesJsClient.Authorization_v1beta1Api* | [**createSelfSubjectAccessReview**](docs/Authorization_v1beta1Api.md#createSelfSubjectAccessReview) | **POST** /apis/authorization.k8s.io/v1beta1/selfsubjectaccessreviews | -*KubernetesJsClient.Authorization_v1beta1Api* | [**createSubjectAccessReview**](docs/Authorization_v1beta1Api.md#createSubjectAccessReview) | **POST** /apis/authorization.k8s.io/v1beta1/subjectaccessreviews | -*KubernetesJsClient.Authorization_v1beta1Api* | [**getAPIResources**](docs/Authorization_v1beta1Api.md#getAPIResources) | **GET** /apis/authorization.k8s.io/v1beta1/ | -*KubernetesJsClient.AutoscalingApi* | [**getAPIGroup**](docs/AutoscalingApi.md#getAPIGroup) | **GET** /apis/autoscaling/ | -*KubernetesJsClient.Autoscaling_v1Api* | [**createNamespacedHorizontalPodAutoscaler**](docs/Autoscaling_v1Api.md#createNamespacedHorizontalPodAutoscaler) | **POST** /apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers | -*KubernetesJsClient.Autoscaling_v1Api* | [**deleteCollectionNamespacedHorizontalPodAutoscaler**](docs/Autoscaling_v1Api.md#deleteCollectionNamespacedHorizontalPodAutoscaler) | **DELETE** /apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers | -*KubernetesJsClient.Autoscaling_v1Api* | [**deleteNamespacedHorizontalPodAutoscaler**](docs/Autoscaling_v1Api.md#deleteNamespacedHorizontalPodAutoscaler) | **DELETE** /apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name} | -*KubernetesJsClient.Autoscaling_v1Api* | [**getAPIResources**](docs/Autoscaling_v1Api.md#getAPIResources) | **GET** /apis/autoscaling/v1/ | -*KubernetesJsClient.Autoscaling_v1Api* | [**listHorizontalPodAutoscalerForAllNamespaces**](docs/Autoscaling_v1Api.md#listHorizontalPodAutoscalerForAllNamespaces) | **GET** /apis/autoscaling/v1/horizontalpodautoscalers | -*KubernetesJsClient.Autoscaling_v1Api* | [**listNamespacedHorizontalPodAutoscaler**](docs/Autoscaling_v1Api.md#listNamespacedHorizontalPodAutoscaler) | **GET** /apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers | -*KubernetesJsClient.Autoscaling_v1Api* | [**patchNamespacedHorizontalPodAutoscaler**](docs/Autoscaling_v1Api.md#patchNamespacedHorizontalPodAutoscaler) | **PATCH** /apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name} | -*KubernetesJsClient.Autoscaling_v1Api* | [**patchNamespacedHorizontalPodAutoscalerStatus**](docs/Autoscaling_v1Api.md#patchNamespacedHorizontalPodAutoscalerStatus) | **PATCH** /apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status | -*KubernetesJsClient.Autoscaling_v1Api* | [**readNamespacedHorizontalPodAutoscaler**](docs/Autoscaling_v1Api.md#readNamespacedHorizontalPodAutoscaler) | **GET** /apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name} | -*KubernetesJsClient.Autoscaling_v1Api* | [**readNamespacedHorizontalPodAutoscalerStatus**](docs/Autoscaling_v1Api.md#readNamespacedHorizontalPodAutoscalerStatus) | **GET** /apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status | -*KubernetesJsClient.Autoscaling_v1Api* | [**replaceNamespacedHorizontalPodAutoscaler**](docs/Autoscaling_v1Api.md#replaceNamespacedHorizontalPodAutoscaler) | **PUT** /apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name} | -*KubernetesJsClient.Autoscaling_v1Api* | [**replaceNamespacedHorizontalPodAutoscalerStatus**](docs/Autoscaling_v1Api.md#replaceNamespacedHorizontalPodAutoscalerStatus) | **PUT** /apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status | -*KubernetesJsClient.Autoscaling_v2alpha1Api* | [**createNamespacedHorizontalPodAutoscaler**](docs/Autoscaling_v2alpha1Api.md#createNamespacedHorizontalPodAutoscaler) | **POST** /apis/autoscaling/v2alpha1/namespaces/{namespace}/horizontalpodautoscalers | -*KubernetesJsClient.Autoscaling_v2alpha1Api* | [**deleteCollectionNamespacedHorizontalPodAutoscaler**](docs/Autoscaling_v2alpha1Api.md#deleteCollectionNamespacedHorizontalPodAutoscaler) | **DELETE** /apis/autoscaling/v2alpha1/namespaces/{namespace}/horizontalpodautoscalers | -*KubernetesJsClient.Autoscaling_v2alpha1Api* | [**deleteNamespacedHorizontalPodAutoscaler**](docs/Autoscaling_v2alpha1Api.md#deleteNamespacedHorizontalPodAutoscaler) | **DELETE** /apis/autoscaling/v2alpha1/namespaces/{namespace}/horizontalpodautoscalers/{name} | -*KubernetesJsClient.Autoscaling_v2alpha1Api* | [**getAPIResources**](docs/Autoscaling_v2alpha1Api.md#getAPIResources) | **GET** /apis/autoscaling/v2alpha1/ | -*KubernetesJsClient.Autoscaling_v2alpha1Api* | [**listHorizontalPodAutoscalerForAllNamespaces**](docs/Autoscaling_v2alpha1Api.md#listHorizontalPodAutoscalerForAllNamespaces) | **GET** /apis/autoscaling/v2alpha1/horizontalpodautoscalers | -*KubernetesJsClient.Autoscaling_v2alpha1Api* | [**listNamespacedHorizontalPodAutoscaler**](docs/Autoscaling_v2alpha1Api.md#listNamespacedHorizontalPodAutoscaler) | **GET** /apis/autoscaling/v2alpha1/namespaces/{namespace}/horizontalpodautoscalers | -*KubernetesJsClient.Autoscaling_v2alpha1Api* | [**patchNamespacedHorizontalPodAutoscaler**](docs/Autoscaling_v2alpha1Api.md#patchNamespacedHorizontalPodAutoscaler) | **PATCH** /apis/autoscaling/v2alpha1/namespaces/{namespace}/horizontalpodautoscalers/{name} | -*KubernetesJsClient.Autoscaling_v2alpha1Api* | [**patchNamespacedHorizontalPodAutoscalerStatus**](docs/Autoscaling_v2alpha1Api.md#patchNamespacedHorizontalPodAutoscalerStatus) | **PATCH** /apis/autoscaling/v2alpha1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status | -*KubernetesJsClient.Autoscaling_v2alpha1Api* | [**readNamespacedHorizontalPodAutoscaler**](docs/Autoscaling_v2alpha1Api.md#readNamespacedHorizontalPodAutoscaler) | **GET** /apis/autoscaling/v2alpha1/namespaces/{namespace}/horizontalpodautoscalers/{name} | -*KubernetesJsClient.Autoscaling_v2alpha1Api* | [**readNamespacedHorizontalPodAutoscalerStatus**](docs/Autoscaling_v2alpha1Api.md#readNamespacedHorizontalPodAutoscalerStatus) | **GET** /apis/autoscaling/v2alpha1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status | -*KubernetesJsClient.Autoscaling_v2alpha1Api* | [**replaceNamespacedHorizontalPodAutoscaler**](docs/Autoscaling_v2alpha1Api.md#replaceNamespacedHorizontalPodAutoscaler) | **PUT** /apis/autoscaling/v2alpha1/namespaces/{namespace}/horizontalpodautoscalers/{name} | -*KubernetesJsClient.Autoscaling_v2alpha1Api* | [**replaceNamespacedHorizontalPodAutoscalerStatus**](docs/Autoscaling_v2alpha1Api.md#replaceNamespacedHorizontalPodAutoscalerStatus) | **PUT** /apis/autoscaling/v2alpha1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status | -*KubernetesJsClient.BatchApi* | [**getAPIGroup**](docs/BatchApi.md#getAPIGroup) | **GET** /apis/batch/ | -*KubernetesJsClient.Batch_v1Api* | [**createNamespacedJob**](docs/Batch_v1Api.md#createNamespacedJob) | **POST** /apis/batch/v1/namespaces/{namespace}/jobs | -*KubernetesJsClient.Batch_v1Api* | [**deleteCollectionNamespacedJob**](docs/Batch_v1Api.md#deleteCollectionNamespacedJob) | **DELETE** /apis/batch/v1/namespaces/{namespace}/jobs | -*KubernetesJsClient.Batch_v1Api* | [**deleteNamespacedJob**](docs/Batch_v1Api.md#deleteNamespacedJob) | **DELETE** /apis/batch/v1/namespaces/{namespace}/jobs/{name} | -*KubernetesJsClient.Batch_v1Api* | [**getAPIResources**](docs/Batch_v1Api.md#getAPIResources) | **GET** /apis/batch/v1/ | -*KubernetesJsClient.Batch_v1Api* | [**listJobForAllNamespaces**](docs/Batch_v1Api.md#listJobForAllNamespaces) | **GET** /apis/batch/v1/jobs | -*KubernetesJsClient.Batch_v1Api* | [**listNamespacedJob**](docs/Batch_v1Api.md#listNamespacedJob) | **GET** /apis/batch/v1/namespaces/{namespace}/jobs | -*KubernetesJsClient.Batch_v1Api* | [**patchNamespacedJob**](docs/Batch_v1Api.md#patchNamespacedJob) | **PATCH** /apis/batch/v1/namespaces/{namespace}/jobs/{name} | -*KubernetesJsClient.Batch_v1Api* | [**patchNamespacedJobStatus**](docs/Batch_v1Api.md#patchNamespacedJobStatus) | **PATCH** /apis/batch/v1/namespaces/{namespace}/jobs/{name}/status | -*KubernetesJsClient.Batch_v1Api* | [**readNamespacedJob**](docs/Batch_v1Api.md#readNamespacedJob) | **GET** /apis/batch/v1/namespaces/{namespace}/jobs/{name} | -*KubernetesJsClient.Batch_v1Api* | [**readNamespacedJobStatus**](docs/Batch_v1Api.md#readNamespacedJobStatus) | **GET** /apis/batch/v1/namespaces/{namespace}/jobs/{name}/status | -*KubernetesJsClient.Batch_v1Api* | [**replaceNamespacedJob**](docs/Batch_v1Api.md#replaceNamespacedJob) | **PUT** /apis/batch/v1/namespaces/{namespace}/jobs/{name} | -*KubernetesJsClient.Batch_v1Api* | [**replaceNamespacedJobStatus**](docs/Batch_v1Api.md#replaceNamespacedJobStatus) | **PUT** /apis/batch/v1/namespaces/{namespace}/jobs/{name}/status | -*KubernetesJsClient.Batch_v2alpha1Api* | [**createNamespacedCronJob**](docs/Batch_v2alpha1Api.md#createNamespacedCronJob) | **POST** /apis/batch/v2alpha1/namespaces/{namespace}/cronjobs | -*KubernetesJsClient.Batch_v2alpha1Api* | [**createNamespacedScheduledJob**](docs/Batch_v2alpha1Api.md#createNamespacedScheduledJob) | **POST** /apis/batch/v2alpha1/namespaces/{namespace}/scheduledjobs | -*KubernetesJsClient.Batch_v2alpha1Api* | [**deleteCollectionNamespacedCronJob**](docs/Batch_v2alpha1Api.md#deleteCollectionNamespacedCronJob) | **DELETE** /apis/batch/v2alpha1/namespaces/{namespace}/cronjobs | -*KubernetesJsClient.Batch_v2alpha1Api* | [**deleteCollectionNamespacedScheduledJob**](docs/Batch_v2alpha1Api.md#deleteCollectionNamespacedScheduledJob) | **DELETE** /apis/batch/v2alpha1/namespaces/{namespace}/scheduledjobs | -*KubernetesJsClient.Batch_v2alpha1Api* | [**deleteNamespacedCronJob**](docs/Batch_v2alpha1Api.md#deleteNamespacedCronJob) | **DELETE** /apis/batch/v2alpha1/namespaces/{namespace}/cronjobs/{name} | -*KubernetesJsClient.Batch_v2alpha1Api* | [**deleteNamespacedScheduledJob**](docs/Batch_v2alpha1Api.md#deleteNamespacedScheduledJob) | **DELETE** /apis/batch/v2alpha1/namespaces/{namespace}/scheduledjobs/{name} | -*KubernetesJsClient.Batch_v2alpha1Api* | [**getAPIResources**](docs/Batch_v2alpha1Api.md#getAPIResources) | **GET** /apis/batch/v2alpha1/ | -*KubernetesJsClient.Batch_v2alpha1Api* | [**listCronJobForAllNamespaces**](docs/Batch_v2alpha1Api.md#listCronJobForAllNamespaces) | **GET** /apis/batch/v2alpha1/cronjobs | -*KubernetesJsClient.Batch_v2alpha1Api* | [**listNamespacedCronJob**](docs/Batch_v2alpha1Api.md#listNamespacedCronJob) | **GET** /apis/batch/v2alpha1/namespaces/{namespace}/cronjobs | -*KubernetesJsClient.Batch_v2alpha1Api* | [**listNamespacedScheduledJob**](docs/Batch_v2alpha1Api.md#listNamespacedScheduledJob) | **GET** /apis/batch/v2alpha1/namespaces/{namespace}/scheduledjobs | -*KubernetesJsClient.Batch_v2alpha1Api* | [**listScheduledJobForAllNamespaces**](docs/Batch_v2alpha1Api.md#listScheduledJobForAllNamespaces) | **GET** /apis/batch/v2alpha1/scheduledjobs | -*KubernetesJsClient.Batch_v2alpha1Api* | [**patchNamespacedCronJob**](docs/Batch_v2alpha1Api.md#patchNamespacedCronJob) | **PATCH** /apis/batch/v2alpha1/namespaces/{namespace}/cronjobs/{name} | -*KubernetesJsClient.Batch_v2alpha1Api* | [**patchNamespacedCronJobStatus**](docs/Batch_v2alpha1Api.md#patchNamespacedCronJobStatus) | **PATCH** /apis/batch/v2alpha1/namespaces/{namespace}/cronjobs/{name}/status | -*KubernetesJsClient.Batch_v2alpha1Api* | [**patchNamespacedScheduledJob**](docs/Batch_v2alpha1Api.md#patchNamespacedScheduledJob) | **PATCH** /apis/batch/v2alpha1/namespaces/{namespace}/scheduledjobs/{name} | -*KubernetesJsClient.Batch_v2alpha1Api* | [**patchNamespacedScheduledJobStatus**](docs/Batch_v2alpha1Api.md#patchNamespacedScheduledJobStatus) | **PATCH** /apis/batch/v2alpha1/namespaces/{namespace}/scheduledjobs/{name}/status | -*KubernetesJsClient.Batch_v2alpha1Api* | [**readNamespacedCronJob**](docs/Batch_v2alpha1Api.md#readNamespacedCronJob) | **GET** /apis/batch/v2alpha1/namespaces/{namespace}/cronjobs/{name} | -*KubernetesJsClient.Batch_v2alpha1Api* | [**readNamespacedCronJobStatus**](docs/Batch_v2alpha1Api.md#readNamespacedCronJobStatus) | **GET** /apis/batch/v2alpha1/namespaces/{namespace}/cronjobs/{name}/status | -*KubernetesJsClient.Batch_v2alpha1Api* | [**readNamespacedScheduledJob**](docs/Batch_v2alpha1Api.md#readNamespacedScheduledJob) | **GET** /apis/batch/v2alpha1/namespaces/{namespace}/scheduledjobs/{name} | -*KubernetesJsClient.Batch_v2alpha1Api* | [**readNamespacedScheduledJobStatus**](docs/Batch_v2alpha1Api.md#readNamespacedScheduledJobStatus) | **GET** /apis/batch/v2alpha1/namespaces/{namespace}/scheduledjobs/{name}/status | -*KubernetesJsClient.Batch_v2alpha1Api* | [**replaceNamespacedCronJob**](docs/Batch_v2alpha1Api.md#replaceNamespacedCronJob) | **PUT** /apis/batch/v2alpha1/namespaces/{namespace}/cronjobs/{name} | -*KubernetesJsClient.Batch_v2alpha1Api* | [**replaceNamespacedCronJobStatus**](docs/Batch_v2alpha1Api.md#replaceNamespacedCronJobStatus) | **PUT** /apis/batch/v2alpha1/namespaces/{namespace}/cronjobs/{name}/status | -*KubernetesJsClient.Batch_v2alpha1Api* | [**replaceNamespacedScheduledJob**](docs/Batch_v2alpha1Api.md#replaceNamespacedScheduledJob) | **PUT** /apis/batch/v2alpha1/namespaces/{namespace}/scheduledjobs/{name} | -*KubernetesJsClient.Batch_v2alpha1Api* | [**replaceNamespacedScheduledJobStatus**](docs/Batch_v2alpha1Api.md#replaceNamespacedScheduledJobStatus) | **PUT** /apis/batch/v2alpha1/namespaces/{namespace}/scheduledjobs/{name}/status | -*KubernetesJsClient.CertificatesApi* | [**getAPIGroup**](docs/CertificatesApi.md#getAPIGroup) | **GET** /apis/certificates.k8s.io/ | -*KubernetesJsClient.Certificates_v1beta1Api* | [**createCertificateSigningRequest**](docs/Certificates_v1beta1Api.md#createCertificateSigningRequest) | **POST** /apis/certificates.k8s.io/v1beta1/certificatesigningrequests | -*KubernetesJsClient.Certificates_v1beta1Api* | [**deleteCertificateSigningRequest**](docs/Certificates_v1beta1Api.md#deleteCertificateSigningRequest) | **DELETE** /apis/certificates.k8s.io/v1beta1/certificatesigningrequests/{name} | -*KubernetesJsClient.Certificates_v1beta1Api* | [**deleteCollectionCertificateSigningRequest**](docs/Certificates_v1beta1Api.md#deleteCollectionCertificateSigningRequest) | **DELETE** /apis/certificates.k8s.io/v1beta1/certificatesigningrequests | -*KubernetesJsClient.Certificates_v1beta1Api* | [**getAPIResources**](docs/Certificates_v1beta1Api.md#getAPIResources) | **GET** /apis/certificates.k8s.io/v1beta1/ | -*KubernetesJsClient.Certificates_v1beta1Api* | [**listCertificateSigningRequest**](docs/Certificates_v1beta1Api.md#listCertificateSigningRequest) | **GET** /apis/certificates.k8s.io/v1beta1/certificatesigningrequests | -*KubernetesJsClient.Certificates_v1beta1Api* | [**patchCertificateSigningRequest**](docs/Certificates_v1beta1Api.md#patchCertificateSigningRequest) | **PATCH** /apis/certificates.k8s.io/v1beta1/certificatesigningrequests/{name} | -*KubernetesJsClient.Certificates_v1beta1Api* | [**readCertificateSigningRequest**](docs/Certificates_v1beta1Api.md#readCertificateSigningRequest) | **GET** /apis/certificates.k8s.io/v1beta1/certificatesigningrequests/{name} | -*KubernetesJsClient.Certificates_v1beta1Api* | [**replaceCertificateSigningRequest**](docs/Certificates_v1beta1Api.md#replaceCertificateSigningRequest) | **PUT** /apis/certificates.k8s.io/v1beta1/certificatesigningrequests/{name} | -*KubernetesJsClient.Certificates_v1beta1Api* | [**replaceCertificateSigningRequestApproval**](docs/Certificates_v1beta1Api.md#replaceCertificateSigningRequestApproval) | **PUT** /apis/certificates.k8s.io/v1beta1/certificatesigningrequests/{name}/approval | -*KubernetesJsClient.Certificates_v1beta1Api* | [**replaceCertificateSigningRequestStatus**](docs/Certificates_v1beta1Api.md#replaceCertificateSigningRequestStatus) | **PUT** /apis/certificates.k8s.io/v1beta1/certificatesigningrequests/{name}/status | -*KubernetesJsClient.CoreApi* | [**getAPIVersions**](docs/CoreApi.md#getAPIVersions) | **GET** /api/ | -*KubernetesJsClient.Core_v1Api* | [**connectDeleteNamespacedPodProxy**](docs/Core_v1Api.md#connectDeleteNamespacedPodProxy) | **DELETE** /api/v1/namespaces/{namespace}/pods/{name}/proxy | -*KubernetesJsClient.Core_v1Api* | [**connectDeleteNamespacedPodProxyWithPath**](docs/Core_v1Api.md#connectDeleteNamespacedPodProxyWithPath) | **DELETE** /api/v1/namespaces/{namespace}/pods/{name}/proxy/{path} | -*KubernetesJsClient.Core_v1Api* | [**connectDeleteNamespacedServiceProxy**](docs/Core_v1Api.md#connectDeleteNamespacedServiceProxy) | **DELETE** /api/v1/namespaces/{namespace}/services/{name}/proxy | -*KubernetesJsClient.Core_v1Api* | [**connectDeleteNamespacedServiceProxyWithPath**](docs/Core_v1Api.md#connectDeleteNamespacedServiceProxyWithPath) | **DELETE** /api/v1/namespaces/{namespace}/services/{name}/proxy/{path} | -*KubernetesJsClient.Core_v1Api* | [**connectDeleteNodeProxy**](docs/Core_v1Api.md#connectDeleteNodeProxy) | **DELETE** /api/v1/nodes/{name}/proxy | -*KubernetesJsClient.Core_v1Api* | [**connectDeleteNodeProxyWithPath**](docs/Core_v1Api.md#connectDeleteNodeProxyWithPath) | **DELETE** /api/v1/nodes/{name}/proxy/{path} | -*KubernetesJsClient.Core_v1Api* | [**connectGetNamespacedPodAttach**](docs/Core_v1Api.md#connectGetNamespacedPodAttach) | **GET** /api/v1/namespaces/{namespace}/pods/{name}/attach | -*KubernetesJsClient.Core_v1Api* | [**connectGetNamespacedPodExec**](docs/Core_v1Api.md#connectGetNamespacedPodExec) | **GET** /api/v1/namespaces/{namespace}/pods/{name}/exec | -*KubernetesJsClient.Core_v1Api* | [**connectGetNamespacedPodPortforward**](docs/Core_v1Api.md#connectGetNamespacedPodPortforward) | **GET** /api/v1/namespaces/{namespace}/pods/{name}/portforward | -*KubernetesJsClient.Core_v1Api* | [**connectGetNamespacedPodProxy**](docs/Core_v1Api.md#connectGetNamespacedPodProxy) | **GET** /api/v1/namespaces/{namespace}/pods/{name}/proxy | -*KubernetesJsClient.Core_v1Api* | [**connectGetNamespacedPodProxyWithPath**](docs/Core_v1Api.md#connectGetNamespacedPodProxyWithPath) | **GET** /api/v1/namespaces/{namespace}/pods/{name}/proxy/{path} | -*KubernetesJsClient.Core_v1Api* | [**connectGetNamespacedServiceProxy**](docs/Core_v1Api.md#connectGetNamespacedServiceProxy) | **GET** /api/v1/namespaces/{namespace}/services/{name}/proxy | -*KubernetesJsClient.Core_v1Api* | [**connectGetNamespacedServiceProxyWithPath**](docs/Core_v1Api.md#connectGetNamespacedServiceProxyWithPath) | **GET** /api/v1/namespaces/{namespace}/services/{name}/proxy/{path} | -*KubernetesJsClient.Core_v1Api* | [**connectGetNodeProxy**](docs/Core_v1Api.md#connectGetNodeProxy) | **GET** /api/v1/nodes/{name}/proxy | -*KubernetesJsClient.Core_v1Api* | [**connectGetNodeProxyWithPath**](docs/Core_v1Api.md#connectGetNodeProxyWithPath) | **GET** /api/v1/nodes/{name}/proxy/{path} | -*KubernetesJsClient.Core_v1Api* | [**connectHeadNamespacedPodProxy**](docs/Core_v1Api.md#connectHeadNamespacedPodProxy) | **HEAD** /api/v1/namespaces/{namespace}/pods/{name}/proxy | -*KubernetesJsClient.Core_v1Api* | [**connectHeadNamespacedPodProxyWithPath**](docs/Core_v1Api.md#connectHeadNamespacedPodProxyWithPath) | **HEAD** /api/v1/namespaces/{namespace}/pods/{name}/proxy/{path} | -*KubernetesJsClient.Core_v1Api* | [**connectHeadNamespacedServiceProxy**](docs/Core_v1Api.md#connectHeadNamespacedServiceProxy) | **HEAD** /api/v1/namespaces/{namespace}/services/{name}/proxy | -*KubernetesJsClient.Core_v1Api* | [**connectHeadNamespacedServiceProxyWithPath**](docs/Core_v1Api.md#connectHeadNamespacedServiceProxyWithPath) | **HEAD** /api/v1/namespaces/{namespace}/services/{name}/proxy/{path} | -*KubernetesJsClient.Core_v1Api* | [**connectHeadNodeProxy**](docs/Core_v1Api.md#connectHeadNodeProxy) | **HEAD** /api/v1/nodes/{name}/proxy | -*KubernetesJsClient.Core_v1Api* | [**connectHeadNodeProxyWithPath**](docs/Core_v1Api.md#connectHeadNodeProxyWithPath) | **HEAD** /api/v1/nodes/{name}/proxy/{path} | -*KubernetesJsClient.Core_v1Api* | [**connectOptionsNamespacedPodProxy**](docs/Core_v1Api.md#connectOptionsNamespacedPodProxy) | **OPTIONS** /api/v1/namespaces/{namespace}/pods/{name}/proxy | -*KubernetesJsClient.Core_v1Api* | [**connectOptionsNamespacedPodProxyWithPath**](docs/Core_v1Api.md#connectOptionsNamespacedPodProxyWithPath) | **OPTIONS** /api/v1/namespaces/{namespace}/pods/{name}/proxy/{path} | -*KubernetesJsClient.Core_v1Api* | [**connectOptionsNamespacedServiceProxy**](docs/Core_v1Api.md#connectOptionsNamespacedServiceProxy) | **OPTIONS** /api/v1/namespaces/{namespace}/services/{name}/proxy | -*KubernetesJsClient.Core_v1Api* | [**connectOptionsNamespacedServiceProxyWithPath**](docs/Core_v1Api.md#connectOptionsNamespacedServiceProxyWithPath) | **OPTIONS** /api/v1/namespaces/{namespace}/services/{name}/proxy/{path} | -*KubernetesJsClient.Core_v1Api* | [**connectOptionsNodeProxy**](docs/Core_v1Api.md#connectOptionsNodeProxy) | **OPTIONS** /api/v1/nodes/{name}/proxy | -*KubernetesJsClient.Core_v1Api* | [**connectOptionsNodeProxyWithPath**](docs/Core_v1Api.md#connectOptionsNodeProxyWithPath) | **OPTIONS** /api/v1/nodes/{name}/proxy/{path} | -*KubernetesJsClient.Core_v1Api* | [**connectPostNamespacedPodAttach**](docs/Core_v1Api.md#connectPostNamespacedPodAttach) | **POST** /api/v1/namespaces/{namespace}/pods/{name}/attach | -*KubernetesJsClient.Core_v1Api* | [**connectPostNamespacedPodExec**](docs/Core_v1Api.md#connectPostNamespacedPodExec) | **POST** /api/v1/namespaces/{namespace}/pods/{name}/exec | -*KubernetesJsClient.Core_v1Api* | [**connectPostNamespacedPodPortforward**](docs/Core_v1Api.md#connectPostNamespacedPodPortforward) | **POST** /api/v1/namespaces/{namespace}/pods/{name}/portforward | -*KubernetesJsClient.Core_v1Api* | [**connectPostNamespacedPodProxy**](docs/Core_v1Api.md#connectPostNamespacedPodProxy) | **POST** /api/v1/namespaces/{namespace}/pods/{name}/proxy | -*KubernetesJsClient.Core_v1Api* | [**connectPostNamespacedPodProxyWithPath**](docs/Core_v1Api.md#connectPostNamespacedPodProxyWithPath) | **POST** /api/v1/namespaces/{namespace}/pods/{name}/proxy/{path} | -*KubernetesJsClient.Core_v1Api* | [**connectPostNamespacedServiceProxy**](docs/Core_v1Api.md#connectPostNamespacedServiceProxy) | **POST** /api/v1/namespaces/{namespace}/services/{name}/proxy | -*KubernetesJsClient.Core_v1Api* | [**connectPostNamespacedServiceProxyWithPath**](docs/Core_v1Api.md#connectPostNamespacedServiceProxyWithPath) | **POST** /api/v1/namespaces/{namespace}/services/{name}/proxy/{path} | -*KubernetesJsClient.Core_v1Api* | [**connectPostNodeProxy**](docs/Core_v1Api.md#connectPostNodeProxy) | **POST** /api/v1/nodes/{name}/proxy | -*KubernetesJsClient.Core_v1Api* | [**connectPostNodeProxyWithPath**](docs/Core_v1Api.md#connectPostNodeProxyWithPath) | **POST** /api/v1/nodes/{name}/proxy/{path} | -*KubernetesJsClient.Core_v1Api* | [**connectPutNamespacedPodProxy**](docs/Core_v1Api.md#connectPutNamespacedPodProxy) | **PUT** /api/v1/namespaces/{namespace}/pods/{name}/proxy | -*KubernetesJsClient.Core_v1Api* | [**connectPutNamespacedPodProxyWithPath**](docs/Core_v1Api.md#connectPutNamespacedPodProxyWithPath) | **PUT** /api/v1/namespaces/{namespace}/pods/{name}/proxy/{path} | -*KubernetesJsClient.Core_v1Api* | [**connectPutNamespacedServiceProxy**](docs/Core_v1Api.md#connectPutNamespacedServiceProxy) | **PUT** /api/v1/namespaces/{namespace}/services/{name}/proxy | -*KubernetesJsClient.Core_v1Api* | [**connectPutNamespacedServiceProxyWithPath**](docs/Core_v1Api.md#connectPutNamespacedServiceProxyWithPath) | **PUT** /api/v1/namespaces/{namespace}/services/{name}/proxy/{path} | -*KubernetesJsClient.Core_v1Api* | [**connectPutNodeProxy**](docs/Core_v1Api.md#connectPutNodeProxy) | **PUT** /api/v1/nodes/{name}/proxy | -*KubernetesJsClient.Core_v1Api* | [**connectPutNodeProxyWithPath**](docs/Core_v1Api.md#connectPutNodeProxyWithPath) | **PUT** /api/v1/nodes/{name}/proxy/{path} | -*KubernetesJsClient.Core_v1Api* | [**createNamespace**](docs/Core_v1Api.md#createNamespace) | **POST** /api/v1/namespaces | -*KubernetesJsClient.Core_v1Api* | [**createNamespacedBinding**](docs/Core_v1Api.md#createNamespacedBinding) | **POST** /api/v1/namespaces/{namespace}/bindings | -*KubernetesJsClient.Core_v1Api* | [**createNamespacedBindingBinding**](docs/Core_v1Api.md#createNamespacedBindingBinding) | **POST** /api/v1/namespaces/{namespace}/pods/{name}/binding | -*KubernetesJsClient.Core_v1Api* | [**createNamespacedConfigMap**](docs/Core_v1Api.md#createNamespacedConfigMap) | **POST** /api/v1/namespaces/{namespace}/configmaps | -*KubernetesJsClient.Core_v1Api* | [**createNamespacedEndpoints**](docs/Core_v1Api.md#createNamespacedEndpoints) | **POST** /api/v1/namespaces/{namespace}/endpoints | -*KubernetesJsClient.Core_v1Api* | [**createNamespacedEvent**](docs/Core_v1Api.md#createNamespacedEvent) | **POST** /api/v1/namespaces/{namespace}/events | -*KubernetesJsClient.Core_v1Api* | [**createNamespacedEvictionEviction**](docs/Core_v1Api.md#createNamespacedEvictionEviction) | **POST** /api/v1/namespaces/{namespace}/pods/{name}/eviction | -*KubernetesJsClient.Core_v1Api* | [**createNamespacedLimitRange**](docs/Core_v1Api.md#createNamespacedLimitRange) | **POST** /api/v1/namespaces/{namespace}/limitranges | -*KubernetesJsClient.Core_v1Api* | [**createNamespacedPersistentVolumeClaim**](docs/Core_v1Api.md#createNamespacedPersistentVolumeClaim) | **POST** /api/v1/namespaces/{namespace}/persistentvolumeclaims | -*KubernetesJsClient.Core_v1Api* | [**createNamespacedPod**](docs/Core_v1Api.md#createNamespacedPod) | **POST** /api/v1/namespaces/{namespace}/pods | -*KubernetesJsClient.Core_v1Api* | [**createNamespacedPodTemplate**](docs/Core_v1Api.md#createNamespacedPodTemplate) | **POST** /api/v1/namespaces/{namespace}/podtemplates | -*KubernetesJsClient.Core_v1Api* | [**createNamespacedReplicationController**](docs/Core_v1Api.md#createNamespacedReplicationController) | **POST** /api/v1/namespaces/{namespace}/replicationcontrollers | -*KubernetesJsClient.Core_v1Api* | [**createNamespacedResourceQuota**](docs/Core_v1Api.md#createNamespacedResourceQuota) | **POST** /api/v1/namespaces/{namespace}/resourcequotas | -*KubernetesJsClient.Core_v1Api* | [**createNamespacedSecret**](docs/Core_v1Api.md#createNamespacedSecret) | **POST** /api/v1/namespaces/{namespace}/secrets | -*KubernetesJsClient.Core_v1Api* | [**createNamespacedService**](docs/Core_v1Api.md#createNamespacedService) | **POST** /api/v1/namespaces/{namespace}/services | -*KubernetesJsClient.Core_v1Api* | [**createNamespacedServiceAccount**](docs/Core_v1Api.md#createNamespacedServiceAccount) | **POST** /api/v1/namespaces/{namespace}/serviceaccounts | -*KubernetesJsClient.Core_v1Api* | [**createNode**](docs/Core_v1Api.md#createNode) | **POST** /api/v1/nodes | -*KubernetesJsClient.Core_v1Api* | [**createPersistentVolume**](docs/Core_v1Api.md#createPersistentVolume) | **POST** /api/v1/persistentvolumes | -*KubernetesJsClient.Core_v1Api* | [**deleteCollectionNamespace**](docs/Core_v1Api.md#deleteCollectionNamespace) | **DELETE** /api/v1/namespaces | -*KubernetesJsClient.Core_v1Api* | [**deleteCollectionNamespacedConfigMap**](docs/Core_v1Api.md#deleteCollectionNamespacedConfigMap) | **DELETE** /api/v1/namespaces/{namespace}/configmaps | -*KubernetesJsClient.Core_v1Api* | [**deleteCollectionNamespacedEndpoints**](docs/Core_v1Api.md#deleteCollectionNamespacedEndpoints) | **DELETE** /api/v1/namespaces/{namespace}/endpoints | -*KubernetesJsClient.Core_v1Api* | [**deleteCollectionNamespacedEvent**](docs/Core_v1Api.md#deleteCollectionNamespacedEvent) | **DELETE** /api/v1/namespaces/{namespace}/events | -*KubernetesJsClient.Core_v1Api* | [**deleteCollectionNamespacedLimitRange**](docs/Core_v1Api.md#deleteCollectionNamespacedLimitRange) | **DELETE** /api/v1/namespaces/{namespace}/limitranges | -*KubernetesJsClient.Core_v1Api* | [**deleteCollectionNamespacedPersistentVolumeClaim**](docs/Core_v1Api.md#deleteCollectionNamespacedPersistentVolumeClaim) | **DELETE** /api/v1/namespaces/{namespace}/persistentvolumeclaims | -*KubernetesJsClient.Core_v1Api* | [**deleteCollectionNamespacedPod**](docs/Core_v1Api.md#deleteCollectionNamespacedPod) | **DELETE** /api/v1/namespaces/{namespace}/pods | -*KubernetesJsClient.Core_v1Api* | [**deleteCollectionNamespacedPodTemplate**](docs/Core_v1Api.md#deleteCollectionNamespacedPodTemplate) | **DELETE** /api/v1/namespaces/{namespace}/podtemplates | -*KubernetesJsClient.Core_v1Api* | [**deleteCollectionNamespacedReplicationController**](docs/Core_v1Api.md#deleteCollectionNamespacedReplicationController) | **DELETE** /api/v1/namespaces/{namespace}/replicationcontrollers | -*KubernetesJsClient.Core_v1Api* | [**deleteCollectionNamespacedResourceQuota**](docs/Core_v1Api.md#deleteCollectionNamespacedResourceQuota) | **DELETE** /api/v1/namespaces/{namespace}/resourcequotas | -*KubernetesJsClient.Core_v1Api* | [**deleteCollectionNamespacedSecret**](docs/Core_v1Api.md#deleteCollectionNamespacedSecret) | **DELETE** /api/v1/namespaces/{namespace}/secrets | -*KubernetesJsClient.Core_v1Api* | [**deleteCollectionNamespacedServiceAccount**](docs/Core_v1Api.md#deleteCollectionNamespacedServiceAccount) | **DELETE** /api/v1/namespaces/{namespace}/serviceaccounts | -*KubernetesJsClient.Core_v1Api* | [**deleteCollectionNode**](docs/Core_v1Api.md#deleteCollectionNode) | **DELETE** /api/v1/nodes | -*KubernetesJsClient.Core_v1Api* | [**deleteCollectionPersistentVolume**](docs/Core_v1Api.md#deleteCollectionPersistentVolume) | **DELETE** /api/v1/persistentvolumes | -*KubernetesJsClient.Core_v1Api* | [**deleteNamespace**](docs/Core_v1Api.md#deleteNamespace) | **DELETE** /api/v1/namespaces/{name} | -*KubernetesJsClient.Core_v1Api* | [**deleteNamespacedConfigMap**](docs/Core_v1Api.md#deleteNamespacedConfigMap) | **DELETE** /api/v1/namespaces/{namespace}/configmaps/{name} | -*KubernetesJsClient.Core_v1Api* | [**deleteNamespacedEndpoints**](docs/Core_v1Api.md#deleteNamespacedEndpoints) | **DELETE** /api/v1/namespaces/{namespace}/endpoints/{name} | -*KubernetesJsClient.Core_v1Api* | [**deleteNamespacedEvent**](docs/Core_v1Api.md#deleteNamespacedEvent) | **DELETE** /api/v1/namespaces/{namespace}/events/{name} | -*KubernetesJsClient.Core_v1Api* | [**deleteNamespacedLimitRange**](docs/Core_v1Api.md#deleteNamespacedLimitRange) | **DELETE** /api/v1/namespaces/{namespace}/limitranges/{name} | -*KubernetesJsClient.Core_v1Api* | [**deleteNamespacedPersistentVolumeClaim**](docs/Core_v1Api.md#deleteNamespacedPersistentVolumeClaim) | **DELETE** /api/v1/namespaces/{namespace}/persistentvolumeclaims/{name} | -*KubernetesJsClient.Core_v1Api* | [**deleteNamespacedPod**](docs/Core_v1Api.md#deleteNamespacedPod) | **DELETE** /api/v1/namespaces/{namespace}/pods/{name} | -*KubernetesJsClient.Core_v1Api* | [**deleteNamespacedPodTemplate**](docs/Core_v1Api.md#deleteNamespacedPodTemplate) | **DELETE** /api/v1/namespaces/{namespace}/podtemplates/{name} | -*KubernetesJsClient.Core_v1Api* | [**deleteNamespacedReplicationController**](docs/Core_v1Api.md#deleteNamespacedReplicationController) | **DELETE** /api/v1/namespaces/{namespace}/replicationcontrollers/{name} | -*KubernetesJsClient.Core_v1Api* | [**deleteNamespacedResourceQuota**](docs/Core_v1Api.md#deleteNamespacedResourceQuota) | **DELETE** /api/v1/namespaces/{namespace}/resourcequotas/{name} | -*KubernetesJsClient.Core_v1Api* | [**deleteNamespacedSecret**](docs/Core_v1Api.md#deleteNamespacedSecret) | **DELETE** /api/v1/namespaces/{namespace}/secrets/{name} | -*KubernetesJsClient.Core_v1Api* | [**deleteNamespacedService**](docs/Core_v1Api.md#deleteNamespacedService) | **DELETE** /api/v1/namespaces/{namespace}/services/{name} | -*KubernetesJsClient.Core_v1Api* | [**deleteNamespacedServiceAccount**](docs/Core_v1Api.md#deleteNamespacedServiceAccount) | **DELETE** /api/v1/namespaces/{namespace}/serviceaccounts/{name} | -*KubernetesJsClient.Core_v1Api* | [**deleteNode**](docs/Core_v1Api.md#deleteNode) | **DELETE** /api/v1/nodes/{name} | -*KubernetesJsClient.Core_v1Api* | [**deletePersistentVolume**](docs/Core_v1Api.md#deletePersistentVolume) | **DELETE** /api/v1/persistentvolumes/{name} | -*KubernetesJsClient.Core_v1Api* | [**getAPIResources**](docs/Core_v1Api.md#getAPIResources) | **GET** /api/v1/ | -*KubernetesJsClient.Core_v1Api* | [**listComponentStatus**](docs/Core_v1Api.md#listComponentStatus) | **GET** /api/v1/componentstatuses | -*KubernetesJsClient.Core_v1Api* | [**listConfigMapForAllNamespaces**](docs/Core_v1Api.md#listConfigMapForAllNamespaces) | **GET** /api/v1/configmaps | -*KubernetesJsClient.Core_v1Api* | [**listEndpointsForAllNamespaces**](docs/Core_v1Api.md#listEndpointsForAllNamespaces) | **GET** /api/v1/endpoints | -*KubernetesJsClient.Core_v1Api* | [**listEventForAllNamespaces**](docs/Core_v1Api.md#listEventForAllNamespaces) | **GET** /api/v1/events | -*KubernetesJsClient.Core_v1Api* | [**listLimitRangeForAllNamespaces**](docs/Core_v1Api.md#listLimitRangeForAllNamespaces) | **GET** /api/v1/limitranges | -*KubernetesJsClient.Core_v1Api* | [**listNamespace**](docs/Core_v1Api.md#listNamespace) | **GET** /api/v1/namespaces | -*KubernetesJsClient.Core_v1Api* | [**listNamespacedConfigMap**](docs/Core_v1Api.md#listNamespacedConfigMap) | **GET** /api/v1/namespaces/{namespace}/configmaps | -*KubernetesJsClient.Core_v1Api* | [**listNamespacedEndpoints**](docs/Core_v1Api.md#listNamespacedEndpoints) | **GET** /api/v1/namespaces/{namespace}/endpoints | -*KubernetesJsClient.Core_v1Api* | [**listNamespacedEvent**](docs/Core_v1Api.md#listNamespacedEvent) | **GET** /api/v1/namespaces/{namespace}/events | -*KubernetesJsClient.Core_v1Api* | [**listNamespacedLimitRange**](docs/Core_v1Api.md#listNamespacedLimitRange) | **GET** /api/v1/namespaces/{namespace}/limitranges | -*KubernetesJsClient.Core_v1Api* | [**listNamespacedPersistentVolumeClaim**](docs/Core_v1Api.md#listNamespacedPersistentVolumeClaim) | **GET** /api/v1/namespaces/{namespace}/persistentvolumeclaims | -*KubernetesJsClient.Core_v1Api* | [**listNamespacedPod**](docs/Core_v1Api.md#listNamespacedPod) | **GET** /api/v1/namespaces/{namespace}/pods | -*KubernetesJsClient.Core_v1Api* | [**listNamespacedPodTemplate**](docs/Core_v1Api.md#listNamespacedPodTemplate) | **GET** /api/v1/namespaces/{namespace}/podtemplates | -*KubernetesJsClient.Core_v1Api* | [**listNamespacedReplicationController**](docs/Core_v1Api.md#listNamespacedReplicationController) | **GET** /api/v1/namespaces/{namespace}/replicationcontrollers | -*KubernetesJsClient.Core_v1Api* | [**listNamespacedResourceQuota**](docs/Core_v1Api.md#listNamespacedResourceQuota) | **GET** /api/v1/namespaces/{namespace}/resourcequotas | -*KubernetesJsClient.Core_v1Api* | [**listNamespacedSecret**](docs/Core_v1Api.md#listNamespacedSecret) | **GET** /api/v1/namespaces/{namespace}/secrets | -*KubernetesJsClient.Core_v1Api* | [**listNamespacedService**](docs/Core_v1Api.md#listNamespacedService) | **GET** /api/v1/namespaces/{namespace}/services | -*KubernetesJsClient.Core_v1Api* | [**listNamespacedServiceAccount**](docs/Core_v1Api.md#listNamespacedServiceAccount) | **GET** /api/v1/namespaces/{namespace}/serviceaccounts | -*KubernetesJsClient.Core_v1Api* | [**listNode**](docs/Core_v1Api.md#listNode) | **GET** /api/v1/nodes | -*KubernetesJsClient.Core_v1Api* | [**listPersistentVolume**](docs/Core_v1Api.md#listPersistentVolume) | **GET** /api/v1/persistentvolumes | -*KubernetesJsClient.Core_v1Api* | [**listPersistentVolumeClaimForAllNamespaces**](docs/Core_v1Api.md#listPersistentVolumeClaimForAllNamespaces) | **GET** /api/v1/persistentvolumeclaims | -*KubernetesJsClient.Core_v1Api* | [**listPodForAllNamespaces**](docs/Core_v1Api.md#listPodForAllNamespaces) | **GET** /api/v1/pods | -*KubernetesJsClient.Core_v1Api* | [**listPodTemplateForAllNamespaces**](docs/Core_v1Api.md#listPodTemplateForAllNamespaces) | **GET** /api/v1/podtemplates | -*KubernetesJsClient.Core_v1Api* | [**listReplicationControllerForAllNamespaces**](docs/Core_v1Api.md#listReplicationControllerForAllNamespaces) | **GET** /api/v1/replicationcontrollers | -*KubernetesJsClient.Core_v1Api* | [**listResourceQuotaForAllNamespaces**](docs/Core_v1Api.md#listResourceQuotaForAllNamespaces) | **GET** /api/v1/resourcequotas | -*KubernetesJsClient.Core_v1Api* | [**listSecretForAllNamespaces**](docs/Core_v1Api.md#listSecretForAllNamespaces) | **GET** /api/v1/secrets | -*KubernetesJsClient.Core_v1Api* | [**listServiceAccountForAllNamespaces**](docs/Core_v1Api.md#listServiceAccountForAllNamespaces) | **GET** /api/v1/serviceaccounts | -*KubernetesJsClient.Core_v1Api* | [**listServiceForAllNamespaces**](docs/Core_v1Api.md#listServiceForAllNamespaces) | **GET** /api/v1/services | -*KubernetesJsClient.Core_v1Api* | [**patchNamespace**](docs/Core_v1Api.md#patchNamespace) | **PATCH** /api/v1/namespaces/{name} | -*KubernetesJsClient.Core_v1Api* | [**patchNamespaceStatus**](docs/Core_v1Api.md#patchNamespaceStatus) | **PATCH** /api/v1/namespaces/{name}/status | -*KubernetesJsClient.Core_v1Api* | [**patchNamespacedConfigMap**](docs/Core_v1Api.md#patchNamespacedConfigMap) | **PATCH** /api/v1/namespaces/{namespace}/configmaps/{name} | -*KubernetesJsClient.Core_v1Api* | [**patchNamespacedEndpoints**](docs/Core_v1Api.md#patchNamespacedEndpoints) | **PATCH** /api/v1/namespaces/{namespace}/endpoints/{name} | -*KubernetesJsClient.Core_v1Api* | [**patchNamespacedEvent**](docs/Core_v1Api.md#patchNamespacedEvent) | **PATCH** /api/v1/namespaces/{namespace}/events/{name} | -*KubernetesJsClient.Core_v1Api* | [**patchNamespacedLimitRange**](docs/Core_v1Api.md#patchNamespacedLimitRange) | **PATCH** /api/v1/namespaces/{namespace}/limitranges/{name} | -*KubernetesJsClient.Core_v1Api* | [**patchNamespacedPersistentVolumeClaim**](docs/Core_v1Api.md#patchNamespacedPersistentVolumeClaim) | **PATCH** /api/v1/namespaces/{namespace}/persistentvolumeclaims/{name} | -*KubernetesJsClient.Core_v1Api* | [**patchNamespacedPersistentVolumeClaimStatus**](docs/Core_v1Api.md#patchNamespacedPersistentVolumeClaimStatus) | **PATCH** /api/v1/namespaces/{namespace}/persistentvolumeclaims/{name}/status | -*KubernetesJsClient.Core_v1Api* | [**patchNamespacedPod**](docs/Core_v1Api.md#patchNamespacedPod) | **PATCH** /api/v1/namespaces/{namespace}/pods/{name} | -*KubernetesJsClient.Core_v1Api* | [**patchNamespacedPodStatus**](docs/Core_v1Api.md#patchNamespacedPodStatus) | **PATCH** /api/v1/namespaces/{namespace}/pods/{name}/status | -*KubernetesJsClient.Core_v1Api* | [**patchNamespacedPodTemplate**](docs/Core_v1Api.md#patchNamespacedPodTemplate) | **PATCH** /api/v1/namespaces/{namespace}/podtemplates/{name} | -*KubernetesJsClient.Core_v1Api* | [**patchNamespacedReplicationController**](docs/Core_v1Api.md#patchNamespacedReplicationController) | **PATCH** /api/v1/namespaces/{namespace}/replicationcontrollers/{name} | -*KubernetesJsClient.Core_v1Api* | [**patchNamespacedReplicationControllerStatus**](docs/Core_v1Api.md#patchNamespacedReplicationControllerStatus) | **PATCH** /api/v1/namespaces/{namespace}/replicationcontrollers/{name}/status | -*KubernetesJsClient.Core_v1Api* | [**patchNamespacedResourceQuota**](docs/Core_v1Api.md#patchNamespacedResourceQuota) | **PATCH** /api/v1/namespaces/{namespace}/resourcequotas/{name} | -*KubernetesJsClient.Core_v1Api* | [**patchNamespacedResourceQuotaStatus**](docs/Core_v1Api.md#patchNamespacedResourceQuotaStatus) | **PATCH** /api/v1/namespaces/{namespace}/resourcequotas/{name}/status | -*KubernetesJsClient.Core_v1Api* | [**patchNamespacedScaleScale**](docs/Core_v1Api.md#patchNamespacedScaleScale) | **PATCH** /api/v1/namespaces/{namespace}/replicationcontrollers/{name}/scale | -*KubernetesJsClient.Core_v1Api* | [**patchNamespacedSecret**](docs/Core_v1Api.md#patchNamespacedSecret) | **PATCH** /api/v1/namespaces/{namespace}/secrets/{name} | -*KubernetesJsClient.Core_v1Api* | [**patchNamespacedService**](docs/Core_v1Api.md#patchNamespacedService) | **PATCH** /api/v1/namespaces/{namespace}/services/{name} | -*KubernetesJsClient.Core_v1Api* | [**patchNamespacedServiceAccount**](docs/Core_v1Api.md#patchNamespacedServiceAccount) | **PATCH** /api/v1/namespaces/{namespace}/serviceaccounts/{name} | -*KubernetesJsClient.Core_v1Api* | [**patchNamespacedServiceStatus**](docs/Core_v1Api.md#patchNamespacedServiceStatus) | **PATCH** /api/v1/namespaces/{namespace}/services/{name}/status | -*KubernetesJsClient.Core_v1Api* | [**patchNode**](docs/Core_v1Api.md#patchNode) | **PATCH** /api/v1/nodes/{name} | -*KubernetesJsClient.Core_v1Api* | [**patchNodeStatus**](docs/Core_v1Api.md#patchNodeStatus) | **PATCH** /api/v1/nodes/{name}/status | -*KubernetesJsClient.Core_v1Api* | [**patchPersistentVolume**](docs/Core_v1Api.md#patchPersistentVolume) | **PATCH** /api/v1/persistentvolumes/{name} | -*KubernetesJsClient.Core_v1Api* | [**patchPersistentVolumeStatus**](docs/Core_v1Api.md#patchPersistentVolumeStatus) | **PATCH** /api/v1/persistentvolumes/{name}/status | -*KubernetesJsClient.Core_v1Api* | [**proxyDELETENamespacedPod**](docs/Core_v1Api.md#proxyDELETENamespacedPod) | **DELETE** /api/v1/proxy/namespaces/{namespace}/pods/{name} | -*KubernetesJsClient.Core_v1Api* | [**proxyDELETENamespacedPodWithPath**](docs/Core_v1Api.md#proxyDELETENamespacedPodWithPath) | **DELETE** /api/v1/proxy/namespaces/{namespace}/pods/{name}/{path} | -*KubernetesJsClient.Core_v1Api* | [**proxyDELETENamespacedService**](docs/Core_v1Api.md#proxyDELETENamespacedService) | **DELETE** /api/v1/proxy/namespaces/{namespace}/services/{name} | -*KubernetesJsClient.Core_v1Api* | [**proxyDELETENamespacedServiceWithPath**](docs/Core_v1Api.md#proxyDELETENamespacedServiceWithPath) | **DELETE** /api/v1/proxy/namespaces/{namespace}/services/{name}/{path} | -*KubernetesJsClient.Core_v1Api* | [**proxyDELETENode**](docs/Core_v1Api.md#proxyDELETENode) | **DELETE** /api/v1/proxy/nodes/{name} | -*KubernetesJsClient.Core_v1Api* | [**proxyDELETENodeWithPath**](docs/Core_v1Api.md#proxyDELETENodeWithPath) | **DELETE** /api/v1/proxy/nodes/{name}/{path} | -*KubernetesJsClient.Core_v1Api* | [**proxyGETNamespacedPod**](docs/Core_v1Api.md#proxyGETNamespacedPod) | **GET** /api/v1/proxy/namespaces/{namespace}/pods/{name} | -*KubernetesJsClient.Core_v1Api* | [**proxyGETNamespacedPodWithPath**](docs/Core_v1Api.md#proxyGETNamespacedPodWithPath) | **GET** /api/v1/proxy/namespaces/{namespace}/pods/{name}/{path} | -*KubernetesJsClient.Core_v1Api* | [**proxyGETNamespacedService**](docs/Core_v1Api.md#proxyGETNamespacedService) | **GET** /api/v1/proxy/namespaces/{namespace}/services/{name} | -*KubernetesJsClient.Core_v1Api* | [**proxyGETNamespacedServiceWithPath**](docs/Core_v1Api.md#proxyGETNamespacedServiceWithPath) | **GET** /api/v1/proxy/namespaces/{namespace}/services/{name}/{path} | -*KubernetesJsClient.Core_v1Api* | [**proxyGETNode**](docs/Core_v1Api.md#proxyGETNode) | **GET** /api/v1/proxy/nodes/{name} | -*KubernetesJsClient.Core_v1Api* | [**proxyGETNodeWithPath**](docs/Core_v1Api.md#proxyGETNodeWithPath) | **GET** /api/v1/proxy/nodes/{name}/{path} | -*KubernetesJsClient.Core_v1Api* | [**proxyHEADNamespacedPod**](docs/Core_v1Api.md#proxyHEADNamespacedPod) | **HEAD** /api/v1/proxy/namespaces/{namespace}/pods/{name} | -*KubernetesJsClient.Core_v1Api* | [**proxyHEADNamespacedPodWithPath**](docs/Core_v1Api.md#proxyHEADNamespacedPodWithPath) | **HEAD** /api/v1/proxy/namespaces/{namespace}/pods/{name}/{path} | -*KubernetesJsClient.Core_v1Api* | [**proxyHEADNamespacedService**](docs/Core_v1Api.md#proxyHEADNamespacedService) | **HEAD** /api/v1/proxy/namespaces/{namespace}/services/{name} | -*KubernetesJsClient.Core_v1Api* | [**proxyHEADNamespacedServiceWithPath**](docs/Core_v1Api.md#proxyHEADNamespacedServiceWithPath) | **HEAD** /api/v1/proxy/namespaces/{namespace}/services/{name}/{path} | -*KubernetesJsClient.Core_v1Api* | [**proxyHEADNode**](docs/Core_v1Api.md#proxyHEADNode) | **HEAD** /api/v1/proxy/nodes/{name} | -*KubernetesJsClient.Core_v1Api* | [**proxyHEADNodeWithPath**](docs/Core_v1Api.md#proxyHEADNodeWithPath) | **HEAD** /api/v1/proxy/nodes/{name}/{path} | -*KubernetesJsClient.Core_v1Api* | [**proxyOPTIONSNamespacedPod**](docs/Core_v1Api.md#proxyOPTIONSNamespacedPod) | **OPTIONS** /api/v1/proxy/namespaces/{namespace}/pods/{name} | -*KubernetesJsClient.Core_v1Api* | [**proxyOPTIONSNamespacedPodWithPath**](docs/Core_v1Api.md#proxyOPTIONSNamespacedPodWithPath) | **OPTIONS** /api/v1/proxy/namespaces/{namespace}/pods/{name}/{path} | -*KubernetesJsClient.Core_v1Api* | [**proxyOPTIONSNamespacedService**](docs/Core_v1Api.md#proxyOPTIONSNamespacedService) | **OPTIONS** /api/v1/proxy/namespaces/{namespace}/services/{name} | -*KubernetesJsClient.Core_v1Api* | [**proxyOPTIONSNamespacedServiceWithPath**](docs/Core_v1Api.md#proxyOPTIONSNamespacedServiceWithPath) | **OPTIONS** /api/v1/proxy/namespaces/{namespace}/services/{name}/{path} | -*KubernetesJsClient.Core_v1Api* | [**proxyOPTIONSNode**](docs/Core_v1Api.md#proxyOPTIONSNode) | **OPTIONS** /api/v1/proxy/nodes/{name} | -*KubernetesJsClient.Core_v1Api* | [**proxyOPTIONSNodeWithPath**](docs/Core_v1Api.md#proxyOPTIONSNodeWithPath) | **OPTIONS** /api/v1/proxy/nodes/{name}/{path} | -*KubernetesJsClient.Core_v1Api* | [**proxyPATCHNamespacedPod**](docs/Core_v1Api.md#proxyPATCHNamespacedPod) | **PATCH** /api/v1/proxy/namespaces/{namespace}/pods/{name} | -*KubernetesJsClient.Core_v1Api* | [**proxyPATCHNamespacedPodWithPath**](docs/Core_v1Api.md#proxyPATCHNamespacedPodWithPath) | **PATCH** /api/v1/proxy/namespaces/{namespace}/pods/{name}/{path} | -*KubernetesJsClient.Core_v1Api* | [**proxyPATCHNamespacedService**](docs/Core_v1Api.md#proxyPATCHNamespacedService) | **PATCH** /api/v1/proxy/namespaces/{namespace}/services/{name} | -*KubernetesJsClient.Core_v1Api* | [**proxyPATCHNamespacedServiceWithPath**](docs/Core_v1Api.md#proxyPATCHNamespacedServiceWithPath) | **PATCH** /api/v1/proxy/namespaces/{namespace}/services/{name}/{path} | -*KubernetesJsClient.Core_v1Api* | [**proxyPATCHNode**](docs/Core_v1Api.md#proxyPATCHNode) | **PATCH** /api/v1/proxy/nodes/{name} | -*KubernetesJsClient.Core_v1Api* | [**proxyPATCHNodeWithPath**](docs/Core_v1Api.md#proxyPATCHNodeWithPath) | **PATCH** /api/v1/proxy/nodes/{name}/{path} | -*KubernetesJsClient.Core_v1Api* | [**proxyPOSTNamespacedPod**](docs/Core_v1Api.md#proxyPOSTNamespacedPod) | **POST** /api/v1/proxy/namespaces/{namespace}/pods/{name} | -*KubernetesJsClient.Core_v1Api* | [**proxyPOSTNamespacedPodWithPath**](docs/Core_v1Api.md#proxyPOSTNamespacedPodWithPath) | **POST** /api/v1/proxy/namespaces/{namespace}/pods/{name}/{path} | -*KubernetesJsClient.Core_v1Api* | [**proxyPOSTNamespacedService**](docs/Core_v1Api.md#proxyPOSTNamespacedService) | **POST** /api/v1/proxy/namespaces/{namespace}/services/{name} | -*KubernetesJsClient.Core_v1Api* | [**proxyPOSTNamespacedServiceWithPath**](docs/Core_v1Api.md#proxyPOSTNamespacedServiceWithPath) | **POST** /api/v1/proxy/namespaces/{namespace}/services/{name}/{path} | -*KubernetesJsClient.Core_v1Api* | [**proxyPOSTNode**](docs/Core_v1Api.md#proxyPOSTNode) | **POST** /api/v1/proxy/nodes/{name} | -*KubernetesJsClient.Core_v1Api* | [**proxyPOSTNodeWithPath**](docs/Core_v1Api.md#proxyPOSTNodeWithPath) | **POST** /api/v1/proxy/nodes/{name}/{path} | -*KubernetesJsClient.Core_v1Api* | [**proxyPUTNamespacedPod**](docs/Core_v1Api.md#proxyPUTNamespacedPod) | **PUT** /api/v1/proxy/namespaces/{namespace}/pods/{name} | -*KubernetesJsClient.Core_v1Api* | [**proxyPUTNamespacedPodWithPath**](docs/Core_v1Api.md#proxyPUTNamespacedPodWithPath) | **PUT** /api/v1/proxy/namespaces/{namespace}/pods/{name}/{path} | -*KubernetesJsClient.Core_v1Api* | [**proxyPUTNamespacedService**](docs/Core_v1Api.md#proxyPUTNamespacedService) | **PUT** /api/v1/proxy/namespaces/{namespace}/services/{name} | -*KubernetesJsClient.Core_v1Api* | [**proxyPUTNamespacedServiceWithPath**](docs/Core_v1Api.md#proxyPUTNamespacedServiceWithPath) | **PUT** /api/v1/proxy/namespaces/{namespace}/services/{name}/{path} | -*KubernetesJsClient.Core_v1Api* | [**proxyPUTNode**](docs/Core_v1Api.md#proxyPUTNode) | **PUT** /api/v1/proxy/nodes/{name} | -*KubernetesJsClient.Core_v1Api* | [**proxyPUTNodeWithPath**](docs/Core_v1Api.md#proxyPUTNodeWithPath) | **PUT** /api/v1/proxy/nodes/{name}/{path} | -*KubernetesJsClient.Core_v1Api* | [**readComponentStatus**](docs/Core_v1Api.md#readComponentStatus) | **GET** /api/v1/componentstatuses/{name} | -*KubernetesJsClient.Core_v1Api* | [**readNamespace**](docs/Core_v1Api.md#readNamespace) | **GET** /api/v1/namespaces/{name} | -*KubernetesJsClient.Core_v1Api* | [**readNamespaceStatus**](docs/Core_v1Api.md#readNamespaceStatus) | **GET** /api/v1/namespaces/{name}/status | -*KubernetesJsClient.Core_v1Api* | [**readNamespacedConfigMap**](docs/Core_v1Api.md#readNamespacedConfigMap) | **GET** /api/v1/namespaces/{namespace}/configmaps/{name} | -*KubernetesJsClient.Core_v1Api* | [**readNamespacedEndpoints**](docs/Core_v1Api.md#readNamespacedEndpoints) | **GET** /api/v1/namespaces/{namespace}/endpoints/{name} | -*KubernetesJsClient.Core_v1Api* | [**readNamespacedEvent**](docs/Core_v1Api.md#readNamespacedEvent) | **GET** /api/v1/namespaces/{namespace}/events/{name} | -*KubernetesJsClient.Core_v1Api* | [**readNamespacedLimitRange**](docs/Core_v1Api.md#readNamespacedLimitRange) | **GET** /api/v1/namespaces/{namespace}/limitranges/{name} | -*KubernetesJsClient.Core_v1Api* | [**readNamespacedPersistentVolumeClaim**](docs/Core_v1Api.md#readNamespacedPersistentVolumeClaim) | **GET** /api/v1/namespaces/{namespace}/persistentvolumeclaims/{name} | -*KubernetesJsClient.Core_v1Api* | [**readNamespacedPersistentVolumeClaimStatus**](docs/Core_v1Api.md#readNamespacedPersistentVolumeClaimStatus) | **GET** /api/v1/namespaces/{namespace}/persistentvolumeclaims/{name}/status | -*KubernetesJsClient.Core_v1Api* | [**readNamespacedPod**](docs/Core_v1Api.md#readNamespacedPod) | **GET** /api/v1/namespaces/{namespace}/pods/{name} | -*KubernetesJsClient.Core_v1Api* | [**readNamespacedPodLog**](docs/Core_v1Api.md#readNamespacedPodLog) | **GET** /api/v1/namespaces/{namespace}/pods/{name}/log | -*KubernetesJsClient.Core_v1Api* | [**readNamespacedPodStatus**](docs/Core_v1Api.md#readNamespacedPodStatus) | **GET** /api/v1/namespaces/{namespace}/pods/{name}/status | -*KubernetesJsClient.Core_v1Api* | [**readNamespacedPodTemplate**](docs/Core_v1Api.md#readNamespacedPodTemplate) | **GET** /api/v1/namespaces/{namespace}/podtemplates/{name} | -*KubernetesJsClient.Core_v1Api* | [**readNamespacedReplicationController**](docs/Core_v1Api.md#readNamespacedReplicationController) | **GET** /api/v1/namespaces/{namespace}/replicationcontrollers/{name} | -*KubernetesJsClient.Core_v1Api* | [**readNamespacedReplicationControllerStatus**](docs/Core_v1Api.md#readNamespacedReplicationControllerStatus) | **GET** /api/v1/namespaces/{namespace}/replicationcontrollers/{name}/status | -*KubernetesJsClient.Core_v1Api* | [**readNamespacedResourceQuota**](docs/Core_v1Api.md#readNamespacedResourceQuota) | **GET** /api/v1/namespaces/{namespace}/resourcequotas/{name} | -*KubernetesJsClient.Core_v1Api* | [**readNamespacedResourceQuotaStatus**](docs/Core_v1Api.md#readNamespacedResourceQuotaStatus) | **GET** /api/v1/namespaces/{namespace}/resourcequotas/{name}/status | -*KubernetesJsClient.Core_v1Api* | [**readNamespacedScaleScale**](docs/Core_v1Api.md#readNamespacedScaleScale) | **GET** /api/v1/namespaces/{namespace}/replicationcontrollers/{name}/scale | -*KubernetesJsClient.Core_v1Api* | [**readNamespacedSecret**](docs/Core_v1Api.md#readNamespacedSecret) | **GET** /api/v1/namespaces/{namespace}/secrets/{name} | -*KubernetesJsClient.Core_v1Api* | [**readNamespacedService**](docs/Core_v1Api.md#readNamespacedService) | **GET** /api/v1/namespaces/{namespace}/services/{name} | -*KubernetesJsClient.Core_v1Api* | [**readNamespacedServiceAccount**](docs/Core_v1Api.md#readNamespacedServiceAccount) | **GET** /api/v1/namespaces/{namespace}/serviceaccounts/{name} | -*KubernetesJsClient.Core_v1Api* | [**readNamespacedServiceStatus**](docs/Core_v1Api.md#readNamespacedServiceStatus) | **GET** /api/v1/namespaces/{namespace}/services/{name}/status | -*KubernetesJsClient.Core_v1Api* | [**readNode**](docs/Core_v1Api.md#readNode) | **GET** /api/v1/nodes/{name} | -*KubernetesJsClient.Core_v1Api* | [**readNodeStatus**](docs/Core_v1Api.md#readNodeStatus) | **GET** /api/v1/nodes/{name}/status | -*KubernetesJsClient.Core_v1Api* | [**readPersistentVolume**](docs/Core_v1Api.md#readPersistentVolume) | **GET** /api/v1/persistentvolumes/{name} | -*KubernetesJsClient.Core_v1Api* | [**readPersistentVolumeStatus**](docs/Core_v1Api.md#readPersistentVolumeStatus) | **GET** /api/v1/persistentvolumes/{name}/status | -*KubernetesJsClient.Core_v1Api* | [**replaceNamespace**](docs/Core_v1Api.md#replaceNamespace) | **PUT** /api/v1/namespaces/{name} | -*KubernetesJsClient.Core_v1Api* | [**replaceNamespaceFinalize**](docs/Core_v1Api.md#replaceNamespaceFinalize) | **PUT** /api/v1/namespaces/{name}/finalize | -*KubernetesJsClient.Core_v1Api* | [**replaceNamespaceStatus**](docs/Core_v1Api.md#replaceNamespaceStatus) | **PUT** /api/v1/namespaces/{name}/status | -*KubernetesJsClient.Core_v1Api* | [**replaceNamespacedConfigMap**](docs/Core_v1Api.md#replaceNamespacedConfigMap) | **PUT** /api/v1/namespaces/{namespace}/configmaps/{name} | -*KubernetesJsClient.Core_v1Api* | [**replaceNamespacedEndpoints**](docs/Core_v1Api.md#replaceNamespacedEndpoints) | **PUT** /api/v1/namespaces/{namespace}/endpoints/{name} | -*KubernetesJsClient.Core_v1Api* | [**replaceNamespacedEvent**](docs/Core_v1Api.md#replaceNamespacedEvent) | **PUT** /api/v1/namespaces/{namespace}/events/{name} | -*KubernetesJsClient.Core_v1Api* | [**replaceNamespacedLimitRange**](docs/Core_v1Api.md#replaceNamespacedLimitRange) | **PUT** /api/v1/namespaces/{namespace}/limitranges/{name} | -*KubernetesJsClient.Core_v1Api* | [**replaceNamespacedPersistentVolumeClaim**](docs/Core_v1Api.md#replaceNamespacedPersistentVolumeClaim) | **PUT** /api/v1/namespaces/{namespace}/persistentvolumeclaims/{name} | -*KubernetesJsClient.Core_v1Api* | [**replaceNamespacedPersistentVolumeClaimStatus**](docs/Core_v1Api.md#replaceNamespacedPersistentVolumeClaimStatus) | **PUT** /api/v1/namespaces/{namespace}/persistentvolumeclaims/{name}/status | -*KubernetesJsClient.Core_v1Api* | [**replaceNamespacedPod**](docs/Core_v1Api.md#replaceNamespacedPod) | **PUT** /api/v1/namespaces/{namespace}/pods/{name} | -*KubernetesJsClient.Core_v1Api* | [**replaceNamespacedPodStatus**](docs/Core_v1Api.md#replaceNamespacedPodStatus) | **PUT** /api/v1/namespaces/{namespace}/pods/{name}/status | -*KubernetesJsClient.Core_v1Api* | [**replaceNamespacedPodTemplate**](docs/Core_v1Api.md#replaceNamespacedPodTemplate) | **PUT** /api/v1/namespaces/{namespace}/podtemplates/{name} | -*KubernetesJsClient.Core_v1Api* | [**replaceNamespacedReplicationController**](docs/Core_v1Api.md#replaceNamespacedReplicationController) | **PUT** /api/v1/namespaces/{namespace}/replicationcontrollers/{name} | -*KubernetesJsClient.Core_v1Api* | [**replaceNamespacedReplicationControllerStatus**](docs/Core_v1Api.md#replaceNamespacedReplicationControllerStatus) | **PUT** /api/v1/namespaces/{namespace}/replicationcontrollers/{name}/status | -*KubernetesJsClient.Core_v1Api* | [**replaceNamespacedResourceQuota**](docs/Core_v1Api.md#replaceNamespacedResourceQuota) | **PUT** /api/v1/namespaces/{namespace}/resourcequotas/{name} | -*KubernetesJsClient.Core_v1Api* | [**replaceNamespacedResourceQuotaStatus**](docs/Core_v1Api.md#replaceNamespacedResourceQuotaStatus) | **PUT** /api/v1/namespaces/{namespace}/resourcequotas/{name}/status | -*KubernetesJsClient.Core_v1Api* | [**replaceNamespacedScaleScale**](docs/Core_v1Api.md#replaceNamespacedScaleScale) | **PUT** /api/v1/namespaces/{namespace}/replicationcontrollers/{name}/scale | -*KubernetesJsClient.Core_v1Api* | [**replaceNamespacedSecret**](docs/Core_v1Api.md#replaceNamespacedSecret) | **PUT** /api/v1/namespaces/{namespace}/secrets/{name} | -*KubernetesJsClient.Core_v1Api* | [**replaceNamespacedService**](docs/Core_v1Api.md#replaceNamespacedService) | **PUT** /api/v1/namespaces/{namespace}/services/{name} | -*KubernetesJsClient.Core_v1Api* | [**replaceNamespacedServiceAccount**](docs/Core_v1Api.md#replaceNamespacedServiceAccount) | **PUT** /api/v1/namespaces/{namespace}/serviceaccounts/{name} | -*KubernetesJsClient.Core_v1Api* | [**replaceNamespacedServiceStatus**](docs/Core_v1Api.md#replaceNamespacedServiceStatus) | **PUT** /api/v1/namespaces/{namespace}/services/{name}/status | -*KubernetesJsClient.Core_v1Api* | [**replaceNode**](docs/Core_v1Api.md#replaceNode) | **PUT** /api/v1/nodes/{name} | -*KubernetesJsClient.Core_v1Api* | [**replaceNodeStatus**](docs/Core_v1Api.md#replaceNodeStatus) | **PUT** /api/v1/nodes/{name}/status | -*KubernetesJsClient.Core_v1Api* | [**replacePersistentVolume**](docs/Core_v1Api.md#replacePersistentVolume) | **PUT** /api/v1/persistentvolumes/{name} | -*KubernetesJsClient.Core_v1Api* | [**replacePersistentVolumeStatus**](docs/Core_v1Api.md#replacePersistentVolumeStatus) | **PUT** /api/v1/persistentvolumes/{name}/status | -*KubernetesJsClient.ExtensionsApi* | [**getAPIGroup**](docs/ExtensionsApi.md#getAPIGroup) | **GET** /apis/extensions/ | -*KubernetesJsClient.Extensions_v1beta1Api* | [**createNamespacedDaemonSet**](docs/Extensions_v1beta1Api.md#createNamespacedDaemonSet) | **POST** /apis/extensions/v1beta1/namespaces/{namespace}/daemonsets | -*KubernetesJsClient.Extensions_v1beta1Api* | [**createNamespacedDeployment**](docs/Extensions_v1beta1Api.md#createNamespacedDeployment) | **POST** /apis/extensions/v1beta1/namespaces/{namespace}/deployments | -*KubernetesJsClient.Extensions_v1beta1Api* | [**createNamespacedDeploymentRollbackRollback**](docs/Extensions_v1beta1Api.md#createNamespacedDeploymentRollbackRollback) | **POST** /apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/rollback | -*KubernetesJsClient.Extensions_v1beta1Api* | [**createNamespacedIngress**](docs/Extensions_v1beta1Api.md#createNamespacedIngress) | **POST** /apis/extensions/v1beta1/namespaces/{namespace}/ingresses | -*KubernetesJsClient.Extensions_v1beta1Api* | [**createNamespacedNetworkPolicy**](docs/Extensions_v1beta1Api.md#createNamespacedNetworkPolicy) | **POST** /apis/extensions/v1beta1/namespaces/{namespace}/networkpolicies | -*KubernetesJsClient.Extensions_v1beta1Api* | [**createNamespacedReplicaSet**](docs/Extensions_v1beta1Api.md#createNamespacedReplicaSet) | **POST** /apis/extensions/v1beta1/namespaces/{namespace}/replicasets | -*KubernetesJsClient.Extensions_v1beta1Api* | [**createPodSecurityPolicy**](docs/Extensions_v1beta1Api.md#createPodSecurityPolicy) | **POST** /apis/extensions/v1beta1/podsecuritypolicies | -*KubernetesJsClient.Extensions_v1beta1Api* | [**createThirdPartyResource**](docs/Extensions_v1beta1Api.md#createThirdPartyResource) | **POST** /apis/extensions/v1beta1/thirdpartyresources | -*KubernetesJsClient.Extensions_v1beta1Api* | [**deleteCollectionNamespacedDaemonSet**](docs/Extensions_v1beta1Api.md#deleteCollectionNamespacedDaemonSet) | **DELETE** /apis/extensions/v1beta1/namespaces/{namespace}/daemonsets | -*KubernetesJsClient.Extensions_v1beta1Api* | [**deleteCollectionNamespacedDeployment**](docs/Extensions_v1beta1Api.md#deleteCollectionNamespacedDeployment) | **DELETE** /apis/extensions/v1beta1/namespaces/{namespace}/deployments | -*KubernetesJsClient.Extensions_v1beta1Api* | [**deleteCollectionNamespacedIngress**](docs/Extensions_v1beta1Api.md#deleteCollectionNamespacedIngress) | **DELETE** /apis/extensions/v1beta1/namespaces/{namespace}/ingresses | -*KubernetesJsClient.Extensions_v1beta1Api* | [**deleteCollectionNamespacedNetworkPolicy**](docs/Extensions_v1beta1Api.md#deleteCollectionNamespacedNetworkPolicy) | **DELETE** /apis/extensions/v1beta1/namespaces/{namespace}/networkpolicies | -*KubernetesJsClient.Extensions_v1beta1Api* | [**deleteCollectionNamespacedReplicaSet**](docs/Extensions_v1beta1Api.md#deleteCollectionNamespacedReplicaSet) | **DELETE** /apis/extensions/v1beta1/namespaces/{namespace}/replicasets | -*KubernetesJsClient.Extensions_v1beta1Api* | [**deleteCollectionPodSecurityPolicy**](docs/Extensions_v1beta1Api.md#deleteCollectionPodSecurityPolicy) | **DELETE** /apis/extensions/v1beta1/podsecuritypolicies | -*KubernetesJsClient.Extensions_v1beta1Api* | [**deleteCollectionThirdPartyResource**](docs/Extensions_v1beta1Api.md#deleteCollectionThirdPartyResource) | **DELETE** /apis/extensions/v1beta1/thirdpartyresources | -*KubernetesJsClient.Extensions_v1beta1Api* | [**deleteNamespacedDaemonSet**](docs/Extensions_v1beta1Api.md#deleteNamespacedDaemonSet) | **DELETE** /apis/extensions/v1beta1/namespaces/{namespace}/daemonsets/{name} | -*KubernetesJsClient.Extensions_v1beta1Api* | [**deleteNamespacedDeployment**](docs/Extensions_v1beta1Api.md#deleteNamespacedDeployment) | **DELETE** /apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name} | -*KubernetesJsClient.Extensions_v1beta1Api* | [**deleteNamespacedIngress**](docs/Extensions_v1beta1Api.md#deleteNamespacedIngress) | **DELETE** /apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name} | -*KubernetesJsClient.Extensions_v1beta1Api* | [**deleteNamespacedNetworkPolicy**](docs/Extensions_v1beta1Api.md#deleteNamespacedNetworkPolicy) | **DELETE** /apis/extensions/v1beta1/namespaces/{namespace}/networkpolicies/{name} | -*KubernetesJsClient.Extensions_v1beta1Api* | [**deleteNamespacedReplicaSet**](docs/Extensions_v1beta1Api.md#deleteNamespacedReplicaSet) | **DELETE** /apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name} | -*KubernetesJsClient.Extensions_v1beta1Api* | [**deletePodSecurityPolicy**](docs/Extensions_v1beta1Api.md#deletePodSecurityPolicy) | **DELETE** /apis/extensions/v1beta1/podsecuritypolicies/{name} | -*KubernetesJsClient.Extensions_v1beta1Api* | [**deleteThirdPartyResource**](docs/Extensions_v1beta1Api.md#deleteThirdPartyResource) | **DELETE** /apis/extensions/v1beta1/thirdpartyresources/{name} | -*KubernetesJsClient.Extensions_v1beta1Api* | [**getAPIResources**](docs/Extensions_v1beta1Api.md#getAPIResources) | **GET** /apis/extensions/v1beta1/ | -*KubernetesJsClient.Extensions_v1beta1Api* | [**listDaemonSetForAllNamespaces**](docs/Extensions_v1beta1Api.md#listDaemonSetForAllNamespaces) | **GET** /apis/extensions/v1beta1/daemonsets | -*KubernetesJsClient.Extensions_v1beta1Api* | [**listDeploymentForAllNamespaces**](docs/Extensions_v1beta1Api.md#listDeploymentForAllNamespaces) | **GET** /apis/extensions/v1beta1/deployments | -*KubernetesJsClient.Extensions_v1beta1Api* | [**listIngressForAllNamespaces**](docs/Extensions_v1beta1Api.md#listIngressForAllNamespaces) | **GET** /apis/extensions/v1beta1/ingresses | -*KubernetesJsClient.Extensions_v1beta1Api* | [**listNamespacedDaemonSet**](docs/Extensions_v1beta1Api.md#listNamespacedDaemonSet) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/daemonsets | -*KubernetesJsClient.Extensions_v1beta1Api* | [**listNamespacedDeployment**](docs/Extensions_v1beta1Api.md#listNamespacedDeployment) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/deployments | -*KubernetesJsClient.Extensions_v1beta1Api* | [**listNamespacedIngress**](docs/Extensions_v1beta1Api.md#listNamespacedIngress) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/ingresses | -*KubernetesJsClient.Extensions_v1beta1Api* | [**listNamespacedNetworkPolicy**](docs/Extensions_v1beta1Api.md#listNamespacedNetworkPolicy) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/networkpolicies | -*KubernetesJsClient.Extensions_v1beta1Api* | [**listNamespacedReplicaSet**](docs/Extensions_v1beta1Api.md#listNamespacedReplicaSet) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/replicasets | -*KubernetesJsClient.Extensions_v1beta1Api* | [**listNetworkPolicyForAllNamespaces**](docs/Extensions_v1beta1Api.md#listNetworkPolicyForAllNamespaces) | **GET** /apis/extensions/v1beta1/networkpolicies | -*KubernetesJsClient.Extensions_v1beta1Api* | [**listPodSecurityPolicy**](docs/Extensions_v1beta1Api.md#listPodSecurityPolicy) | **GET** /apis/extensions/v1beta1/podsecuritypolicies | -*KubernetesJsClient.Extensions_v1beta1Api* | [**listReplicaSetForAllNamespaces**](docs/Extensions_v1beta1Api.md#listReplicaSetForAllNamespaces) | **GET** /apis/extensions/v1beta1/replicasets | -*KubernetesJsClient.Extensions_v1beta1Api* | [**listThirdPartyResource**](docs/Extensions_v1beta1Api.md#listThirdPartyResource) | **GET** /apis/extensions/v1beta1/thirdpartyresources | -*KubernetesJsClient.Extensions_v1beta1Api* | [**patchNamespacedDaemonSet**](docs/Extensions_v1beta1Api.md#patchNamespacedDaemonSet) | **PATCH** /apis/extensions/v1beta1/namespaces/{namespace}/daemonsets/{name} | -*KubernetesJsClient.Extensions_v1beta1Api* | [**patchNamespacedDaemonSetStatus**](docs/Extensions_v1beta1Api.md#patchNamespacedDaemonSetStatus) | **PATCH** /apis/extensions/v1beta1/namespaces/{namespace}/daemonsets/{name}/status | -*KubernetesJsClient.Extensions_v1beta1Api* | [**patchNamespacedDeployment**](docs/Extensions_v1beta1Api.md#patchNamespacedDeployment) | **PATCH** /apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name} | -*KubernetesJsClient.Extensions_v1beta1Api* | [**patchNamespacedDeploymentStatus**](docs/Extensions_v1beta1Api.md#patchNamespacedDeploymentStatus) | **PATCH** /apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/status | -*KubernetesJsClient.Extensions_v1beta1Api* | [**patchNamespacedDeploymentsScale**](docs/Extensions_v1beta1Api.md#patchNamespacedDeploymentsScale) | **PATCH** /apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/scale | -*KubernetesJsClient.Extensions_v1beta1Api* | [**patchNamespacedIngress**](docs/Extensions_v1beta1Api.md#patchNamespacedIngress) | **PATCH** /apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name} | -*KubernetesJsClient.Extensions_v1beta1Api* | [**patchNamespacedIngressStatus**](docs/Extensions_v1beta1Api.md#patchNamespacedIngressStatus) | **PATCH** /apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name}/status | -*KubernetesJsClient.Extensions_v1beta1Api* | [**patchNamespacedNetworkPolicy**](docs/Extensions_v1beta1Api.md#patchNamespacedNetworkPolicy) | **PATCH** /apis/extensions/v1beta1/namespaces/{namespace}/networkpolicies/{name} | -*KubernetesJsClient.Extensions_v1beta1Api* | [**patchNamespacedReplicaSet**](docs/Extensions_v1beta1Api.md#patchNamespacedReplicaSet) | **PATCH** /apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name} | -*KubernetesJsClient.Extensions_v1beta1Api* | [**patchNamespacedReplicaSetStatus**](docs/Extensions_v1beta1Api.md#patchNamespacedReplicaSetStatus) | **PATCH** /apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}/status | -*KubernetesJsClient.Extensions_v1beta1Api* | [**patchNamespacedReplicasetsScale**](docs/Extensions_v1beta1Api.md#patchNamespacedReplicasetsScale) | **PATCH** /apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}/scale | -*KubernetesJsClient.Extensions_v1beta1Api* | [**patchNamespacedReplicationcontrollersScale**](docs/Extensions_v1beta1Api.md#patchNamespacedReplicationcontrollersScale) | **PATCH** /apis/extensions/v1beta1/namespaces/{namespace}/replicationcontrollers/{name}/scale | -*KubernetesJsClient.Extensions_v1beta1Api* | [**patchPodSecurityPolicy**](docs/Extensions_v1beta1Api.md#patchPodSecurityPolicy) | **PATCH** /apis/extensions/v1beta1/podsecuritypolicies/{name} | -*KubernetesJsClient.Extensions_v1beta1Api* | [**patchThirdPartyResource**](docs/Extensions_v1beta1Api.md#patchThirdPartyResource) | **PATCH** /apis/extensions/v1beta1/thirdpartyresources/{name} | -*KubernetesJsClient.Extensions_v1beta1Api* | [**readNamespacedDaemonSet**](docs/Extensions_v1beta1Api.md#readNamespacedDaemonSet) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/daemonsets/{name} | -*KubernetesJsClient.Extensions_v1beta1Api* | [**readNamespacedDaemonSetStatus**](docs/Extensions_v1beta1Api.md#readNamespacedDaemonSetStatus) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/daemonsets/{name}/status | -*KubernetesJsClient.Extensions_v1beta1Api* | [**readNamespacedDeployment**](docs/Extensions_v1beta1Api.md#readNamespacedDeployment) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name} | -*KubernetesJsClient.Extensions_v1beta1Api* | [**readNamespacedDeploymentStatus**](docs/Extensions_v1beta1Api.md#readNamespacedDeploymentStatus) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/status | -*KubernetesJsClient.Extensions_v1beta1Api* | [**readNamespacedDeploymentsScale**](docs/Extensions_v1beta1Api.md#readNamespacedDeploymentsScale) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/scale | -*KubernetesJsClient.Extensions_v1beta1Api* | [**readNamespacedIngress**](docs/Extensions_v1beta1Api.md#readNamespacedIngress) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name} | -*KubernetesJsClient.Extensions_v1beta1Api* | [**readNamespacedIngressStatus**](docs/Extensions_v1beta1Api.md#readNamespacedIngressStatus) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name}/status | -*KubernetesJsClient.Extensions_v1beta1Api* | [**readNamespacedNetworkPolicy**](docs/Extensions_v1beta1Api.md#readNamespacedNetworkPolicy) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/networkpolicies/{name} | -*KubernetesJsClient.Extensions_v1beta1Api* | [**readNamespacedReplicaSet**](docs/Extensions_v1beta1Api.md#readNamespacedReplicaSet) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name} | -*KubernetesJsClient.Extensions_v1beta1Api* | [**readNamespacedReplicaSetStatus**](docs/Extensions_v1beta1Api.md#readNamespacedReplicaSetStatus) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}/status | -*KubernetesJsClient.Extensions_v1beta1Api* | [**readNamespacedReplicasetsScale**](docs/Extensions_v1beta1Api.md#readNamespacedReplicasetsScale) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}/scale | -*KubernetesJsClient.Extensions_v1beta1Api* | [**readNamespacedReplicationcontrollersScale**](docs/Extensions_v1beta1Api.md#readNamespacedReplicationcontrollersScale) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/replicationcontrollers/{name}/scale | -*KubernetesJsClient.Extensions_v1beta1Api* | [**readPodSecurityPolicy**](docs/Extensions_v1beta1Api.md#readPodSecurityPolicy) | **GET** /apis/extensions/v1beta1/podsecuritypolicies/{name} | -*KubernetesJsClient.Extensions_v1beta1Api* | [**readThirdPartyResource**](docs/Extensions_v1beta1Api.md#readThirdPartyResource) | **GET** /apis/extensions/v1beta1/thirdpartyresources/{name} | -*KubernetesJsClient.Extensions_v1beta1Api* | [**replaceNamespacedDaemonSet**](docs/Extensions_v1beta1Api.md#replaceNamespacedDaemonSet) | **PUT** /apis/extensions/v1beta1/namespaces/{namespace}/daemonsets/{name} | -*KubernetesJsClient.Extensions_v1beta1Api* | [**replaceNamespacedDaemonSetStatus**](docs/Extensions_v1beta1Api.md#replaceNamespacedDaemonSetStatus) | **PUT** /apis/extensions/v1beta1/namespaces/{namespace}/daemonsets/{name}/status | -*KubernetesJsClient.Extensions_v1beta1Api* | [**replaceNamespacedDeployment**](docs/Extensions_v1beta1Api.md#replaceNamespacedDeployment) | **PUT** /apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name} | -*KubernetesJsClient.Extensions_v1beta1Api* | [**replaceNamespacedDeploymentStatus**](docs/Extensions_v1beta1Api.md#replaceNamespacedDeploymentStatus) | **PUT** /apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/status | -*KubernetesJsClient.Extensions_v1beta1Api* | [**replaceNamespacedDeploymentsScale**](docs/Extensions_v1beta1Api.md#replaceNamespacedDeploymentsScale) | **PUT** /apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/scale | -*KubernetesJsClient.Extensions_v1beta1Api* | [**replaceNamespacedIngress**](docs/Extensions_v1beta1Api.md#replaceNamespacedIngress) | **PUT** /apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name} | -*KubernetesJsClient.Extensions_v1beta1Api* | [**replaceNamespacedIngressStatus**](docs/Extensions_v1beta1Api.md#replaceNamespacedIngressStatus) | **PUT** /apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name}/status | -*KubernetesJsClient.Extensions_v1beta1Api* | [**replaceNamespacedNetworkPolicy**](docs/Extensions_v1beta1Api.md#replaceNamespacedNetworkPolicy) | **PUT** /apis/extensions/v1beta1/namespaces/{namespace}/networkpolicies/{name} | -*KubernetesJsClient.Extensions_v1beta1Api* | [**replaceNamespacedReplicaSet**](docs/Extensions_v1beta1Api.md#replaceNamespacedReplicaSet) | **PUT** /apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name} | -*KubernetesJsClient.Extensions_v1beta1Api* | [**replaceNamespacedReplicaSetStatus**](docs/Extensions_v1beta1Api.md#replaceNamespacedReplicaSetStatus) | **PUT** /apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}/status | -*KubernetesJsClient.Extensions_v1beta1Api* | [**replaceNamespacedReplicasetsScale**](docs/Extensions_v1beta1Api.md#replaceNamespacedReplicasetsScale) | **PUT** /apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}/scale | -*KubernetesJsClient.Extensions_v1beta1Api* | [**replaceNamespacedReplicationcontrollersScale**](docs/Extensions_v1beta1Api.md#replaceNamespacedReplicationcontrollersScale) | **PUT** /apis/extensions/v1beta1/namespaces/{namespace}/replicationcontrollers/{name}/scale | -*KubernetesJsClient.Extensions_v1beta1Api* | [**replacePodSecurityPolicy**](docs/Extensions_v1beta1Api.md#replacePodSecurityPolicy) | **PUT** /apis/extensions/v1beta1/podsecuritypolicies/{name} | -*KubernetesJsClient.Extensions_v1beta1Api* | [**replaceThirdPartyResource**](docs/Extensions_v1beta1Api.md#replaceThirdPartyResource) | **PUT** /apis/extensions/v1beta1/thirdpartyresources/{name} | -*KubernetesJsClient.LogsApi* | [**logFileHandler**](docs/LogsApi.md#logFileHandler) | **GET** /logs/{logpath} | -*KubernetesJsClient.LogsApi* | [**logFileListHandler**](docs/LogsApi.md#logFileListHandler) | **GET** /logs/ | -*KubernetesJsClient.PolicyApi* | [**getAPIGroup**](docs/PolicyApi.md#getAPIGroup) | **GET** /apis/policy/ | -*KubernetesJsClient.Policy_v1beta1Api* | [**createNamespacedPodDisruptionBudget**](docs/Policy_v1beta1Api.md#createNamespacedPodDisruptionBudget) | **POST** /apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets | -*KubernetesJsClient.Policy_v1beta1Api* | [**deleteCollectionNamespacedPodDisruptionBudget**](docs/Policy_v1beta1Api.md#deleteCollectionNamespacedPodDisruptionBudget) | **DELETE** /apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets | -*KubernetesJsClient.Policy_v1beta1Api* | [**deleteNamespacedPodDisruptionBudget**](docs/Policy_v1beta1Api.md#deleteNamespacedPodDisruptionBudget) | **DELETE** /apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets/{name} | -*KubernetesJsClient.Policy_v1beta1Api* | [**getAPIResources**](docs/Policy_v1beta1Api.md#getAPIResources) | **GET** /apis/policy/v1beta1/ | -*KubernetesJsClient.Policy_v1beta1Api* | [**listNamespacedPodDisruptionBudget**](docs/Policy_v1beta1Api.md#listNamespacedPodDisruptionBudget) | **GET** /apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets | -*KubernetesJsClient.Policy_v1beta1Api* | [**listPodDisruptionBudgetForAllNamespaces**](docs/Policy_v1beta1Api.md#listPodDisruptionBudgetForAllNamespaces) | **GET** /apis/policy/v1beta1/poddisruptionbudgets | -*KubernetesJsClient.Policy_v1beta1Api* | [**patchNamespacedPodDisruptionBudget**](docs/Policy_v1beta1Api.md#patchNamespacedPodDisruptionBudget) | **PATCH** /apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets/{name} | -*KubernetesJsClient.Policy_v1beta1Api* | [**patchNamespacedPodDisruptionBudgetStatus**](docs/Policy_v1beta1Api.md#patchNamespacedPodDisruptionBudgetStatus) | **PATCH** /apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets/{name}/status | -*KubernetesJsClient.Policy_v1beta1Api* | [**readNamespacedPodDisruptionBudget**](docs/Policy_v1beta1Api.md#readNamespacedPodDisruptionBudget) | **GET** /apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets/{name} | -*KubernetesJsClient.Policy_v1beta1Api* | [**readNamespacedPodDisruptionBudgetStatus**](docs/Policy_v1beta1Api.md#readNamespacedPodDisruptionBudgetStatus) | **GET** /apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets/{name}/status | -*KubernetesJsClient.Policy_v1beta1Api* | [**replaceNamespacedPodDisruptionBudget**](docs/Policy_v1beta1Api.md#replaceNamespacedPodDisruptionBudget) | **PUT** /apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets/{name} | -*KubernetesJsClient.Policy_v1beta1Api* | [**replaceNamespacedPodDisruptionBudgetStatus**](docs/Policy_v1beta1Api.md#replaceNamespacedPodDisruptionBudgetStatus) | **PUT** /apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets/{name}/status | -*KubernetesJsClient.RbacAuthorizationApi* | [**getAPIGroup**](docs/RbacAuthorizationApi.md#getAPIGroup) | **GET** /apis/rbac.authorization.k8s.io/ | -*KubernetesJsClient.RbacAuthorization_v1alpha1Api* | [**createClusterRole**](docs/RbacAuthorization_v1alpha1Api.md#createClusterRole) | **POST** /apis/rbac.authorization.k8s.io/v1alpha1/clusterroles | -*KubernetesJsClient.RbacAuthorization_v1alpha1Api* | [**createClusterRoleBinding**](docs/RbacAuthorization_v1alpha1Api.md#createClusterRoleBinding) | **POST** /apis/rbac.authorization.k8s.io/v1alpha1/clusterrolebindings | -*KubernetesJsClient.RbacAuthorization_v1alpha1Api* | [**createNamespacedRole**](docs/RbacAuthorization_v1alpha1Api.md#createNamespacedRole) | **POST** /apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/roles | -*KubernetesJsClient.RbacAuthorization_v1alpha1Api* | [**createNamespacedRoleBinding**](docs/RbacAuthorization_v1alpha1Api.md#createNamespacedRoleBinding) | **POST** /apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/rolebindings | -*KubernetesJsClient.RbacAuthorization_v1alpha1Api* | [**deleteClusterRole**](docs/RbacAuthorization_v1alpha1Api.md#deleteClusterRole) | **DELETE** /apis/rbac.authorization.k8s.io/v1alpha1/clusterroles/{name} | -*KubernetesJsClient.RbacAuthorization_v1alpha1Api* | [**deleteClusterRoleBinding**](docs/RbacAuthorization_v1alpha1Api.md#deleteClusterRoleBinding) | **DELETE** /apis/rbac.authorization.k8s.io/v1alpha1/clusterrolebindings/{name} | -*KubernetesJsClient.RbacAuthorization_v1alpha1Api* | [**deleteCollectionClusterRole**](docs/RbacAuthorization_v1alpha1Api.md#deleteCollectionClusterRole) | **DELETE** /apis/rbac.authorization.k8s.io/v1alpha1/clusterroles | -*KubernetesJsClient.RbacAuthorization_v1alpha1Api* | [**deleteCollectionClusterRoleBinding**](docs/RbacAuthorization_v1alpha1Api.md#deleteCollectionClusterRoleBinding) | **DELETE** /apis/rbac.authorization.k8s.io/v1alpha1/clusterrolebindings | -*KubernetesJsClient.RbacAuthorization_v1alpha1Api* | [**deleteCollectionNamespacedRole**](docs/RbacAuthorization_v1alpha1Api.md#deleteCollectionNamespacedRole) | **DELETE** /apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/roles | -*KubernetesJsClient.RbacAuthorization_v1alpha1Api* | [**deleteCollectionNamespacedRoleBinding**](docs/RbacAuthorization_v1alpha1Api.md#deleteCollectionNamespacedRoleBinding) | **DELETE** /apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/rolebindings | -*KubernetesJsClient.RbacAuthorization_v1alpha1Api* | [**deleteNamespacedRole**](docs/RbacAuthorization_v1alpha1Api.md#deleteNamespacedRole) | **DELETE** /apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/roles/{name} | -*KubernetesJsClient.RbacAuthorization_v1alpha1Api* | [**deleteNamespacedRoleBinding**](docs/RbacAuthorization_v1alpha1Api.md#deleteNamespacedRoleBinding) | **DELETE** /apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/rolebindings/{name} | -*KubernetesJsClient.RbacAuthorization_v1alpha1Api* | [**getAPIResources**](docs/RbacAuthorization_v1alpha1Api.md#getAPIResources) | **GET** /apis/rbac.authorization.k8s.io/v1alpha1/ | -*KubernetesJsClient.RbacAuthorization_v1alpha1Api* | [**listClusterRole**](docs/RbacAuthorization_v1alpha1Api.md#listClusterRole) | **GET** /apis/rbac.authorization.k8s.io/v1alpha1/clusterroles | -*KubernetesJsClient.RbacAuthorization_v1alpha1Api* | [**listClusterRoleBinding**](docs/RbacAuthorization_v1alpha1Api.md#listClusterRoleBinding) | **GET** /apis/rbac.authorization.k8s.io/v1alpha1/clusterrolebindings | -*KubernetesJsClient.RbacAuthorization_v1alpha1Api* | [**listNamespacedRole**](docs/RbacAuthorization_v1alpha1Api.md#listNamespacedRole) | **GET** /apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/roles | -*KubernetesJsClient.RbacAuthorization_v1alpha1Api* | [**listNamespacedRoleBinding**](docs/RbacAuthorization_v1alpha1Api.md#listNamespacedRoleBinding) | **GET** /apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/rolebindings | -*KubernetesJsClient.RbacAuthorization_v1alpha1Api* | [**listRoleBindingForAllNamespaces**](docs/RbacAuthorization_v1alpha1Api.md#listRoleBindingForAllNamespaces) | **GET** /apis/rbac.authorization.k8s.io/v1alpha1/rolebindings | -*KubernetesJsClient.RbacAuthorization_v1alpha1Api* | [**listRoleForAllNamespaces**](docs/RbacAuthorization_v1alpha1Api.md#listRoleForAllNamespaces) | **GET** /apis/rbac.authorization.k8s.io/v1alpha1/roles | -*KubernetesJsClient.RbacAuthorization_v1alpha1Api* | [**patchClusterRole**](docs/RbacAuthorization_v1alpha1Api.md#patchClusterRole) | **PATCH** /apis/rbac.authorization.k8s.io/v1alpha1/clusterroles/{name} | -*KubernetesJsClient.RbacAuthorization_v1alpha1Api* | [**patchClusterRoleBinding**](docs/RbacAuthorization_v1alpha1Api.md#patchClusterRoleBinding) | **PATCH** /apis/rbac.authorization.k8s.io/v1alpha1/clusterrolebindings/{name} | -*KubernetesJsClient.RbacAuthorization_v1alpha1Api* | [**patchNamespacedRole**](docs/RbacAuthorization_v1alpha1Api.md#patchNamespacedRole) | **PATCH** /apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/roles/{name} | -*KubernetesJsClient.RbacAuthorization_v1alpha1Api* | [**patchNamespacedRoleBinding**](docs/RbacAuthorization_v1alpha1Api.md#patchNamespacedRoleBinding) | **PATCH** /apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/rolebindings/{name} | -*KubernetesJsClient.RbacAuthorization_v1alpha1Api* | [**readClusterRole**](docs/RbacAuthorization_v1alpha1Api.md#readClusterRole) | **GET** /apis/rbac.authorization.k8s.io/v1alpha1/clusterroles/{name} | -*KubernetesJsClient.RbacAuthorization_v1alpha1Api* | [**readClusterRoleBinding**](docs/RbacAuthorization_v1alpha1Api.md#readClusterRoleBinding) | **GET** /apis/rbac.authorization.k8s.io/v1alpha1/clusterrolebindings/{name} | -*KubernetesJsClient.RbacAuthorization_v1alpha1Api* | [**readNamespacedRole**](docs/RbacAuthorization_v1alpha1Api.md#readNamespacedRole) | **GET** /apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/roles/{name} | -*KubernetesJsClient.RbacAuthorization_v1alpha1Api* | [**readNamespacedRoleBinding**](docs/RbacAuthorization_v1alpha1Api.md#readNamespacedRoleBinding) | **GET** /apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/rolebindings/{name} | -*KubernetesJsClient.RbacAuthorization_v1alpha1Api* | [**replaceClusterRole**](docs/RbacAuthorization_v1alpha1Api.md#replaceClusterRole) | **PUT** /apis/rbac.authorization.k8s.io/v1alpha1/clusterroles/{name} | -*KubernetesJsClient.RbacAuthorization_v1alpha1Api* | [**replaceClusterRoleBinding**](docs/RbacAuthorization_v1alpha1Api.md#replaceClusterRoleBinding) | **PUT** /apis/rbac.authorization.k8s.io/v1alpha1/clusterrolebindings/{name} | -*KubernetesJsClient.RbacAuthorization_v1alpha1Api* | [**replaceNamespacedRole**](docs/RbacAuthorization_v1alpha1Api.md#replaceNamespacedRole) | **PUT** /apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/roles/{name} | -*KubernetesJsClient.RbacAuthorization_v1alpha1Api* | [**replaceNamespacedRoleBinding**](docs/RbacAuthorization_v1alpha1Api.md#replaceNamespacedRoleBinding) | **PUT** /apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/rolebindings/{name} | -*KubernetesJsClient.RbacAuthorization_v1beta1Api* | [**createClusterRole**](docs/RbacAuthorization_v1beta1Api.md#createClusterRole) | **POST** /apis/rbac.authorization.k8s.io/v1beta1/clusterroles | -*KubernetesJsClient.RbacAuthorization_v1beta1Api* | [**createClusterRoleBinding**](docs/RbacAuthorization_v1beta1Api.md#createClusterRoleBinding) | **POST** /apis/rbac.authorization.k8s.io/v1beta1/clusterrolebindings | -*KubernetesJsClient.RbacAuthorization_v1beta1Api* | [**createNamespacedRole**](docs/RbacAuthorization_v1beta1Api.md#createNamespacedRole) | **POST** /apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/roles | -*KubernetesJsClient.RbacAuthorization_v1beta1Api* | [**createNamespacedRoleBinding**](docs/RbacAuthorization_v1beta1Api.md#createNamespacedRoleBinding) | **POST** /apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/rolebindings | -*KubernetesJsClient.RbacAuthorization_v1beta1Api* | [**deleteClusterRole**](docs/RbacAuthorization_v1beta1Api.md#deleteClusterRole) | **DELETE** /apis/rbac.authorization.k8s.io/v1beta1/clusterroles/{name} | -*KubernetesJsClient.RbacAuthorization_v1beta1Api* | [**deleteClusterRoleBinding**](docs/RbacAuthorization_v1beta1Api.md#deleteClusterRoleBinding) | **DELETE** /apis/rbac.authorization.k8s.io/v1beta1/clusterrolebindings/{name} | -*KubernetesJsClient.RbacAuthorization_v1beta1Api* | [**deleteCollectionClusterRole**](docs/RbacAuthorization_v1beta1Api.md#deleteCollectionClusterRole) | **DELETE** /apis/rbac.authorization.k8s.io/v1beta1/clusterroles | -*KubernetesJsClient.RbacAuthorization_v1beta1Api* | [**deleteCollectionClusterRoleBinding**](docs/RbacAuthorization_v1beta1Api.md#deleteCollectionClusterRoleBinding) | **DELETE** /apis/rbac.authorization.k8s.io/v1beta1/clusterrolebindings | -*KubernetesJsClient.RbacAuthorization_v1beta1Api* | [**deleteCollectionNamespacedRole**](docs/RbacAuthorization_v1beta1Api.md#deleteCollectionNamespacedRole) | **DELETE** /apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/roles | -*KubernetesJsClient.RbacAuthorization_v1beta1Api* | [**deleteCollectionNamespacedRoleBinding**](docs/RbacAuthorization_v1beta1Api.md#deleteCollectionNamespacedRoleBinding) | **DELETE** /apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/rolebindings | -*KubernetesJsClient.RbacAuthorization_v1beta1Api* | [**deleteNamespacedRole**](docs/RbacAuthorization_v1beta1Api.md#deleteNamespacedRole) | **DELETE** /apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/roles/{name} | -*KubernetesJsClient.RbacAuthorization_v1beta1Api* | [**deleteNamespacedRoleBinding**](docs/RbacAuthorization_v1beta1Api.md#deleteNamespacedRoleBinding) | **DELETE** /apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/rolebindings/{name} | -*KubernetesJsClient.RbacAuthorization_v1beta1Api* | [**getAPIResources**](docs/RbacAuthorization_v1beta1Api.md#getAPIResources) | **GET** /apis/rbac.authorization.k8s.io/v1beta1/ | -*KubernetesJsClient.RbacAuthorization_v1beta1Api* | [**listClusterRole**](docs/RbacAuthorization_v1beta1Api.md#listClusterRole) | **GET** /apis/rbac.authorization.k8s.io/v1beta1/clusterroles | -*KubernetesJsClient.RbacAuthorization_v1beta1Api* | [**listClusterRoleBinding**](docs/RbacAuthorization_v1beta1Api.md#listClusterRoleBinding) | **GET** /apis/rbac.authorization.k8s.io/v1beta1/clusterrolebindings | -*KubernetesJsClient.RbacAuthorization_v1beta1Api* | [**listNamespacedRole**](docs/RbacAuthorization_v1beta1Api.md#listNamespacedRole) | **GET** /apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/roles | -*KubernetesJsClient.RbacAuthorization_v1beta1Api* | [**listNamespacedRoleBinding**](docs/RbacAuthorization_v1beta1Api.md#listNamespacedRoleBinding) | **GET** /apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/rolebindings | -*KubernetesJsClient.RbacAuthorization_v1beta1Api* | [**listRoleBindingForAllNamespaces**](docs/RbacAuthorization_v1beta1Api.md#listRoleBindingForAllNamespaces) | **GET** /apis/rbac.authorization.k8s.io/v1beta1/rolebindings | -*KubernetesJsClient.RbacAuthorization_v1beta1Api* | [**listRoleForAllNamespaces**](docs/RbacAuthorization_v1beta1Api.md#listRoleForAllNamespaces) | **GET** /apis/rbac.authorization.k8s.io/v1beta1/roles | -*KubernetesJsClient.RbacAuthorization_v1beta1Api* | [**patchClusterRole**](docs/RbacAuthorization_v1beta1Api.md#patchClusterRole) | **PATCH** /apis/rbac.authorization.k8s.io/v1beta1/clusterroles/{name} | -*KubernetesJsClient.RbacAuthorization_v1beta1Api* | [**patchClusterRoleBinding**](docs/RbacAuthorization_v1beta1Api.md#patchClusterRoleBinding) | **PATCH** /apis/rbac.authorization.k8s.io/v1beta1/clusterrolebindings/{name} | -*KubernetesJsClient.RbacAuthorization_v1beta1Api* | [**patchNamespacedRole**](docs/RbacAuthorization_v1beta1Api.md#patchNamespacedRole) | **PATCH** /apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/roles/{name} | -*KubernetesJsClient.RbacAuthorization_v1beta1Api* | [**patchNamespacedRoleBinding**](docs/RbacAuthorization_v1beta1Api.md#patchNamespacedRoleBinding) | **PATCH** /apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/rolebindings/{name} | -*KubernetesJsClient.RbacAuthorization_v1beta1Api* | [**readClusterRole**](docs/RbacAuthorization_v1beta1Api.md#readClusterRole) | **GET** /apis/rbac.authorization.k8s.io/v1beta1/clusterroles/{name} | -*KubernetesJsClient.RbacAuthorization_v1beta1Api* | [**readClusterRoleBinding**](docs/RbacAuthorization_v1beta1Api.md#readClusterRoleBinding) | **GET** /apis/rbac.authorization.k8s.io/v1beta1/clusterrolebindings/{name} | -*KubernetesJsClient.RbacAuthorization_v1beta1Api* | [**readNamespacedRole**](docs/RbacAuthorization_v1beta1Api.md#readNamespacedRole) | **GET** /apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/roles/{name} | -*KubernetesJsClient.RbacAuthorization_v1beta1Api* | [**readNamespacedRoleBinding**](docs/RbacAuthorization_v1beta1Api.md#readNamespacedRoleBinding) | **GET** /apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/rolebindings/{name} | -*KubernetesJsClient.RbacAuthorization_v1beta1Api* | [**replaceClusterRole**](docs/RbacAuthorization_v1beta1Api.md#replaceClusterRole) | **PUT** /apis/rbac.authorization.k8s.io/v1beta1/clusterroles/{name} | -*KubernetesJsClient.RbacAuthorization_v1beta1Api* | [**replaceClusterRoleBinding**](docs/RbacAuthorization_v1beta1Api.md#replaceClusterRoleBinding) | **PUT** /apis/rbac.authorization.k8s.io/v1beta1/clusterrolebindings/{name} | -*KubernetesJsClient.RbacAuthorization_v1beta1Api* | [**replaceNamespacedRole**](docs/RbacAuthorization_v1beta1Api.md#replaceNamespacedRole) | **PUT** /apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/roles/{name} | -*KubernetesJsClient.RbacAuthorization_v1beta1Api* | [**replaceNamespacedRoleBinding**](docs/RbacAuthorization_v1beta1Api.md#replaceNamespacedRoleBinding) | **PUT** /apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/rolebindings/{name} | -*KubernetesJsClient.SettingsApi* | [**getAPIGroup**](docs/SettingsApi.md#getAPIGroup) | **GET** /apis/settings.k8s.io/ | -*KubernetesJsClient.Settings_v1alpha1Api* | [**createNamespacedPodPreset**](docs/Settings_v1alpha1Api.md#createNamespacedPodPreset) | **POST** /apis/settings.k8s.io/v1alpha1/namespaces/{namespace}/podpresets | -*KubernetesJsClient.Settings_v1alpha1Api* | [**deleteCollectionNamespacedPodPreset**](docs/Settings_v1alpha1Api.md#deleteCollectionNamespacedPodPreset) | **DELETE** /apis/settings.k8s.io/v1alpha1/namespaces/{namespace}/podpresets | -*KubernetesJsClient.Settings_v1alpha1Api* | [**deleteNamespacedPodPreset**](docs/Settings_v1alpha1Api.md#deleteNamespacedPodPreset) | **DELETE** /apis/settings.k8s.io/v1alpha1/namespaces/{namespace}/podpresets/{name} | -*KubernetesJsClient.Settings_v1alpha1Api* | [**getAPIResources**](docs/Settings_v1alpha1Api.md#getAPIResources) | **GET** /apis/settings.k8s.io/v1alpha1/ | -*KubernetesJsClient.Settings_v1alpha1Api* | [**listNamespacedPodPreset**](docs/Settings_v1alpha1Api.md#listNamespacedPodPreset) | **GET** /apis/settings.k8s.io/v1alpha1/namespaces/{namespace}/podpresets | -*KubernetesJsClient.Settings_v1alpha1Api* | [**listPodPresetForAllNamespaces**](docs/Settings_v1alpha1Api.md#listPodPresetForAllNamespaces) | **GET** /apis/settings.k8s.io/v1alpha1/podpresets | -*KubernetesJsClient.Settings_v1alpha1Api* | [**patchNamespacedPodPreset**](docs/Settings_v1alpha1Api.md#patchNamespacedPodPreset) | **PATCH** /apis/settings.k8s.io/v1alpha1/namespaces/{namespace}/podpresets/{name} | -*KubernetesJsClient.Settings_v1alpha1Api* | [**readNamespacedPodPreset**](docs/Settings_v1alpha1Api.md#readNamespacedPodPreset) | **GET** /apis/settings.k8s.io/v1alpha1/namespaces/{namespace}/podpresets/{name} | -*KubernetesJsClient.Settings_v1alpha1Api* | [**replaceNamespacedPodPreset**](docs/Settings_v1alpha1Api.md#replaceNamespacedPodPreset) | **PUT** /apis/settings.k8s.io/v1alpha1/namespaces/{namespace}/podpresets/{name} | -*KubernetesJsClient.StorageApi* | [**getAPIGroup**](docs/StorageApi.md#getAPIGroup) | **GET** /apis/storage.k8s.io/ | -*KubernetesJsClient.Storage_v1Api* | [**createStorageClass**](docs/Storage_v1Api.md#createStorageClass) | **POST** /apis/storage.k8s.io/v1/storageclasses | -*KubernetesJsClient.Storage_v1Api* | [**deleteCollectionStorageClass**](docs/Storage_v1Api.md#deleteCollectionStorageClass) | **DELETE** /apis/storage.k8s.io/v1/storageclasses | -*KubernetesJsClient.Storage_v1Api* | [**deleteStorageClass**](docs/Storage_v1Api.md#deleteStorageClass) | **DELETE** /apis/storage.k8s.io/v1/storageclasses/{name} | -*KubernetesJsClient.Storage_v1Api* | [**getAPIResources**](docs/Storage_v1Api.md#getAPIResources) | **GET** /apis/storage.k8s.io/v1/ | -*KubernetesJsClient.Storage_v1Api* | [**listStorageClass**](docs/Storage_v1Api.md#listStorageClass) | **GET** /apis/storage.k8s.io/v1/storageclasses | -*KubernetesJsClient.Storage_v1Api* | [**patchStorageClass**](docs/Storage_v1Api.md#patchStorageClass) | **PATCH** /apis/storage.k8s.io/v1/storageclasses/{name} | -*KubernetesJsClient.Storage_v1Api* | [**readStorageClass**](docs/Storage_v1Api.md#readStorageClass) | **GET** /apis/storage.k8s.io/v1/storageclasses/{name} | -*KubernetesJsClient.Storage_v1Api* | [**replaceStorageClass**](docs/Storage_v1Api.md#replaceStorageClass) | **PUT** /apis/storage.k8s.io/v1/storageclasses/{name} | -*KubernetesJsClient.Storage_v1beta1Api* | [**createStorageClass**](docs/Storage_v1beta1Api.md#createStorageClass) | **POST** /apis/storage.k8s.io/v1beta1/storageclasses | -*KubernetesJsClient.Storage_v1beta1Api* | [**deleteCollectionStorageClass**](docs/Storage_v1beta1Api.md#deleteCollectionStorageClass) | **DELETE** /apis/storage.k8s.io/v1beta1/storageclasses | -*KubernetesJsClient.Storage_v1beta1Api* | [**deleteStorageClass**](docs/Storage_v1beta1Api.md#deleteStorageClass) | **DELETE** /apis/storage.k8s.io/v1beta1/storageclasses/{name} | -*KubernetesJsClient.Storage_v1beta1Api* | [**getAPIResources**](docs/Storage_v1beta1Api.md#getAPIResources) | **GET** /apis/storage.k8s.io/v1beta1/ | -*KubernetesJsClient.Storage_v1beta1Api* | [**listStorageClass**](docs/Storage_v1beta1Api.md#listStorageClass) | **GET** /apis/storage.k8s.io/v1beta1/storageclasses | -*KubernetesJsClient.Storage_v1beta1Api* | [**patchStorageClass**](docs/Storage_v1beta1Api.md#patchStorageClass) | **PATCH** /apis/storage.k8s.io/v1beta1/storageclasses/{name} | -*KubernetesJsClient.Storage_v1beta1Api* | [**readStorageClass**](docs/Storage_v1beta1Api.md#readStorageClass) | **GET** /apis/storage.k8s.io/v1beta1/storageclasses/{name} | -*KubernetesJsClient.Storage_v1beta1Api* | [**replaceStorageClass**](docs/Storage_v1beta1Api.md#replaceStorageClass) | **PUT** /apis/storage.k8s.io/v1beta1/storageclasses/{name} | -*KubernetesJsClient.VersionApi* | [**getCode**](docs/VersionApi.md#getCode) | **GET** /version/ | - - -## Documentation for Models - - - [KubernetesJsClient.AppsV1beta1Deployment](docs/AppsV1beta1Deployment.md) - - [KubernetesJsClient.AppsV1beta1DeploymentCondition](docs/AppsV1beta1DeploymentCondition.md) - - [KubernetesJsClient.AppsV1beta1DeploymentList](docs/AppsV1beta1DeploymentList.md) - - [KubernetesJsClient.AppsV1beta1DeploymentRollback](docs/AppsV1beta1DeploymentRollback.md) - - [KubernetesJsClient.AppsV1beta1DeploymentSpec](docs/AppsV1beta1DeploymentSpec.md) - - [KubernetesJsClient.AppsV1beta1DeploymentStatus](docs/AppsV1beta1DeploymentStatus.md) - - [KubernetesJsClient.AppsV1beta1DeploymentStrategy](docs/AppsV1beta1DeploymentStrategy.md) - - [KubernetesJsClient.AppsV1beta1RollbackConfig](docs/AppsV1beta1RollbackConfig.md) - - [KubernetesJsClient.AppsV1beta1RollingUpdateDeployment](docs/AppsV1beta1RollingUpdateDeployment.md) - - [KubernetesJsClient.AppsV1beta1Scale](docs/AppsV1beta1Scale.md) - - [KubernetesJsClient.AppsV1beta1ScaleSpec](docs/AppsV1beta1ScaleSpec.md) - - [KubernetesJsClient.AppsV1beta1ScaleStatus](docs/AppsV1beta1ScaleStatus.md) - - [KubernetesJsClient.ExtensionsV1beta1Deployment](docs/ExtensionsV1beta1Deployment.md) - - [KubernetesJsClient.ExtensionsV1beta1DeploymentCondition](docs/ExtensionsV1beta1DeploymentCondition.md) - - [KubernetesJsClient.ExtensionsV1beta1DeploymentList](docs/ExtensionsV1beta1DeploymentList.md) - - [KubernetesJsClient.ExtensionsV1beta1DeploymentRollback](docs/ExtensionsV1beta1DeploymentRollback.md) - - [KubernetesJsClient.ExtensionsV1beta1DeploymentSpec](docs/ExtensionsV1beta1DeploymentSpec.md) - - [KubernetesJsClient.ExtensionsV1beta1DeploymentStatus](docs/ExtensionsV1beta1DeploymentStatus.md) - - [KubernetesJsClient.ExtensionsV1beta1DeploymentStrategy](docs/ExtensionsV1beta1DeploymentStrategy.md) - - [KubernetesJsClient.ExtensionsV1beta1RollbackConfig](docs/ExtensionsV1beta1RollbackConfig.md) - - [KubernetesJsClient.ExtensionsV1beta1RollingUpdateDeployment](docs/ExtensionsV1beta1RollingUpdateDeployment.md) - - [KubernetesJsClient.ExtensionsV1beta1Scale](docs/ExtensionsV1beta1Scale.md) - - [KubernetesJsClient.ExtensionsV1beta1ScaleSpec](docs/ExtensionsV1beta1ScaleSpec.md) - - [KubernetesJsClient.ExtensionsV1beta1ScaleStatus](docs/ExtensionsV1beta1ScaleStatus.md) - - [KubernetesJsClient.RuntimeRawExtension](docs/RuntimeRawExtension.md) - - [KubernetesJsClient.V1APIGroup](docs/V1APIGroup.md) - - [KubernetesJsClient.V1APIGroupList](docs/V1APIGroupList.md) - - [KubernetesJsClient.V1APIResource](docs/V1APIResource.md) - - [KubernetesJsClient.V1APIResourceList](docs/V1APIResourceList.md) - - [KubernetesJsClient.V1APIVersions](docs/V1APIVersions.md) - - [KubernetesJsClient.V1AWSElasticBlockStoreVolumeSource](docs/V1AWSElasticBlockStoreVolumeSource.md) - - [KubernetesJsClient.V1Affinity](docs/V1Affinity.md) - - [KubernetesJsClient.V1AttachedVolume](docs/V1AttachedVolume.md) - - [KubernetesJsClient.V1AzureDiskVolumeSource](docs/V1AzureDiskVolumeSource.md) - - [KubernetesJsClient.V1AzureFileVolumeSource](docs/V1AzureFileVolumeSource.md) - - [KubernetesJsClient.V1Binding](docs/V1Binding.md) - - [KubernetesJsClient.V1Capabilities](docs/V1Capabilities.md) - - [KubernetesJsClient.V1CephFSVolumeSource](docs/V1CephFSVolumeSource.md) - - [KubernetesJsClient.V1CinderVolumeSource](docs/V1CinderVolumeSource.md) - - [KubernetesJsClient.V1ComponentCondition](docs/V1ComponentCondition.md) - - [KubernetesJsClient.V1ComponentStatus](docs/V1ComponentStatus.md) - - [KubernetesJsClient.V1ComponentStatusList](docs/V1ComponentStatusList.md) - - [KubernetesJsClient.V1ConfigMap](docs/V1ConfigMap.md) - - [KubernetesJsClient.V1ConfigMapEnvSource](docs/V1ConfigMapEnvSource.md) - - [KubernetesJsClient.V1ConfigMapKeySelector](docs/V1ConfigMapKeySelector.md) - - [KubernetesJsClient.V1ConfigMapList](docs/V1ConfigMapList.md) - - [KubernetesJsClient.V1ConfigMapProjection](docs/V1ConfigMapProjection.md) - - [KubernetesJsClient.V1ConfigMapVolumeSource](docs/V1ConfigMapVolumeSource.md) - - [KubernetesJsClient.V1Container](docs/V1Container.md) - - [KubernetesJsClient.V1ContainerImage](docs/V1ContainerImage.md) - - [KubernetesJsClient.V1ContainerPort](docs/V1ContainerPort.md) - - [KubernetesJsClient.V1ContainerState](docs/V1ContainerState.md) - - [KubernetesJsClient.V1ContainerStateRunning](docs/V1ContainerStateRunning.md) - - [KubernetesJsClient.V1ContainerStateTerminated](docs/V1ContainerStateTerminated.md) - - [KubernetesJsClient.V1ContainerStateWaiting](docs/V1ContainerStateWaiting.md) - - [KubernetesJsClient.V1ContainerStatus](docs/V1ContainerStatus.md) - - [KubernetesJsClient.V1CrossVersionObjectReference](docs/V1CrossVersionObjectReference.md) - - [KubernetesJsClient.V1DaemonEndpoint](docs/V1DaemonEndpoint.md) - - [KubernetesJsClient.V1DeleteOptions](docs/V1DeleteOptions.md) - - [KubernetesJsClient.V1DownwardAPIProjection](docs/V1DownwardAPIProjection.md) - - [KubernetesJsClient.V1DownwardAPIVolumeFile](docs/V1DownwardAPIVolumeFile.md) - - [KubernetesJsClient.V1DownwardAPIVolumeSource](docs/V1DownwardAPIVolumeSource.md) - - [KubernetesJsClient.V1EmptyDirVolumeSource](docs/V1EmptyDirVolumeSource.md) - - [KubernetesJsClient.V1EndpointAddress](docs/V1EndpointAddress.md) - - [KubernetesJsClient.V1EndpointPort](docs/V1EndpointPort.md) - - [KubernetesJsClient.V1EndpointSubset](docs/V1EndpointSubset.md) - - [KubernetesJsClient.V1Endpoints](docs/V1Endpoints.md) - - [KubernetesJsClient.V1EndpointsList](docs/V1EndpointsList.md) - - [KubernetesJsClient.V1EnvFromSource](docs/V1EnvFromSource.md) - - [KubernetesJsClient.V1EnvVar](docs/V1EnvVar.md) - - [KubernetesJsClient.V1EnvVarSource](docs/V1EnvVarSource.md) - - [KubernetesJsClient.V1Event](docs/V1Event.md) - - [KubernetesJsClient.V1EventList](docs/V1EventList.md) - - [KubernetesJsClient.V1EventSource](docs/V1EventSource.md) - - [KubernetesJsClient.V1ExecAction](docs/V1ExecAction.md) - - [KubernetesJsClient.V1FCVolumeSource](docs/V1FCVolumeSource.md) - - [KubernetesJsClient.V1FlexVolumeSource](docs/V1FlexVolumeSource.md) - - [KubernetesJsClient.V1FlockerVolumeSource](docs/V1FlockerVolumeSource.md) - - [KubernetesJsClient.V1GCEPersistentDiskVolumeSource](docs/V1GCEPersistentDiskVolumeSource.md) - - [KubernetesJsClient.V1GitRepoVolumeSource](docs/V1GitRepoVolumeSource.md) - - [KubernetesJsClient.V1GlusterfsVolumeSource](docs/V1GlusterfsVolumeSource.md) - - [KubernetesJsClient.V1GroupVersionForDiscovery](docs/V1GroupVersionForDiscovery.md) - - [KubernetesJsClient.V1HTTPGetAction](docs/V1HTTPGetAction.md) - - [KubernetesJsClient.V1HTTPHeader](docs/V1HTTPHeader.md) - - [KubernetesJsClient.V1Handler](docs/V1Handler.md) - - [KubernetesJsClient.V1HorizontalPodAutoscaler](docs/V1HorizontalPodAutoscaler.md) - - [KubernetesJsClient.V1HorizontalPodAutoscalerList](docs/V1HorizontalPodAutoscalerList.md) - - [KubernetesJsClient.V1HorizontalPodAutoscalerSpec](docs/V1HorizontalPodAutoscalerSpec.md) - - [KubernetesJsClient.V1HorizontalPodAutoscalerStatus](docs/V1HorizontalPodAutoscalerStatus.md) - - [KubernetesJsClient.V1HostPathVolumeSource](docs/V1HostPathVolumeSource.md) - - [KubernetesJsClient.V1ISCSIVolumeSource](docs/V1ISCSIVolumeSource.md) - - [KubernetesJsClient.V1Job](docs/V1Job.md) - - [KubernetesJsClient.V1JobCondition](docs/V1JobCondition.md) - - [KubernetesJsClient.V1JobList](docs/V1JobList.md) - - [KubernetesJsClient.V1JobSpec](docs/V1JobSpec.md) - - [KubernetesJsClient.V1JobStatus](docs/V1JobStatus.md) - - [KubernetesJsClient.V1KeyToPath](docs/V1KeyToPath.md) - - [KubernetesJsClient.V1LabelSelector](docs/V1LabelSelector.md) - - [KubernetesJsClient.V1LabelSelectorRequirement](docs/V1LabelSelectorRequirement.md) - - [KubernetesJsClient.V1Lifecycle](docs/V1Lifecycle.md) - - [KubernetesJsClient.V1LimitRange](docs/V1LimitRange.md) - - [KubernetesJsClient.V1LimitRangeItem](docs/V1LimitRangeItem.md) - - [KubernetesJsClient.V1LimitRangeList](docs/V1LimitRangeList.md) - - [KubernetesJsClient.V1LimitRangeSpec](docs/V1LimitRangeSpec.md) - - [KubernetesJsClient.V1ListMeta](docs/V1ListMeta.md) - - [KubernetesJsClient.V1LoadBalancerIngress](docs/V1LoadBalancerIngress.md) - - [KubernetesJsClient.V1LoadBalancerStatus](docs/V1LoadBalancerStatus.md) - - [KubernetesJsClient.V1LocalObjectReference](docs/V1LocalObjectReference.md) - - [KubernetesJsClient.V1LocalSubjectAccessReview](docs/V1LocalSubjectAccessReview.md) - - [KubernetesJsClient.V1NFSVolumeSource](docs/V1NFSVolumeSource.md) - - [KubernetesJsClient.V1Namespace](docs/V1Namespace.md) - - [KubernetesJsClient.V1NamespaceList](docs/V1NamespaceList.md) - - [KubernetesJsClient.V1NamespaceSpec](docs/V1NamespaceSpec.md) - - [KubernetesJsClient.V1NamespaceStatus](docs/V1NamespaceStatus.md) - - [KubernetesJsClient.V1Node](docs/V1Node.md) - - [KubernetesJsClient.V1NodeAddress](docs/V1NodeAddress.md) - - [KubernetesJsClient.V1NodeAffinity](docs/V1NodeAffinity.md) - - [KubernetesJsClient.V1NodeCondition](docs/V1NodeCondition.md) - - [KubernetesJsClient.V1NodeDaemonEndpoints](docs/V1NodeDaemonEndpoints.md) - - [KubernetesJsClient.V1NodeList](docs/V1NodeList.md) - - [KubernetesJsClient.V1NodeSelector](docs/V1NodeSelector.md) - - [KubernetesJsClient.V1NodeSelectorRequirement](docs/V1NodeSelectorRequirement.md) - - [KubernetesJsClient.V1NodeSelectorTerm](docs/V1NodeSelectorTerm.md) - - [KubernetesJsClient.V1NodeSpec](docs/V1NodeSpec.md) - - [KubernetesJsClient.V1NodeStatus](docs/V1NodeStatus.md) - - [KubernetesJsClient.V1NodeSystemInfo](docs/V1NodeSystemInfo.md) - - [KubernetesJsClient.V1NonResourceAttributes](docs/V1NonResourceAttributes.md) - - [KubernetesJsClient.V1ObjectFieldSelector](docs/V1ObjectFieldSelector.md) - - [KubernetesJsClient.V1ObjectMeta](docs/V1ObjectMeta.md) - - [KubernetesJsClient.V1ObjectReference](docs/V1ObjectReference.md) - - [KubernetesJsClient.V1OwnerReference](docs/V1OwnerReference.md) - - [KubernetesJsClient.V1PersistentVolume](docs/V1PersistentVolume.md) - - [KubernetesJsClient.V1PersistentVolumeClaim](docs/V1PersistentVolumeClaim.md) - - [KubernetesJsClient.V1PersistentVolumeClaimList](docs/V1PersistentVolumeClaimList.md) - - [KubernetesJsClient.V1PersistentVolumeClaimSpec](docs/V1PersistentVolumeClaimSpec.md) - - [KubernetesJsClient.V1PersistentVolumeClaimStatus](docs/V1PersistentVolumeClaimStatus.md) - - [KubernetesJsClient.V1PersistentVolumeClaimVolumeSource](docs/V1PersistentVolumeClaimVolumeSource.md) - - [KubernetesJsClient.V1PersistentVolumeList](docs/V1PersistentVolumeList.md) - - [KubernetesJsClient.V1PersistentVolumeSpec](docs/V1PersistentVolumeSpec.md) - - [KubernetesJsClient.V1PersistentVolumeStatus](docs/V1PersistentVolumeStatus.md) - - [KubernetesJsClient.V1PhotonPersistentDiskVolumeSource](docs/V1PhotonPersistentDiskVolumeSource.md) - - [KubernetesJsClient.V1Pod](docs/V1Pod.md) - - [KubernetesJsClient.V1PodAffinity](docs/V1PodAffinity.md) - - [KubernetesJsClient.V1PodAffinityTerm](docs/V1PodAffinityTerm.md) - - [KubernetesJsClient.V1PodAntiAffinity](docs/V1PodAntiAffinity.md) - - [KubernetesJsClient.V1PodCondition](docs/V1PodCondition.md) - - [KubernetesJsClient.V1PodList](docs/V1PodList.md) - - [KubernetesJsClient.V1PodSecurityContext](docs/V1PodSecurityContext.md) - - [KubernetesJsClient.V1PodSpec](docs/V1PodSpec.md) - - [KubernetesJsClient.V1PodStatus](docs/V1PodStatus.md) - - [KubernetesJsClient.V1PodTemplate](docs/V1PodTemplate.md) - - [KubernetesJsClient.V1PodTemplateList](docs/V1PodTemplateList.md) - - [KubernetesJsClient.V1PodTemplateSpec](docs/V1PodTemplateSpec.md) - - [KubernetesJsClient.V1PortworxVolumeSource](docs/V1PortworxVolumeSource.md) - - [KubernetesJsClient.V1Preconditions](docs/V1Preconditions.md) - - [KubernetesJsClient.V1PreferredSchedulingTerm](docs/V1PreferredSchedulingTerm.md) - - [KubernetesJsClient.V1Probe](docs/V1Probe.md) - - [KubernetesJsClient.V1ProjectedVolumeSource](docs/V1ProjectedVolumeSource.md) - - [KubernetesJsClient.V1QuobyteVolumeSource](docs/V1QuobyteVolumeSource.md) - - [KubernetesJsClient.V1RBDVolumeSource](docs/V1RBDVolumeSource.md) - - [KubernetesJsClient.V1ReplicationController](docs/V1ReplicationController.md) - - [KubernetesJsClient.V1ReplicationControllerCondition](docs/V1ReplicationControllerCondition.md) - - [KubernetesJsClient.V1ReplicationControllerList](docs/V1ReplicationControllerList.md) - - [KubernetesJsClient.V1ReplicationControllerSpec](docs/V1ReplicationControllerSpec.md) - - [KubernetesJsClient.V1ReplicationControllerStatus](docs/V1ReplicationControllerStatus.md) - - [KubernetesJsClient.V1ResourceAttributes](docs/V1ResourceAttributes.md) - - [KubernetesJsClient.V1ResourceFieldSelector](docs/V1ResourceFieldSelector.md) - - [KubernetesJsClient.V1ResourceQuota](docs/V1ResourceQuota.md) - - [KubernetesJsClient.V1ResourceQuotaList](docs/V1ResourceQuotaList.md) - - [KubernetesJsClient.V1ResourceQuotaSpec](docs/V1ResourceQuotaSpec.md) - - [KubernetesJsClient.V1ResourceQuotaStatus](docs/V1ResourceQuotaStatus.md) - - [KubernetesJsClient.V1ResourceRequirements](docs/V1ResourceRequirements.md) - - [KubernetesJsClient.V1SELinuxOptions](docs/V1SELinuxOptions.md) - - [KubernetesJsClient.V1Scale](docs/V1Scale.md) - - [KubernetesJsClient.V1ScaleIOVolumeSource](docs/V1ScaleIOVolumeSource.md) - - [KubernetesJsClient.V1ScaleSpec](docs/V1ScaleSpec.md) - - [KubernetesJsClient.V1ScaleStatus](docs/V1ScaleStatus.md) - - [KubernetesJsClient.V1Secret](docs/V1Secret.md) - - [KubernetesJsClient.V1SecretEnvSource](docs/V1SecretEnvSource.md) - - [KubernetesJsClient.V1SecretKeySelector](docs/V1SecretKeySelector.md) - - [KubernetesJsClient.V1SecretList](docs/V1SecretList.md) - - [KubernetesJsClient.V1SecretProjection](docs/V1SecretProjection.md) - - [KubernetesJsClient.V1SecretVolumeSource](docs/V1SecretVolumeSource.md) - - [KubernetesJsClient.V1SecurityContext](docs/V1SecurityContext.md) - - [KubernetesJsClient.V1SelfSubjectAccessReview](docs/V1SelfSubjectAccessReview.md) - - [KubernetesJsClient.V1SelfSubjectAccessReviewSpec](docs/V1SelfSubjectAccessReviewSpec.md) - - [KubernetesJsClient.V1ServerAddressByClientCIDR](docs/V1ServerAddressByClientCIDR.md) - - [KubernetesJsClient.V1Service](docs/V1Service.md) - - [KubernetesJsClient.V1ServiceAccount](docs/V1ServiceAccount.md) - - [KubernetesJsClient.V1ServiceAccountList](docs/V1ServiceAccountList.md) - - [KubernetesJsClient.V1ServiceList](docs/V1ServiceList.md) - - [KubernetesJsClient.V1ServicePort](docs/V1ServicePort.md) - - [KubernetesJsClient.V1ServiceSpec](docs/V1ServiceSpec.md) - - [KubernetesJsClient.V1ServiceStatus](docs/V1ServiceStatus.md) - - [KubernetesJsClient.V1Status](docs/V1Status.md) - - [KubernetesJsClient.V1StatusCause](docs/V1StatusCause.md) - - [KubernetesJsClient.V1StatusDetails](docs/V1StatusDetails.md) - - [KubernetesJsClient.V1StorageClass](docs/V1StorageClass.md) - - [KubernetesJsClient.V1StorageClassList](docs/V1StorageClassList.md) - - [KubernetesJsClient.V1SubjectAccessReview](docs/V1SubjectAccessReview.md) - - [KubernetesJsClient.V1SubjectAccessReviewSpec](docs/V1SubjectAccessReviewSpec.md) - - [KubernetesJsClient.V1SubjectAccessReviewStatus](docs/V1SubjectAccessReviewStatus.md) - - [KubernetesJsClient.V1TCPSocketAction](docs/V1TCPSocketAction.md) - - [KubernetesJsClient.V1Taint](docs/V1Taint.md) - - [KubernetesJsClient.V1TokenReview](docs/V1TokenReview.md) - - [KubernetesJsClient.V1TokenReviewSpec](docs/V1TokenReviewSpec.md) - - [KubernetesJsClient.V1TokenReviewStatus](docs/V1TokenReviewStatus.md) - - [KubernetesJsClient.V1Toleration](docs/V1Toleration.md) - - [KubernetesJsClient.V1UserInfo](docs/V1UserInfo.md) - - [KubernetesJsClient.V1Volume](docs/V1Volume.md) - - [KubernetesJsClient.V1VolumeMount](docs/V1VolumeMount.md) - - [KubernetesJsClient.V1VolumeProjection](docs/V1VolumeProjection.md) - - [KubernetesJsClient.V1VsphereVirtualDiskVolumeSource](docs/V1VsphereVirtualDiskVolumeSource.md) - - [KubernetesJsClient.V1WatchEvent](docs/V1WatchEvent.md) - - [KubernetesJsClient.V1WeightedPodAffinityTerm](docs/V1WeightedPodAffinityTerm.md) - - [KubernetesJsClient.V1alpha1ClusterRole](docs/V1alpha1ClusterRole.md) - - [KubernetesJsClient.V1alpha1ClusterRoleBinding](docs/V1alpha1ClusterRoleBinding.md) - - [KubernetesJsClient.V1alpha1ClusterRoleBindingList](docs/V1alpha1ClusterRoleBindingList.md) - - [KubernetesJsClient.V1alpha1ClusterRoleList](docs/V1alpha1ClusterRoleList.md) - - [KubernetesJsClient.V1alpha1PodPreset](docs/V1alpha1PodPreset.md) - - [KubernetesJsClient.V1alpha1PodPresetList](docs/V1alpha1PodPresetList.md) - - [KubernetesJsClient.V1alpha1PodPresetSpec](docs/V1alpha1PodPresetSpec.md) - - [KubernetesJsClient.V1alpha1PolicyRule](docs/V1alpha1PolicyRule.md) - - [KubernetesJsClient.V1alpha1Role](docs/V1alpha1Role.md) - - [KubernetesJsClient.V1alpha1RoleBinding](docs/V1alpha1RoleBinding.md) - - [KubernetesJsClient.V1alpha1RoleBindingList](docs/V1alpha1RoleBindingList.md) - - [KubernetesJsClient.V1alpha1RoleList](docs/V1alpha1RoleList.md) - - [KubernetesJsClient.V1alpha1RoleRef](docs/V1alpha1RoleRef.md) - - [KubernetesJsClient.V1alpha1Subject](docs/V1alpha1Subject.md) - - [KubernetesJsClient.V1beta1APIVersion](docs/V1beta1APIVersion.md) - - [KubernetesJsClient.V1beta1CertificateSigningRequest](docs/V1beta1CertificateSigningRequest.md) - - [KubernetesJsClient.V1beta1CertificateSigningRequestCondition](docs/V1beta1CertificateSigningRequestCondition.md) - - [KubernetesJsClient.V1beta1CertificateSigningRequestList](docs/V1beta1CertificateSigningRequestList.md) - - [KubernetesJsClient.V1beta1CertificateSigningRequestSpec](docs/V1beta1CertificateSigningRequestSpec.md) - - [KubernetesJsClient.V1beta1CertificateSigningRequestStatus](docs/V1beta1CertificateSigningRequestStatus.md) - - [KubernetesJsClient.V1beta1ClusterRole](docs/V1beta1ClusterRole.md) - - [KubernetesJsClient.V1beta1ClusterRoleBinding](docs/V1beta1ClusterRoleBinding.md) - - [KubernetesJsClient.V1beta1ClusterRoleBindingList](docs/V1beta1ClusterRoleBindingList.md) - - [KubernetesJsClient.V1beta1ClusterRoleList](docs/V1beta1ClusterRoleList.md) - - [KubernetesJsClient.V1beta1DaemonSet](docs/V1beta1DaemonSet.md) - - [KubernetesJsClient.V1beta1DaemonSetList](docs/V1beta1DaemonSetList.md) - - [KubernetesJsClient.V1beta1DaemonSetSpec](docs/V1beta1DaemonSetSpec.md) - - [KubernetesJsClient.V1beta1DaemonSetStatus](docs/V1beta1DaemonSetStatus.md) - - [KubernetesJsClient.V1beta1DaemonSetUpdateStrategy](docs/V1beta1DaemonSetUpdateStrategy.md) - - [KubernetesJsClient.V1beta1Eviction](docs/V1beta1Eviction.md) - - [KubernetesJsClient.V1beta1FSGroupStrategyOptions](docs/V1beta1FSGroupStrategyOptions.md) - - [KubernetesJsClient.V1beta1HTTPIngressPath](docs/V1beta1HTTPIngressPath.md) - - [KubernetesJsClient.V1beta1HTTPIngressRuleValue](docs/V1beta1HTTPIngressRuleValue.md) - - [KubernetesJsClient.V1beta1HostPortRange](docs/V1beta1HostPortRange.md) - - [KubernetesJsClient.V1beta1IDRange](docs/V1beta1IDRange.md) - - [KubernetesJsClient.V1beta1Ingress](docs/V1beta1Ingress.md) - - [KubernetesJsClient.V1beta1IngressBackend](docs/V1beta1IngressBackend.md) - - [KubernetesJsClient.V1beta1IngressList](docs/V1beta1IngressList.md) - - [KubernetesJsClient.V1beta1IngressRule](docs/V1beta1IngressRule.md) - - [KubernetesJsClient.V1beta1IngressSpec](docs/V1beta1IngressSpec.md) - - [KubernetesJsClient.V1beta1IngressStatus](docs/V1beta1IngressStatus.md) - - [KubernetesJsClient.V1beta1IngressTLS](docs/V1beta1IngressTLS.md) - - [KubernetesJsClient.V1beta1LocalSubjectAccessReview](docs/V1beta1LocalSubjectAccessReview.md) - - [KubernetesJsClient.V1beta1NetworkPolicy](docs/V1beta1NetworkPolicy.md) - - [KubernetesJsClient.V1beta1NetworkPolicyIngressRule](docs/V1beta1NetworkPolicyIngressRule.md) - - [KubernetesJsClient.V1beta1NetworkPolicyList](docs/V1beta1NetworkPolicyList.md) - - [KubernetesJsClient.V1beta1NetworkPolicyPeer](docs/V1beta1NetworkPolicyPeer.md) - - [KubernetesJsClient.V1beta1NetworkPolicyPort](docs/V1beta1NetworkPolicyPort.md) - - [KubernetesJsClient.V1beta1NetworkPolicySpec](docs/V1beta1NetworkPolicySpec.md) - - [KubernetesJsClient.V1beta1NonResourceAttributes](docs/V1beta1NonResourceAttributes.md) - - [KubernetesJsClient.V1beta1PodDisruptionBudget](docs/V1beta1PodDisruptionBudget.md) - - [KubernetesJsClient.V1beta1PodDisruptionBudgetList](docs/V1beta1PodDisruptionBudgetList.md) - - [KubernetesJsClient.V1beta1PodDisruptionBudgetSpec](docs/V1beta1PodDisruptionBudgetSpec.md) - - [KubernetesJsClient.V1beta1PodDisruptionBudgetStatus](docs/V1beta1PodDisruptionBudgetStatus.md) - - [KubernetesJsClient.V1beta1PodSecurityPolicy](docs/V1beta1PodSecurityPolicy.md) - - [KubernetesJsClient.V1beta1PodSecurityPolicyList](docs/V1beta1PodSecurityPolicyList.md) - - [KubernetesJsClient.V1beta1PodSecurityPolicySpec](docs/V1beta1PodSecurityPolicySpec.md) - - [KubernetesJsClient.V1beta1PolicyRule](docs/V1beta1PolicyRule.md) - - [KubernetesJsClient.V1beta1ReplicaSet](docs/V1beta1ReplicaSet.md) - - [KubernetesJsClient.V1beta1ReplicaSetCondition](docs/V1beta1ReplicaSetCondition.md) - - [KubernetesJsClient.V1beta1ReplicaSetList](docs/V1beta1ReplicaSetList.md) - - [KubernetesJsClient.V1beta1ReplicaSetSpec](docs/V1beta1ReplicaSetSpec.md) - - [KubernetesJsClient.V1beta1ReplicaSetStatus](docs/V1beta1ReplicaSetStatus.md) - - [KubernetesJsClient.V1beta1ResourceAttributes](docs/V1beta1ResourceAttributes.md) - - [KubernetesJsClient.V1beta1Role](docs/V1beta1Role.md) - - [KubernetesJsClient.V1beta1RoleBinding](docs/V1beta1RoleBinding.md) - - [KubernetesJsClient.V1beta1RoleBindingList](docs/V1beta1RoleBindingList.md) - - [KubernetesJsClient.V1beta1RoleList](docs/V1beta1RoleList.md) - - [KubernetesJsClient.V1beta1RoleRef](docs/V1beta1RoleRef.md) - - [KubernetesJsClient.V1beta1RollingUpdateDaemonSet](docs/V1beta1RollingUpdateDaemonSet.md) - - [KubernetesJsClient.V1beta1RunAsUserStrategyOptions](docs/V1beta1RunAsUserStrategyOptions.md) - - [KubernetesJsClient.V1beta1SELinuxStrategyOptions](docs/V1beta1SELinuxStrategyOptions.md) - - [KubernetesJsClient.V1beta1SelfSubjectAccessReview](docs/V1beta1SelfSubjectAccessReview.md) - - [KubernetesJsClient.V1beta1SelfSubjectAccessReviewSpec](docs/V1beta1SelfSubjectAccessReviewSpec.md) - - [KubernetesJsClient.V1beta1StatefulSet](docs/V1beta1StatefulSet.md) - - [KubernetesJsClient.V1beta1StatefulSetList](docs/V1beta1StatefulSetList.md) - - [KubernetesJsClient.V1beta1StatefulSetSpec](docs/V1beta1StatefulSetSpec.md) - - [KubernetesJsClient.V1beta1StatefulSetStatus](docs/V1beta1StatefulSetStatus.md) - - [KubernetesJsClient.V1beta1StorageClass](docs/V1beta1StorageClass.md) - - [KubernetesJsClient.V1beta1StorageClassList](docs/V1beta1StorageClassList.md) - - [KubernetesJsClient.V1beta1Subject](docs/V1beta1Subject.md) - - [KubernetesJsClient.V1beta1SubjectAccessReview](docs/V1beta1SubjectAccessReview.md) - - [KubernetesJsClient.V1beta1SubjectAccessReviewSpec](docs/V1beta1SubjectAccessReviewSpec.md) - - [KubernetesJsClient.V1beta1SubjectAccessReviewStatus](docs/V1beta1SubjectAccessReviewStatus.md) - - [KubernetesJsClient.V1beta1SupplementalGroupsStrategyOptions](docs/V1beta1SupplementalGroupsStrategyOptions.md) - - [KubernetesJsClient.V1beta1ThirdPartyResource](docs/V1beta1ThirdPartyResource.md) - - [KubernetesJsClient.V1beta1ThirdPartyResourceList](docs/V1beta1ThirdPartyResourceList.md) - - [KubernetesJsClient.V1beta1TokenReview](docs/V1beta1TokenReview.md) - - [KubernetesJsClient.V1beta1TokenReviewSpec](docs/V1beta1TokenReviewSpec.md) - - [KubernetesJsClient.V1beta1TokenReviewStatus](docs/V1beta1TokenReviewStatus.md) - - [KubernetesJsClient.V1beta1UserInfo](docs/V1beta1UserInfo.md) - - [KubernetesJsClient.V2alpha1CronJob](docs/V2alpha1CronJob.md) - - [KubernetesJsClient.V2alpha1CronJobList](docs/V2alpha1CronJobList.md) - - [KubernetesJsClient.V2alpha1CronJobSpec](docs/V2alpha1CronJobSpec.md) - - [KubernetesJsClient.V2alpha1CronJobStatus](docs/V2alpha1CronJobStatus.md) - - [KubernetesJsClient.V2alpha1CrossVersionObjectReference](docs/V2alpha1CrossVersionObjectReference.md) - - [KubernetesJsClient.V2alpha1HorizontalPodAutoscaler](docs/V2alpha1HorizontalPodAutoscaler.md) - - [KubernetesJsClient.V2alpha1HorizontalPodAutoscalerList](docs/V2alpha1HorizontalPodAutoscalerList.md) - - [KubernetesJsClient.V2alpha1HorizontalPodAutoscalerSpec](docs/V2alpha1HorizontalPodAutoscalerSpec.md) - - [KubernetesJsClient.V2alpha1HorizontalPodAutoscalerStatus](docs/V2alpha1HorizontalPodAutoscalerStatus.md) - - [KubernetesJsClient.V2alpha1JobTemplateSpec](docs/V2alpha1JobTemplateSpec.md) - - [KubernetesJsClient.V2alpha1MetricSpec](docs/V2alpha1MetricSpec.md) - - [KubernetesJsClient.V2alpha1MetricStatus](docs/V2alpha1MetricStatus.md) - - [KubernetesJsClient.V2alpha1ObjectMetricSource](docs/V2alpha1ObjectMetricSource.md) - - [KubernetesJsClient.V2alpha1ObjectMetricStatus](docs/V2alpha1ObjectMetricStatus.md) - - [KubernetesJsClient.V2alpha1PodsMetricSource](docs/V2alpha1PodsMetricSource.md) - - [KubernetesJsClient.V2alpha1PodsMetricStatus](docs/V2alpha1PodsMetricStatus.md) - - [KubernetesJsClient.V2alpha1ResourceMetricSource](docs/V2alpha1ResourceMetricSource.md) - - [KubernetesJsClient.V2alpha1ResourceMetricStatus](docs/V2alpha1ResourceMetricStatus.md) - - [KubernetesJsClient.VersionInfo](docs/VersionInfo.md) - - -## Documentation for Authorization - - -### BearerToken - -- **Type**: API key -- **API key parameter name**: authorization -- **Location**: HTTP header - diff --git a/kubernetes/docs/ApisApi.md b/kubernetes/docs/ApisApi.md deleted file mode 100644 index 111bf4bdab..0000000000 --- a/kubernetes/docs/ApisApi.md +++ /dev/null @@ -1,56 +0,0 @@ -# KubernetesJsClient.ApisApi - -All URIs are relative to *https://localhost* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**getAPIVersions**](ApisApi.md#getAPIVersions) | **GET** /apis/ | - - - -# **getAPIVersions** -> V1APIGroupList getAPIVersions() - - - -get available API versions - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.ApisApi(); - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.getAPIVersions(callback); -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -[**V1APIGroupList**](V1APIGroupList.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - diff --git a/kubernetes/docs/AppsApi.md b/kubernetes/docs/AppsApi.md deleted file mode 100644 index 8a30e453af..0000000000 --- a/kubernetes/docs/AppsApi.md +++ /dev/null @@ -1,56 +0,0 @@ -# KubernetesJsClient.AppsApi - -All URIs are relative to *https://localhost* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**getAPIGroup**](AppsApi.md#getAPIGroup) | **GET** /apis/apps/ | - - - -# **getAPIGroup** -> V1APIGroup getAPIGroup() - - - -get information of a group - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.AppsApi(); - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.getAPIGroup(callback); -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -[**V1APIGroup**](V1APIGroup.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - diff --git a/kubernetes/docs/AppsV1beta1Deployment.md b/kubernetes/docs/AppsV1beta1Deployment.md deleted file mode 100644 index 55bdf89039..0000000000 --- a/kubernetes/docs/AppsV1beta1Deployment.md +++ /dev/null @@ -1,12 +0,0 @@ -# KubernetesJsClient.AppsV1beta1Deployment - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object metadata. | [optional] -**spec** | [**AppsV1beta1DeploymentSpec**](AppsV1beta1DeploymentSpec.md) | Specification of the desired behavior of the Deployment. | [optional] -**status** | [**AppsV1beta1DeploymentStatus**](AppsV1beta1DeploymentStatus.md) | Most recently observed status of the Deployment. | [optional] - - diff --git a/kubernetes/docs/AppsV1beta1DeploymentCondition.md b/kubernetes/docs/AppsV1beta1DeploymentCondition.md deleted file mode 100644 index 97355c23d3..0000000000 --- a/kubernetes/docs/AppsV1beta1DeploymentCondition.md +++ /dev/null @@ -1,13 +0,0 @@ -# KubernetesJsClient.AppsV1beta1DeploymentCondition - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**lastTransitionTime** | **Date** | Last time the condition transitioned from one status to another. | [optional] -**lastUpdateTime** | **Date** | The last time this condition was updated. | [optional] -**message** | **String** | A human readable message indicating details about the transition. | [optional] -**reason** | **String** | The reason for the condition's last transition. | [optional] -**status** | **String** | Status of the condition, one of True, False, Unknown. | -**type** | **String** | Type of deployment condition. | - - diff --git a/kubernetes/docs/AppsV1beta1DeploymentList.md b/kubernetes/docs/AppsV1beta1DeploymentList.md deleted file mode 100644 index 1140afb2b3..0000000000 --- a/kubernetes/docs/AppsV1beta1DeploymentList.md +++ /dev/null @@ -1,11 +0,0 @@ -# KubernetesJsClient.AppsV1beta1DeploymentList - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] -**items** | [**[AppsV1beta1Deployment]**](AppsV1beta1Deployment.md) | Items is the list of Deployments. | -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata. | [optional] - - diff --git a/kubernetes/docs/AppsV1beta1DeploymentRollback.md b/kubernetes/docs/AppsV1beta1DeploymentRollback.md deleted file mode 100644 index 181532f190..0000000000 --- a/kubernetes/docs/AppsV1beta1DeploymentRollback.md +++ /dev/null @@ -1,12 +0,0 @@ -# KubernetesJsClient.AppsV1beta1DeploymentRollback - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**name** | **String** | Required: This must match the Name of a deployment. | -**rollbackTo** | [**AppsV1beta1RollbackConfig**](AppsV1beta1RollbackConfig.md) | The config of this deployment rollback. | -**updatedAnnotations** | **{String: String}** | The annotations to be updated to a deployment | [optional] - - diff --git a/kubernetes/docs/AppsV1beta1DeploymentSpec.md b/kubernetes/docs/AppsV1beta1DeploymentSpec.md deleted file mode 100644 index eefad17a15..0000000000 --- a/kubernetes/docs/AppsV1beta1DeploymentSpec.md +++ /dev/null @@ -1,16 +0,0 @@ -# KubernetesJsClient.AppsV1beta1DeploymentSpec - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**minReadySeconds** | **Number** | Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) | [optional] -**paused** | **Boolean** | Indicates that the deployment is paused. | [optional] -**progressDeadlineSeconds** | **Number** | The maximum time in seconds for a deployment to make progress before it is considered to be failed. The deployment controller will continue to process failed deployments and a condition with a ProgressDeadlineExceeded reason will be surfaced in the deployment status. Once autoRollback is implemented, the deployment controller will automatically rollback failed deployments. Note that progress will not be estimated during the time a deployment is paused. Defaults to 600s. | [optional] -**replicas** | **Number** | Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1. | [optional] -**revisionHistoryLimit** | **Number** | The number of old ReplicaSets to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 2. | [optional] -**rollbackTo** | [**AppsV1beta1RollbackConfig**](AppsV1beta1RollbackConfig.md) | The config this deployment is rolling back to. Will be cleared after rollback is done. | [optional] -**selector** | [**V1LabelSelector**](V1LabelSelector.md) | Label selector for pods. Existing ReplicaSets whose pods are selected by this will be the ones affected by this deployment. | [optional] -**strategy** | [**AppsV1beta1DeploymentStrategy**](AppsV1beta1DeploymentStrategy.md) | The deployment strategy to use to replace existing pods with new ones. | [optional] -**template** | [**V1PodTemplateSpec**](V1PodTemplateSpec.md) | Template describes the pods that will be created. | - - diff --git a/kubernetes/docs/AppsV1beta1DeploymentStatus.md b/kubernetes/docs/AppsV1beta1DeploymentStatus.md deleted file mode 100644 index f3ad1e91b0..0000000000 --- a/kubernetes/docs/AppsV1beta1DeploymentStatus.md +++ /dev/null @@ -1,14 +0,0 @@ -# KubernetesJsClient.AppsV1beta1DeploymentStatus - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**availableReplicas** | **Number** | Total number of available pods (ready for at least minReadySeconds) targeted by this deployment. | [optional] -**conditions** | [**[AppsV1beta1DeploymentCondition]**](AppsV1beta1DeploymentCondition.md) | Represents the latest available observations of a deployment's current state. | [optional] -**observedGeneration** | **Number** | The generation observed by the deployment controller. | [optional] -**readyReplicas** | **Number** | Total number of ready pods targeted by this deployment. | [optional] -**replicas** | **Number** | Total number of non-terminated pods targeted by this deployment (their labels match the selector). | [optional] -**unavailableReplicas** | **Number** | Total number of unavailable pods targeted by this deployment. | [optional] -**updatedReplicas** | **Number** | Total number of non-terminated pods targeted by this deployment that have the desired template spec. | [optional] - - diff --git a/kubernetes/docs/AppsV1beta1DeploymentStrategy.md b/kubernetes/docs/AppsV1beta1DeploymentStrategy.md deleted file mode 100644 index 06b3337f74..0000000000 --- a/kubernetes/docs/AppsV1beta1DeploymentStrategy.md +++ /dev/null @@ -1,9 +0,0 @@ -# KubernetesJsClient.AppsV1beta1DeploymentStrategy - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**rollingUpdate** | [**AppsV1beta1RollingUpdateDeployment**](AppsV1beta1RollingUpdateDeployment.md) | Rolling update config params. Present only if DeploymentStrategyType = RollingUpdate. | [optional] -**type** | **String** | Type of deployment. Can be \"Recreate\" or \"RollingUpdate\". Default is RollingUpdate. | [optional] - - diff --git a/kubernetes/docs/AppsV1beta1RollbackConfig.md b/kubernetes/docs/AppsV1beta1RollbackConfig.md deleted file mode 100644 index 63fb5661d0..0000000000 --- a/kubernetes/docs/AppsV1beta1RollbackConfig.md +++ /dev/null @@ -1,8 +0,0 @@ -# KubernetesJsClient.AppsV1beta1RollbackConfig - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**revision** | **Number** | The revision to rollback to. If set to 0, rollbck to the last revision. | [optional] - - diff --git a/kubernetes/docs/AppsV1beta1RollingUpdateDeployment.md b/kubernetes/docs/AppsV1beta1RollingUpdateDeployment.md deleted file mode 100644 index a9d85abc97..0000000000 --- a/kubernetes/docs/AppsV1beta1RollingUpdateDeployment.md +++ /dev/null @@ -1,9 +0,0 @@ -# KubernetesJsClient.AppsV1beta1RollingUpdateDeployment - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**maxSurge** | **String** | The maximum number of pods that can be scheduled above the desired number of pods. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up. Defaults to 25%. Example: when this is set to 30%, the new RC can be scaled up immediately when the rolling update starts, such that the total number of old and new pods do not exceed 130% of desired pods. Once old pods have been killed, new RC can be scaled up further, ensuring that total number of pods running at any time during the update is atmost 130% of desired pods. | [optional] -**maxUnavailable** | **String** | The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding down. This can not be 0 if MaxSurge is 0. Defaults to 25%. Example: when this is set to 30%, the old RC can be scaled down to 70% of desired pods immediately when the rolling update starts. Once new pods are ready, old RC can be scaled down further, followed by scaling up the new RC, ensuring that the total number of pods available at all times during the update is at least 70% of desired pods. | [optional] - - diff --git a/kubernetes/docs/AppsV1beta1Scale.md b/kubernetes/docs/AppsV1beta1Scale.md deleted file mode 100644 index 28c3fcc481..0000000000 --- a/kubernetes/docs/AppsV1beta1Scale.md +++ /dev/null @@ -1,12 +0,0 @@ -# KubernetesJsClient.AppsV1beta1Scale - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object metadata; More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata. | [optional] -**spec** | [**AppsV1beta1ScaleSpec**](AppsV1beta1ScaleSpec.md) | defines the behavior of the scale. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status. | [optional] -**status** | [**AppsV1beta1ScaleStatus**](AppsV1beta1ScaleStatus.md) | current status of the scale. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status. Read-only. | [optional] - - diff --git a/kubernetes/docs/AppsV1beta1ScaleSpec.md b/kubernetes/docs/AppsV1beta1ScaleSpec.md deleted file mode 100644 index 6fd89c4402..0000000000 --- a/kubernetes/docs/AppsV1beta1ScaleSpec.md +++ /dev/null @@ -1,8 +0,0 @@ -# KubernetesJsClient.AppsV1beta1ScaleSpec - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**replicas** | **Number** | desired number of instances for the scaled object. | [optional] - - diff --git a/kubernetes/docs/AppsV1beta1ScaleStatus.md b/kubernetes/docs/AppsV1beta1ScaleStatus.md deleted file mode 100644 index acb794ac39..0000000000 --- a/kubernetes/docs/AppsV1beta1ScaleStatus.md +++ /dev/null @@ -1,10 +0,0 @@ -# KubernetesJsClient.AppsV1beta1ScaleStatus - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**replicas** | **Number** | actual number of observed instances of the scaled object. | -**selector** | **{String: String}** | label query over pods that should match the replicas count. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors | [optional] -**targetSelector** | **String** | label selector for pods that should match the replicas count. This is a serializated version of both map-based and more expressive set-based selectors. This is done to avoid introspection in the kubernetes.clients. The string will be in the same format as the query-param syntax. If the target type only supports map-based selectors, both this field and map-based selector field are populated. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors | [optional] - - diff --git a/kubernetes/docs/Apps_v1beta1Api.md b/kubernetes/docs/Apps_v1beta1Api.md deleted file mode 100644 index 68bdb128b2..0000000000 --- a/kubernetes/docs/Apps_v1beta1Api.md +++ /dev/null @@ -1,1737 +0,0 @@ -# KubernetesJsClient.Apps_v1beta1Api - -All URIs are relative to *https://localhost* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**createNamespacedDeployment**](Apps_v1beta1Api.md#createNamespacedDeployment) | **POST** /apis/apps/v1beta1/namespaces/{namespace}/deployments | -[**createNamespacedDeploymentRollbackRollback**](Apps_v1beta1Api.md#createNamespacedDeploymentRollbackRollback) | **POST** /apis/apps/v1beta1/namespaces/{namespace}/deployments/{name}/rollback | -[**createNamespacedStatefulSet**](Apps_v1beta1Api.md#createNamespacedStatefulSet) | **POST** /apis/apps/v1beta1/namespaces/{namespace}/statefulsets | -[**deleteCollectionNamespacedDeployment**](Apps_v1beta1Api.md#deleteCollectionNamespacedDeployment) | **DELETE** /apis/apps/v1beta1/namespaces/{namespace}/deployments | -[**deleteCollectionNamespacedStatefulSet**](Apps_v1beta1Api.md#deleteCollectionNamespacedStatefulSet) | **DELETE** /apis/apps/v1beta1/namespaces/{namespace}/statefulsets | -[**deleteNamespacedDeployment**](Apps_v1beta1Api.md#deleteNamespacedDeployment) | **DELETE** /apis/apps/v1beta1/namespaces/{namespace}/deployments/{name} | -[**deleteNamespacedStatefulSet**](Apps_v1beta1Api.md#deleteNamespacedStatefulSet) | **DELETE** /apis/apps/v1beta1/namespaces/{namespace}/statefulsets/{name} | -[**getAPIResources**](Apps_v1beta1Api.md#getAPIResources) | **GET** /apis/apps/v1beta1/ | -[**listDeploymentForAllNamespaces**](Apps_v1beta1Api.md#listDeploymentForAllNamespaces) | **GET** /apis/apps/v1beta1/deployments | -[**listNamespacedDeployment**](Apps_v1beta1Api.md#listNamespacedDeployment) | **GET** /apis/apps/v1beta1/namespaces/{namespace}/deployments | -[**listNamespacedStatefulSet**](Apps_v1beta1Api.md#listNamespacedStatefulSet) | **GET** /apis/apps/v1beta1/namespaces/{namespace}/statefulsets | -[**listStatefulSetForAllNamespaces**](Apps_v1beta1Api.md#listStatefulSetForAllNamespaces) | **GET** /apis/apps/v1beta1/statefulsets | -[**patchNamespacedDeployment**](Apps_v1beta1Api.md#patchNamespacedDeployment) | **PATCH** /apis/apps/v1beta1/namespaces/{namespace}/deployments/{name} | -[**patchNamespacedDeploymentStatus**](Apps_v1beta1Api.md#patchNamespacedDeploymentStatus) | **PATCH** /apis/apps/v1beta1/namespaces/{namespace}/deployments/{name}/status | -[**patchNamespacedScaleScale**](Apps_v1beta1Api.md#patchNamespacedScaleScale) | **PATCH** /apis/apps/v1beta1/namespaces/{namespace}/deployments/{name}/scale | -[**patchNamespacedStatefulSet**](Apps_v1beta1Api.md#patchNamespacedStatefulSet) | **PATCH** /apis/apps/v1beta1/namespaces/{namespace}/statefulsets/{name} | -[**patchNamespacedStatefulSetStatus**](Apps_v1beta1Api.md#patchNamespacedStatefulSetStatus) | **PATCH** /apis/apps/v1beta1/namespaces/{namespace}/statefulsets/{name}/status | -[**readNamespacedDeployment**](Apps_v1beta1Api.md#readNamespacedDeployment) | **GET** /apis/apps/v1beta1/namespaces/{namespace}/deployments/{name} | -[**readNamespacedDeploymentStatus**](Apps_v1beta1Api.md#readNamespacedDeploymentStatus) | **GET** /apis/apps/v1beta1/namespaces/{namespace}/deployments/{name}/status | -[**readNamespacedScaleScale**](Apps_v1beta1Api.md#readNamespacedScaleScale) | **GET** /apis/apps/v1beta1/namespaces/{namespace}/deployments/{name}/scale | -[**readNamespacedStatefulSet**](Apps_v1beta1Api.md#readNamespacedStatefulSet) | **GET** /apis/apps/v1beta1/namespaces/{namespace}/statefulsets/{name} | -[**readNamespacedStatefulSetStatus**](Apps_v1beta1Api.md#readNamespacedStatefulSetStatus) | **GET** /apis/apps/v1beta1/namespaces/{namespace}/statefulsets/{name}/status | -[**replaceNamespacedDeployment**](Apps_v1beta1Api.md#replaceNamespacedDeployment) | **PUT** /apis/apps/v1beta1/namespaces/{namespace}/deployments/{name} | -[**replaceNamespacedDeploymentStatus**](Apps_v1beta1Api.md#replaceNamespacedDeploymentStatus) | **PUT** /apis/apps/v1beta1/namespaces/{namespace}/deployments/{name}/status | -[**replaceNamespacedScaleScale**](Apps_v1beta1Api.md#replaceNamespacedScaleScale) | **PUT** /apis/apps/v1beta1/namespaces/{namespace}/deployments/{name}/scale | -[**replaceNamespacedStatefulSet**](Apps_v1beta1Api.md#replaceNamespacedStatefulSet) | **PUT** /apis/apps/v1beta1/namespaces/{namespace}/statefulsets/{name} | -[**replaceNamespacedStatefulSetStatus**](Apps_v1beta1Api.md#replaceNamespacedStatefulSetStatus) | **PUT** /apis/apps/v1beta1/namespaces/{namespace}/statefulsets/{name}/status | - - - -# **createNamespacedDeployment** -> AppsV1beta1Deployment createNamespacedDeployment(namespacebody, opts) - - - -create a Deployment - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Apps_v1beta1Api(); - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = new KubernetesJsClient.AppsV1beta1Deployment(); // AppsV1beta1Deployment | - -var opts = { - 'pretty': "pretty_example", // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.createNamespacedDeployment(namespacebody, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**AppsV1beta1Deployment**](AppsV1beta1Deployment.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**AppsV1beta1Deployment**](AppsV1beta1Deployment.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **createNamespacedDeploymentRollbackRollback** -> AppsV1beta1DeploymentRollback createNamespacedDeploymentRollbackRollback(name, namespace, body, opts) - - - -create rollback of a DeploymentRollback - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Apps_v1beta1Api(); - -var name = "name_example"; // String | name of the DeploymentRollback - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = new KubernetesJsClient.AppsV1beta1DeploymentRollback(); // AppsV1beta1DeploymentRollback | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.createNamespacedDeploymentRollbackRollback(name, namespace, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the DeploymentRollback | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**AppsV1beta1DeploymentRollback**](AppsV1beta1DeploymentRollback.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**AppsV1beta1DeploymentRollback**](AppsV1beta1DeploymentRollback.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **createNamespacedStatefulSet** -> V1beta1StatefulSet createNamespacedStatefulSet(namespacebody, opts) - - - -create a StatefulSet - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Apps_v1beta1Api(); - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = new KubernetesJsClient.V1beta1StatefulSet(); // V1beta1StatefulSet | - -var opts = { - 'pretty': "pretty_example", // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.createNamespacedStatefulSet(namespacebody, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1beta1StatefulSet**](V1beta1StatefulSet.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1beta1StatefulSet**](V1beta1StatefulSet.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **deleteCollectionNamespacedDeployment** -> V1Status deleteCollectionNamespacedDeployment(namespace, opts) - - - -delete collection of Deployment - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Apps_v1beta1Api(); - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var opts = { - 'pretty': "pretty_example", // String | If 'true', then the output is pretty printed. - 'fieldSelector': "fieldSelector_example", // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - 'labelSelector': "labelSelector_example", // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - 'resourceVersion': "resourceVersion_example", // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - 'timeoutSeconds': 56, // Number | Timeout for the list/watch call. - 'watch': true // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.deleteCollectionNamespacedDeployment(namespace, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeoutSeconds** | **Number**| Timeout for the list/watch call. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**V1Status**](V1Status.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **deleteCollectionNamespacedStatefulSet** -> V1Status deleteCollectionNamespacedStatefulSet(namespace, opts) - - - -delete collection of StatefulSet - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Apps_v1beta1Api(); - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var opts = { - 'pretty': "pretty_example", // String | If 'true', then the output is pretty printed. - 'fieldSelector': "fieldSelector_example", // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - 'labelSelector': "labelSelector_example", // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - 'resourceVersion': "resourceVersion_example", // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - 'timeoutSeconds': 56, // Number | Timeout for the list/watch call. - 'watch': true // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.deleteCollectionNamespacedStatefulSet(namespace, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeoutSeconds** | **Number**| Timeout for the list/watch call. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**V1Status**](V1Status.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **deleteNamespacedDeployment** -> V1Status deleteNamespacedDeployment(name, namespace, body, opts) - - - -delete a Deployment - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Apps_v1beta1Api(); - -var name = "name_example"; // String | name of the Deployment - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = new KubernetesJsClient.V1DeleteOptions(); // V1DeleteOptions | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. - 'gracePeriodSeconds': 56, // Number | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - 'orphanDependents': true, // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - 'propagationPolicy': "propagationPolicy_example" // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.deleteNamespacedDeployment(name, namespace, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Deployment | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **gracePeriodSeconds** | **Number**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. | [optional] - -### Return type - -[**V1Status**](V1Status.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **deleteNamespacedStatefulSet** -> V1Status deleteNamespacedStatefulSet(name, namespace, body, opts) - - - -delete a StatefulSet - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Apps_v1beta1Api(); - -var name = "name_example"; // String | name of the StatefulSet - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = new KubernetesJsClient.V1DeleteOptions(); // V1DeleteOptions | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. - 'gracePeriodSeconds': 56, // Number | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - 'orphanDependents': true, // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - 'propagationPolicy': "propagationPolicy_example" // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.deleteNamespacedStatefulSet(name, namespace, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the StatefulSet | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **gracePeriodSeconds** | **Number**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. | [optional] - -### Return type - -[**V1Status**](V1Status.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **getAPIResources** -> V1APIResourceList getAPIResources() - - - -get available resources - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Apps_v1beta1Api(); - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.getAPIResources(callback); -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -[**V1APIResourceList**](V1APIResourceList.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **listDeploymentForAllNamespaces** -> AppsV1beta1DeploymentList listDeploymentForAllNamespaces(opts) - - - -list or watch objects of kind Deployment - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Apps_v1beta1Api(); - -var opts = { - 'fieldSelector': "fieldSelector_example", // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - 'labelSelector': "labelSelector_example", // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - 'pretty': "pretty_example", // String | If 'true', then the output is pretty printed. - 'resourceVersion': "resourceVersion_example", // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - 'timeoutSeconds': 56, // Number | Timeout for the list/watch call. - 'watch': true // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.listDeploymentForAllNamespaces(opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeoutSeconds** | **Number**| Timeout for the list/watch call. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**AppsV1beta1DeploymentList**](AppsV1beta1DeploymentList.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - - -# **listNamespacedDeployment** -> AppsV1beta1DeploymentList listNamespacedDeployment(namespace, opts) - - - -list or watch objects of kind Deployment - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Apps_v1beta1Api(); - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var opts = { - 'pretty': "pretty_example", // String | If 'true', then the output is pretty printed. - 'fieldSelector': "fieldSelector_example", // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - 'labelSelector': "labelSelector_example", // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - 'resourceVersion': "resourceVersion_example", // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - 'timeoutSeconds': 56, // Number | Timeout for the list/watch call. - 'watch': true // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.listNamespacedDeployment(namespace, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeoutSeconds** | **Number**| Timeout for the list/watch call. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**AppsV1beta1DeploymentList**](AppsV1beta1DeploymentList.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - - -# **listNamespacedStatefulSet** -> V1beta1StatefulSetList listNamespacedStatefulSet(namespace, opts) - - - -list or watch objects of kind StatefulSet - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Apps_v1beta1Api(); - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var opts = { - 'pretty': "pretty_example", // String | If 'true', then the output is pretty printed. - 'fieldSelector': "fieldSelector_example", // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - 'labelSelector': "labelSelector_example", // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - 'resourceVersion': "resourceVersion_example", // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - 'timeoutSeconds': 56, // Number | Timeout for the list/watch call. - 'watch': true // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.listNamespacedStatefulSet(namespace, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeoutSeconds** | **Number**| Timeout for the list/watch call. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**V1beta1StatefulSetList**](V1beta1StatefulSetList.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - - -# **listStatefulSetForAllNamespaces** -> V1beta1StatefulSetList listStatefulSetForAllNamespaces(opts) - - - -list or watch objects of kind StatefulSet - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Apps_v1beta1Api(); - -var opts = { - 'fieldSelector': "fieldSelector_example", // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - 'labelSelector': "labelSelector_example", // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - 'pretty': "pretty_example", // String | If 'true', then the output is pretty printed. - 'resourceVersion': "resourceVersion_example", // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - 'timeoutSeconds': 56, // Number | Timeout for the list/watch call. - 'watch': true // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.listStatefulSetForAllNamespaces(opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeoutSeconds** | **Number**| Timeout for the list/watch call. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**V1beta1StatefulSetList**](V1beta1StatefulSetList.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - - -# **patchNamespacedDeployment** -> AppsV1beta1Deployment patchNamespacedDeployment(name, namespace, body, opts) - - - -partially update the specified Deployment - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Apps_v1beta1Api(); - -var name = "name_example"; // String | name of the Deployment - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = null; // Object | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.patchNamespacedDeployment(name, namespace, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Deployment | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | **Object**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**AppsV1beta1Deployment**](AppsV1beta1Deployment.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **patchNamespacedDeploymentStatus** -> AppsV1beta1Deployment patchNamespacedDeploymentStatus(name, namespace, body, opts) - - - -partially update status of the specified Deployment - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Apps_v1beta1Api(); - -var name = "name_example"; // String | name of the Deployment - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = null; // Object | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.patchNamespacedDeploymentStatus(name, namespace, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Deployment | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | **Object**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**AppsV1beta1Deployment**](AppsV1beta1Deployment.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **patchNamespacedScaleScale** -> AppsV1beta1Scale patchNamespacedScaleScale(name, namespace, body, opts) - - - -partially update scale of the specified Scale - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Apps_v1beta1Api(); - -var name = "name_example"; // String | name of the Scale - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = null; // Object | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.patchNamespacedScaleScale(name, namespace, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Scale | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | **Object**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**AppsV1beta1Scale**](AppsV1beta1Scale.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **patchNamespacedStatefulSet** -> V1beta1StatefulSet patchNamespacedStatefulSet(name, namespace, body, opts) - - - -partially update the specified StatefulSet - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Apps_v1beta1Api(); - -var name = "name_example"; // String | name of the StatefulSet - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = null; // Object | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.patchNamespacedStatefulSet(name, namespace, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the StatefulSet | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | **Object**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1beta1StatefulSet**](V1beta1StatefulSet.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **patchNamespacedStatefulSetStatus** -> V1beta1StatefulSet patchNamespacedStatefulSetStatus(name, namespace, body, opts) - - - -partially update status of the specified StatefulSet - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Apps_v1beta1Api(); - -var name = "name_example"; // String | name of the StatefulSet - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = null; // Object | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.patchNamespacedStatefulSetStatus(name, namespace, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the StatefulSet | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | **Object**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1beta1StatefulSet**](V1beta1StatefulSet.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **readNamespacedDeployment** -> AppsV1beta1Deployment readNamespacedDeployment(name, namespace, , opts) - - - -read the specified Deployment - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Apps_v1beta1Api(); - -var name = "name_example"; // String | name of the Deployment - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. - 'exact': true, // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. - '_export': true // Boolean | Should this value be exported. Export strips fields that a user can not specify. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.readNamespacedDeployment(name, namespace, , opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Deployment | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **exact** | **Boolean**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. | [optional] - **_export** | **Boolean**| Should this value be exported. Export strips fields that a user can not specify. | [optional] - -### Return type - -[**AppsV1beta1Deployment**](AppsV1beta1Deployment.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **readNamespacedDeploymentStatus** -> AppsV1beta1Deployment readNamespacedDeploymentStatus(name, namespace, , opts) - - - -read status of the specified Deployment - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Apps_v1beta1Api(); - -var name = "name_example"; // String | name of the Deployment - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.readNamespacedDeploymentStatus(name, namespace, , opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Deployment | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**AppsV1beta1Deployment**](AppsV1beta1Deployment.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **readNamespacedScaleScale** -> AppsV1beta1Scale readNamespacedScaleScale(name, namespace, , opts) - - - -read scale of the specified Scale - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Apps_v1beta1Api(); - -var name = "name_example"; // String | name of the Scale - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.readNamespacedScaleScale(name, namespace, , opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Scale | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**AppsV1beta1Scale**](AppsV1beta1Scale.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **readNamespacedStatefulSet** -> V1beta1StatefulSet readNamespacedStatefulSet(name, namespace, , opts) - - - -read the specified StatefulSet - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Apps_v1beta1Api(); - -var name = "name_example"; // String | name of the StatefulSet - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. - 'exact': true, // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. - '_export': true // Boolean | Should this value be exported. Export strips fields that a user can not specify. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.readNamespacedStatefulSet(name, namespace, , opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the StatefulSet | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **exact** | **Boolean**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. | [optional] - **_export** | **Boolean**| Should this value be exported. Export strips fields that a user can not specify. | [optional] - -### Return type - -[**V1beta1StatefulSet**](V1beta1StatefulSet.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **readNamespacedStatefulSetStatus** -> V1beta1StatefulSet readNamespacedStatefulSetStatus(name, namespace, , opts) - - - -read status of the specified StatefulSet - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Apps_v1beta1Api(); - -var name = "name_example"; // String | name of the StatefulSet - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.readNamespacedStatefulSetStatus(name, namespace, , opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the StatefulSet | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1beta1StatefulSet**](V1beta1StatefulSet.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **replaceNamespacedDeployment** -> AppsV1beta1Deployment replaceNamespacedDeployment(name, namespace, body, opts) - - - -replace the specified Deployment - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Apps_v1beta1Api(); - -var name = "name_example"; // String | name of the Deployment - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = new KubernetesJsClient.AppsV1beta1Deployment(); // AppsV1beta1Deployment | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.replaceNamespacedDeployment(name, namespace, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Deployment | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**AppsV1beta1Deployment**](AppsV1beta1Deployment.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**AppsV1beta1Deployment**](AppsV1beta1Deployment.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **replaceNamespacedDeploymentStatus** -> AppsV1beta1Deployment replaceNamespacedDeploymentStatus(name, namespace, body, opts) - - - -replace status of the specified Deployment - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Apps_v1beta1Api(); - -var name = "name_example"; // String | name of the Deployment - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = new KubernetesJsClient.AppsV1beta1Deployment(); // AppsV1beta1Deployment | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.replaceNamespacedDeploymentStatus(name, namespace, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Deployment | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**AppsV1beta1Deployment**](AppsV1beta1Deployment.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**AppsV1beta1Deployment**](AppsV1beta1Deployment.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **replaceNamespacedScaleScale** -> AppsV1beta1Scale replaceNamespacedScaleScale(name, namespace, body, opts) - - - -replace scale of the specified Scale - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Apps_v1beta1Api(); - -var name = "name_example"; // String | name of the Scale - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = new KubernetesJsClient.AppsV1beta1Scale(); // AppsV1beta1Scale | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.replaceNamespacedScaleScale(name, namespace, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Scale | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**AppsV1beta1Scale**](AppsV1beta1Scale.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**AppsV1beta1Scale**](AppsV1beta1Scale.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **replaceNamespacedStatefulSet** -> V1beta1StatefulSet replaceNamespacedStatefulSet(name, namespace, body, opts) - - - -replace the specified StatefulSet - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Apps_v1beta1Api(); - -var name = "name_example"; // String | name of the StatefulSet - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = new KubernetesJsClient.V1beta1StatefulSet(); // V1beta1StatefulSet | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.replaceNamespacedStatefulSet(name, namespace, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the StatefulSet | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1beta1StatefulSet**](V1beta1StatefulSet.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1beta1StatefulSet**](V1beta1StatefulSet.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **replaceNamespacedStatefulSetStatus** -> V1beta1StatefulSet replaceNamespacedStatefulSetStatus(name, namespace, body, opts) - - - -replace status of the specified StatefulSet - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Apps_v1beta1Api(); - -var name = "name_example"; // String | name of the StatefulSet - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = new KubernetesJsClient.V1beta1StatefulSet(); // V1beta1StatefulSet | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.replaceNamespacedStatefulSetStatus(name, namespace, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the StatefulSet | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1beta1StatefulSet**](V1beta1StatefulSet.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1beta1StatefulSet**](V1beta1StatefulSet.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - diff --git a/kubernetes/docs/AuthenticationApi.md b/kubernetes/docs/AuthenticationApi.md deleted file mode 100644 index b08196768b..0000000000 --- a/kubernetes/docs/AuthenticationApi.md +++ /dev/null @@ -1,56 +0,0 @@ -# KubernetesJsClient.AuthenticationApi - -All URIs are relative to *https://localhost* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**getAPIGroup**](AuthenticationApi.md#getAPIGroup) | **GET** /apis/authentication.k8s.io/ | - - - -# **getAPIGroup** -> V1APIGroup getAPIGroup() - - - -get information of a group - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.AuthenticationApi(); - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.getAPIGroup(callback); -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -[**V1APIGroup**](V1APIGroup.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - diff --git a/kubernetes/docs/Authentication_v1Api.md b/kubernetes/docs/Authentication_v1Api.md deleted file mode 100644 index 6139213558..0000000000 --- a/kubernetes/docs/Authentication_v1Api.md +++ /dev/null @@ -1,114 +0,0 @@ -# KubernetesJsClient.Authentication_v1Api - -All URIs are relative to *https://localhost* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**createTokenReview**](Authentication_v1Api.md#createTokenReview) | **POST** /apis/authentication.k8s.io/v1/tokenreviews | -[**getAPIResources**](Authentication_v1Api.md#getAPIResources) | **GET** /apis/authentication.k8s.io/v1/ | - - - -# **createTokenReview** -> V1TokenReview createTokenReview(body, opts) - - - -create a TokenReview - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Authentication_v1Api(); - -var body = new KubernetesJsClient.V1TokenReview(); // V1TokenReview | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.createTokenReview(body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**V1TokenReview**](V1TokenReview.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1TokenReview**](V1TokenReview.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **getAPIResources** -> V1APIResourceList getAPIResources() - - - -get available resources - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Authentication_v1Api(); - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.getAPIResources(callback); -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -[**V1APIResourceList**](V1APIResourceList.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - diff --git a/kubernetes/docs/Authentication_v1beta1Api.md b/kubernetes/docs/Authentication_v1beta1Api.md deleted file mode 100644 index 92371e9c25..0000000000 --- a/kubernetes/docs/Authentication_v1beta1Api.md +++ /dev/null @@ -1,114 +0,0 @@ -# KubernetesJsClient.Authentication_v1beta1Api - -All URIs are relative to *https://localhost* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**createTokenReview**](Authentication_v1beta1Api.md#createTokenReview) | **POST** /apis/authentication.k8s.io/v1beta1/tokenreviews | -[**getAPIResources**](Authentication_v1beta1Api.md#getAPIResources) | **GET** /apis/authentication.k8s.io/v1beta1/ | - - - -# **createTokenReview** -> V1beta1TokenReview createTokenReview(body, opts) - - - -create a TokenReview - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Authentication_v1beta1Api(); - -var body = new KubernetesJsClient.V1beta1TokenReview(); // V1beta1TokenReview | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.createTokenReview(body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**V1beta1TokenReview**](V1beta1TokenReview.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1beta1TokenReview**](V1beta1TokenReview.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **getAPIResources** -> V1APIResourceList getAPIResources() - - - -get available resources - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Authentication_v1beta1Api(); - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.getAPIResources(callback); -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -[**V1APIResourceList**](V1APIResourceList.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - diff --git a/kubernetes/docs/AuthorizationApi.md b/kubernetes/docs/AuthorizationApi.md deleted file mode 100644 index 970b8bc221..0000000000 --- a/kubernetes/docs/AuthorizationApi.md +++ /dev/null @@ -1,56 +0,0 @@ -# KubernetesJsClient.AuthorizationApi - -All URIs are relative to *https://localhost* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**getAPIGroup**](AuthorizationApi.md#getAPIGroup) | **GET** /apis/authorization.k8s.io/ | - - - -# **getAPIGroup** -> V1APIGroup getAPIGroup() - - - -get information of a group - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.AuthorizationApi(); - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.getAPIGroup(callback); -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -[**V1APIGroup**](V1APIGroup.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - diff --git a/kubernetes/docs/Authorization_v1Api.md b/kubernetes/docs/Authorization_v1Api.md deleted file mode 100644 index ac427037b9..0000000000 --- a/kubernetes/docs/Authorization_v1Api.md +++ /dev/null @@ -1,233 +0,0 @@ -# KubernetesJsClient.Authorization_v1Api - -All URIs are relative to *https://localhost* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**createNamespacedLocalSubjectAccessReview**](Authorization_v1Api.md#createNamespacedLocalSubjectAccessReview) | **POST** /apis/authorization.k8s.io/v1/namespaces/{namespace}/localsubjectaccessreviews | -[**createSelfSubjectAccessReview**](Authorization_v1Api.md#createSelfSubjectAccessReview) | **POST** /apis/authorization.k8s.io/v1/selfsubjectaccessreviews | -[**createSubjectAccessReview**](Authorization_v1Api.md#createSubjectAccessReview) | **POST** /apis/authorization.k8s.io/v1/subjectaccessreviews | -[**getAPIResources**](Authorization_v1Api.md#getAPIResources) | **GET** /apis/authorization.k8s.io/v1/ | - - - -# **createNamespacedLocalSubjectAccessReview** -> V1LocalSubjectAccessReview createNamespacedLocalSubjectAccessReview(namespace, body, opts) - - - -create a LocalSubjectAccessReview - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Authorization_v1Api(); - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = new KubernetesJsClient.V1LocalSubjectAccessReview(); // V1LocalSubjectAccessReview | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.createNamespacedLocalSubjectAccessReview(namespace, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1LocalSubjectAccessReview**](V1LocalSubjectAccessReview.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1LocalSubjectAccessReview**](V1LocalSubjectAccessReview.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **createSelfSubjectAccessReview** -> V1SelfSubjectAccessReview createSelfSubjectAccessReview(body, opts) - - - -create a SelfSubjectAccessReview - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Authorization_v1Api(); - -var body = new KubernetesJsClient.V1SelfSubjectAccessReview(); // V1SelfSubjectAccessReview | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.createSelfSubjectAccessReview(body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**V1SelfSubjectAccessReview**](V1SelfSubjectAccessReview.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1SelfSubjectAccessReview**](V1SelfSubjectAccessReview.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **createSubjectAccessReview** -> V1SubjectAccessReview createSubjectAccessReview(body, opts) - - - -create a SubjectAccessReview - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Authorization_v1Api(); - -var body = new KubernetesJsClient.V1SubjectAccessReview(); // V1SubjectAccessReview | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.createSubjectAccessReview(body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**V1SubjectAccessReview**](V1SubjectAccessReview.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1SubjectAccessReview**](V1SubjectAccessReview.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **getAPIResources** -> V1APIResourceList getAPIResources() - - - -get available resources - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Authorization_v1Api(); - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.getAPIResources(callback); -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -[**V1APIResourceList**](V1APIResourceList.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - diff --git a/kubernetes/docs/Authorization_v1beta1Api.md b/kubernetes/docs/Authorization_v1beta1Api.md deleted file mode 100644 index 00751f61d9..0000000000 --- a/kubernetes/docs/Authorization_v1beta1Api.md +++ /dev/null @@ -1,233 +0,0 @@ -# KubernetesJsClient.Authorization_v1beta1Api - -All URIs are relative to *https://localhost* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**createNamespacedLocalSubjectAccessReview**](Authorization_v1beta1Api.md#createNamespacedLocalSubjectAccessReview) | **POST** /apis/authorization.k8s.io/v1beta1/namespaces/{namespace}/localsubjectaccessreviews | -[**createSelfSubjectAccessReview**](Authorization_v1beta1Api.md#createSelfSubjectAccessReview) | **POST** /apis/authorization.k8s.io/v1beta1/selfsubjectaccessreviews | -[**createSubjectAccessReview**](Authorization_v1beta1Api.md#createSubjectAccessReview) | **POST** /apis/authorization.k8s.io/v1beta1/subjectaccessreviews | -[**getAPIResources**](Authorization_v1beta1Api.md#getAPIResources) | **GET** /apis/authorization.k8s.io/v1beta1/ | - - - -# **createNamespacedLocalSubjectAccessReview** -> V1beta1LocalSubjectAccessReview createNamespacedLocalSubjectAccessReview(namespace, body, opts) - - - -create a LocalSubjectAccessReview - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Authorization_v1beta1Api(); - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = new KubernetesJsClient.V1beta1LocalSubjectAccessReview(); // V1beta1LocalSubjectAccessReview | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.createNamespacedLocalSubjectAccessReview(namespace, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1beta1LocalSubjectAccessReview**](V1beta1LocalSubjectAccessReview.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1beta1LocalSubjectAccessReview**](V1beta1LocalSubjectAccessReview.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **createSelfSubjectAccessReview** -> V1beta1SelfSubjectAccessReview createSelfSubjectAccessReview(body, opts) - - - -create a SelfSubjectAccessReview - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Authorization_v1beta1Api(); - -var body = new KubernetesJsClient.V1beta1SelfSubjectAccessReview(); // V1beta1SelfSubjectAccessReview | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.createSelfSubjectAccessReview(body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**V1beta1SelfSubjectAccessReview**](V1beta1SelfSubjectAccessReview.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1beta1SelfSubjectAccessReview**](V1beta1SelfSubjectAccessReview.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **createSubjectAccessReview** -> V1beta1SubjectAccessReview createSubjectAccessReview(body, opts) - - - -create a SubjectAccessReview - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Authorization_v1beta1Api(); - -var body = new KubernetesJsClient.V1beta1SubjectAccessReview(); // V1beta1SubjectAccessReview | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.createSubjectAccessReview(body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**V1beta1SubjectAccessReview**](V1beta1SubjectAccessReview.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1beta1SubjectAccessReview**](V1beta1SubjectAccessReview.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **getAPIResources** -> V1APIResourceList getAPIResources() - - - -get available resources - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Authorization_v1beta1Api(); - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.getAPIResources(callback); -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -[**V1APIResourceList**](V1APIResourceList.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - diff --git a/kubernetes/docs/AutoscalingApi.md b/kubernetes/docs/AutoscalingApi.md deleted file mode 100644 index 2b6bd244a2..0000000000 --- a/kubernetes/docs/AutoscalingApi.md +++ /dev/null @@ -1,56 +0,0 @@ -# KubernetesJsClient.AutoscalingApi - -All URIs are relative to *https://localhost* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**getAPIGroup**](AutoscalingApi.md#getAPIGroup) | **GET** /apis/autoscaling/ | - - - -# **getAPIGroup** -> V1APIGroup getAPIGroup() - - - -get information of a group - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.AutoscalingApi(); - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.getAPIGroup(callback); -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -[**V1APIGroup**](V1APIGroup.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - diff --git a/kubernetes/docs/Autoscaling_v1Api.md b/kubernetes/docs/Autoscaling_v1Api.md deleted file mode 100644 index cad8594ed7..0000000000 --- a/kubernetes/docs/Autoscaling_v1Api.md +++ /dev/null @@ -1,770 +0,0 @@ -# KubernetesJsClient.Autoscaling_v1Api - -All URIs are relative to *https://localhost* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**createNamespacedHorizontalPodAutoscaler**](Autoscaling_v1Api.md#createNamespacedHorizontalPodAutoscaler) | **POST** /apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers | -[**deleteCollectionNamespacedHorizontalPodAutoscaler**](Autoscaling_v1Api.md#deleteCollectionNamespacedHorizontalPodAutoscaler) | **DELETE** /apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers | -[**deleteNamespacedHorizontalPodAutoscaler**](Autoscaling_v1Api.md#deleteNamespacedHorizontalPodAutoscaler) | **DELETE** /apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name} | -[**getAPIResources**](Autoscaling_v1Api.md#getAPIResources) | **GET** /apis/autoscaling/v1/ | -[**listHorizontalPodAutoscalerForAllNamespaces**](Autoscaling_v1Api.md#listHorizontalPodAutoscalerForAllNamespaces) | **GET** /apis/autoscaling/v1/horizontalpodautoscalers | -[**listNamespacedHorizontalPodAutoscaler**](Autoscaling_v1Api.md#listNamespacedHorizontalPodAutoscaler) | **GET** /apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers | -[**patchNamespacedHorizontalPodAutoscaler**](Autoscaling_v1Api.md#patchNamespacedHorizontalPodAutoscaler) | **PATCH** /apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name} | -[**patchNamespacedHorizontalPodAutoscalerStatus**](Autoscaling_v1Api.md#patchNamespacedHorizontalPodAutoscalerStatus) | **PATCH** /apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status | -[**readNamespacedHorizontalPodAutoscaler**](Autoscaling_v1Api.md#readNamespacedHorizontalPodAutoscaler) | **GET** /apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name} | -[**readNamespacedHorizontalPodAutoscalerStatus**](Autoscaling_v1Api.md#readNamespacedHorizontalPodAutoscalerStatus) | **GET** /apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status | -[**replaceNamespacedHorizontalPodAutoscaler**](Autoscaling_v1Api.md#replaceNamespacedHorizontalPodAutoscaler) | **PUT** /apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name} | -[**replaceNamespacedHorizontalPodAutoscalerStatus**](Autoscaling_v1Api.md#replaceNamespacedHorizontalPodAutoscalerStatus) | **PUT** /apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status | - - - -# **createNamespacedHorizontalPodAutoscaler** -> V1HorizontalPodAutoscaler createNamespacedHorizontalPodAutoscaler(namespacebody, opts) - - - -create a HorizontalPodAutoscaler - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Autoscaling_v1Api(); - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = new KubernetesJsClient.V1HorizontalPodAutoscaler(); // V1HorizontalPodAutoscaler | - -var opts = { - 'pretty': "pretty_example", // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.createNamespacedHorizontalPodAutoscaler(namespacebody, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1HorizontalPodAutoscaler**](V1HorizontalPodAutoscaler.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1HorizontalPodAutoscaler**](V1HorizontalPodAutoscaler.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **deleteCollectionNamespacedHorizontalPodAutoscaler** -> V1Status deleteCollectionNamespacedHorizontalPodAutoscaler(namespace, opts) - - - -delete collection of HorizontalPodAutoscaler - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Autoscaling_v1Api(); - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var opts = { - 'pretty': "pretty_example", // String | If 'true', then the output is pretty printed. - 'fieldSelector': "fieldSelector_example", // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - 'labelSelector': "labelSelector_example", // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - 'resourceVersion': "resourceVersion_example", // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - 'timeoutSeconds': 56, // Number | Timeout for the list/watch call. - 'watch': true // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.deleteCollectionNamespacedHorizontalPodAutoscaler(namespace, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeoutSeconds** | **Number**| Timeout for the list/watch call. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**V1Status**](V1Status.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **deleteNamespacedHorizontalPodAutoscaler** -> V1Status deleteNamespacedHorizontalPodAutoscaler(name, namespace, body, opts) - - - -delete a HorizontalPodAutoscaler - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Autoscaling_v1Api(); - -var name = "name_example"; // String | name of the HorizontalPodAutoscaler - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = new KubernetesJsClient.V1DeleteOptions(); // V1DeleteOptions | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. - 'gracePeriodSeconds': 56, // Number | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - 'orphanDependents': true, // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - 'propagationPolicy': "propagationPolicy_example" // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.deleteNamespacedHorizontalPodAutoscaler(name, namespace, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the HorizontalPodAutoscaler | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **gracePeriodSeconds** | **Number**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. | [optional] - -### Return type - -[**V1Status**](V1Status.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **getAPIResources** -> V1APIResourceList getAPIResources() - - - -get available resources - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Autoscaling_v1Api(); - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.getAPIResources(callback); -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -[**V1APIResourceList**](V1APIResourceList.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **listHorizontalPodAutoscalerForAllNamespaces** -> V1HorizontalPodAutoscalerList listHorizontalPodAutoscalerForAllNamespaces(opts) - - - -list or watch objects of kind HorizontalPodAutoscaler - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Autoscaling_v1Api(); - -var opts = { - 'fieldSelector': "fieldSelector_example", // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - 'labelSelector': "labelSelector_example", // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - 'pretty': "pretty_example", // String | If 'true', then the output is pretty printed. - 'resourceVersion': "resourceVersion_example", // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - 'timeoutSeconds': 56, // Number | Timeout for the list/watch call. - 'watch': true // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.listHorizontalPodAutoscalerForAllNamespaces(opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeoutSeconds** | **Number**| Timeout for the list/watch call. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**V1HorizontalPodAutoscalerList**](V1HorizontalPodAutoscalerList.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - - -# **listNamespacedHorizontalPodAutoscaler** -> V1HorizontalPodAutoscalerList listNamespacedHorizontalPodAutoscaler(namespace, opts) - - - -list or watch objects of kind HorizontalPodAutoscaler - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Autoscaling_v1Api(); - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var opts = { - 'pretty': "pretty_example", // String | If 'true', then the output is pretty printed. - 'fieldSelector': "fieldSelector_example", // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - 'labelSelector': "labelSelector_example", // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - 'resourceVersion': "resourceVersion_example", // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - 'timeoutSeconds': 56, // Number | Timeout for the list/watch call. - 'watch': true // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.listNamespacedHorizontalPodAutoscaler(namespace, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeoutSeconds** | **Number**| Timeout for the list/watch call. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**V1HorizontalPodAutoscalerList**](V1HorizontalPodAutoscalerList.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - - -# **patchNamespacedHorizontalPodAutoscaler** -> V1HorizontalPodAutoscaler patchNamespacedHorizontalPodAutoscaler(name, namespace, body, opts) - - - -partially update the specified HorizontalPodAutoscaler - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Autoscaling_v1Api(); - -var name = "name_example"; // String | name of the HorizontalPodAutoscaler - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = null; // Object | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.patchNamespacedHorizontalPodAutoscaler(name, namespace, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the HorizontalPodAutoscaler | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | **Object**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1HorizontalPodAutoscaler**](V1HorizontalPodAutoscaler.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **patchNamespacedHorizontalPodAutoscalerStatus** -> V1HorizontalPodAutoscaler patchNamespacedHorizontalPodAutoscalerStatus(name, namespace, body, opts) - - - -partially update status of the specified HorizontalPodAutoscaler - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Autoscaling_v1Api(); - -var name = "name_example"; // String | name of the HorizontalPodAutoscaler - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = null; // Object | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.patchNamespacedHorizontalPodAutoscalerStatus(name, namespace, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the HorizontalPodAutoscaler | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | **Object**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1HorizontalPodAutoscaler**](V1HorizontalPodAutoscaler.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **readNamespacedHorizontalPodAutoscaler** -> V1HorizontalPodAutoscaler readNamespacedHorizontalPodAutoscaler(name, namespace, , opts) - - - -read the specified HorizontalPodAutoscaler - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Autoscaling_v1Api(); - -var name = "name_example"; // String | name of the HorizontalPodAutoscaler - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. - 'exact': true, // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. - '_export': true // Boolean | Should this value be exported. Export strips fields that a user can not specify. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.readNamespacedHorizontalPodAutoscaler(name, namespace, , opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the HorizontalPodAutoscaler | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **exact** | **Boolean**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. | [optional] - **_export** | **Boolean**| Should this value be exported. Export strips fields that a user can not specify. | [optional] - -### Return type - -[**V1HorizontalPodAutoscaler**](V1HorizontalPodAutoscaler.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **readNamespacedHorizontalPodAutoscalerStatus** -> V1HorizontalPodAutoscaler readNamespacedHorizontalPodAutoscalerStatus(name, namespace, , opts) - - - -read status of the specified HorizontalPodAutoscaler - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Autoscaling_v1Api(); - -var name = "name_example"; // String | name of the HorizontalPodAutoscaler - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.readNamespacedHorizontalPodAutoscalerStatus(name, namespace, , opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the HorizontalPodAutoscaler | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1HorizontalPodAutoscaler**](V1HorizontalPodAutoscaler.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **replaceNamespacedHorizontalPodAutoscaler** -> V1HorizontalPodAutoscaler replaceNamespacedHorizontalPodAutoscaler(name, namespace, body, opts) - - - -replace the specified HorizontalPodAutoscaler - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Autoscaling_v1Api(); - -var name = "name_example"; // String | name of the HorizontalPodAutoscaler - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = new KubernetesJsClient.V1HorizontalPodAutoscaler(); // V1HorizontalPodAutoscaler | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.replaceNamespacedHorizontalPodAutoscaler(name, namespace, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the HorizontalPodAutoscaler | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1HorizontalPodAutoscaler**](V1HorizontalPodAutoscaler.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1HorizontalPodAutoscaler**](V1HorizontalPodAutoscaler.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **replaceNamespacedHorizontalPodAutoscalerStatus** -> V1HorizontalPodAutoscaler replaceNamespacedHorizontalPodAutoscalerStatus(name, namespace, body, opts) - - - -replace status of the specified HorizontalPodAutoscaler - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Autoscaling_v1Api(); - -var name = "name_example"; // String | name of the HorizontalPodAutoscaler - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = new KubernetesJsClient.V1HorizontalPodAutoscaler(); // V1HorizontalPodAutoscaler | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.replaceNamespacedHorizontalPodAutoscalerStatus(name, namespace, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the HorizontalPodAutoscaler | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1HorizontalPodAutoscaler**](V1HorizontalPodAutoscaler.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1HorizontalPodAutoscaler**](V1HorizontalPodAutoscaler.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - diff --git a/kubernetes/docs/Autoscaling_v2alpha1Api.md b/kubernetes/docs/Autoscaling_v2alpha1Api.md deleted file mode 100644 index c3769aabbf..0000000000 --- a/kubernetes/docs/Autoscaling_v2alpha1Api.md +++ /dev/null @@ -1,770 +0,0 @@ -# KubernetesJsClient.Autoscaling_v2alpha1Api - -All URIs are relative to *https://localhost* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**createNamespacedHorizontalPodAutoscaler**](Autoscaling_v2alpha1Api.md#createNamespacedHorizontalPodAutoscaler) | **POST** /apis/autoscaling/v2alpha1/namespaces/{namespace}/horizontalpodautoscalers | -[**deleteCollectionNamespacedHorizontalPodAutoscaler**](Autoscaling_v2alpha1Api.md#deleteCollectionNamespacedHorizontalPodAutoscaler) | **DELETE** /apis/autoscaling/v2alpha1/namespaces/{namespace}/horizontalpodautoscalers | -[**deleteNamespacedHorizontalPodAutoscaler**](Autoscaling_v2alpha1Api.md#deleteNamespacedHorizontalPodAutoscaler) | **DELETE** /apis/autoscaling/v2alpha1/namespaces/{namespace}/horizontalpodautoscalers/{name} | -[**getAPIResources**](Autoscaling_v2alpha1Api.md#getAPIResources) | **GET** /apis/autoscaling/v2alpha1/ | -[**listHorizontalPodAutoscalerForAllNamespaces**](Autoscaling_v2alpha1Api.md#listHorizontalPodAutoscalerForAllNamespaces) | **GET** /apis/autoscaling/v2alpha1/horizontalpodautoscalers | -[**listNamespacedHorizontalPodAutoscaler**](Autoscaling_v2alpha1Api.md#listNamespacedHorizontalPodAutoscaler) | **GET** /apis/autoscaling/v2alpha1/namespaces/{namespace}/horizontalpodautoscalers | -[**patchNamespacedHorizontalPodAutoscaler**](Autoscaling_v2alpha1Api.md#patchNamespacedHorizontalPodAutoscaler) | **PATCH** /apis/autoscaling/v2alpha1/namespaces/{namespace}/horizontalpodautoscalers/{name} | -[**patchNamespacedHorizontalPodAutoscalerStatus**](Autoscaling_v2alpha1Api.md#patchNamespacedHorizontalPodAutoscalerStatus) | **PATCH** /apis/autoscaling/v2alpha1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status | -[**readNamespacedHorizontalPodAutoscaler**](Autoscaling_v2alpha1Api.md#readNamespacedHorizontalPodAutoscaler) | **GET** /apis/autoscaling/v2alpha1/namespaces/{namespace}/horizontalpodautoscalers/{name} | -[**readNamespacedHorizontalPodAutoscalerStatus**](Autoscaling_v2alpha1Api.md#readNamespacedHorizontalPodAutoscalerStatus) | **GET** /apis/autoscaling/v2alpha1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status | -[**replaceNamespacedHorizontalPodAutoscaler**](Autoscaling_v2alpha1Api.md#replaceNamespacedHorizontalPodAutoscaler) | **PUT** /apis/autoscaling/v2alpha1/namespaces/{namespace}/horizontalpodautoscalers/{name} | -[**replaceNamespacedHorizontalPodAutoscalerStatus**](Autoscaling_v2alpha1Api.md#replaceNamespacedHorizontalPodAutoscalerStatus) | **PUT** /apis/autoscaling/v2alpha1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status | - - - -# **createNamespacedHorizontalPodAutoscaler** -> V2alpha1HorizontalPodAutoscaler createNamespacedHorizontalPodAutoscaler(namespacebody, opts) - - - -create a HorizontalPodAutoscaler - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Autoscaling_v2alpha1Api(); - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = new KubernetesJsClient.V2alpha1HorizontalPodAutoscaler(); // V2alpha1HorizontalPodAutoscaler | - -var opts = { - 'pretty': "pretty_example", // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.createNamespacedHorizontalPodAutoscaler(namespacebody, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V2alpha1HorizontalPodAutoscaler**](V2alpha1HorizontalPodAutoscaler.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V2alpha1HorizontalPodAutoscaler**](V2alpha1HorizontalPodAutoscaler.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **deleteCollectionNamespacedHorizontalPodAutoscaler** -> V1Status deleteCollectionNamespacedHorizontalPodAutoscaler(namespace, opts) - - - -delete collection of HorizontalPodAutoscaler - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Autoscaling_v2alpha1Api(); - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var opts = { - 'pretty': "pretty_example", // String | If 'true', then the output is pretty printed. - 'fieldSelector': "fieldSelector_example", // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - 'labelSelector': "labelSelector_example", // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - 'resourceVersion': "resourceVersion_example", // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - 'timeoutSeconds': 56, // Number | Timeout for the list/watch call. - 'watch': true // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.deleteCollectionNamespacedHorizontalPodAutoscaler(namespace, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeoutSeconds** | **Number**| Timeout for the list/watch call. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**V1Status**](V1Status.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **deleteNamespacedHorizontalPodAutoscaler** -> V1Status deleteNamespacedHorizontalPodAutoscaler(name, namespace, body, opts) - - - -delete a HorizontalPodAutoscaler - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Autoscaling_v2alpha1Api(); - -var name = "name_example"; // String | name of the HorizontalPodAutoscaler - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = new KubernetesJsClient.V1DeleteOptions(); // V1DeleteOptions | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. - 'gracePeriodSeconds': 56, // Number | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - 'orphanDependents': true, // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - 'propagationPolicy': "propagationPolicy_example" // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.deleteNamespacedHorizontalPodAutoscaler(name, namespace, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the HorizontalPodAutoscaler | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **gracePeriodSeconds** | **Number**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. | [optional] - -### Return type - -[**V1Status**](V1Status.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **getAPIResources** -> V1APIResourceList getAPIResources() - - - -get available resources - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Autoscaling_v2alpha1Api(); - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.getAPIResources(callback); -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -[**V1APIResourceList**](V1APIResourceList.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **listHorizontalPodAutoscalerForAllNamespaces** -> V2alpha1HorizontalPodAutoscalerList listHorizontalPodAutoscalerForAllNamespaces(opts) - - - -list or watch objects of kind HorizontalPodAutoscaler - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Autoscaling_v2alpha1Api(); - -var opts = { - 'fieldSelector': "fieldSelector_example", // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - 'labelSelector': "labelSelector_example", // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - 'pretty': "pretty_example", // String | If 'true', then the output is pretty printed. - 'resourceVersion': "resourceVersion_example", // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - 'timeoutSeconds': 56, // Number | Timeout for the list/watch call. - 'watch': true // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.listHorizontalPodAutoscalerForAllNamespaces(opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeoutSeconds** | **Number**| Timeout for the list/watch call. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**V2alpha1HorizontalPodAutoscalerList**](V2alpha1HorizontalPodAutoscalerList.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - - -# **listNamespacedHorizontalPodAutoscaler** -> V2alpha1HorizontalPodAutoscalerList listNamespacedHorizontalPodAutoscaler(namespace, opts) - - - -list or watch objects of kind HorizontalPodAutoscaler - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Autoscaling_v2alpha1Api(); - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var opts = { - 'pretty': "pretty_example", // String | If 'true', then the output is pretty printed. - 'fieldSelector': "fieldSelector_example", // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - 'labelSelector': "labelSelector_example", // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - 'resourceVersion': "resourceVersion_example", // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - 'timeoutSeconds': 56, // Number | Timeout for the list/watch call. - 'watch': true // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.listNamespacedHorizontalPodAutoscaler(namespace, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeoutSeconds** | **Number**| Timeout for the list/watch call. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**V2alpha1HorizontalPodAutoscalerList**](V2alpha1HorizontalPodAutoscalerList.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - - -# **patchNamespacedHorizontalPodAutoscaler** -> V2alpha1HorizontalPodAutoscaler patchNamespacedHorizontalPodAutoscaler(name, namespace, body, opts) - - - -partially update the specified HorizontalPodAutoscaler - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Autoscaling_v2alpha1Api(); - -var name = "name_example"; // String | name of the HorizontalPodAutoscaler - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = null; // Object | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.patchNamespacedHorizontalPodAutoscaler(name, namespace, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the HorizontalPodAutoscaler | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | **Object**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V2alpha1HorizontalPodAutoscaler**](V2alpha1HorizontalPodAutoscaler.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **patchNamespacedHorizontalPodAutoscalerStatus** -> V2alpha1HorizontalPodAutoscaler patchNamespacedHorizontalPodAutoscalerStatus(name, namespace, body, opts) - - - -partially update status of the specified HorizontalPodAutoscaler - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Autoscaling_v2alpha1Api(); - -var name = "name_example"; // String | name of the HorizontalPodAutoscaler - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = null; // Object | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.patchNamespacedHorizontalPodAutoscalerStatus(name, namespace, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the HorizontalPodAutoscaler | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | **Object**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V2alpha1HorizontalPodAutoscaler**](V2alpha1HorizontalPodAutoscaler.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **readNamespacedHorizontalPodAutoscaler** -> V2alpha1HorizontalPodAutoscaler readNamespacedHorizontalPodAutoscaler(name, namespace, , opts) - - - -read the specified HorizontalPodAutoscaler - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Autoscaling_v2alpha1Api(); - -var name = "name_example"; // String | name of the HorizontalPodAutoscaler - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. - 'exact': true, // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. - '_export': true // Boolean | Should this value be exported. Export strips fields that a user can not specify. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.readNamespacedHorizontalPodAutoscaler(name, namespace, , opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the HorizontalPodAutoscaler | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **exact** | **Boolean**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. | [optional] - **_export** | **Boolean**| Should this value be exported. Export strips fields that a user can not specify. | [optional] - -### Return type - -[**V2alpha1HorizontalPodAutoscaler**](V2alpha1HorizontalPodAutoscaler.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **readNamespacedHorizontalPodAutoscalerStatus** -> V2alpha1HorizontalPodAutoscaler readNamespacedHorizontalPodAutoscalerStatus(name, namespace, , opts) - - - -read status of the specified HorizontalPodAutoscaler - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Autoscaling_v2alpha1Api(); - -var name = "name_example"; // String | name of the HorizontalPodAutoscaler - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.readNamespacedHorizontalPodAutoscalerStatus(name, namespace, , opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the HorizontalPodAutoscaler | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V2alpha1HorizontalPodAutoscaler**](V2alpha1HorizontalPodAutoscaler.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **replaceNamespacedHorizontalPodAutoscaler** -> V2alpha1HorizontalPodAutoscaler replaceNamespacedHorizontalPodAutoscaler(name, namespace, body, opts) - - - -replace the specified HorizontalPodAutoscaler - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Autoscaling_v2alpha1Api(); - -var name = "name_example"; // String | name of the HorizontalPodAutoscaler - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = new KubernetesJsClient.V2alpha1HorizontalPodAutoscaler(); // V2alpha1HorizontalPodAutoscaler | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.replaceNamespacedHorizontalPodAutoscaler(name, namespace, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the HorizontalPodAutoscaler | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V2alpha1HorizontalPodAutoscaler**](V2alpha1HorizontalPodAutoscaler.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V2alpha1HorizontalPodAutoscaler**](V2alpha1HorizontalPodAutoscaler.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **replaceNamespacedHorizontalPodAutoscalerStatus** -> V2alpha1HorizontalPodAutoscaler replaceNamespacedHorizontalPodAutoscalerStatus(name, namespace, body, opts) - - - -replace status of the specified HorizontalPodAutoscaler - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Autoscaling_v2alpha1Api(); - -var name = "name_example"; // String | name of the HorizontalPodAutoscaler - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = new KubernetesJsClient.V2alpha1HorizontalPodAutoscaler(); // V2alpha1HorizontalPodAutoscaler | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.replaceNamespacedHorizontalPodAutoscalerStatus(name, namespace, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the HorizontalPodAutoscaler | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V2alpha1HorizontalPodAutoscaler**](V2alpha1HorizontalPodAutoscaler.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V2alpha1HorizontalPodAutoscaler**](V2alpha1HorizontalPodAutoscaler.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - diff --git a/kubernetes/docs/BatchApi.md b/kubernetes/docs/BatchApi.md deleted file mode 100644 index 35a3dc465b..0000000000 --- a/kubernetes/docs/BatchApi.md +++ /dev/null @@ -1,56 +0,0 @@ -# KubernetesJsClient.BatchApi - -All URIs are relative to *https://localhost* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**getAPIGroup**](BatchApi.md#getAPIGroup) | **GET** /apis/batch/ | - - - -# **getAPIGroup** -> V1APIGroup getAPIGroup() - - - -get information of a group - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.BatchApi(); - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.getAPIGroup(callback); -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -[**V1APIGroup**](V1APIGroup.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - diff --git a/kubernetes/docs/Batch_v1Api.md b/kubernetes/docs/Batch_v1Api.md deleted file mode 100644 index 87d5d07b94..0000000000 --- a/kubernetes/docs/Batch_v1Api.md +++ /dev/null @@ -1,770 +0,0 @@ -# KubernetesJsClient.Batch_v1Api - -All URIs are relative to *https://localhost* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**createNamespacedJob**](Batch_v1Api.md#createNamespacedJob) | **POST** /apis/batch/v1/namespaces/{namespace}/jobs | -[**deleteCollectionNamespacedJob**](Batch_v1Api.md#deleteCollectionNamespacedJob) | **DELETE** /apis/batch/v1/namespaces/{namespace}/jobs | -[**deleteNamespacedJob**](Batch_v1Api.md#deleteNamespacedJob) | **DELETE** /apis/batch/v1/namespaces/{namespace}/jobs/{name} | -[**getAPIResources**](Batch_v1Api.md#getAPIResources) | **GET** /apis/batch/v1/ | -[**listJobForAllNamespaces**](Batch_v1Api.md#listJobForAllNamespaces) | **GET** /apis/batch/v1/jobs | -[**listNamespacedJob**](Batch_v1Api.md#listNamespacedJob) | **GET** /apis/batch/v1/namespaces/{namespace}/jobs | -[**patchNamespacedJob**](Batch_v1Api.md#patchNamespacedJob) | **PATCH** /apis/batch/v1/namespaces/{namespace}/jobs/{name} | -[**patchNamespacedJobStatus**](Batch_v1Api.md#patchNamespacedJobStatus) | **PATCH** /apis/batch/v1/namespaces/{namespace}/jobs/{name}/status | -[**readNamespacedJob**](Batch_v1Api.md#readNamespacedJob) | **GET** /apis/batch/v1/namespaces/{namespace}/jobs/{name} | -[**readNamespacedJobStatus**](Batch_v1Api.md#readNamespacedJobStatus) | **GET** /apis/batch/v1/namespaces/{namespace}/jobs/{name}/status | -[**replaceNamespacedJob**](Batch_v1Api.md#replaceNamespacedJob) | **PUT** /apis/batch/v1/namespaces/{namespace}/jobs/{name} | -[**replaceNamespacedJobStatus**](Batch_v1Api.md#replaceNamespacedJobStatus) | **PUT** /apis/batch/v1/namespaces/{namespace}/jobs/{name}/status | - - - -# **createNamespacedJob** -> V1Job createNamespacedJob(namespacebody, opts) - - - -create a Job - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Batch_v1Api(); - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = new KubernetesJsClient.V1Job(); // V1Job | - -var opts = { - 'pretty': "pretty_example", // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.createNamespacedJob(namespacebody, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1Job**](V1Job.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1Job**](V1Job.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **deleteCollectionNamespacedJob** -> V1Status deleteCollectionNamespacedJob(namespace, opts) - - - -delete collection of Job - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Batch_v1Api(); - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var opts = { - 'pretty': "pretty_example", // String | If 'true', then the output is pretty printed. - 'fieldSelector': "fieldSelector_example", // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - 'labelSelector': "labelSelector_example", // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - 'resourceVersion': "resourceVersion_example", // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - 'timeoutSeconds': 56, // Number | Timeout for the list/watch call. - 'watch': true // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.deleteCollectionNamespacedJob(namespace, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeoutSeconds** | **Number**| Timeout for the list/watch call. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**V1Status**](V1Status.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **deleteNamespacedJob** -> V1Status deleteNamespacedJob(name, namespace, body, opts) - - - -delete a Job - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Batch_v1Api(); - -var name = "name_example"; // String | name of the Job - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = new KubernetesJsClient.V1DeleteOptions(); // V1DeleteOptions | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. - 'gracePeriodSeconds': 56, // Number | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - 'orphanDependents': true, // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - 'propagationPolicy': "propagationPolicy_example" // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.deleteNamespacedJob(name, namespace, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Job | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **gracePeriodSeconds** | **Number**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. | [optional] - -### Return type - -[**V1Status**](V1Status.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **getAPIResources** -> V1APIResourceList getAPIResources() - - - -get available resources - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Batch_v1Api(); - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.getAPIResources(callback); -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -[**V1APIResourceList**](V1APIResourceList.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **listJobForAllNamespaces** -> V1JobList listJobForAllNamespaces(opts) - - - -list or watch objects of kind Job - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Batch_v1Api(); - -var opts = { - 'fieldSelector': "fieldSelector_example", // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - 'labelSelector': "labelSelector_example", // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - 'pretty': "pretty_example", // String | If 'true', then the output is pretty printed. - 'resourceVersion': "resourceVersion_example", // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - 'timeoutSeconds': 56, // Number | Timeout for the list/watch call. - 'watch': true // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.listJobForAllNamespaces(opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeoutSeconds** | **Number**| Timeout for the list/watch call. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**V1JobList**](V1JobList.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - - -# **listNamespacedJob** -> V1JobList listNamespacedJob(namespace, opts) - - - -list or watch objects of kind Job - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Batch_v1Api(); - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var opts = { - 'pretty': "pretty_example", // String | If 'true', then the output is pretty printed. - 'fieldSelector': "fieldSelector_example", // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - 'labelSelector': "labelSelector_example", // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - 'resourceVersion': "resourceVersion_example", // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - 'timeoutSeconds': 56, // Number | Timeout for the list/watch call. - 'watch': true // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.listNamespacedJob(namespace, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeoutSeconds** | **Number**| Timeout for the list/watch call. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**V1JobList**](V1JobList.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - - -# **patchNamespacedJob** -> V1Job patchNamespacedJob(name, namespace, body, opts) - - - -partially update the specified Job - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Batch_v1Api(); - -var name = "name_example"; // String | name of the Job - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = null; // Object | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.patchNamespacedJob(name, namespace, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Job | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | **Object**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1Job**](V1Job.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **patchNamespacedJobStatus** -> V1Job patchNamespacedJobStatus(name, namespace, body, opts) - - - -partially update status of the specified Job - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Batch_v1Api(); - -var name = "name_example"; // String | name of the Job - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = null; // Object | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.patchNamespacedJobStatus(name, namespace, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Job | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | **Object**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1Job**](V1Job.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **readNamespacedJob** -> V1Job readNamespacedJob(name, namespace, , opts) - - - -read the specified Job - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Batch_v1Api(); - -var name = "name_example"; // String | name of the Job - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. - 'exact': true, // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. - '_export': true // Boolean | Should this value be exported. Export strips fields that a user can not specify. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.readNamespacedJob(name, namespace, , opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Job | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **exact** | **Boolean**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. | [optional] - **_export** | **Boolean**| Should this value be exported. Export strips fields that a user can not specify. | [optional] - -### Return type - -[**V1Job**](V1Job.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **readNamespacedJobStatus** -> V1Job readNamespacedJobStatus(name, namespace, , opts) - - - -read status of the specified Job - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Batch_v1Api(); - -var name = "name_example"; // String | name of the Job - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.readNamespacedJobStatus(name, namespace, , opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Job | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1Job**](V1Job.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **replaceNamespacedJob** -> V1Job replaceNamespacedJob(name, namespace, body, opts) - - - -replace the specified Job - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Batch_v1Api(); - -var name = "name_example"; // String | name of the Job - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = new KubernetesJsClient.V1Job(); // V1Job | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.replaceNamespacedJob(name, namespace, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Job | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1Job**](V1Job.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1Job**](V1Job.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **replaceNamespacedJobStatus** -> V1Job replaceNamespacedJobStatus(name, namespace, body, opts) - - - -replace status of the specified Job - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Batch_v1Api(); - -var name = "name_example"; // String | name of the Job - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = new KubernetesJsClient.V1Job(); // V1Job | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.replaceNamespacedJobStatus(name, namespace, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Job | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1Job**](V1Job.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1Job**](V1Job.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - diff --git a/kubernetes/docs/Batch_v2alpha1Api.md b/kubernetes/docs/Batch_v2alpha1Api.md deleted file mode 100644 index 0409fa749e..0000000000 --- a/kubernetes/docs/Batch_v2alpha1Api.md +++ /dev/null @@ -1,1484 +0,0 @@ -# KubernetesJsClient.Batch_v2alpha1Api - -All URIs are relative to *https://localhost* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**createNamespacedCronJob**](Batch_v2alpha1Api.md#createNamespacedCronJob) | **POST** /apis/batch/v2alpha1/namespaces/{namespace}/cronjobs | -[**createNamespacedScheduledJob**](Batch_v2alpha1Api.md#createNamespacedScheduledJob) | **POST** /apis/batch/v2alpha1/namespaces/{namespace}/scheduledjobs | -[**deleteCollectionNamespacedCronJob**](Batch_v2alpha1Api.md#deleteCollectionNamespacedCronJob) | **DELETE** /apis/batch/v2alpha1/namespaces/{namespace}/cronjobs | -[**deleteCollectionNamespacedScheduledJob**](Batch_v2alpha1Api.md#deleteCollectionNamespacedScheduledJob) | **DELETE** /apis/batch/v2alpha1/namespaces/{namespace}/scheduledjobs | -[**deleteNamespacedCronJob**](Batch_v2alpha1Api.md#deleteNamespacedCronJob) | **DELETE** /apis/batch/v2alpha1/namespaces/{namespace}/cronjobs/{name} | -[**deleteNamespacedScheduledJob**](Batch_v2alpha1Api.md#deleteNamespacedScheduledJob) | **DELETE** /apis/batch/v2alpha1/namespaces/{namespace}/scheduledjobs/{name} | -[**getAPIResources**](Batch_v2alpha1Api.md#getAPIResources) | **GET** /apis/batch/v2alpha1/ | -[**listCronJobForAllNamespaces**](Batch_v2alpha1Api.md#listCronJobForAllNamespaces) | **GET** /apis/batch/v2alpha1/cronjobs | -[**listNamespacedCronJob**](Batch_v2alpha1Api.md#listNamespacedCronJob) | **GET** /apis/batch/v2alpha1/namespaces/{namespace}/cronjobs | -[**listNamespacedScheduledJob**](Batch_v2alpha1Api.md#listNamespacedScheduledJob) | **GET** /apis/batch/v2alpha1/namespaces/{namespace}/scheduledjobs | -[**listScheduledJobForAllNamespaces**](Batch_v2alpha1Api.md#listScheduledJobForAllNamespaces) | **GET** /apis/batch/v2alpha1/scheduledjobs | -[**patchNamespacedCronJob**](Batch_v2alpha1Api.md#patchNamespacedCronJob) | **PATCH** /apis/batch/v2alpha1/namespaces/{namespace}/cronjobs/{name} | -[**patchNamespacedCronJobStatus**](Batch_v2alpha1Api.md#patchNamespacedCronJobStatus) | **PATCH** /apis/batch/v2alpha1/namespaces/{namespace}/cronjobs/{name}/status | -[**patchNamespacedScheduledJob**](Batch_v2alpha1Api.md#patchNamespacedScheduledJob) | **PATCH** /apis/batch/v2alpha1/namespaces/{namespace}/scheduledjobs/{name} | -[**patchNamespacedScheduledJobStatus**](Batch_v2alpha1Api.md#patchNamespacedScheduledJobStatus) | **PATCH** /apis/batch/v2alpha1/namespaces/{namespace}/scheduledjobs/{name}/status | -[**readNamespacedCronJob**](Batch_v2alpha1Api.md#readNamespacedCronJob) | **GET** /apis/batch/v2alpha1/namespaces/{namespace}/cronjobs/{name} | -[**readNamespacedCronJobStatus**](Batch_v2alpha1Api.md#readNamespacedCronJobStatus) | **GET** /apis/batch/v2alpha1/namespaces/{namespace}/cronjobs/{name}/status | -[**readNamespacedScheduledJob**](Batch_v2alpha1Api.md#readNamespacedScheduledJob) | **GET** /apis/batch/v2alpha1/namespaces/{namespace}/scheduledjobs/{name} | -[**readNamespacedScheduledJobStatus**](Batch_v2alpha1Api.md#readNamespacedScheduledJobStatus) | **GET** /apis/batch/v2alpha1/namespaces/{namespace}/scheduledjobs/{name}/status | -[**replaceNamespacedCronJob**](Batch_v2alpha1Api.md#replaceNamespacedCronJob) | **PUT** /apis/batch/v2alpha1/namespaces/{namespace}/cronjobs/{name} | -[**replaceNamespacedCronJobStatus**](Batch_v2alpha1Api.md#replaceNamespacedCronJobStatus) | **PUT** /apis/batch/v2alpha1/namespaces/{namespace}/cronjobs/{name}/status | -[**replaceNamespacedScheduledJob**](Batch_v2alpha1Api.md#replaceNamespacedScheduledJob) | **PUT** /apis/batch/v2alpha1/namespaces/{namespace}/scheduledjobs/{name} | -[**replaceNamespacedScheduledJobStatus**](Batch_v2alpha1Api.md#replaceNamespacedScheduledJobStatus) | **PUT** /apis/batch/v2alpha1/namespaces/{namespace}/scheduledjobs/{name}/status | - - - -# **createNamespacedCronJob** -> V2alpha1CronJob createNamespacedCronJob(namespacebody, opts) - - - -create a CronJob - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Batch_v2alpha1Api(); - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = new KubernetesJsClient.V2alpha1CronJob(); // V2alpha1CronJob | - -var opts = { - 'pretty': "pretty_example", // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.createNamespacedCronJob(namespacebody, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V2alpha1CronJob**](V2alpha1CronJob.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V2alpha1CronJob**](V2alpha1CronJob.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **createNamespacedScheduledJob** -> V2alpha1CronJob createNamespacedScheduledJob(namespacebody, opts) - - - -create a ScheduledJob - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Batch_v2alpha1Api(); - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = new KubernetesJsClient.V2alpha1CronJob(); // V2alpha1CronJob | - -var opts = { - 'pretty': "pretty_example", // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.createNamespacedScheduledJob(namespacebody, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V2alpha1CronJob**](V2alpha1CronJob.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V2alpha1CronJob**](V2alpha1CronJob.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **deleteCollectionNamespacedCronJob** -> V1Status deleteCollectionNamespacedCronJob(namespace, opts) - - - -delete collection of CronJob - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Batch_v2alpha1Api(); - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var opts = { - 'pretty': "pretty_example", // String | If 'true', then the output is pretty printed. - 'fieldSelector': "fieldSelector_example", // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - 'labelSelector': "labelSelector_example", // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - 'resourceVersion': "resourceVersion_example", // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - 'timeoutSeconds': 56, // Number | Timeout for the list/watch call. - 'watch': true // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.deleteCollectionNamespacedCronJob(namespace, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeoutSeconds** | **Number**| Timeout for the list/watch call. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**V1Status**](V1Status.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **deleteCollectionNamespacedScheduledJob** -> V1Status deleteCollectionNamespacedScheduledJob(namespace, opts) - - - -delete collection of ScheduledJob - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Batch_v2alpha1Api(); - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var opts = { - 'pretty': "pretty_example", // String | If 'true', then the output is pretty printed. - 'fieldSelector': "fieldSelector_example", // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - 'labelSelector': "labelSelector_example", // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - 'resourceVersion': "resourceVersion_example", // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - 'timeoutSeconds': 56, // Number | Timeout for the list/watch call. - 'watch': true // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.deleteCollectionNamespacedScheduledJob(namespace, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeoutSeconds** | **Number**| Timeout for the list/watch call. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**V1Status**](V1Status.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **deleteNamespacedCronJob** -> V1Status deleteNamespacedCronJob(name, namespace, body, opts) - - - -delete a CronJob - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Batch_v2alpha1Api(); - -var name = "name_example"; // String | name of the CronJob - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = new KubernetesJsClient.V1DeleteOptions(); // V1DeleteOptions | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. - 'gracePeriodSeconds': 56, // Number | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - 'orphanDependents': true, // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - 'propagationPolicy': "propagationPolicy_example" // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.deleteNamespacedCronJob(name, namespace, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the CronJob | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **gracePeriodSeconds** | **Number**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. | [optional] - -### Return type - -[**V1Status**](V1Status.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **deleteNamespacedScheduledJob** -> V1Status deleteNamespacedScheduledJob(name, namespace, body, opts) - - - -delete a ScheduledJob - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Batch_v2alpha1Api(); - -var name = "name_example"; // String | name of the ScheduledJob - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = new KubernetesJsClient.V1DeleteOptions(); // V1DeleteOptions | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. - 'gracePeriodSeconds': 56, // Number | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - 'orphanDependents': true, // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - 'propagationPolicy': "propagationPolicy_example" // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.deleteNamespacedScheduledJob(name, namespace, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ScheduledJob | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **gracePeriodSeconds** | **Number**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. | [optional] - -### Return type - -[**V1Status**](V1Status.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **getAPIResources** -> V1APIResourceList getAPIResources() - - - -get available resources - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Batch_v2alpha1Api(); - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.getAPIResources(callback); -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -[**V1APIResourceList**](V1APIResourceList.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **listCronJobForAllNamespaces** -> V2alpha1CronJobList listCronJobForAllNamespaces(opts) - - - -list or watch objects of kind CronJob - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Batch_v2alpha1Api(); - -var opts = { - 'fieldSelector': "fieldSelector_example", // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - 'labelSelector': "labelSelector_example", // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - 'pretty': "pretty_example", // String | If 'true', then the output is pretty printed. - 'resourceVersion': "resourceVersion_example", // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - 'timeoutSeconds': 56, // Number | Timeout for the list/watch call. - 'watch': true // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.listCronJobForAllNamespaces(opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeoutSeconds** | **Number**| Timeout for the list/watch call. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**V2alpha1CronJobList**](V2alpha1CronJobList.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - - -# **listNamespacedCronJob** -> V2alpha1CronJobList listNamespacedCronJob(namespace, opts) - - - -list or watch objects of kind CronJob - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Batch_v2alpha1Api(); - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var opts = { - 'pretty': "pretty_example", // String | If 'true', then the output is pretty printed. - 'fieldSelector': "fieldSelector_example", // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - 'labelSelector': "labelSelector_example", // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - 'resourceVersion': "resourceVersion_example", // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - 'timeoutSeconds': 56, // Number | Timeout for the list/watch call. - 'watch': true // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.listNamespacedCronJob(namespace, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeoutSeconds** | **Number**| Timeout for the list/watch call. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**V2alpha1CronJobList**](V2alpha1CronJobList.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - - -# **listNamespacedScheduledJob** -> V2alpha1CronJobList listNamespacedScheduledJob(namespace, opts) - - - -list or watch objects of kind ScheduledJob - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Batch_v2alpha1Api(); - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var opts = { - 'pretty': "pretty_example", // String | If 'true', then the output is pretty printed. - 'fieldSelector': "fieldSelector_example", // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - 'labelSelector': "labelSelector_example", // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - 'resourceVersion': "resourceVersion_example", // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - 'timeoutSeconds': 56, // Number | Timeout for the list/watch call. - 'watch': true // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.listNamespacedScheduledJob(namespace, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeoutSeconds** | **Number**| Timeout for the list/watch call. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**V2alpha1CronJobList**](V2alpha1CronJobList.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - - -# **listScheduledJobForAllNamespaces** -> V2alpha1CronJobList listScheduledJobForAllNamespaces(opts) - - - -list or watch objects of kind ScheduledJob - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Batch_v2alpha1Api(); - -var opts = { - 'fieldSelector': "fieldSelector_example", // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - 'labelSelector': "labelSelector_example", // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - 'pretty': "pretty_example", // String | If 'true', then the output is pretty printed. - 'resourceVersion': "resourceVersion_example", // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - 'timeoutSeconds': 56, // Number | Timeout for the list/watch call. - 'watch': true // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.listScheduledJobForAllNamespaces(opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeoutSeconds** | **Number**| Timeout for the list/watch call. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**V2alpha1CronJobList**](V2alpha1CronJobList.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - - -# **patchNamespacedCronJob** -> V2alpha1CronJob patchNamespacedCronJob(name, namespace, body, opts) - - - -partially update the specified CronJob - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Batch_v2alpha1Api(); - -var name = "name_example"; // String | name of the CronJob - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = null; // Object | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.patchNamespacedCronJob(name, namespace, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the CronJob | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | **Object**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V2alpha1CronJob**](V2alpha1CronJob.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **patchNamespacedCronJobStatus** -> V2alpha1CronJob patchNamespacedCronJobStatus(name, namespace, body, opts) - - - -partially update status of the specified CronJob - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Batch_v2alpha1Api(); - -var name = "name_example"; // String | name of the CronJob - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = null; // Object | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.patchNamespacedCronJobStatus(name, namespace, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the CronJob | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | **Object**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V2alpha1CronJob**](V2alpha1CronJob.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **patchNamespacedScheduledJob** -> V2alpha1CronJob patchNamespacedScheduledJob(name, namespace, body, opts) - - - -partially update the specified ScheduledJob - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Batch_v2alpha1Api(); - -var name = "name_example"; // String | name of the ScheduledJob - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = null; // Object | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.patchNamespacedScheduledJob(name, namespace, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ScheduledJob | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | **Object**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V2alpha1CronJob**](V2alpha1CronJob.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **patchNamespacedScheduledJobStatus** -> V2alpha1CronJob patchNamespacedScheduledJobStatus(name, namespace, body, opts) - - - -partially update status of the specified ScheduledJob - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Batch_v2alpha1Api(); - -var name = "name_example"; // String | name of the ScheduledJob - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = null; // Object | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.patchNamespacedScheduledJobStatus(name, namespace, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ScheduledJob | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | **Object**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V2alpha1CronJob**](V2alpha1CronJob.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **readNamespacedCronJob** -> V2alpha1CronJob readNamespacedCronJob(name, namespace, , opts) - - - -read the specified CronJob - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Batch_v2alpha1Api(); - -var name = "name_example"; // String | name of the CronJob - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. - 'exact': true, // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. - '_export': true // Boolean | Should this value be exported. Export strips fields that a user can not specify. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.readNamespacedCronJob(name, namespace, , opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the CronJob | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **exact** | **Boolean**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. | [optional] - **_export** | **Boolean**| Should this value be exported. Export strips fields that a user can not specify. | [optional] - -### Return type - -[**V2alpha1CronJob**](V2alpha1CronJob.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **readNamespacedCronJobStatus** -> V2alpha1CronJob readNamespacedCronJobStatus(name, namespace, , opts) - - - -read status of the specified CronJob - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Batch_v2alpha1Api(); - -var name = "name_example"; // String | name of the CronJob - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.readNamespacedCronJobStatus(name, namespace, , opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the CronJob | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V2alpha1CronJob**](V2alpha1CronJob.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **readNamespacedScheduledJob** -> V2alpha1CronJob readNamespacedScheduledJob(name, namespace, , opts) - - - -read the specified ScheduledJob - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Batch_v2alpha1Api(); - -var name = "name_example"; // String | name of the ScheduledJob - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. - 'exact': true, // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. - '_export': true // Boolean | Should this value be exported. Export strips fields that a user can not specify. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.readNamespacedScheduledJob(name, namespace, , opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ScheduledJob | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **exact** | **Boolean**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. | [optional] - **_export** | **Boolean**| Should this value be exported. Export strips fields that a user can not specify. | [optional] - -### Return type - -[**V2alpha1CronJob**](V2alpha1CronJob.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **readNamespacedScheduledJobStatus** -> V2alpha1CronJob readNamespacedScheduledJobStatus(name, namespace, , opts) - - - -read status of the specified ScheduledJob - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Batch_v2alpha1Api(); - -var name = "name_example"; // String | name of the ScheduledJob - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.readNamespacedScheduledJobStatus(name, namespace, , opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ScheduledJob | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V2alpha1CronJob**](V2alpha1CronJob.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **replaceNamespacedCronJob** -> V2alpha1CronJob replaceNamespacedCronJob(name, namespace, body, opts) - - - -replace the specified CronJob - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Batch_v2alpha1Api(); - -var name = "name_example"; // String | name of the CronJob - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = new KubernetesJsClient.V2alpha1CronJob(); // V2alpha1CronJob | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.replaceNamespacedCronJob(name, namespace, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the CronJob | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V2alpha1CronJob**](V2alpha1CronJob.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V2alpha1CronJob**](V2alpha1CronJob.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **replaceNamespacedCronJobStatus** -> V2alpha1CronJob replaceNamespacedCronJobStatus(name, namespace, body, opts) - - - -replace status of the specified CronJob - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Batch_v2alpha1Api(); - -var name = "name_example"; // String | name of the CronJob - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = new KubernetesJsClient.V2alpha1CronJob(); // V2alpha1CronJob | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.replaceNamespacedCronJobStatus(name, namespace, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the CronJob | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V2alpha1CronJob**](V2alpha1CronJob.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V2alpha1CronJob**](V2alpha1CronJob.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **replaceNamespacedScheduledJob** -> V2alpha1CronJob replaceNamespacedScheduledJob(name, namespace, body, opts) - - - -replace the specified ScheduledJob - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Batch_v2alpha1Api(); - -var name = "name_example"; // String | name of the ScheduledJob - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = new KubernetesJsClient.V2alpha1CronJob(); // V2alpha1CronJob | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.replaceNamespacedScheduledJob(name, namespace, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ScheduledJob | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V2alpha1CronJob**](V2alpha1CronJob.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V2alpha1CronJob**](V2alpha1CronJob.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **replaceNamespacedScheduledJobStatus** -> V2alpha1CronJob replaceNamespacedScheduledJobStatus(name, namespace, body, opts) - - - -replace status of the specified ScheduledJob - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Batch_v2alpha1Api(); - -var name = "name_example"; // String | name of the ScheduledJob - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = new KubernetesJsClient.V2alpha1CronJob(); // V2alpha1CronJob | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.replaceNamespacedScheduledJobStatus(name, namespace, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ScheduledJob | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V2alpha1CronJob**](V2alpha1CronJob.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V2alpha1CronJob**](V2alpha1CronJob.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - diff --git a/kubernetes/docs/CertificatesApi.md b/kubernetes/docs/CertificatesApi.md deleted file mode 100644 index bb7a153142..0000000000 --- a/kubernetes/docs/CertificatesApi.md +++ /dev/null @@ -1,56 +0,0 @@ -# KubernetesJsClient.CertificatesApi - -All URIs are relative to *https://localhost* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**getAPIGroup**](CertificatesApi.md#getAPIGroup) | **GET** /apis/certificates.k8s.io/ | - - - -# **getAPIGroup** -> V1APIGroup getAPIGroup() - - - -get information of a group - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.CertificatesApi(); - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.getAPIGroup(callback); -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -[**V1APIGroup**](V1APIGroup.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - diff --git a/kubernetes/docs/Certificates_v1beta1Api.md b/kubernetes/docs/Certificates_v1beta1Api.md deleted file mode 100644 index b1e669b6b1..0000000000 --- a/kubernetes/docs/Certificates_v1beta1Api.md +++ /dev/null @@ -1,617 +0,0 @@ -# KubernetesJsClient.Certificates_v1beta1Api - -All URIs are relative to *https://localhost* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**createCertificateSigningRequest**](Certificates_v1beta1Api.md#createCertificateSigningRequest) | **POST** /apis/certificates.k8s.io/v1beta1/certificatesigningrequests | -[**deleteCertificateSigningRequest**](Certificates_v1beta1Api.md#deleteCertificateSigningRequest) | **DELETE** /apis/certificates.k8s.io/v1beta1/certificatesigningrequests/{name} | -[**deleteCollectionCertificateSigningRequest**](Certificates_v1beta1Api.md#deleteCollectionCertificateSigningRequest) | **DELETE** /apis/certificates.k8s.io/v1beta1/certificatesigningrequests | -[**getAPIResources**](Certificates_v1beta1Api.md#getAPIResources) | **GET** /apis/certificates.k8s.io/v1beta1/ | -[**listCertificateSigningRequest**](Certificates_v1beta1Api.md#listCertificateSigningRequest) | **GET** /apis/certificates.k8s.io/v1beta1/certificatesigningrequests | -[**patchCertificateSigningRequest**](Certificates_v1beta1Api.md#patchCertificateSigningRequest) | **PATCH** /apis/certificates.k8s.io/v1beta1/certificatesigningrequests/{name} | -[**readCertificateSigningRequest**](Certificates_v1beta1Api.md#readCertificateSigningRequest) | **GET** /apis/certificates.k8s.io/v1beta1/certificatesigningrequests/{name} | -[**replaceCertificateSigningRequest**](Certificates_v1beta1Api.md#replaceCertificateSigningRequest) | **PUT** /apis/certificates.k8s.io/v1beta1/certificatesigningrequests/{name} | -[**replaceCertificateSigningRequestApproval**](Certificates_v1beta1Api.md#replaceCertificateSigningRequestApproval) | **PUT** /apis/certificates.k8s.io/v1beta1/certificatesigningrequests/{name}/approval | -[**replaceCertificateSigningRequestStatus**](Certificates_v1beta1Api.md#replaceCertificateSigningRequestStatus) | **PUT** /apis/certificates.k8s.io/v1beta1/certificatesigningrequests/{name}/status | - - - -# **createCertificateSigningRequest** -> V1beta1CertificateSigningRequest createCertificateSigningRequest(body, opts) - - - -create a CertificateSigningRequest - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Certificates_v1beta1Api(); - -var body = new KubernetesJsClient.V1beta1CertificateSigningRequest(); // V1beta1CertificateSigningRequest | - -var opts = { - 'pretty': "pretty_example", // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.createCertificateSigningRequest(body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**V1beta1CertificateSigningRequest**](V1beta1CertificateSigningRequest.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1beta1CertificateSigningRequest**](V1beta1CertificateSigningRequest.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **deleteCertificateSigningRequest** -> V1Status deleteCertificateSigningRequest(name, body, opts) - - - -delete a CertificateSigningRequest - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Certificates_v1beta1Api(); - -var name = "name_example"; // String | name of the CertificateSigningRequest - -var body = new KubernetesJsClient.V1DeleteOptions(); // V1DeleteOptions | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. - 'gracePeriodSeconds': 56, // Number | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - 'orphanDependents': true, // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - 'propagationPolicy': "propagationPolicy_example" // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.deleteCertificateSigningRequest(name, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the CertificateSigningRequest | - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **gracePeriodSeconds** | **Number**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. | [optional] - -### Return type - -[**V1Status**](V1Status.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **deleteCollectionCertificateSigningRequest** -> V1Status deleteCollectionCertificateSigningRequest(opts) - - - -delete collection of CertificateSigningRequest - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Certificates_v1beta1Api(); - -var opts = { - 'pretty': "pretty_example", // String | If 'true', then the output is pretty printed. - 'fieldSelector': "fieldSelector_example", // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - 'labelSelector': "labelSelector_example", // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - 'resourceVersion': "resourceVersion_example", // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - 'timeoutSeconds': 56, // Number | Timeout for the list/watch call. - 'watch': true // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.deleteCollectionCertificateSigningRequest(opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeoutSeconds** | **Number**| Timeout for the list/watch call. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**V1Status**](V1Status.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **getAPIResources** -> V1APIResourceList getAPIResources() - - - -get available resources - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Certificates_v1beta1Api(); - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.getAPIResources(callback); -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -[**V1APIResourceList**](V1APIResourceList.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **listCertificateSigningRequest** -> V1beta1CertificateSigningRequestList listCertificateSigningRequest(opts) - - - -list or watch objects of kind CertificateSigningRequest - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Certificates_v1beta1Api(); - -var opts = { - 'pretty': "pretty_example", // String | If 'true', then the output is pretty printed. - 'fieldSelector': "fieldSelector_example", // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - 'labelSelector': "labelSelector_example", // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - 'resourceVersion': "resourceVersion_example", // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - 'timeoutSeconds': 56, // Number | Timeout for the list/watch call. - 'watch': true // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.listCertificateSigningRequest(opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeoutSeconds** | **Number**| Timeout for the list/watch call. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**V1beta1CertificateSigningRequestList**](V1beta1CertificateSigningRequestList.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - - -# **patchCertificateSigningRequest** -> V1beta1CertificateSigningRequest patchCertificateSigningRequest(name, body, opts) - - - -partially update the specified CertificateSigningRequest - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Certificates_v1beta1Api(); - -var name = "name_example"; // String | name of the CertificateSigningRequest - -var body = null; // Object | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.patchCertificateSigningRequest(name, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the CertificateSigningRequest | - **body** | **Object**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1beta1CertificateSigningRequest**](V1beta1CertificateSigningRequest.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **readCertificateSigningRequest** -> V1beta1CertificateSigningRequest readCertificateSigningRequest(name, , opts) - - - -read the specified CertificateSigningRequest - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Certificates_v1beta1Api(); - -var name = "name_example"; // String | name of the CertificateSigningRequest - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. - 'exact': true, // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. - '_export': true // Boolean | Should this value be exported. Export strips fields that a user can not specify. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.readCertificateSigningRequest(name, , opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the CertificateSigningRequest | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **exact** | **Boolean**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. | [optional] - **_export** | **Boolean**| Should this value be exported. Export strips fields that a user can not specify. | [optional] - -### Return type - -[**V1beta1CertificateSigningRequest**](V1beta1CertificateSigningRequest.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **replaceCertificateSigningRequest** -> V1beta1CertificateSigningRequest replaceCertificateSigningRequest(name, body, opts) - - - -replace the specified CertificateSigningRequest - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Certificates_v1beta1Api(); - -var name = "name_example"; // String | name of the CertificateSigningRequest - -var body = new KubernetesJsClient.V1beta1CertificateSigningRequest(); // V1beta1CertificateSigningRequest | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.replaceCertificateSigningRequest(name, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the CertificateSigningRequest | - **body** | [**V1beta1CertificateSigningRequest**](V1beta1CertificateSigningRequest.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1beta1CertificateSigningRequest**](V1beta1CertificateSigningRequest.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **replaceCertificateSigningRequestApproval** -> V1beta1CertificateSigningRequest replaceCertificateSigningRequestApproval(name, body, opts) - - - -replace approval of the specified CertificateSigningRequest - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Certificates_v1beta1Api(); - -var name = "name_example"; // String | name of the CertificateSigningRequest - -var body = new KubernetesJsClient.V1beta1CertificateSigningRequest(); // V1beta1CertificateSigningRequest | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.replaceCertificateSigningRequestApproval(name, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the CertificateSigningRequest | - **body** | [**V1beta1CertificateSigningRequest**](V1beta1CertificateSigningRequest.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1beta1CertificateSigningRequest**](V1beta1CertificateSigningRequest.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **replaceCertificateSigningRequestStatus** -> V1beta1CertificateSigningRequest replaceCertificateSigningRequestStatus(name, body, opts) - - - -replace status of the specified CertificateSigningRequest - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Certificates_v1beta1Api(); - -var name = "name_example"; // String | name of the CertificateSigningRequest - -var body = new KubernetesJsClient.V1beta1CertificateSigningRequest(); // V1beta1CertificateSigningRequest | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.replaceCertificateSigningRequestStatus(name, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the CertificateSigningRequest | - **body** | [**V1beta1CertificateSigningRequest**](V1beta1CertificateSigningRequest.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1beta1CertificateSigningRequest**](V1beta1CertificateSigningRequest.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - diff --git a/kubernetes/docs/CoreApi.md b/kubernetes/docs/CoreApi.md deleted file mode 100644 index b15cef5b9e..0000000000 --- a/kubernetes/docs/CoreApi.md +++ /dev/null @@ -1,56 +0,0 @@ -# KubernetesJsClient.CoreApi - -All URIs are relative to *https://localhost* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**getAPIVersions**](CoreApi.md#getAPIVersions) | **GET** /api/ | - - - -# **getAPIVersions** -> V1APIVersions getAPIVersions() - - - -get available API versions - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.CoreApi(); - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.getAPIVersions(callback); -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -[**V1APIVersions**](V1APIVersions.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - diff --git a/kubernetes/docs/Core_v1Api.md b/kubernetes/docs/Core_v1Api.md deleted file mode 100644 index ed409d002d..0000000000 --- a/kubernetes/docs/Core_v1Api.md +++ /dev/null @@ -1,14749 +0,0 @@ -# KubernetesJsClient.Core_v1Api - -All URIs are relative to *https://localhost* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**connectDeleteNamespacedPodProxy**](Core_v1Api.md#connectDeleteNamespacedPodProxy) | **DELETE** /api/v1/namespaces/{namespace}/pods/{name}/proxy | -[**connectDeleteNamespacedPodProxyWithPath**](Core_v1Api.md#connectDeleteNamespacedPodProxyWithPath) | **DELETE** /api/v1/namespaces/{namespace}/pods/{name}/proxy/{path} | -[**connectDeleteNamespacedServiceProxy**](Core_v1Api.md#connectDeleteNamespacedServiceProxy) | **DELETE** /api/v1/namespaces/{namespace}/services/{name}/proxy | -[**connectDeleteNamespacedServiceProxyWithPath**](Core_v1Api.md#connectDeleteNamespacedServiceProxyWithPath) | **DELETE** /api/v1/namespaces/{namespace}/services/{name}/proxy/{path} | -[**connectDeleteNodeProxy**](Core_v1Api.md#connectDeleteNodeProxy) | **DELETE** /api/v1/nodes/{name}/proxy | -[**connectDeleteNodeProxyWithPath**](Core_v1Api.md#connectDeleteNodeProxyWithPath) | **DELETE** /api/v1/nodes/{name}/proxy/{path} | -[**connectGetNamespacedPodAttach**](Core_v1Api.md#connectGetNamespacedPodAttach) | **GET** /api/v1/namespaces/{namespace}/pods/{name}/attach | -[**connectGetNamespacedPodExec**](Core_v1Api.md#connectGetNamespacedPodExec) | **GET** /api/v1/namespaces/{namespace}/pods/{name}/exec | -[**connectGetNamespacedPodPortforward**](Core_v1Api.md#connectGetNamespacedPodPortforward) | **GET** /api/v1/namespaces/{namespace}/pods/{name}/portforward | -[**connectGetNamespacedPodProxy**](Core_v1Api.md#connectGetNamespacedPodProxy) | **GET** /api/v1/namespaces/{namespace}/pods/{name}/proxy | -[**connectGetNamespacedPodProxyWithPath**](Core_v1Api.md#connectGetNamespacedPodProxyWithPath) | **GET** /api/v1/namespaces/{namespace}/pods/{name}/proxy/{path} | -[**connectGetNamespacedServiceProxy**](Core_v1Api.md#connectGetNamespacedServiceProxy) | **GET** /api/v1/namespaces/{namespace}/services/{name}/proxy | -[**connectGetNamespacedServiceProxyWithPath**](Core_v1Api.md#connectGetNamespacedServiceProxyWithPath) | **GET** /api/v1/namespaces/{namespace}/services/{name}/proxy/{path} | -[**connectGetNodeProxy**](Core_v1Api.md#connectGetNodeProxy) | **GET** /api/v1/nodes/{name}/proxy | -[**connectGetNodeProxyWithPath**](Core_v1Api.md#connectGetNodeProxyWithPath) | **GET** /api/v1/nodes/{name}/proxy/{path} | -[**connectHeadNamespacedPodProxy**](Core_v1Api.md#connectHeadNamespacedPodProxy) | **HEAD** /api/v1/namespaces/{namespace}/pods/{name}/proxy | -[**connectHeadNamespacedPodProxyWithPath**](Core_v1Api.md#connectHeadNamespacedPodProxyWithPath) | **HEAD** /api/v1/namespaces/{namespace}/pods/{name}/proxy/{path} | -[**connectHeadNamespacedServiceProxy**](Core_v1Api.md#connectHeadNamespacedServiceProxy) | **HEAD** /api/v1/namespaces/{namespace}/services/{name}/proxy | -[**connectHeadNamespacedServiceProxyWithPath**](Core_v1Api.md#connectHeadNamespacedServiceProxyWithPath) | **HEAD** /api/v1/namespaces/{namespace}/services/{name}/proxy/{path} | -[**connectHeadNodeProxy**](Core_v1Api.md#connectHeadNodeProxy) | **HEAD** /api/v1/nodes/{name}/proxy | -[**connectHeadNodeProxyWithPath**](Core_v1Api.md#connectHeadNodeProxyWithPath) | **HEAD** /api/v1/nodes/{name}/proxy/{path} | -[**connectOptionsNamespacedPodProxy**](Core_v1Api.md#connectOptionsNamespacedPodProxy) | **OPTIONS** /api/v1/namespaces/{namespace}/pods/{name}/proxy | -[**connectOptionsNamespacedPodProxyWithPath**](Core_v1Api.md#connectOptionsNamespacedPodProxyWithPath) | **OPTIONS** /api/v1/namespaces/{namespace}/pods/{name}/proxy/{path} | -[**connectOptionsNamespacedServiceProxy**](Core_v1Api.md#connectOptionsNamespacedServiceProxy) | **OPTIONS** /api/v1/namespaces/{namespace}/services/{name}/proxy | -[**connectOptionsNamespacedServiceProxyWithPath**](Core_v1Api.md#connectOptionsNamespacedServiceProxyWithPath) | **OPTIONS** /api/v1/namespaces/{namespace}/services/{name}/proxy/{path} | -[**connectOptionsNodeProxy**](Core_v1Api.md#connectOptionsNodeProxy) | **OPTIONS** /api/v1/nodes/{name}/proxy | -[**connectOptionsNodeProxyWithPath**](Core_v1Api.md#connectOptionsNodeProxyWithPath) | **OPTIONS** /api/v1/nodes/{name}/proxy/{path} | -[**connectPostNamespacedPodAttach**](Core_v1Api.md#connectPostNamespacedPodAttach) | **POST** /api/v1/namespaces/{namespace}/pods/{name}/attach | -[**connectPostNamespacedPodExec**](Core_v1Api.md#connectPostNamespacedPodExec) | **POST** /api/v1/namespaces/{namespace}/pods/{name}/exec | -[**connectPostNamespacedPodPortforward**](Core_v1Api.md#connectPostNamespacedPodPortforward) | **POST** /api/v1/namespaces/{namespace}/pods/{name}/portforward | -[**connectPostNamespacedPodProxy**](Core_v1Api.md#connectPostNamespacedPodProxy) | **POST** /api/v1/namespaces/{namespace}/pods/{name}/proxy | -[**connectPostNamespacedPodProxyWithPath**](Core_v1Api.md#connectPostNamespacedPodProxyWithPath) | **POST** /api/v1/namespaces/{namespace}/pods/{name}/proxy/{path} | -[**connectPostNamespacedServiceProxy**](Core_v1Api.md#connectPostNamespacedServiceProxy) | **POST** /api/v1/namespaces/{namespace}/services/{name}/proxy | -[**connectPostNamespacedServiceProxyWithPath**](Core_v1Api.md#connectPostNamespacedServiceProxyWithPath) | **POST** /api/v1/namespaces/{namespace}/services/{name}/proxy/{path} | -[**connectPostNodeProxy**](Core_v1Api.md#connectPostNodeProxy) | **POST** /api/v1/nodes/{name}/proxy | -[**connectPostNodeProxyWithPath**](Core_v1Api.md#connectPostNodeProxyWithPath) | **POST** /api/v1/nodes/{name}/proxy/{path} | -[**connectPutNamespacedPodProxy**](Core_v1Api.md#connectPutNamespacedPodProxy) | **PUT** /api/v1/namespaces/{namespace}/pods/{name}/proxy | -[**connectPutNamespacedPodProxyWithPath**](Core_v1Api.md#connectPutNamespacedPodProxyWithPath) | **PUT** /api/v1/namespaces/{namespace}/pods/{name}/proxy/{path} | -[**connectPutNamespacedServiceProxy**](Core_v1Api.md#connectPutNamespacedServiceProxy) | **PUT** /api/v1/namespaces/{namespace}/services/{name}/proxy | -[**connectPutNamespacedServiceProxyWithPath**](Core_v1Api.md#connectPutNamespacedServiceProxyWithPath) | **PUT** /api/v1/namespaces/{namespace}/services/{name}/proxy/{path} | -[**connectPutNodeProxy**](Core_v1Api.md#connectPutNodeProxy) | **PUT** /api/v1/nodes/{name}/proxy | -[**connectPutNodeProxyWithPath**](Core_v1Api.md#connectPutNodeProxyWithPath) | **PUT** /api/v1/nodes/{name}/proxy/{path} | -[**createNamespace**](Core_v1Api.md#createNamespace) | **POST** /api/v1/namespaces | -[**createNamespacedBinding**](Core_v1Api.md#createNamespacedBinding) | **POST** /api/v1/namespaces/{namespace}/bindings | -[**createNamespacedBindingBinding**](Core_v1Api.md#createNamespacedBindingBinding) | **POST** /api/v1/namespaces/{namespace}/pods/{name}/binding | -[**createNamespacedConfigMap**](Core_v1Api.md#createNamespacedConfigMap) | **POST** /api/v1/namespaces/{namespace}/configmaps | -[**createNamespacedEndpoints**](Core_v1Api.md#createNamespacedEndpoints) | **POST** /api/v1/namespaces/{namespace}/endpoints | -[**createNamespacedEvent**](Core_v1Api.md#createNamespacedEvent) | **POST** /api/v1/namespaces/{namespace}/events | -[**createNamespacedEvictionEviction**](Core_v1Api.md#createNamespacedEvictionEviction) | **POST** /api/v1/namespaces/{namespace}/pods/{name}/eviction | -[**createNamespacedLimitRange**](Core_v1Api.md#createNamespacedLimitRange) | **POST** /api/v1/namespaces/{namespace}/limitranges | -[**createNamespacedPersistentVolumeClaim**](Core_v1Api.md#createNamespacedPersistentVolumeClaim) | **POST** /api/v1/namespaces/{namespace}/persistentvolumeclaims | -[**createNamespacedPod**](Core_v1Api.md#createNamespacedPod) | **POST** /api/v1/namespaces/{namespace}/pods | -[**createNamespacedPodTemplate**](Core_v1Api.md#createNamespacedPodTemplate) | **POST** /api/v1/namespaces/{namespace}/podtemplates | -[**createNamespacedReplicationController**](Core_v1Api.md#createNamespacedReplicationController) | **POST** /api/v1/namespaces/{namespace}/replicationcontrollers | -[**createNamespacedResourceQuota**](Core_v1Api.md#createNamespacedResourceQuota) | **POST** /api/v1/namespaces/{namespace}/resourcequotas | -[**createNamespacedSecret**](Core_v1Api.md#createNamespacedSecret) | **POST** /api/v1/namespaces/{namespace}/secrets | -[**createNamespacedService**](Core_v1Api.md#createNamespacedService) | **POST** /api/v1/namespaces/{namespace}/services | -[**createNamespacedServiceAccount**](Core_v1Api.md#createNamespacedServiceAccount) | **POST** /api/v1/namespaces/{namespace}/serviceaccounts | -[**createNode**](Core_v1Api.md#createNode) | **POST** /api/v1/nodes | -[**createPersistentVolume**](Core_v1Api.md#createPersistentVolume) | **POST** /api/v1/persistentvolumes | -[**deleteCollectionNamespace**](Core_v1Api.md#deleteCollectionNamespace) | **DELETE** /api/v1/namespaces | -[**deleteCollectionNamespacedConfigMap**](Core_v1Api.md#deleteCollectionNamespacedConfigMap) | **DELETE** /api/v1/namespaces/{namespace}/configmaps | -[**deleteCollectionNamespacedEndpoints**](Core_v1Api.md#deleteCollectionNamespacedEndpoints) | **DELETE** /api/v1/namespaces/{namespace}/endpoints | -[**deleteCollectionNamespacedEvent**](Core_v1Api.md#deleteCollectionNamespacedEvent) | **DELETE** /api/v1/namespaces/{namespace}/events | -[**deleteCollectionNamespacedLimitRange**](Core_v1Api.md#deleteCollectionNamespacedLimitRange) | **DELETE** /api/v1/namespaces/{namespace}/limitranges | -[**deleteCollectionNamespacedPersistentVolumeClaim**](Core_v1Api.md#deleteCollectionNamespacedPersistentVolumeClaim) | **DELETE** /api/v1/namespaces/{namespace}/persistentvolumeclaims | -[**deleteCollectionNamespacedPod**](Core_v1Api.md#deleteCollectionNamespacedPod) | **DELETE** /api/v1/namespaces/{namespace}/pods | -[**deleteCollectionNamespacedPodTemplate**](Core_v1Api.md#deleteCollectionNamespacedPodTemplate) | **DELETE** /api/v1/namespaces/{namespace}/podtemplates | -[**deleteCollectionNamespacedReplicationController**](Core_v1Api.md#deleteCollectionNamespacedReplicationController) | **DELETE** /api/v1/namespaces/{namespace}/replicationcontrollers | -[**deleteCollectionNamespacedResourceQuota**](Core_v1Api.md#deleteCollectionNamespacedResourceQuota) | **DELETE** /api/v1/namespaces/{namespace}/resourcequotas | -[**deleteCollectionNamespacedSecret**](Core_v1Api.md#deleteCollectionNamespacedSecret) | **DELETE** /api/v1/namespaces/{namespace}/secrets | -[**deleteCollectionNamespacedServiceAccount**](Core_v1Api.md#deleteCollectionNamespacedServiceAccount) | **DELETE** /api/v1/namespaces/{namespace}/serviceaccounts | -[**deleteCollectionNode**](Core_v1Api.md#deleteCollectionNode) | **DELETE** /api/v1/nodes | -[**deleteCollectionPersistentVolume**](Core_v1Api.md#deleteCollectionPersistentVolume) | **DELETE** /api/v1/persistentvolumes | -[**deleteNamespace**](Core_v1Api.md#deleteNamespace) | **DELETE** /api/v1/namespaces/{name} | -[**deleteNamespacedConfigMap**](Core_v1Api.md#deleteNamespacedConfigMap) | **DELETE** /api/v1/namespaces/{namespace}/configmaps/{name} | -[**deleteNamespacedEndpoints**](Core_v1Api.md#deleteNamespacedEndpoints) | **DELETE** /api/v1/namespaces/{namespace}/endpoints/{name} | -[**deleteNamespacedEvent**](Core_v1Api.md#deleteNamespacedEvent) | **DELETE** /api/v1/namespaces/{namespace}/events/{name} | -[**deleteNamespacedLimitRange**](Core_v1Api.md#deleteNamespacedLimitRange) | **DELETE** /api/v1/namespaces/{namespace}/limitranges/{name} | -[**deleteNamespacedPersistentVolumeClaim**](Core_v1Api.md#deleteNamespacedPersistentVolumeClaim) | **DELETE** /api/v1/namespaces/{namespace}/persistentvolumeclaims/{name} | -[**deleteNamespacedPod**](Core_v1Api.md#deleteNamespacedPod) | **DELETE** /api/v1/namespaces/{namespace}/pods/{name} | -[**deleteNamespacedPodTemplate**](Core_v1Api.md#deleteNamespacedPodTemplate) | **DELETE** /api/v1/namespaces/{namespace}/podtemplates/{name} | -[**deleteNamespacedReplicationController**](Core_v1Api.md#deleteNamespacedReplicationController) | **DELETE** /api/v1/namespaces/{namespace}/replicationcontrollers/{name} | -[**deleteNamespacedResourceQuota**](Core_v1Api.md#deleteNamespacedResourceQuota) | **DELETE** /api/v1/namespaces/{namespace}/resourcequotas/{name} | -[**deleteNamespacedSecret**](Core_v1Api.md#deleteNamespacedSecret) | **DELETE** /api/v1/namespaces/{namespace}/secrets/{name} | -[**deleteNamespacedService**](Core_v1Api.md#deleteNamespacedService) | **DELETE** /api/v1/namespaces/{namespace}/services/{name} | -[**deleteNamespacedServiceAccount**](Core_v1Api.md#deleteNamespacedServiceAccount) | **DELETE** /api/v1/namespaces/{namespace}/serviceaccounts/{name} | -[**deleteNode**](Core_v1Api.md#deleteNode) | **DELETE** /api/v1/nodes/{name} | -[**deletePersistentVolume**](Core_v1Api.md#deletePersistentVolume) | **DELETE** /api/v1/persistentvolumes/{name} | -[**getAPIResources**](Core_v1Api.md#getAPIResources) | **GET** /api/v1/ | -[**listComponentStatus**](Core_v1Api.md#listComponentStatus) | **GET** /api/v1/componentstatuses | -[**listConfigMapForAllNamespaces**](Core_v1Api.md#listConfigMapForAllNamespaces) | **GET** /api/v1/configmaps | -[**listEndpointsForAllNamespaces**](Core_v1Api.md#listEndpointsForAllNamespaces) | **GET** /api/v1/endpoints | -[**listEventForAllNamespaces**](Core_v1Api.md#listEventForAllNamespaces) | **GET** /api/v1/events | -[**listLimitRangeForAllNamespaces**](Core_v1Api.md#listLimitRangeForAllNamespaces) | **GET** /api/v1/limitranges | -[**listNamespace**](Core_v1Api.md#listNamespace) | **GET** /api/v1/namespaces | -[**listNamespacedConfigMap**](Core_v1Api.md#listNamespacedConfigMap) | **GET** /api/v1/namespaces/{namespace}/configmaps | -[**listNamespacedEndpoints**](Core_v1Api.md#listNamespacedEndpoints) | **GET** /api/v1/namespaces/{namespace}/endpoints | -[**listNamespacedEvent**](Core_v1Api.md#listNamespacedEvent) | **GET** /api/v1/namespaces/{namespace}/events | -[**listNamespacedLimitRange**](Core_v1Api.md#listNamespacedLimitRange) | **GET** /api/v1/namespaces/{namespace}/limitranges | -[**listNamespacedPersistentVolumeClaim**](Core_v1Api.md#listNamespacedPersistentVolumeClaim) | **GET** /api/v1/namespaces/{namespace}/persistentvolumeclaims | -[**listNamespacedPod**](Core_v1Api.md#listNamespacedPod) | **GET** /api/v1/namespaces/{namespace}/pods | -[**listNamespacedPodTemplate**](Core_v1Api.md#listNamespacedPodTemplate) | **GET** /api/v1/namespaces/{namespace}/podtemplates | -[**listNamespacedReplicationController**](Core_v1Api.md#listNamespacedReplicationController) | **GET** /api/v1/namespaces/{namespace}/replicationcontrollers | -[**listNamespacedResourceQuota**](Core_v1Api.md#listNamespacedResourceQuota) | **GET** /api/v1/namespaces/{namespace}/resourcequotas | -[**listNamespacedSecret**](Core_v1Api.md#listNamespacedSecret) | **GET** /api/v1/namespaces/{namespace}/secrets | -[**listNamespacedService**](Core_v1Api.md#listNamespacedService) | **GET** /api/v1/namespaces/{namespace}/services | -[**listNamespacedServiceAccount**](Core_v1Api.md#listNamespacedServiceAccount) | **GET** /api/v1/namespaces/{namespace}/serviceaccounts | -[**listNode**](Core_v1Api.md#listNode) | **GET** /api/v1/nodes | -[**listPersistentVolume**](Core_v1Api.md#listPersistentVolume) | **GET** /api/v1/persistentvolumes | -[**listPersistentVolumeClaimForAllNamespaces**](Core_v1Api.md#listPersistentVolumeClaimForAllNamespaces) | **GET** /api/v1/persistentvolumeclaims | -[**listPodForAllNamespaces**](Core_v1Api.md#listPodForAllNamespaces) | **GET** /api/v1/pods | -[**listPodTemplateForAllNamespaces**](Core_v1Api.md#listPodTemplateForAllNamespaces) | **GET** /api/v1/podtemplates | -[**listReplicationControllerForAllNamespaces**](Core_v1Api.md#listReplicationControllerForAllNamespaces) | **GET** /api/v1/replicationcontrollers | -[**listResourceQuotaForAllNamespaces**](Core_v1Api.md#listResourceQuotaForAllNamespaces) | **GET** /api/v1/resourcequotas | -[**listSecretForAllNamespaces**](Core_v1Api.md#listSecretForAllNamespaces) | **GET** /api/v1/secrets | -[**listServiceAccountForAllNamespaces**](Core_v1Api.md#listServiceAccountForAllNamespaces) | **GET** /api/v1/serviceaccounts | -[**listServiceForAllNamespaces**](Core_v1Api.md#listServiceForAllNamespaces) | **GET** /api/v1/services | -[**patchNamespace**](Core_v1Api.md#patchNamespace) | **PATCH** /api/v1/namespaces/{name} | -[**patchNamespaceStatus**](Core_v1Api.md#patchNamespaceStatus) | **PATCH** /api/v1/namespaces/{name}/status | -[**patchNamespacedConfigMap**](Core_v1Api.md#patchNamespacedConfigMap) | **PATCH** /api/v1/namespaces/{namespace}/configmaps/{name} | -[**patchNamespacedEndpoints**](Core_v1Api.md#patchNamespacedEndpoints) | **PATCH** /api/v1/namespaces/{namespace}/endpoints/{name} | -[**patchNamespacedEvent**](Core_v1Api.md#patchNamespacedEvent) | **PATCH** /api/v1/namespaces/{namespace}/events/{name} | -[**patchNamespacedLimitRange**](Core_v1Api.md#patchNamespacedLimitRange) | **PATCH** /api/v1/namespaces/{namespace}/limitranges/{name} | -[**patchNamespacedPersistentVolumeClaim**](Core_v1Api.md#patchNamespacedPersistentVolumeClaim) | **PATCH** /api/v1/namespaces/{namespace}/persistentvolumeclaims/{name} | -[**patchNamespacedPersistentVolumeClaimStatus**](Core_v1Api.md#patchNamespacedPersistentVolumeClaimStatus) | **PATCH** /api/v1/namespaces/{namespace}/persistentvolumeclaims/{name}/status | -[**patchNamespacedPod**](Core_v1Api.md#patchNamespacedPod) | **PATCH** /api/v1/namespaces/{namespace}/pods/{name} | -[**patchNamespacedPodStatus**](Core_v1Api.md#patchNamespacedPodStatus) | **PATCH** /api/v1/namespaces/{namespace}/pods/{name}/status | -[**patchNamespacedPodTemplate**](Core_v1Api.md#patchNamespacedPodTemplate) | **PATCH** /api/v1/namespaces/{namespace}/podtemplates/{name} | -[**patchNamespacedReplicationController**](Core_v1Api.md#patchNamespacedReplicationController) | **PATCH** /api/v1/namespaces/{namespace}/replicationcontrollers/{name} | -[**patchNamespacedReplicationControllerStatus**](Core_v1Api.md#patchNamespacedReplicationControllerStatus) | **PATCH** /api/v1/namespaces/{namespace}/replicationcontrollers/{name}/status | -[**patchNamespacedResourceQuota**](Core_v1Api.md#patchNamespacedResourceQuota) | **PATCH** /api/v1/namespaces/{namespace}/resourcequotas/{name} | -[**patchNamespacedResourceQuotaStatus**](Core_v1Api.md#patchNamespacedResourceQuotaStatus) | **PATCH** /api/v1/namespaces/{namespace}/resourcequotas/{name}/status | -[**patchNamespacedScaleScale**](Core_v1Api.md#patchNamespacedScaleScale) | **PATCH** /api/v1/namespaces/{namespace}/replicationcontrollers/{name}/scale | -[**patchNamespacedSecret**](Core_v1Api.md#patchNamespacedSecret) | **PATCH** /api/v1/namespaces/{namespace}/secrets/{name} | -[**patchNamespacedService**](Core_v1Api.md#patchNamespacedService) | **PATCH** /api/v1/namespaces/{namespace}/services/{name} | -[**patchNamespacedServiceAccount**](Core_v1Api.md#patchNamespacedServiceAccount) | **PATCH** /api/v1/namespaces/{namespace}/serviceaccounts/{name} | -[**patchNamespacedServiceStatus**](Core_v1Api.md#patchNamespacedServiceStatus) | **PATCH** /api/v1/namespaces/{namespace}/services/{name}/status | -[**patchNode**](Core_v1Api.md#patchNode) | **PATCH** /api/v1/nodes/{name} | -[**patchNodeStatus**](Core_v1Api.md#patchNodeStatus) | **PATCH** /api/v1/nodes/{name}/status | -[**patchPersistentVolume**](Core_v1Api.md#patchPersistentVolume) | **PATCH** /api/v1/persistentvolumes/{name} | -[**patchPersistentVolumeStatus**](Core_v1Api.md#patchPersistentVolumeStatus) | **PATCH** /api/v1/persistentvolumes/{name}/status | -[**proxyDELETENamespacedPod**](Core_v1Api.md#proxyDELETENamespacedPod) | **DELETE** /api/v1/proxy/namespaces/{namespace}/pods/{name} | -[**proxyDELETENamespacedPodWithPath**](Core_v1Api.md#proxyDELETENamespacedPodWithPath) | **DELETE** /api/v1/proxy/namespaces/{namespace}/pods/{name}/{path} | -[**proxyDELETENamespacedService**](Core_v1Api.md#proxyDELETENamespacedService) | **DELETE** /api/v1/proxy/namespaces/{namespace}/services/{name} | -[**proxyDELETENamespacedServiceWithPath**](Core_v1Api.md#proxyDELETENamespacedServiceWithPath) | **DELETE** /api/v1/proxy/namespaces/{namespace}/services/{name}/{path} | -[**proxyDELETENode**](Core_v1Api.md#proxyDELETENode) | **DELETE** /api/v1/proxy/nodes/{name} | -[**proxyDELETENodeWithPath**](Core_v1Api.md#proxyDELETENodeWithPath) | **DELETE** /api/v1/proxy/nodes/{name}/{path} | -[**proxyGETNamespacedPod**](Core_v1Api.md#proxyGETNamespacedPod) | **GET** /api/v1/proxy/namespaces/{namespace}/pods/{name} | -[**proxyGETNamespacedPodWithPath**](Core_v1Api.md#proxyGETNamespacedPodWithPath) | **GET** /api/v1/proxy/namespaces/{namespace}/pods/{name}/{path} | -[**proxyGETNamespacedService**](Core_v1Api.md#proxyGETNamespacedService) | **GET** /api/v1/proxy/namespaces/{namespace}/services/{name} | -[**proxyGETNamespacedServiceWithPath**](Core_v1Api.md#proxyGETNamespacedServiceWithPath) | **GET** /api/v1/proxy/namespaces/{namespace}/services/{name}/{path} | -[**proxyGETNode**](Core_v1Api.md#proxyGETNode) | **GET** /api/v1/proxy/nodes/{name} | -[**proxyGETNodeWithPath**](Core_v1Api.md#proxyGETNodeWithPath) | **GET** /api/v1/proxy/nodes/{name}/{path} | -[**proxyHEADNamespacedPod**](Core_v1Api.md#proxyHEADNamespacedPod) | **HEAD** /api/v1/proxy/namespaces/{namespace}/pods/{name} | -[**proxyHEADNamespacedPodWithPath**](Core_v1Api.md#proxyHEADNamespacedPodWithPath) | **HEAD** /api/v1/proxy/namespaces/{namespace}/pods/{name}/{path} | -[**proxyHEADNamespacedService**](Core_v1Api.md#proxyHEADNamespacedService) | **HEAD** /api/v1/proxy/namespaces/{namespace}/services/{name} | -[**proxyHEADNamespacedServiceWithPath**](Core_v1Api.md#proxyHEADNamespacedServiceWithPath) | **HEAD** /api/v1/proxy/namespaces/{namespace}/services/{name}/{path} | -[**proxyHEADNode**](Core_v1Api.md#proxyHEADNode) | **HEAD** /api/v1/proxy/nodes/{name} | -[**proxyHEADNodeWithPath**](Core_v1Api.md#proxyHEADNodeWithPath) | **HEAD** /api/v1/proxy/nodes/{name}/{path} | -[**proxyOPTIONSNamespacedPod**](Core_v1Api.md#proxyOPTIONSNamespacedPod) | **OPTIONS** /api/v1/proxy/namespaces/{namespace}/pods/{name} | -[**proxyOPTIONSNamespacedPodWithPath**](Core_v1Api.md#proxyOPTIONSNamespacedPodWithPath) | **OPTIONS** /api/v1/proxy/namespaces/{namespace}/pods/{name}/{path} | -[**proxyOPTIONSNamespacedService**](Core_v1Api.md#proxyOPTIONSNamespacedService) | **OPTIONS** /api/v1/proxy/namespaces/{namespace}/services/{name} | -[**proxyOPTIONSNamespacedServiceWithPath**](Core_v1Api.md#proxyOPTIONSNamespacedServiceWithPath) | **OPTIONS** /api/v1/proxy/namespaces/{namespace}/services/{name}/{path} | -[**proxyOPTIONSNode**](Core_v1Api.md#proxyOPTIONSNode) | **OPTIONS** /api/v1/proxy/nodes/{name} | -[**proxyOPTIONSNodeWithPath**](Core_v1Api.md#proxyOPTIONSNodeWithPath) | **OPTIONS** /api/v1/proxy/nodes/{name}/{path} | -[**proxyPATCHNamespacedPod**](Core_v1Api.md#proxyPATCHNamespacedPod) | **PATCH** /api/v1/proxy/namespaces/{namespace}/pods/{name} | -[**proxyPATCHNamespacedPodWithPath**](Core_v1Api.md#proxyPATCHNamespacedPodWithPath) | **PATCH** /api/v1/proxy/namespaces/{namespace}/pods/{name}/{path} | -[**proxyPATCHNamespacedService**](Core_v1Api.md#proxyPATCHNamespacedService) | **PATCH** /api/v1/proxy/namespaces/{namespace}/services/{name} | -[**proxyPATCHNamespacedServiceWithPath**](Core_v1Api.md#proxyPATCHNamespacedServiceWithPath) | **PATCH** /api/v1/proxy/namespaces/{namespace}/services/{name}/{path} | -[**proxyPATCHNode**](Core_v1Api.md#proxyPATCHNode) | **PATCH** /api/v1/proxy/nodes/{name} | -[**proxyPATCHNodeWithPath**](Core_v1Api.md#proxyPATCHNodeWithPath) | **PATCH** /api/v1/proxy/nodes/{name}/{path} | -[**proxyPOSTNamespacedPod**](Core_v1Api.md#proxyPOSTNamespacedPod) | **POST** /api/v1/proxy/namespaces/{namespace}/pods/{name} | -[**proxyPOSTNamespacedPodWithPath**](Core_v1Api.md#proxyPOSTNamespacedPodWithPath) | **POST** /api/v1/proxy/namespaces/{namespace}/pods/{name}/{path} | -[**proxyPOSTNamespacedService**](Core_v1Api.md#proxyPOSTNamespacedService) | **POST** /api/v1/proxy/namespaces/{namespace}/services/{name} | -[**proxyPOSTNamespacedServiceWithPath**](Core_v1Api.md#proxyPOSTNamespacedServiceWithPath) | **POST** /api/v1/proxy/namespaces/{namespace}/services/{name}/{path} | -[**proxyPOSTNode**](Core_v1Api.md#proxyPOSTNode) | **POST** /api/v1/proxy/nodes/{name} | -[**proxyPOSTNodeWithPath**](Core_v1Api.md#proxyPOSTNodeWithPath) | **POST** /api/v1/proxy/nodes/{name}/{path} | -[**proxyPUTNamespacedPod**](Core_v1Api.md#proxyPUTNamespacedPod) | **PUT** /api/v1/proxy/namespaces/{namespace}/pods/{name} | -[**proxyPUTNamespacedPodWithPath**](Core_v1Api.md#proxyPUTNamespacedPodWithPath) | **PUT** /api/v1/proxy/namespaces/{namespace}/pods/{name}/{path} | -[**proxyPUTNamespacedService**](Core_v1Api.md#proxyPUTNamespacedService) | **PUT** /api/v1/proxy/namespaces/{namespace}/services/{name} | -[**proxyPUTNamespacedServiceWithPath**](Core_v1Api.md#proxyPUTNamespacedServiceWithPath) | **PUT** /api/v1/proxy/namespaces/{namespace}/services/{name}/{path} | -[**proxyPUTNode**](Core_v1Api.md#proxyPUTNode) | **PUT** /api/v1/proxy/nodes/{name} | -[**proxyPUTNodeWithPath**](Core_v1Api.md#proxyPUTNodeWithPath) | **PUT** /api/v1/proxy/nodes/{name}/{path} | -[**readComponentStatus**](Core_v1Api.md#readComponentStatus) | **GET** /api/v1/componentstatuses/{name} | -[**readNamespace**](Core_v1Api.md#readNamespace) | **GET** /api/v1/namespaces/{name} | -[**readNamespaceStatus**](Core_v1Api.md#readNamespaceStatus) | **GET** /api/v1/namespaces/{name}/status | -[**readNamespacedConfigMap**](Core_v1Api.md#readNamespacedConfigMap) | **GET** /api/v1/namespaces/{namespace}/configmaps/{name} | -[**readNamespacedEndpoints**](Core_v1Api.md#readNamespacedEndpoints) | **GET** /api/v1/namespaces/{namespace}/endpoints/{name} | -[**readNamespacedEvent**](Core_v1Api.md#readNamespacedEvent) | **GET** /api/v1/namespaces/{namespace}/events/{name} | -[**readNamespacedLimitRange**](Core_v1Api.md#readNamespacedLimitRange) | **GET** /api/v1/namespaces/{namespace}/limitranges/{name} | -[**readNamespacedPersistentVolumeClaim**](Core_v1Api.md#readNamespacedPersistentVolumeClaim) | **GET** /api/v1/namespaces/{namespace}/persistentvolumeclaims/{name} | -[**readNamespacedPersistentVolumeClaimStatus**](Core_v1Api.md#readNamespacedPersistentVolumeClaimStatus) | **GET** /api/v1/namespaces/{namespace}/persistentvolumeclaims/{name}/status | -[**readNamespacedPod**](Core_v1Api.md#readNamespacedPod) | **GET** /api/v1/namespaces/{namespace}/pods/{name} | -[**readNamespacedPodLog**](Core_v1Api.md#readNamespacedPodLog) | **GET** /api/v1/namespaces/{namespace}/pods/{name}/log | -[**readNamespacedPodStatus**](Core_v1Api.md#readNamespacedPodStatus) | **GET** /api/v1/namespaces/{namespace}/pods/{name}/status | -[**readNamespacedPodTemplate**](Core_v1Api.md#readNamespacedPodTemplate) | **GET** /api/v1/namespaces/{namespace}/podtemplates/{name} | -[**readNamespacedReplicationController**](Core_v1Api.md#readNamespacedReplicationController) | **GET** /api/v1/namespaces/{namespace}/replicationcontrollers/{name} | -[**readNamespacedReplicationControllerStatus**](Core_v1Api.md#readNamespacedReplicationControllerStatus) | **GET** /api/v1/namespaces/{namespace}/replicationcontrollers/{name}/status | -[**readNamespacedResourceQuota**](Core_v1Api.md#readNamespacedResourceQuota) | **GET** /api/v1/namespaces/{namespace}/resourcequotas/{name} | -[**readNamespacedResourceQuotaStatus**](Core_v1Api.md#readNamespacedResourceQuotaStatus) | **GET** /api/v1/namespaces/{namespace}/resourcequotas/{name}/status | -[**readNamespacedScaleScale**](Core_v1Api.md#readNamespacedScaleScale) | **GET** /api/v1/namespaces/{namespace}/replicationcontrollers/{name}/scale | -[**readNamespacedSecret**](Core_v1Api.md#readNamespacedSecret) | **GET** /api/v1/namespaces/{namespace}/secrets/{name} | -[**readNamespacedService**](Core_v1Api.md#readNamespacedService) | **GET** /api/v1/namespaces/{namespace}/services/{name} | -[**readNamespacedServiceAccount**](Core_v1Api.md#readNamespacedServiceAccount) | **GET** /api/v1/namespaces/{namespace}/serviceaccounts/{name} | -[**readNamespacedServiceStatus**](Core_v1Api.md#readNamespacedServiceStatus) | **GET** /api/v1/namespaces/{namespace}/services/{name}/status | -[**readNode**](Core_v1Api.md#readNode) | **GET** /api/v1/nodes/{name} | -[**readNodeStatus**](Core_v1Api.md#readNodeStatus) | **GET** /api/v1/nodes/{name}/status | -[**readPersistentVolume**](Core_v1Api.md#readPersistentVolume) | **GET** /api/v1/persistentvolumes/{name} | -[**readPersistentVolumeStatus**](Core_v1Api.md#readPersistentVolumeStatus) | **GET** /api/v1/persistentvolumes/{name}/status | -[**replaceNamespace**](Core_v1Api.md#replaceNamespace) | **PUT** /api/v1/namespaces/{name} | -[**replaceNamespaceFinalize**](Core_v1Api.md#replaceNamespaceFinalize) | **PUT** /api/v1/namespaces/{name}/finalize | -[**replaceNamespaceStatus**](Core_v1Api.md#replaceNamespaceStatus) | **PUT** /api/v1/namespaces/{name}/status | -[**replaceNamespacedConfigMap**](Core_v1Api.md#replaceNamespacedConfigMap) | **PUT** /api/v1/namespaces/{namespace}/configmaps/{name} | -[**replaceNamespacedEndpoints**](Core_v1Api.md#replaceNamespacedEndpoints) | **PUT** /api/v1/namespaces/{namespace}/endpoints/{name} | -[**replaceNamespacedEvent**](Core_v1Api.md#replaceNamespacedEvent) | **PUT** /api/v1/namespaces/{namespace}/events/{name} | -[**replaceNamespacedLimitRange**](Core_v1Api.md#replaceNamespacedLimitRange) | **PUT** /api/v1/namespaces/{namespace}/limitranges/{name} | -[**replaceNamespacedPersistentVolumeClaim**](Core_v1Api.md#replaceNamespacedPersistentVolumeClaim) | **PUT** /api/v1/namespaces/{namespace}/persistentvolumeclaims/{name} | -[**replaceNamespacedPersistentVolumeClaimStatus**](Core_v1Api.md#replaceNamespacedPersistentVolumeClaimStatus) | **PUT** /api/v1/namespaces/{namespace}/persistentvolumeclaims/{name}/status | -[**replaceNamespacedPod**](Core_v1Api.md#replaceNamespacedPod) | **PUT** /api/v1/namespaces/{namespace}/pods/{name} | -[**replaceNamespacedPodStatus**](Core_v1Api.md#replaceNamespacedPodStatus) | **PUT** /api/v1/namespaces/{namespace}/pods/{name}/status | -[**replaceNamespacedPodTemplate**](Core_v1Api.md#replaceNamespacedPodTemplate) | **PUT** /api/v1/namespaces/{namespace}/podtemplates/{name} | -[**replaceNamespacedReplicationController**](Core_v1Api.md#replaceNamespacedReplicationController) | **PUT** /api/v1/namespaces/{namespace}/replicationcontrollers/{name} | -[**replaceNamespacedReplicationControllerStatus**](Core_v1Api.md#replaceNamespacedReplicationControllerStatus) | **PUT** /api/v1/namespaces/{namespace}/replicationcontrollers/{name}/status | -[**replaceNamespacedResourceQuota**](Core_v1Api.md#replaceNamespacedResourceQuota) | **PUT** /api/v1/namespaces/{namespace}/resourcequotas/{name} | -[**replaceNamespacedResourceQuotaStatus**](Core_v1Api.md#replaceNamespacedResourceQuotaStatus) | **PUT** /api/v1/namespaces/{namespace}/resourcequotas/{name}/status | -[**replaceNamespacedScaleScale**](Core_v1Api.md#replaceNamespacedScaleScale) | **PUT** /api/v1/namespaces/{namespace}/replicationcontrollers/{name}/scale | -[**replaceNamespacedSecret**](Core_v1Api.md#replaceNamespacedSecret) | **PUT** /api/v1/namespaces/{namespace}/secrets/{name} | -[**replaceNamespacedService**](Core_v1Api.md#replaceNamespacedService) | **PUT** /api/v1/namespaces/{namespace}/services/{name} | -[**replaceNamespacedServiceAccount**](Core_v1Api.md#replaceNamespacedServiceAccount) | **PUT** /api/v1/namespaces/{namespace}/serviceaccounts/{name} | -[**replaceNamespacedServiceStatus**](Core_v1Api.md#replaceNamespacedServiceStatus) | **PUT** /api/v1/namespaces/{namespace}/services/{name}/status | -[**replaceNode**](Core_v1Api.md#replaceNode) | **PUT** /api/v1/nodes/{name} | -[**replaceNodeStatus**](Core_v1Api.md#replaceNodeStatus) | **PUT** /api/v1/nodes/{name}/status | -[**replacePersistentVolume**](Core_v1Api.md#replacePersistentVolume) | **PUT** /api/v1/persistentvolumes/{name} | -[**replacePersistentVolumeStatus**](Core_v1Api.md#replacePersistentVolumeStatus) | **PUT** /api/v1/persistentvolumes/{name}/status | - - - -# **connectDeleteNamespacedPodProxy** -> 'String' connectDeleteNamespacedPodProxy(name, namespace, opts) - - - -connect DELETE requests to proxy of Pod - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the Pod - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var opts = { - 'path': "path_example" // String | Path is the URL path to use for the current proxy request to pod. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.connectDeleteNamespacedPodProxy(name, namespace, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Pod | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **path** | **String**| Path is the URL path to use for the current proxy request to pod. | [optional] - -### Return type - -**'String'** - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: */* - - -# **connectDeleteNamespacedPodProxyWithPath** -> 'String' connectDeleteNamespacedPodProxyWithPath(name, namespace, path, opts) - - - -connect DELETE requests to proxy of Pod - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the Pod - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var path = "path_example"; // String | path to the resource - -var opts = { - 'path2': "path_example" // String | Path is the URL path to use for the current proxy request to pod. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.connectDeleteNamespacedPodProxyWithPath(name, namespace, path, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Pod | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **path** | **String**| path to the resource | - **path2** | **String**| Path is the URL path to use for the current proxy request to pod. | [optional] - -### Return type - -**'String'** - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: */* - - -# **connectDeleteNamespacedServiceProxy** -> 'String' connectDeleteNamespacedServiceProxy(name, namespace, opts) - - - -connect DELETE requests to proxy of Service - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the Service - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var opts = { - 'path': "path_example" // String | Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.connectDeleteNamespacedServiceProxy(name, namespace, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Service | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **path** | **String**| Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. | [optional] - -### Return type - -**'String'** - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: */* - - -# **connectDeleteNamespacedServiceProxyWithPath** -> 'String' connectDeleteNamespacedServiceProxyWithPath(name, namespace, path, opts) - - - -connect DELETE requests to proxy of Service - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the Service - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var path = "path_example"; // String | path to the resource - -var opts = { - 'path2': "path_example" // String | Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.connectDeleteNamespacedServiceProxyWithPath(name, namespace, path, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Service | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **path** | **String**| path to the resource | - **path2** | **String**| Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. | [optional] - -### Return type - -**'String'** - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: */* - - -# **connectDeleteNodeProxy** -> 'String' connectDeleteNodeProxy(name, opts) - - - -connect DELETE requests to proxy of Node - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the Node - -var opts = { - 'path': "path_example" // String | Path is the URL path to use for the current proxy request to node. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.connectDeleteNodeProxy(name, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Node | - **path** | **String**| Path is the URL path to use for the current proxy request to node. | [optional] - -### Return type - -**'String'** - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: */* - - -# **connectDeleteNodeProxyWithPath** -> 'String' connectDeleteNodeProxyWithPath(name, path, opts) - - - -connect DELETE requests to proxy of Node - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the Node - -var path = "path_example"; // String | path to the resource - -var opts = { - 'path2': "path_example" // String | Path is the URL path to use for the current proxy request to node. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.connectDeleteNodeProxyWithPath(name, path, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Node | - **path** | **String**| path to the resource | - **path2** | **String**| Path is the URL path to use for the current proxy request to node. | [optional] - -### Return type - -**'String'** - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: */* - - -# **connectGetNamespacedPodAttach** -> 'String' connectGetNamespacedPodAttach(name, namespace, opts) - - - -connect GET requests to attach of Pod - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the Pod - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var opts = { - 'container': "container_example", // String | The container in which to execute the command. Defaults to only container if there is only one container in the pod. - 'stderr': true, // Boolean | Stderr if true indicates that stderr is to be redirected for the attach call. Defaults to true. - 'stdin': true, // Boolean | Stdin if true, redirects the standard input stream of the pod for this call. Defaults to false. - 'stdout': true, // Boolean | Stdout if true indicates that stdout is to be redirected for the attach call. Defaults to true. - 'tty': true // Boolean | TTY if true indicates that a tty will be allocated for the attach call. This is passed through the container runtime so the tty is allocated on the worker node by the container runtime. Defaults to false. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.connectGetNamespacedPodAttach(name, namespace, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Pod | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **container** | **String**| The container in which to execute the command. Defaults to only container if there is only one container in the pod. | [optional] - **stderr** | **Boolean**| Stderr if true indicates that stderr is to be redirected for the attach call. Defaults to true. | [optional] - **stdin** | **Boolean**| Stdin if true, redirects the standard input stream of the pod for this call. Defaults to false. | [optional] - **stdout** | **Boolean**| Stdout if true indicates that stdout is to be redirected for the attach call. Defaults to true. | [optional] - **tty** | **Boolean**| TTY if true indicates that a tty will be allocated for the attach call. This is passed through the container runtime so the tty is allocated on the worker node by the container runtime. Defaults to false. | [optional] - -### Return type - -**'String'** - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: */* - - -# **connectGetNamespacedPodExec** -> 'String' connectGetNamespacedPodExec(name, namespace, opts) - - - -connect GET requests to exec of Pod - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the Pod - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var opts = { - 'command': "command_example", // String | Command is the remote command to execute. argv array. Not executed within a shell. - 'container': "container_example", // String | Container in which to execute the command. Defaults to only container if there is only one container in the pod. - 'stderr': true, // Boolean | Redirect the standard error stream of the pod for this call. Defaults to true. - 'stdin': true, // Boolean | Redirect the standard input stream of the pod for this call. Defaults to false. - 'stdout': true, // Boolean | Redirect the standard output stream of the pod for this call. Defaults to true. - 'tty': true // Boolean | TTY if true indicates that a tty will be allocated for the exec call. Defaults to false. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.connectGetNamespacedPodExec(name, namespace, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Pod | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **command** | **String**| Command is the remote command to execute. argv array. Not executed within a shell. | [optional] - **container** | **String**| Container in which to execute the command. Defaults to only container if there is only one container in the pod. | [optional] - **stderr** | **Boolean**| Redirect the standard error stream of the pod for this call. Defaults to true. | [optional] - **stdin** | **Boolean**| Redirect the standard input stream of the pod for this call. Defaults to false. | [optional] - **stdout** | **Boolean**| Redirect the standard output stream of the pod for this call. Defaults to true. | [optional] - **tty** | **Boolean**| TTY if true indicates that a tty will be allocated for the exec call. Defaults to false. | [optional] - -### Return type - -**'String'** - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: */* - - -# **connectGetNamespacedPodPortforward** -> 'String' connectGetNamespacedPodPortforward(name, namespace, opts) - - - -connect GET requests to portforward of Pod - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the Pod - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var opts = { - 'ports': 56 // Number | List of ports to forward Required when using WebSockets -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.connectGetNamespacedPodPortforward(name, namespace, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Pod | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **ports** | **Number**| List of ports to forward Required when using WebSockets | [optional] - -### Return type - -**'String'** - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: */* - - -# **connectGetNamespacedPodProxy** -> 'String' connectGetNamespacedPodProxy(name, namespace, opts) - - - -connect GET requests to proxy of Pod - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the Pod - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var opts = { - 'path': "path_example" // String | Path is the URL path to use for the current proxy request to pod. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.connectGetNamespacedPodProxy(name, namespace, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Pod | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **path** | **String**| Path is the URL path to use for the current proxy request to pod. | [optional] - -### Return type - -**'String'** - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: */* - - -# **connectGetNamespacedPodProxyWithPath** -> 'String' connectGetNamespacedPodProxyWithPath(name, namespace, path, opts) - - - -connect GET requests to proxy of Pod - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the Pod - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var path = "path_example"; // String | path to the resource - -var opts = { - 'path2': "path_example" // String | Path is the URL path to use for the current proxy request to pod. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.connectGetNamespacedPodProxyWithPath(name, namespace, path, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Pod | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **path** | **String**| path to the resource | - **path2** | **String**| Path is the URL path to use for the current proxy request to pod. | [optional] - -### Return type - -**'String'** - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: */* - - -# **connectGetNamespacedServiceProxy** -> 'String' connectGetNamespacedServiceProxy(name, namespace, opts) - - - -connect GET requests to proxy of Service - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the Service - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var opts = { - 'path': "path_example" // String | Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.connectGetNamespacedServiceProxy(name, namespace, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Service | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **path** | **String**| Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. | [optional] - -### Return type - -**'String'** - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: */* - - -# **connectGetNamespacedServiceProxyWithPath** -> 'String' connectGetNamespacedServiceProxyWithPath(name, namespace, path, opts) - - - -connect GET requests to proxy of Service - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the Service - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var path = "path_example"; // String | path to the resource - -var opts = { - 'path2': "path_example" // String | Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.connectGetNamespacedServiceProxyWithPath(name, namespace, path, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Service | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **path** | **String**| path to the resource | - **path2** | **String**| Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. | [optional] - -### Return type - -**'String'** - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: */* - - -# **connectGetNodeProxy** -> 'String' connectGetNodeProxy(name, opts) - - - -connect GET requests to proxy of Node - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the Node - -var opts = { - 'path': "path_example" // String | Path is the URL path to use for the current proxy request to node. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.connectGetNodeProxy(name, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Node | - **path** | **String**| Path is the URL path to use for the current proxy request to node. | [optional] - -### Return type - -**'String'** - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: */* - - -# **connectGetNodeProxyWithPath** -> 'String' connectGetNodeProxyWithPath(name, path, opts) - - - -connect GET requests to proxy of Node - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the Node - -var path = "path_example"; // String | path to the resource - -var opts = { - 'path2': "path_example" // String | Path is the URL path to use for the current proxy request to node. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.connectGetNodeProxyWithPath(name, path, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Node | - **path** | **String**| path to the resource | - **path2** | **String**| Path is the URL path to use for the current proxy request to node. | [optional] - -### Return type - -**'String'** - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: */* - - -# **connectHeadNamespacedPodProxy** -> 'String' connectHeadNamespacedPodProxy(name, namespace, opts) - - - -connect HEAD requests to proxy of Pod - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the Pod - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var opts = { - 'path': "path_example" // String | Path is the URL path to use for the current proxy request to pod. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.connectHeadNamespacedPodProxy(name, namespace, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Pod | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **path** | **String**| Path is the URL path to use for the current proxy request to pod. | [optional] - -### Return type - -**'String'** - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: */* - - -# **connectHeadNamespacedPodProxyWithPath** -> 'String' connectHeadNamespacedPodProxyWithPath(name, namespace, path, opts) - - - -connect HEAD requests to proxy of Pod - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the Pod - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var path = "path_example"; // String | path to the resource - -var opts = { - 'path2': "path_example" // String | Path is the URL path to use for the current proxy request to pod. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.connectHeadNamespacedPodProxyWithPath(name, namespace, path, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Pod | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **path** | **String**| path to the resource | - **path2** | **String**| Path is the URL path to use for the current proxy request to pod. | [optional] - -### Return type - -**'String'** - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: */* - - -# **connectHeadNamespacedServiceProxy** -> 'String' connectHeadNamespacedServiceProxy(name, namespace, opts) - - - -connect HEAD requests to proxy of Service - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the Service - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var opts = { - 'path': "path_example" // String | Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.connectHeadNamespacedServiceProxy(name, namespace, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Service | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **path** | **String**| Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. | [optional] - -### Return type - -**'String'** - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: */* - - -# **connectHeadNamespacedServiceProxyWithPath** -> 'String' connectHeadNamespacedServiceProxyWithPath(name, namespace, path, opts) - - - -connect HEAD requests to proxy of Service - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the Service - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var path = "path_example"; // String | path to the resource - -var opts = { - 'path2': "path_example" // String | Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.connectHeadNamespacedServiceProxyWithPath(name, namespace, path, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Service | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **path** | **String**| path to the resource | - **path2** | **String**| Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. | [optional] - -### Return type - -**'String'** - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: */* - - -# **connectHeadNodeProxy** -> 'String' connectHeadNodeProxy(name, opts) - - - -connect HEAD requests to proxy of Node - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the Node - -var opts = { - 'path': "path_example" // String | Path is the URL path to use for the current proxy request to node. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.connectHeadNodeProxy(name, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Node | - **path** | **String**| Path is the URL path to use for the current proxy request to node. | [optional] - -### Return type - -**'String'** - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: */* - - -# **connectHeadNodeProxyWithPath** -> 'String' connectHeadNodeProxyWithPath(name, path, opts) - - - -connect HEAD requests to proxy of Node - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the Node - -var path = "path_example"; // String | path to the resource - -var opts = { - 'path2': "path_example" // String | Path is the URL path to use for the current proxy request to node. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.connectHeadNodeProxyWithPath(name, path, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Node | - **path** | **String**| path to the resource | - **path2** | **String**| Path is the URL path to use for the current proxy request to node. | [optional] - -### Return type - -**'String'** - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: */* - - -# **connectOptionsNamespacedPodProxy** -> 'String' connectOptionsNamespacedPodProxy(name, namespace, opts) - - - -connect OPTIONS requests to proxy of Pod - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the Pod - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var opts = { - 'path': "path_example" // String | Path is the URL path to use for the current proxy request to pod. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.connectOptionsNamespacedPodProxy(name, namespace, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Pod | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **path** | **String**| Path is the URL path to use for the current proxy request to pod. | [optional] - -### Return type - -**'String'** - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: */* - - -# **connectOptionsNamespacedPodProxyWithPath** -> 'String' connectOptionsNamespacedPodProxyWithPath(name, namespace, path, opts) - - - -connect OPTIONS requests to proxy of Pod - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the Pod - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var path = "path_example"; // String | path to the resource - -var opts = { - 'path2': "path_example" // String | Path is the URL path to use for the current proxy request to pod. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.connectOptionsNamespacedPodProxyWithPath(name, namespace, path, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Pod | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **path** | **String**| path to the resource | - **path2** | **String**| Path is the URL path to use for the current proxy request to pod. | [optional] - -### Return type - -**'String'** - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: */* - - -# **connectOptionsNamespacedServiceProxy** -> 'String' connectOptionsNamespacedServiceProxy(name, namespace, opts) - - - -connect OPTIONS requests to proxy of Service - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the Service - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var opts = { - 'path': "path_example" // String | Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.connectOptionsNamespacedServiceProxy(name, namespace, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Service | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **path** | **String**| Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. | [optional] - -### Return type - -**'String'** - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: */* - - -# **connectOptionsNamespacedServiceProxyWithPath** -> 'String' connectOptionsNamespacedServiceProxyWithPath(name, namespace, path, opts) - - - -connect OPTIONS requests to proxy of Service - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the Service - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var path = "path_example"; // String | path to the resource - -var opts = { - 'path2': "path_example" // String | Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.connectOptionsNamespacedServiceProxyWithPath(name, namespace, path, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Service | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **path** | **String**| path to the resource | - **path2** | **String**| Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. | [optional] - -### Return type - -**'String'** - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: */* - - -# **connectOptionsNodeProxy** -> 'String' connectOptionsNodeProxy(name, opts) - - - -connect OPTIONS requests to proxy of Node - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the Node - -var opts = { - 'path': "path_example" // String | Path is the URL path to use for the current proxy request to node. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.connectOptionsNodeProxy(name, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Node | - **path** | **String**| Path is the URL path to use for the current proxy request to node. | [optional] - -### Return type - -**'String'** - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: */* - - -# **connectOptionsNodeProxyWithPath** -> 'String' connectOptionsNodeProxyWithPath(name, path, opts) - - - -connect OPTIONS requests to proxy of Node - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the Node - -var path = "path_example"; // String | path to the resource - -var opts = { - 'path2': "path_example" // String | Path is the URL path to use for the current proxy request to node. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.connectOptionsNodeProxyWithPath(name, path, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Node | - **path** | **String**| path to the resource | - **path2** | **String**| Path is the URL path to use for the current proxy request to node. | [optional] - -### Return type - -**'String'** - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: */* - - -# **connectPostNamespacedPodAttach** -> 'String' connectPostNamespacedPodAttach(name, namespace, opts) - - - -connect POST requests to attach of Pod - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the Pod - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var opts = { - 'container': "container_example", // String | The container in which to execute the command. Defaults to only container if there is only one container in the pod. - 'stderr': true, // Boolean | Stderr if true indicates that stderr is to be redirected for the attach call. Defaults to true. - 'stdin': true, // Boolean | Stdin if true, redirects the standard input stream of the pod for this call. Defaults to false. - 'stdout': true, // Boolean | Stdout if true indicates that stdout is to be redirected for the attach call. Defaults to true. - 'tty': true // Boolean | TTY if true indicates that a tty will be allocated for the attach call. This is passed through the container runtime so the tty is allocated on the worker node by the container runtime. Defaults to false. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.connectPostNamespacedPodAttach(name, namespace, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Pod | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **container** | **String**| The container in which to execute the command. Defaults to only container if there is only one container in the pod. | [optional] - **stderr** | **Boolean**| Stderr if true indicates that stderr is to be redirected for the attach call. Defaults to true. | [optional] - **stdin** | **Boolean**| Stdin if true, redirects the standard input stream of the pod for this call. Defaults to false. | [optional] - **stdout** | **Boolean**| Stdout if true indicates that stdout is to be redirected for the attach call. Defaults to true. | [optional] - **tty** | **Boolean**| TTY if true indicates that a tty will be allocated for the attach call. This is passed through the container runtime so the tty is allocated on the worker node by the container runtime. Defaults to false. | [optional] - -### Return type - -**'String'** - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: */* - - -# **connectPostNamespacedPodExec** -> 'String' connectPostNamespacedPodExec(name, namespace, opts) - - - -connect POST requests to exec of Pod - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the Pod - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var opts = { - 'command': "command_example", // String | Command is the remote command to execute. argv array. Not executed within a shell. - 'container': "container_example", // String | Container in which to execute the command. Defaults to only container if there is only one container in the pod. - 'stderr': true, // Boolean | Redirect the standard error stream of the pod for this call. Defaults to true. - 'stdin': true, // Boolean | Redirect the standard input stream of the pod for this call. Defaults to false. - 'stdout': true, // Boolean | Redirect the standard output stream of the pod for this call. Defaults to true. - 'tty': true // Boolean | TTY if true indicates that a tty will be allocated for the exec call. Defaults to false. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.connectPostNamespacedPodExec(name, namespace, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Pod | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **command** | **String**| Command is the remote command to execute. argv array. Not executed within a shell. | [optional] - **container** | **String**| Container in which to execute the command. Defaults to only container if there is only one container in the pod. | [optional] - **stderr** | **Boolean**| Redirect the standard error stream of the pod for this call. Defaults to true. | [optional] - **stdin** | **Boolean**| Redirect the standard input stream of the pod for this call. Defaults to false. | [optional] - **stdout** | **Boolean**| Redirect the standard output stream of the pod for this call. Defaults to true. | [optional] - **tty** | **Boolean**| TTY if true indicates that a tty will be allocated for the exec call. Defaults to false. | [optional] - -### Return type - -**'String'** - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: */* - - -# **connectPostNamespacedPodPortforward** -> 'String' connectPostNamespacedPodPortforward(name, namespace, opts) - - - -connect POST requests to portforward of Pod - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the Pod - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var opts = { - 'ports': 56 // Number | List of ports to forward Required when using WebSockets -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.connectPostNamespacedPodPortforward(name, namespace, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Pod | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **ports** | **Number**| List of ports to forward Required when using WebSockets | [optional] - -### Return type - -**'String'** - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: */* - - -# **connectPostNamespacedPodProxy** -> 'String' connectPostNamespacedPodProxy(name, namespace, opts) - - - -connect POST requests to proxy of Pod - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the Pod - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var opts = { - 'path': "path_example" // String | Path is the URL path to use for the current proxy request to pod. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.connectPostNamespacedPodProxy(name, namespace, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Pod | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **path** | **String**| Path is the URL path to use for the current proxy request to pod. | [optional] - -### Return type - -**'String'** - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: */* - - -# **connectPostNamespacedPodProxyWithPath** -> 'String' connectPostNamespacedPodProxyWithPath(name, namespace, path, opts) - - - -connect POST requests to proxy of Pod - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the Pod - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var path = "path_example"; // String | path to the resource - -var opts = { - 'path2': "path_example" // String | Path is the URL path to use for the current proxy request to pod. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.connectPostNamespacedPodProxyWithPath(name, namespace, path, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Pod | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **path** | **String**| path to the resource | - **path2** | **String**| Path is the URL path to use for the current proxy request to pod. | [optional] - -### Return type - -**'String'** - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: */* - - -# **connectPostNamespacedServiceProxy** -> 'String' connectPostNamespacedServiceProxy(name, namespace, opts) - - - -connect POST requests to proxy of Service - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the Service - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var opts = { - 'path': "path_example" // String | Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.connectPostNamespacedServiceProxy(name, namespace, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Service | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **path** | **String**| Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. | [optional] - -### Return type - -**'String'** - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: */* - - -# **connectPostNamespacedServiceProxyWithPath** -> 'String' connectPostNamespacedServiceProxyWithPath(name, namespace, path, opts) - - - -connect POST requests to proxy of Service - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the Service - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var path = "path_example"; // String | path to the resource - -var opts = { - 'path2': "path_example" // String | Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.connectPostNamespacedServiceProxyWithPath(name, namespace, path, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Service | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **path** | **String**| path to the resource | - **path2** | **String**| Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. | [optional] - -### Return type - -**'String'** - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: */* - - -# **connectPostNodeProxy** -> 'String' connectPostNodeProxy(name, opts) - - - -connect POST requests to proxy of Node - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the Node - -var opts = { - 'path': "path_example" // String | Path is the URL path to use for the current proxy request to node. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.connectPostNodeProxy(name, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Node | - **path** | **String**| Path is the URL path to use for the current proxy request to node. | [optional] - -### Return type - -**'String'** - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: */* - - -# **connectPostNodeProxyWithPath** -> 'String' connectPostNodeProxyWithPath(name, path, opts) - - - -connect POST requests to proxy of Node - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the Node - -var path = "path_example"; // String | path to the resource - -var opts = { - 'path2': "path_example" // String | Path is the URL path to use for the current proxy request to node. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.connectPostNodeProxyWithPath(name, path, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Node | - **path** | **String**| path to the resource | - **path2** | **String**| Path is the URL path to use for the current proxy request to node. | [optional] - -### Return type - -**'String'** - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: */* - - -# **connectPutNamespacedPodProxy** -> 'String' connectPutNamespacedPodProxy(name, namespace, opts) - - - -connect PUT requests to proxy of Pod - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the Pod - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var opts = { - 'path': "path_example" // String | Path is the URL path to use for the current proxy request to pod. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.connectPutNamespacedPodProxy(name, namespace, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Pod | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **path** | **String**| Path is the URL path to use for the current proxy request to pod. | [optional] - -### Return type - -**'String'** - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: */* - - -# **connectPutNamespacedPodProxyWithPath** -> 'String' connectPutNamespacedPodProxyWithPath(name, namespace, path, opts) - - - -connect PUT requests to proxy of Pod - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the Pod - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var path = "path_example"; // String | path to the resource - -var opts = { - 'path2': "path_example" // String | Path is the URL path to use for the current proxy request to pod. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.connectPutNamespacedPodProxyWithPath(name, namespace, path, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Pod | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **path** | **String**| path to the resource | - **path2** | **String**| Path is the URL path to use for the current proxy request to pod. | [optional] - -### Return type - -**'String'** - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: */* - - -# **connectPutNamespacedServiceProxy** -> 'String' connectPutNamespacedServiceProxy(name, namespace, opts) - - - -connect PUT requests to proxy of Service - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the Service - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var opts = { - 'path': "path_example" // String | Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.connectPutNamespacedServiceProxy(name, namespace, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Service | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **path** | **String**| Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. | [optional] - -### Return type - -**'String'** - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: */* - - -# **connectPutNamespacedServiceProxyWithPath** -> 'String' connectPutNamespacedServiceProxyWithPath(name, namespace, path, opts) - - - -connect PUT requests to proxy of Service - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the Service - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var path = "path_example"; // String | path to the resource - -var opts = { - 'path2': "path_example" // String | Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.connectPutNamespacedServiceProxyWithPath(name, namespace, path, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Service | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **path** | **String**| path to the resource | - **path2** | **String**| Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. | [optional] - -### Return type - -**'String'** - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: */* - - -# **connectPutNodeProxy** -> 'String' connectPutNodeProxy(name, opts) - - - -connect PUT requests to proxy of Node - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the Node - -var opts = { - 'path': "path_example" // String | Path is the URL path to use for the current proxy request to node. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.connectPutNodeProxy(name, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Node | - **path** | **String**| Path is the URL path to use for the current proxy request to node. | [optional] - -### Return type - -**'String'** - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: */* - - -# **connectPutNodeProxyWithPath** -> 'String' connectPutNodeProxyWithPath(name, path, opts) - - - -connect PUT requests to proxy of Node - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the Node - -var path = "path_example"; // String | path to the resource - -var opts = { - 'path2': "path_example" // String | Path is the URL path to use for the current proxy request to node. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.connectPutNodeProxyWithPath(name, path, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Node | - **path** | **String**| path to the resource | - **path2** | **String**| Path is the URL path to use for the current proxy request to node. | [optional] - -### Return type - -**'String'** - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: */* - - -# **createNamespace** -> V1Namespace createNamespace(body, opts) - - - -create a Namespace - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var body = new KubernetesJsClient.V1Namespace(); // V1Namespace | - -var opts = { - 'pretty': "pretty_example", // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.createNamespace(body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**V1Namespace**](V1Namespace.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1Namespace**](V1Namespace.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **createNamespacedBinding** -> V1Binding createNamespacedBinding(namespace, body, opts) - - - -create a Binding - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = new KubernetesJsClient.V1Binding(); // V1Binding | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.createNamespacedBinding(namespace, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1Binding**](V1Binding.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1Binding**](V1Binding.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **createNamespacedBindingBinding** -> V1Binding createNamespacedBindingBinding(name, namespace, body, opts) - - - -create binding of a Binding - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the Binding - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = new KubernetesJsClient.V1Binding(); // V1Binding | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.createNamespacedBindingBinding(name, namespace, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Binding | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1Binding**](V1Binding.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1Binding**](V1Binding.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **createNamespacedConfigMap** -> V1ConfigMap createNamespacedConfigMap(namespacebody, opts) - - - -create a ConfigMap - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = new KubernetesJsClient.V1ConfigMap(); // V1ConfigMap | - -var opts = { - 'pretty': "pretty_example", // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.createNamespacedConfigMap(namespacebody, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1ConfigMap**](V1ConfigMap.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1ConfigMap**](V1ConfigMap.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **createNamespacedEndpoints** -> V1Endpoints createNamespacedEndpoints(namespacebody, opts) - - - -create Endpoints - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = new KubernetesJsClient.V1Endpoints(); // V1Endpoints | - -var opts = { - 'pretty': "pretty_example", // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.createNamespacedEndpoints(namespacebody, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1Endpoints**](V1Endpoints.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1Endpoints**](V1Endpoints.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **createNamespacedEvent** -> V1Event createNamespacedEvent(namespacebody, opts) - - - -create an Event - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = new KubernetesJsClient.V1Event(); // V1Event | - -var opts = { - 'pretty': "pretty_example", // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.createNamespacedEvent(namespacebody, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1Event**](V1Event.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1Event**](V1Event.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **createNamespacedEvictionEviction** -> V1beta1Eviction createNamespacedEvictionEviction(name, namespace, body, opts) - - - -create eviction of an Eviction - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the Eviction - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = new KubernetesJsClient.V1beta1Eviction(); // V1beta1Eviction | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.createNamespacedEvictionEviction(name, namespace, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Eviction | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1beta1Eviction**](V1beta1Eviction.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1beta1Eviction**](V1beta1Eviction.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **createNamespacedLimitRange** -> V1LimitRange createNamespacedLimitRange(namespacebody, opts) - - - -create a LimitRange - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = new KubernetesJsClient.V1LimitRange(); // V1LimitRange | - -var opts = { - 'pretty': "pretty_example", // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.createNamespacedLimitRange(namespacebody, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1LimitRange**](V1LimitRange.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1LimitRange**](V1LimitRange.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **createNamespacedPersistentVolumeClaim** -> V1PersistentVolumeClaim createNamespacedPersistentVolumeClaim(namespacebody, opts) - - - -create a PersistentVolumeClaim - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = new KubernetesJsClient.V1PersistentVolumeClaim(); // V1PersistentVolumeClaim | - -var opts = { - 'pretty': "pretty_example", // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.createNamespacedPersistentVolumeClaim(namespacebody, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1PersistentVolumeClaim**](V1PersistentVolumeClaim.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1PersistentVolumeClaim**](V1PersistentVolumeClaim.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **createNamespacedPod** -> V1Pod createNamespacedPod(namespacebody, opts) - - - -create a Pod - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = new KubernetesJsClient.V1Pod(); // V1Pod | - -var opts = { - 'pretty': "pretty_example", // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.createNamespacedPod(namespacebody, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1Pod**](V1Pod.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1Pod**](V1Pod.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **createNamespacedPodTemplate** -> V1PodTemplate createNamespacedPodTemplate(namespacebody, opts) - - - -create a PodTemplate - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = new KubernetesJsClient.V1PodTemplate(); // V1PodTemplate | - -var opts = { - 'pretty': "pretty_example", // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.createNamespacedPodTemplate(namespacebody, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1PodTemplate**](V1PodTemplate.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1PodTemplate**](V1PodTemplate.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **createNamespacedReplicationController** -> V1ReplicationController createNamespacedReplicationController(namespacebody, opts) - - - -create a ReplicationController - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = new KubernetesJsClient.V1ReplicationController(); // V1ReplicationController | - -var opts = { - 'pretty': "pretty_example", // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.createNamespacedReplicationController(namespacebody, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1ReplicationController**](V1ReplicationController.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1ReplicationController**](V1ReplicationController.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **createNamespacedResourceQuota** -> V1ResourceQuota createNamespacedResourceQuota(namespacebody, opts) - - - -create a ResourceQuota - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = new KubernetesJsClient.V1ResourceQuota(); // V1ResourceQuota | - -var opts = { - 'pretty': "pretty_example", // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.createNamespacedResourceQuota(namespacebody, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1ResourceQuota**](V1ResourceQuota.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1ResourceQuota**](V1ResourceQuota.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **createNamespacedSecret** -> V1Secret createNamespacedSecret(namespacebody, opts) - - - -create a Secret - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = new KubernetesJsClient.V1Secret(); // V1Secret | - -var opts = { - 'pretty': "pretty_example", // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.createNamespacedSecret(namespacebody, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1Secret**](V1Secret.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1Secret**](V1Secret.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **createNamespacedService** -> V1Service createNamespacedService(namespace, body, opts) - - - -create a Service - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = new KubernetesJsClient.V1Service(); // V1Service | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.createNamespacedService(namespace, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1Service**](V1Service.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1Service**](V1Service.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **createNamespacedServiceAccount** -> V1ServiceAccount createNamespacedServiceAccount(namespacebody, opts) - - - -create a ServiceAccount - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = new KubernetesJsClient.V1ServiceAccount(); // V1ServiceAccount | - -var opts = { - 'pretty': "pretty_example", // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.createNamespacedServiceAccount(namespacebody, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1ServiceAccount**](V1ServiceAccount.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1ServiceAccount**](V1ServiceAccount.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **createNode** -> V1Node createNode(body, opts) - - - -create a Node - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var body = new KubernetesJsClient.V1Node(); // V1Node | - -var opts = { - 'pretty': "pretty_example", // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.createNode(body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**V1Node**](V1Node.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1Node**](V1Node.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **createPersistentVolume** -> V1PersistentVolume createPersistentVolume(body, opts) - - - -create a PersistentVolume - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var body = new KubernetesJsClient.V1PersistentVolume(); // V1PersistentVolume | - -var opts = { - 'pretty': "pretty_example", // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.createPersistentVolume(body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**V1PersistentVolume**](V1PersistentVolume.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1PersistentVolume**](V1PersistentVolume.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **deleteCollectionNamespace** -> V1Status deleteCollectionNamespace(opts) - - - -delete collection of Namespace - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var opts = { - 'pretty': "pretty_example", // String | If 'true', then the output is pretty printed. - 'fieldSelector': "fieldSelector_example", // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - 'labelSelector': "labelSelector_example", // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - 'resourceVersion': "resourceVersion_example", // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - 'timeoutSeconds': 56, // Number | Timeout for the list/watch call. - 'watch': true // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.deleteCollectionNamespace(opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeoutSeconds** | **Number**| Timeout for the list/watch call. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**V1Status**](V1Status.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **deleteCollectionNamespacedConfigMap** -> V1Status deleteCollectionNamespacedConfigMap(namespace, opts) - - - -delete collection of ConfigMap - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var opts = { - 'pretty': "pretty_example", // String | If 'true', then the output is pretty printed. - 'fieldSelector': "fieldSelector_example", // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - 'labelSelector': "labelSelector_example", // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - 'resourceVersion': "resourceVersion_example", // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - 'timeoutSeconds': 56, // Number | Timeout for the list/watch call. - 'watch': true // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.deleteCollectionNamespacedConfigMap(namespace, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeoutSeconds** | **Number**| Timeout for the list/watch call. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**V1Status**](V1Status.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **deleteCollectionNamespacedEndpoints** -> V1Status deleteCollectionNamespacedEndpoints(namespace, opts) - - - -delete collection of Endpoints - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var opts = { - 'pretty': "pretty_example", // String | If 'true', then the output is pretty printed. - 'fieldSelector': "fieldSelector_example", // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - 'labelSelector': "labelSelector_example", // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - 'resourceVersion': "resourceVersion_example", // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - 'timeoutSeconds': 56, // Number | Timeout for the list/watch call. - 'watch': true // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.deleteCollectionNamespacedEndpoints(namespace, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeoutSeconds** | **Number**| Timeout for the list/watch call. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**V1Status**](V1Status.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **deleteCollectionNamespacedEvent** -> V1Status deleteCollectionNamespacedEvent(namespace, opts) - - - -delete collection of Event - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var opts = { - 'pretty': "pretty_example", // String | If 'true', then the output is pretty printed. - 'fieldSelector': "fieldSelector_example", // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - 'labelSelector': "labelSelector_example", // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - 'resourceVersion': "resourceVersion_example", // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - 'timeoutSeconds': 56, // Number | Timeout for the list/watch call. - 'watch': true // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.deleteCollectionNamespacedEvent(namespace, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeoutSeconds** | **Number**| Timeout for the list/watch call. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**V1Status**](V1Status.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **deleteCollectionNamespacedLimitRange** -> V1Status deleteCollectionNamespacedLimitRange(namespace, opts) - - - -delete collection of LimitRange - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var opts = { - 'pretty': "pretty_example", // String | If 'true', then the output is pretty printed. - 'fieldSelector': "fieldSelector_example", // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - 'labelSelector': "labelSelector_example", // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - 'resourceVersion': "resourceVersion_example", // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - 'timeoutSeconds': 56, // Number | Timeout for the list/watch call. - 'watch': true // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.deleteCollectionNamespacedLimitRange(namespace, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeoutSeconds** | **Number**| Timeout for the list/watch call. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**V1Status**](V1Status.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **deleteCollectionNamespacedPersistentVolumeClaim** -> V1Status deleteCollectionNamespacedPersistentVolumeClaim(namespace, opts) - - - -delete collection of PersistentVolumeClaim - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var opts = { - 'pretty': "pretty_example", // String | If 'true', then the output is pretty printed. - 'fieldSelector': "fieldSelector_example", // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - 'labelSelector': "labelSelector_example", // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - 'resourceVersion': "resourceVersion_example", // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - 'timeoutSeconds': 56, // Number | Timeout for the list/watch call. - 'watch': true // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.deleteCollectionNamespacedPersistentVolumeClaim(namespace, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeoutSeconds** | **Number**| Timeout for the list/watch call. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**V1Status**](V1Status.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **deleteCollectionNamespacedPod** -> V1Status deleteCollectionNamespacedPod(namespace, opts) - - - -delete collection of Pod - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var opts = { - 'pretty': "pretty_example", // String | If 'true', then the output is pretty printed. - 'fieldSelector': "fieldSelector_example", // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - 'labelSelector': "labelSelector_example", // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - 'resourceVersion': "resourceVersion_example", // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - 'timeoutSeconds': 56, // Number | Timeout for the list/watch call. - 'watch': true // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.deleteCollectionNamespacedPod(namespace, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeoutSeconds** | **Number**| Timeout for the list/watch call. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**V1Status**](V1Status.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **deleteCollectionNamespacedPodTemplate** -> V1Status deleteCollectionNamespacedPodTemplate(namespace, opts) - - - -delete collection of PodTemplate - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var opts = { - 'pretty': "pretty_example", // String | If 'true', then the output is pretty printed. - 'fieldSelector': "fieldSelector_example", // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - 'labelSelector': "labelSelector_example", // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - 'resourceVersion': "resourceVersion_example", // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - 'timeoutSeconds': 56, // Number | Timeout for the list/watch call. - 'watch': true // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.deleteCollectionNamespacedPodTemplate(namespace, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeoutSeconds** | **Number**| Timeout for the list/watch call. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**V1Status**](V1Status.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **deleteCollectionNamespacedReplicationController** -> V1Status deleteCollectionNamespacedReplicationController(namespace, opts) - - - -delete collection of ReplicationController - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var opts = { - 'pretty': "pretty_example", // String | If 'true', then the output is pretty printed. - 'fieldSelector': "fieldSelector_example", // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - 'labelSelector': "labelSelector_example", // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - 'resourceVersion': "resourceVersion_example", // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - 'timeoutSeconds': 56, // Number | Timeout for the list/watch call. - 'watch': true // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.deleteCollectionNamespacedReplicationController(namespace, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeoutSeconds** | **Number**| Timeout for the list/watch call. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**V1Status**](V1Status.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **deleteCollectionNamespacedResourceQuota** -> V1Status deleteCollectionNamespacedResourceQuota(namespace, opts) - - - -delete collection of ResourceQuota - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var opts = { - 'pretty': "pretty_example", // String | If 'true', then the output is pretty printed. - 'fieldSelector': "fieldSelector_example", // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - 'labelSelector': "labelSelector_example", // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - 'resourceVersion': "resourceVersion_example", // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - 'timeoutSeconds': 56, // Number | Timeout for the list/watch call. - 'watch': true // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.deleteCollectionNamespacedResourceQuota(namespace, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeoutSeconds** | **Number**| Timeout for the list/watch call. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**V1Status**](V1Status.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **deleteCollectionNamespacedSecret** -> V1Status deleteCollectionNamespacedSecret(namespace, opts) - - - -delete collection of Secret - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var opts = { - 'pretty': "pretty_example", // String | If 'true', then the output is pretty printed. - 'fieldSelector': "fieldSelector_example", // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - 'labelSelector': "labelSelector_example", // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - 'resourceVersion': "resourceVersion_example", // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - 'timeoutSeconds': 56, // Number | Timeout for the list/watch call. - 'watch': true // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.deleteCollectionNamespacedSecret(namespace, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeoutSeconds** | **Number**| Timeout for the list/watch call. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**V1Status**](V1Status.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **deleteCollectionNamespacedServiceAccount** -> V1Status deleteCollectionNamespacedServiceAccount(namespace, opts) - - - -delete collection of ServiceAccount - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var opts = { - 'pretty': "pretty_example", // String | If 'true', then the output is pretty printed. - 'fieldSelector': "fieldSelector_example", // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - 'labelSelector': "labelSelector_example", // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - 'resourceVersion': "resourceVersion_example", // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - 'timeoutSeconds': 56, // Number | Timeout for the list/watch call. - 'watch': true // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.deleteCollectionNamespacedServiceAccount(namespace, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeoutSeconds** | **Number**| Timeout for the list/watch call. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**V1Status**](V1Status.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **deleteCollectionNode** -> V1Status deleteCollectionNode(opts) - - - -delete collection of Node - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var opts = { - 'pretty': "pretty_example", // String | If 'true', then the output is pretty printed. - 'fieldSelector': "fieldSelector_example", // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - 'labelSelector': "labelSelector_example", // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - 'resourceVersion': "resourceVersion_example", // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - 'timeoutSeconds': 56, // Number | Timeout for the list/watch call. - 'watch': true // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.deleteCollectionNode(opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeoutSeconds** | **Number**| Timeout for the list/watch call. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**V1Status**](V1Status.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **deleteCollectionPersistentVolume** -> V1Status deleteCollectionPersistentVolume(opts) - - - -delete collection of PersistentVolume - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var opts = { - 'pretty': "pretty_example", // String | If 'true', then the output is pretty printed. - 'fieldSelector': "fieldSelector_example", // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - 'labelSelector': "labelSelector_example", // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - 'resourceVersion': "resourceVersion_example", // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - 'timeoutSeconds': 56, // Number | Timeout for the list/watch call. - 'watch': true // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.deleteCollectionPersistentVolume(opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeoutSeconds** | **Number**| Timeout for the list/watch call. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**V1Status**](V1Status.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **deleteNamespace** -> V1Status deleteNamespace(name, body, opts) - - - -delete a Namespace - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the Namespace - -var body = new KubernetesJsClient.V1DeleteOptions(); // V1DeleteOptions | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. - 'gracePeriodSeconds': 56, // Number | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - 'orphanDependents': true, // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - 'propagationPolicy': "propagationPolicy_example" // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.deleteNamespace(name, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Namespace | - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **gracePeriodSeconds** | **Number**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. | [optional] - -### Return type - -[**V1Status**](V1Status.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **deleteNamespacedConfigMap** -> V1Status deleteNamespacedConfigMap(name, namespace, body, opts) - - - -delete a ConfigMap - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the ConfigMap - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = new KubernetesJsClient.V1DeleteOptions(); // V1DeleteOptions | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. - 'gracePeriodSeconds': 56, // Number | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - 'orphanDependents': true, // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - 'propagationPolicy': "propagationPolicy_example" // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.deleteNamespacedConfigMap(name, namespace, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ConfigMap | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **gracePeriodSeconds** | **Number**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. | [optional] - -### Return type - -[**V1Status**](V1Status.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **deleteNamespacedEndpoints** -> V1Status deleteNamespacedEndpoints(name, namespace, body, opts) - - - -delete Endpoints - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the Endpoints - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = new KubernetesJsClient.V1DeleteOptions(); // V1DeleteOptions | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. - 'gracePeriodSeconds': 56, // Number | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - 'orphanDependents': true, // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - 'propagationPolicy': "propagationPolicy_example" // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.deleteNamespacedEndpoints(name, namespace, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Endpoints | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **gracePeriodSeconds** | **Number**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. | [optional] - -### Return type - -[**V1Status**](V1Status.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **deleteNamespacedEvent** -> V1Status deleteNamespacedEvent(name, namespace, body, opts) - - - -delete an Event - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the Event - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = new KubernetesJsClient.V1DeleteOptions(); // V1DeleteOptions | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. - 'gracePeriodSeconds': 56, // Number | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - 'orphanDependents': true, // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - 'propagationPolicy': "propagationPolicy_example" // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.deleteNamespacedEvent(name, namespace, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Event | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **gracePeriodSeconds** | **Number**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. | [optional] - -### Return type - -[**V1Status**](V1Status.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **deleteNamespacedLimitRange** -> V1Status deleteNamespacedLimitRange(name, namespace, body, opts) - - - -delete a LimitRange - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the LimitRange - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = new KubernetesJsClient.V1DeleteOptions(); // V1DeleteOptions | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. - 'gracePeriodSeconds': 56, // Number | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - 'orphanDependents': true, // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - 'propagationPolicy': "propagationPolicy_example" // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.deleteNamespacedLimitRange(name, namespace, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the LimitRange | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **gracePeriodSeconds** | **Number**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. | [optional] - -### Return type - -[**V1Status**](V1Status.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **deleteNamespacedPersistentVolumeClaim** -> V1Status deleteNamespacedPersistentVolumeClaim(name, namespace, body, opts) - - - -delete a PersistentVolumeClaim - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the PersistentVolumeClaim - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = new KubernetesJsClient.V1DeleteOptions(); // V1DeleteOptions | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. - 'gracePeriodSeconds': 56, // Number | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - 'orphanDependents': true, // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - 'propagationPolicy': "propagationPolicy_example" // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.deleteNamespacedPersistentVolumeClaim(name, namespace, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the PersistentVolumeClaim | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **gracePeriodSeconds** | **Number**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. | [optional] - -### Return type - -[**V1Status**](V1Status.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **deleteNamespacedPod** -> V1Status deleteNamespacedPod(name, namespace, body, opts) - - - -delete a Pod - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the Pod - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = new KubernetesJsClient.V1DeleteOptions(); // V1DeleteOptions | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. - 'gracePeriodSeconds': 56, // Number | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - 'orphanDependents': true, // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - 'propagationPolicy': "propagationPolicy_example" // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.deleteNamespacedPod(name, namespace, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Pod | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **gracePeriodSeconds** | **Number**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. | [optional] - -### Return type - -[**V1Status**](V1Status.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **deleteNamespacedPodTemplate** -> V1Status deleteNamespacedPodTemplate(name, namespace, body, opts) - - - -delete a PodTemplate - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the PodTemplate - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = new KubernetesJsClient.V1DeleteOptions(); // V1DeleteOptions | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. - 'gracePeriodSeconds': 56, // Number | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - 'orphanDependents': true, // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - 'propagationPolicy': "propagationPolicy_example" // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.deleteNamespacedPodTemplate(name, namespace, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the PodTemplate | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **gracePeriodSeconds** | **Number**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. | [optional] - -### Return type - -[**V1Status**](V1Status.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **deleteNamespacedReplicationController** -> V1Status deleteNamespacedReplicationController(name, namespace, body, opts) - - - -delete a ReplicationController - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the ReplicationController - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = new KubernetesJsClient.V1DeleteOptions(); // V1DeleteOptions | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. - 'gracePeriodSeconds': 56, // Number | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - 'orphanDependents': true, // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - 'propagationPolicy': "propagationPolicy_example" // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.deleteNamespacedReplicationController(name, namespace, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ReplicationController | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **gracePeriodSeconds** | **Number**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. | [optional] - -### Return type - -[**V1Status**](V1Status.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **deleteNamespacedResourceQuota** -> V1Status deleteNamespacedResourceQuota(name, namespace, body, opts) - - - -delete a ResourceQuota - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the ResourceQuota - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = new KubernetesJsClient.V1DeleteOptions(); // V1DeleteOptions | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. - 'gracePeriodSeconds': 56, // Number | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - 'orphanDependents': true, // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - 'propagationPolicy': "propagationPolicy_example" // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.deleteNamespacedResourceQuota(name, namespace, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ResourceQuota | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **gracePeriodSeconds** | **Number**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. | [optional] - -### Return type - -[**V1Status**](V1Status.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **deleteNamespacedSecret** -> V1Status deleteNamespacedSecret(name, namespace, body, opts) - - - -delete a Secret - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the Secret - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = new KubernetesJsClient.V1DeleteOptions(); // V1DeleteOptions | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. - 'gracePeriodSeconds': 56, // Number | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - 'orphanDependents': true, // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - 'propagationPolicy': "propagationPolicy_example" // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.deleteNamespacedSecret(name, namespace, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Secret | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **gracePeriodSeconds** | **Number**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. | [optional] - -### Return type - -[**V1Status**](V1Status.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **deleteNamespacedService** -> V1Status deleteNamespacedService(name, namespace, , opts) - - - -delete a Service - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the Service - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.deleteNamespacedService(name, namespace, , opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Service | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1Status**](V1Status.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **deleteNamespacedServiceAccount** -> V1Status deleteNamespacedServiceAccount(name, namespace, body, opts) - - - -delete a ServiceAccount - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the ServiceAccount - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = new KubernetesJsClient.V1DeleteOptions(); // V1DeleteOptions | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. - 'gracePeriodSeconds': 56, // Number | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - 'orphanDependents': true, // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - 'propagationPolicy': "propagationPolicy_example" // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.deleteNamespacedServiceAccount(name, namespace, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ServiceAccount | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **gracePeriodSeconds** | **Number**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. | [optional] - -### Return type - -[**V1Status**](V1Status.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **deleteNode** -> V1Status deleteNode(name, body, opts) - - - -delete a Node - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the Node - -var body = new KubernetesJsClient.V1DeleteOptions(); // V1DeleteOptions | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. - 'gracePeriodSeconds': 56, // Number | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - 'orphanDependents': true, // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - 'propagationPolicy': "propagationPolicy_example" // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.deleteNode(name, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Node | - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **gracePeriodSeconds** | **Number**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. | [optional] - -### Return type - -[**V1Status**](V1Status.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **deletePersistentVolume** -> V1Status deletePersistentVolume(name, body, opts) - - - -delete a PersistentVolume - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the PersistentVolume - -var body = new KubernetesJsClient.V1DeleteOptions(); // V1DeleteOptions | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. - 'gracePeriodSeconds': 56, // Number | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - 'orphanDependents': true, // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - 'propagationPolicy': "propagationPolicy_example" // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.deletePersistentVolume(name, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the PersistentVolume | - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **gracePeriodSeconds** | **Number**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. | [optional] - -### Return type - -[**V1Status**](V1Status.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **getAPIResources** -> V1APIResourceList getAPIResources() - - - -get available resources - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.getAPIResources(callback); -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -[**V1APIResourceList**](V1APIResourceList.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **listComponentStatus** -> V1ComponentStatusList listComponentStatus(opts) - - - -list objects of kind ComponentStatus - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var opts = { - 'fieldSelector': "fieldSelector_example", // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - 'labelSelector': "labelSelector_example", // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - 'pretty': "pretty_example", // String | If 'true', then the output is pretty printed. - 'resourceVersion': "resourceVersion_example", // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - 'timeoutSeconds': 56, // Number | Timeout for the list/watch call. - 'watch': true // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.listComponentStatus(opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeoutSeconds** | **Number**| Timeout for the list/watch call. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**V1ComponentStatusList**](V1ComponentStatusList.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - - -# **listConfigMapForAllNamespaces** -> V1ConfigMapList listConfigMapForAllNamespaces(opts) - - - -list or watch objects of kind ConfigMap - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var opts = { - 'fieldSelector': "fieldSelector_example", // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - 'labelSelector': "labelSelector_example", // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - 'pretty': "pretty_example", // String | If 'true', then the output is pretty printed. - 'resourceVersion': "resourceVersion_example", // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - 'timeoutSeconds': 56, // Number | Timeout for the list/watch call. - 'watch': true // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.listConfigMapForAllNamespaces(opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeoutSeconds** | **Number**| Timeout for the list/watch call. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**V1ConfigMapList**](V1ConfigMapList.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - - -# **listEndpointsForAllNamespaces** -> V1EndpointsList listEndpointsForAllNamespaces(opts) - - - -list or watch objects of kind Endpoints - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var opts = { - 'fieldSelector': "fieldSelector_example", // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - 'labelSelector': "labelSelector_example", // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - 'pretty': "pretty_example", // String | If 'true', then the output is pretty printed. - 'resourceVersion': "resourceVersion_example", // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - 'timeoutSeconds': 56, // Number | Timeout for the list/watch call. - 'watch': true // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.listEndpointsForAllNamespaces(opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeoutSeconds** | **Number**| Timeout for the list/watch call. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**V1EndpointsList**](V1EndpointsList.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - - -# **listEventForAllNamespaces** -> V1EventList listEventForAllNamespaces(opts) - - - -list or watch objects of kind Event - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var opts = { - 'fieldSelector': "fieldSelector_example", // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - 'labelSelector': "labelSelector_example", // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - 'pretty': "pretty_example", // String | If 'true', then the output is pretty printed. - 'resourceVersion': "resourceVersion_example", // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - 'timeoutSeconds': 56, // Number | Timeout for the list/watch call. - 'watch': true // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.listEventForAllNamespaces(opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeoutSeconds** | **Number**| Timeout for the list/watch call. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**V1EventList**](V1EventList.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - - -# **listLimitRangeForAllNamespaces** -> V1LimitRangeList listLimitRangeForAllNamespaces(opts) - - - -list or watch objects of kind LimitRange - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var opts = { - 'fieldSelector': "fieldSelector_example", // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - 'labelSelector': "labelSelector_example", // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - 'pretty': "pretty_example", // String | If 'true', then the output is pretty printed. - 'resourceVersion': "resourceVersion_example", // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - 'timeoutSeconds': 56, // Number | Timeout for the list/watch call. - 'watch': true // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.listLimitRangeForAllNamespaces(opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeoutSeconds** | **Number**| Timeout for the list/watch call. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**V1LimitRangeList**](V1LimitRangeList.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - - -# **listNamespace** -> V1NamespaceList listNamespace(opts) - - - -list or watch objects of kind Namespace - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var opts = { - 'pretty': "pretty_example", // String | If 'true', then the output is pretty printed. - 'fieldSelector': "fieldSelector_example", // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - 'labelSelector': "labelSelector_example", // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - 'resourceVersion': "resourceVersion_example", // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - 'timeoutSeconds': 56, // Number | Timeout for the list/watch call. - 'watch': true // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.listNamespace(opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeoutSeconds** | **Number**| Timeout for the list/watch call. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**V1NamespaceList**](V1NamespaceList.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - - -# **listNamespacedConfigMap** -> V1ConfigMapList listNamespacedConfigMap(namespace, opts) - - - -list or watch objects of kind ConfigMap - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var opts = { - 'pretty': "pretty_example", // String | If 'true', then the output is pretty printed. - 'fieldSelector': "fieldSelector_example", // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - 'labelSelector': "labelSelector_example", // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - 'resourceVersion': "resourceVersion_example", // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - 'timeoutSeconds': 56, // Number | Timeout for the list/watch call. - 'watch': true // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.listNamespacedConfigMap(namespace, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeoutSeconds** | **Number**| Timeout for the list/watch call. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**V1ConfigMapList**](V1ConfigMapList.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - - -# **listNamespacedEndpoints** -> V1EndpointsList listNamespacedEndpoints(namespace, opts) - - - -list or watch objects of kind Endpoints - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var opts = { - 'pretty': "pretty_example", // String | If 'true', then the output is pretty printed. - 'fieldSelector': "fieldSelector_example", // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - 'labelSelector': "labelSelector_example", // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - 'resourceVersion': "resourceVersion_example", // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - 'timeoutSeconds': 56, // Number | Timeout for the list/watch call. - 'watch': true // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.listNamespacedEndpoints(namespace, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeoutSeconds** | **Number**| Timeout for the list/watch call. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**V1EndpointsList**](V1EndpointsList.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - - -# **listNamespacedEvent** -> V1EventList listNamespacedEvent(namespace, opts) - - - -list or watch objects of kind Event - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var opts = { - 'pretty': "pretty_example", // String | If 'true', then the output is pretty printed. - 'fieldSelector': "fieldSelector_example", // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - 'labelSelector': "labelSelector_example", // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - 'resourceVersion': "resourceVersion_example", // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - 'timeoutSeconds': 56, // Number | Timeout for the list/watch call. - 'watch': true // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.listNamespacedEvent(namespace, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeoutSeconds** | **Number**| Timeout for the list/watch call. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**V1EventList**](V1EventList.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - - -# **listNamespacedLimitRange** -> V1LimitRangeList listNamespacedLimitRange(namespace, opts) - - - -list or watch objects of kind LimitRange - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var opts = { - 'pretty': "pretty_example", // String | If 'true', then the output is pretty printed. - 'fieldSelector': "fieldSelector_example", // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - 'labelSelector': "labelSelector_example", // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - 'resourceVersion': "resourceVersion_example", // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - 'timeoutSeconds': 56, // Number | Timeout for the list/watch call. - 'watch': true // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.listNamespacedLimitRange(namespace, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeoutSeconds** | **Number**| Timeout for the list/watch call. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**V1LimitRangeList**](V1LimitRangeList.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - - -# **listNamespacedPersistentVolumeClaim** -> V1PersistentVolumeClaimList listNamespacedPersistentVolumeClaim(namespace, opts) - - - -list or watch objects of kind PersistentVolumeClaim - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var opts = { - 'pretty': "pretty_example", // String | If 'true', then the output is pretty printed. - 'fieldSelector': "fieldSelector_example", // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - 'labelSelector': "labelSelector_example", // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - 'resourceVersion': "resourceVersion_example", // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - 'timeoutSeconds': 56, // Number | Timeout for the list/watch call. - 'watch': true // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.listNamespacedPersistentVolumeClaim(namespace, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeoutSeconds** | **Number**| Timeout for the list/watch call. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**V1PersistentVolumeClaimList**](V1PersistentVolumeClaimList.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - - -# **listNamespacedPod** -> V1PodList listNamespacedPod(namespace, opts) - - - -list or watch objects of kind Pod - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var opts = { - 'pretty': "pretty_example", // String | If 'true', then the output is pretty printed. - 'fieldSelector': "fieldSelector_example", // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - 'labelSelector': "labelSelector_example", // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - 'resourceVersion': "resourceVersion_example", // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - 'timeoutSeconds': 56, // Number | Timeout for the list/watch call. - 'watch': true // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.listNamespacedPod(namespace, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeoutSeconds** | **Number**| Timeout for the list/watch call. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**V1PodList**](V1PodList.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - - -# **listNamespacedPodTemplate** -> V1PodTemplateList listNamespacedPodTemplate(namespace, opts) - - - -list or watch objects of kind PodTemplate - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var opts = { - 'pretty': "pretty_example", // String | If 'true', then the output is pretty printed. - 'fieldSelector': "fieldSelector_example", // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - 'labelSelector': "labelSelector_example", // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - 'resourceVersion': "resourceVersion_example", // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - 'timeoutSeconds': 56, // Number | Timeout for the list/watch call. - 'watch': true // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.listNamespacedPodTemplate(namespace, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeoutSeconds** | **Number**| Timeout for the list/watch call. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**V1PodTemplateList**](V1PodTemplateList.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - - -# **listNamespacedReplicationController** -> V1ReplicationControllerList listNamespacedReplicationController(namespace, opts) - - - -list or watch objects of kind ReplicationController - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var opts = { - 'pretty': "pretty_example", // String | If 'true', then the output is pretty printed. - 'fieldSelector': "fieldSelector_example", // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - 'labelSelector': "labelSelector_example", // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - 'resourceVersion': "resourceVersion_example", // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - 'timeoutSeconds': 56, // Number | Timeout for the list/watch call. - 'watch': true // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.listNamespacedReplicationController(namespace, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeoutSeconds** | **Number**| Timeout for the list/watch call. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**V1ReplicationControllerList**](V1ReplicationControllerList.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - - -# **listNamespacedResourceQuota** -> V1ResourceQuotaList listNamespacedResourceQuota(namespace, opts) - - - -list or watch objects of kind ResourceQuota - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var opts = { - 'pretty': "pretty_example", // String | If 'true', then the output is pretty printed. - 'fieldSelector': "fieldSelector_example", // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - 'labelSelector': "labelSelector_example", // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - 'resourceVersion': "resourceVersion_example", // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - 'timeoutSeconds': 56, // Number | Timeout for the list/watch call. - 'watch': true // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.listNamespacedResourceQuota(namespace, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeoutSeconds** | **Number**| Timeout for the list/watch call. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**V1ResourceQuotaList**](V1ResourceQuotaList.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - - -# **listNamespacedSecret** -> V1SecretList listNamespacedSecret(namespace, opts) - - - -list or watch objects of kind Secret - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var opts = { - 'pretty': "pretty_example", // String | If 'true', then the output is pretty printed. - 'fieldSelector': "fieldSelector_example", // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - 'labelSelector': "labelSelector_example", // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - 'resourceVersion': "resourceVersion_example", // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - 'timeoutSeconds': 56, // Number | Timeout for the list/watch call. - 'watch': true // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.listNamespacedSecret(namespace, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeoutSeconds** | **Number**| Timeout for the list/watch call. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**V1SecretList**](V1SecretList.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - - -# **listNamespacedService** -> V1ServiceList listNamespacedService(namespace, , opts) - - - -list or watch objects of kind Service - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. - 'fieldSelector': "fieldSelector_example", // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - 'labelSelector': "labelSelector_example", // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - 'resourceVersion': "resourceVersion_example", // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - 'timeoutSeconds': 56, // Number | Timeout for the list/watch call. - 'watch': true // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.listNamespacedService(namespace, , opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeoutSeconds** | **Number**| Timeout for the list/watch call. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**V1ServiceList**](V1ServiceList.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - - -# **listNamespacedServiceAccount** -> V1ServiceAccountList listNamespacedServiceAccount(namespace, opts) - - - -list or watch objects of kind ServiceAccount - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var opts = { - 'pretty': "pretty_example", // String | If 'true', then the output is pretty printed. - 'fieldSelector': "fieldSelector_example", // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - 'labelSelector': "labelSelector_example", // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - 'resourceVersion': "resourceVersion_example", // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - 'timeoutSeconds': 56, // Number | Timeout for the list/watch call. - 'watch': true // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.listNamespacedServiceAccount(namespace, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeoutSeconds** | **Number**| Timeout for the list/watch call. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**V1ServiceAccountList**](V1ServiceAccountList.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - - -# **listNode** -> V1NodeList listNode(opts) - - - -list or watch objects of kind Node - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var opts = { - 'pretty': "pretty_example", // String | If 'true', then the output is pretty printed. - 'fieldSelector': "fieldSelector_example", // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - 'labelSelector': "labelSelector_example", // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - 'resourceVersion': "resourceVersion_example", // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - 'timeoutSeconds': 56, // Number | Timeout for the list/watch call. - 'watch': true // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.listNode(opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeoutSeconds** | **Number**| Timeout for the list/watch call. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**V1NodeList**](V1NodeList.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - - -# **listPersistentVolume** -> V1PersistentVolumeList listPersistentVolume(opts) - - - -list or watch objects of kind PersistentVolume - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var opts = { - 'pretty': "pretty_example", // String | If 'true', then the output is pretty printed. - 'fieldSelector': "fieldSelector_example", // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - 'labelSelector': "labelSelector_example", // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - 'resourceVersion': "resourceVersion_example", // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - 'timeoutSeconds': 56, // Number | Timeout for the list/watch call. - 'watch': true // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.listPersistentVolume(opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeoutSeconds** | **Number**| Timeout for the list/watch call. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**V1PersistentVolumeList**](V1PersistentVolumeList.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - - -# **listPersistentVolumeClaimForAllNamespaces** -> V1PersistentVolumeClaimList listPersistentVolumeClaimForAllNamespaces(opts) - - - -list or watch objects of kind PersistentVolumeClaim - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var opts = { - 'fieldSelector': "fieldSelector_example", // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - 'labelSelector': "labelSelector_example", // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - 'pretty': "pretty_example", // String | If 'true', then the output is pretty printed. - 'resourceVersion': "resourceVersion_example", // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - 'timeoutSeconds': 56, // Number | Timeout for the list/watch call. - 'watch': true // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.listPersistentVolumeClaimForAllNamespaces(opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeoutSeconds** | **Number**| Timeout for the list/watch call. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**V1PersistentVolumeClaimList**](V1PersistentVolumeClaimList.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - - -# **listPodForAllNamespaces** -> V1PodList listPodForAllNamespaces(opts) - - - -list or watch objects of kind Pod - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var opts = { - 'fieldSelector': "fieldSelector_example", // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - 'labelSelector': "labelSelector_example", // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - 'pretty': "pretty_example", // String | If 'true', then the output is pretty printed. - 'resourceVersion': "resourceVersion_example", // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - 'timeoutSeconds': 56, // Number | Timeout for the list/watch call. - 'watch': true // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.listPodForAllNamespaces(opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeoutSeconds** | **Number**| Timeout for the list/watch call. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**V1PodList**](V1PodList.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - - -# **listPodTemplateForAllNamespaces** -> V1PodTemplateList listPodTemplateForAllNamespaces(opts) - - - -list or watch objects of kind PodTemplate - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var opts = { - 'fieldSelector': "fieldSelector_example", // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - 'labelSelector': "labelSelector_example", // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - 'pretty': "pretty_example", // String | If 'true', then the output is pretty printed. - 'resourceVersion': "resourceVersion_example", // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - 'timeoutSeconds': 56, // Number | Timeout for the list/watch call. - 'watch': true // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.listPodTemplateForAllNamespaces(opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeoutSeconds** | **Number**| Timeout for the list/watch call. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**V1PodTemplateList**](V1PodTemplateList.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - - -# **listReplicationControllerForAllNamespaces** -> V1ReplicationControllerList listReplicationControllerForAllNamespaces(opts) - - - -list or watch objects of kind ReplicationController - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var opts = { - 'fieldSelector': "fieldSelector_example", // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - 'labelSelector': "labelSelector_example", // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - 'pretty': "pretty_example", // String | If 'true', then the output is pretty printed. - 'resourceVersion': "resourceVersion_example", // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - 'timeoutSeconds': 56, // Number | Timeout for the list/watch call. - 'watch': true // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.listReplicationControllerForAllNamespaces(opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeoutSeconds** | **Number**| Timeout for the list/watch call. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**V1ReplicationControllerList**](V1ReplicationControllerList.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - - -# **listResourceQuotaForAllNamespaces** -> V1ResourceQuotaList listResourceQuotaForAllNamespaces(opts) - - - -list or watch objects of kind ResourceQuota - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var opts = { - 'fieldSelector': "fieldSelector_example", // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - 'labelSelector': "labelSelector_example", // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - 'pretty': "pretty_example", // String | If 'true', then the output is pretty printed. - 'resourceVersion': "resourceVersion_example", // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - 'timeoutSeconds': 56, // Number | Timeout for the list/watch call. - 'watch': true // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.listResourceQuotaForAllNamespaces(opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeoutSeconds** | **Number**| Timeout for the list/watch call. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**V1ResourceQuotaList**](V1ResourceQuotaList.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - - -# **listSecretForAllNamespaces** -> V1SecretList listSecretForAllNamespaces(opts) - - - -list or watch objects of kind Secret - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var opts = { - 'fieldSelector': "fieldSelector_example", // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - 'labelSelector': "labelSelector_example", // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - 'pretty': "pretty_example", // String | If 'true', then the output is pretty printed. - 'resourceVersion': "resourceVersion_example", // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - 'timeoutSeconds': 56, // Number | Timeout for the list/watch call. - 'watch': true // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.listSecretForAllNamespaces(opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeoutSeconds** | **Number**| Timeout for the list/watch call. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**V1SecretList**](V1SecretList.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - - -# **listServiceAccountForAllNamespaces** -> V1ServiceAccountList listServiceAccountForAllNamespaces(opts) - - - -list or watch objects of kind ServiceAccount - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var opts = { - 'fieldSelector': "fieldSelector_example", // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - 'labelSelector': "labelSelector_example", // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - 'pretty': "pretty_example", // String | If 'true', then the output is pretty printed. - 'resourceVersion': "resourceVersion_example", // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - 'timeoutSeconds': 56, // Number | Timeout for the list/watch call. - 'watch': true // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.listServiceAccountForAllNamespaces(opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeoutSeconds** | **Number**| Timeout for the list/watch call. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**V1ServiceAccountList**](V1ServiceAccountList.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - - -# **listServiceForAllNamespaces** -> V1ServiceList listServiceForAllNamespaces(opts) - - - -list or watch objects of kind Service - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var opts = { - 'fieldSelector': "fieldSelector_example", // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - 'labelSelector': "labelSelector_example", // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - 'pretty': "pretty_example", // String | If 'true', then the output is pretty printed. - 'resourceVersion': "resourceVersion_example", // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - 'timeoutSeconds': 56, // Number | Timeout for the list/watch call. - 'watch': true // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.listServiceForAllNamespaces(opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeoutSeconds** | **Number**| Timeout for the list/watch call. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**V1ServiceList**](V1ServiceList.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - - -# **patchNamespace** -> V1Namespace patchNamespace(name, body, opts) - - - -partially update the specified Namespace - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the Namespace - -var body = null; // Object | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.patchNamespace(name, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Namespace | - **body** | **Object**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1Namespace**](V1Namespace.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **patchNamespaceStatus** -> V1Namespace patchNamespaceStatus(name, body, opts) - - - -partially update status of the specified Namespace - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the Namespace - -var body = null; // Object | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.patchNamespaceStatus(name, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Namespace | - **body** | **Object**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1Namespace**](V1Namespace.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **patchNamespacedConfigMap** -> V1ConfigMap patchNamespacedConfigMap(name, namespace, body, opts) - - - -partially update the specified ConfigMap - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the ConfigMap - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = null; // Object | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.patchNamespacedConfigMap(name, namespace, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ConfigMap | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | **Object**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1ConfigMap**](V1ConfigMap.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **patchNamespacedEndpoints** -> V1Endpoints patchNamespacedEndpoints(name, namespace, body, opts) - - - -partially update the specified Endpoints - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the Endpoints - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = null; // Object | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.patchNamespacedEndpoints(name, namespace, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Endpoints | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | **Object**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1Endpoints**](V1Endpoints.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **patchNamespacedEvent** -> V1Event patchNamespacedEvent(name, namespace, body, opts) - - - -partially update the specified Event - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the Event - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = null; // Object | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.patchNamespacedEvent(name, namespace, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Event | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | **Object**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1Event**](V1Event.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **patchNamespacedLimitRange** -> V1LimitRange patchNamespacedLimitRange(name, namespace, body, opts) - - - -partially update the specified LimitRange - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the LimitRange - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = null; // Object | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.patchNamespacedLimitRange(name, namespace, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the LimitRange | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | **Object**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1LimitRange**](V1LimitRange.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **patchNamespacedPersistentVolumeClaim** -> V1PersistentVolumeClaim patchNamespacedPersistentVolumeClaim(name, namespace, body, opts) - - - -partially update the specified PersistentVolumeClaim - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the PersistentVolumeClaim - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = null; // Object | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.patchNamespacedPersistentVolumeClaim(name, namespace, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the PersistentVolumeClaim | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | **Object**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1PersistentVolumeClaim**](V1PersistentVolumeClaim.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **patchNamespacedPersistentVolumeClaimStatus** -> V1PersistentVolumeClaim patchNamespacedPersistentVolumeClaimStatus(name, namespace, body, opts) - - - -partially update status of the specified PersistentVolumeClaim - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the PersistentVolumeClaim - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = null; // Object | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.patchNamespacedPersistentVolumeClaimStatus(name, namespace, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the PersistentVolumeClaim | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | **Object**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1PersistentVolumeClaim**](V1PersistentVolumeClaim.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **patchNamespacedPod** -> V1Pod patchNamespacedPod(name, namespace, body, opts) - - - -partially update the specified Pod - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the Pod - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = null; // Object | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.patchNamespacedPod(name, namespace, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Pod | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | **Object**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1Pod**](V1Pod.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **patchNamespacedPodStatus** -> V1Pod patchNamespacedPodStatus(name, namespace, body, opts) - - - -partially update status of the specified Pod - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the Pod - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = null; // Object | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.patchNamespacedPodStatus(name, namespace, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Pod | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | **Object**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1Pod**](V1Pod.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **patchNamespacedPodTemplate** -> V1PodTemplate patchNamespacedPodTemplate(name, namespace, body, opts) - - - -partially update the specified PodTemplate - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the PodTemplate - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = null; // Object | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.patchNamespacedPodTemplate(name, namespace, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the PodTemplate | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | **Object**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1PodTemplate**](V1PodTemplate.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **patchNamespacedReplicationController** -> V1ReplicationController patchNamespacedReplicationController(name, namespace, body, opts) - - - -partially update the specified ReplicationController - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the ReplicationController - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = null; // Object | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.patchNamespacedReplicationController(name, namespace, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ReplicationController | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | **Object**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1ReplicationController**](V1ReplicationController.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **patchNamespacedReplicationControllerStatus** -> V1ReplicationController patchNamespacedReplicationControllerStatus(name, namespace, body, opts) - - - -partially update status of the specified ReplicationController - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the ReplicationController - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = null; // Object | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.patchNamespacedReplicationControllerStatus(name, namespace, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ReplicationController | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | **Object**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1ReplicationController**](V1ReplicationController.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **patchNamespacedResourceQuota** -> V1ResourceQuota patchNamespacedResourceQuota(name, namespace, body, opts) - - - -partially update the specified ResourceQuota - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the ResourceQuota - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = null; // Object | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.patchNamespacedResourceQuota(name, namespace, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ResourceQuota | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | **Object**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1ResourceQuota**](V1ResourceQuota.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **patchNamespacedResourceQuotaStatus** -> V1ResourceQuota patchNamespacedResourceQuotaStatus(name, namespace, body, opts) - - - -partially update status of the specified ResourceQuota - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the ResourceQuota - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = null; // Object | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.patchNamespacedResourceQuotaStatus(name, namespace, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ResourceQuota | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | **Object**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1ResourceQuota**](V1ResourceQuota.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **patchNamespacedScaleScale** -> V1Scale patchNamespacedScaleScale(name, namespace, body, opts) - - - -partially update scale of the specified Scale - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the Scale - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = null; // Object | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.patchNamespacedScaleScale(name, namespace, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Scale | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | **Object**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1Scale**](V1Scale.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **patchNamespacedSecret** -> V1Secret patchNamespacedSecret(name, namespace, body, opts) - - - -partially update the specified Secret - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the Secret - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = null; // Object | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.patchNamespacedSecret(name, namespace, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Secret | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | **Object**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1Secret**](V1Secret.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **patchNamespacedService** -> V1Service patchNamespacedService(name, namespace, body, opts) - - - -partially update the specified Service - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the Service - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = null; // Object | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.patchNamespacedService(name, namespace, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Service | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | **Object**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1Service**](V1Service.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **patchNamespacedServiceAccount** -> V1ServiceAccount patchNamespacedServiceAccount(name, namespace, body, opts) - - - -partially update the specified ServiceAccount - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the ServiceAccount - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = null; // Object | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.patchNamespacedServiceAccount(name, namespace, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ServiceAccount | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | **Object**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1ServiceAccount**](V1ServiceAccount.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **patchNamespacedServiceStatus** -> V1Service patchNamespacedServiceStatus(name, namespace, body, opts) - - - -partially update status of the specified Service - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the Service - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = null; // Object | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.patchNamespacedServiceStatus(name, namespace, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Service | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | **Object**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1Service**](V1Service.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **patchNode** -> V1Node patchNode(name, body, opts) - - - -partially update the specified Node - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the Node - -var body = null; // Object | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.patchNode(name, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Node | - **body** | **Object**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1Node**](V1Node.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **patchNodeStatus** -> V1Node patchNodeStatus(name, body, opts) - - - -partially update status of the specified Node - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the Node - -var body = null; // Object | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.patchNodeStatus(name, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Node | - **body** | **Object**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1Node**](V1Node.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **patchPersistentVolume** -> V1PersistentVolume patchPersistentVolume(name, body, opts) - - - -partially update the specified PersistentVolume - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the PersistentVolume - -var body = null; // Object | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.patchPersistentVolume(name, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the PersistentVolume | - **body** | **Object**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1PersistentVolume**](V1PersistentVolume.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **patchPersistentVolumeStatus** -> V1PersistentVolume patchPersistentVolumeStatus(name, body, opts) - - - -partially update status of the specified PersistentVolume - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the PersistentVolume - -var body = null; // Object | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.patchPersistentVolumeStatus(name, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the PersistentVolume | - **body** | **Object**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1PersistentVolume**](V1PersistentVolume.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **proxyDELETENamespacedPod** -> 'String' proxyDELETENamespacedPod(name, namespace) - - - -proxy DELETE requests to Pod - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the Pod - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.proxyDELETENamespacedPod(name, namespace, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Pod | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - -### Return type - -**'String'** - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: */* - - -# **proxyDELETENamespacedPodWithPath** -> 'String' proxyDELETENamespacedPodWithPath(name, namespace, path) - - - -proxy DELETE requests to Pod - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the Pod - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var path = "path_example"; // String | path to the resource - - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.proxyDELETENamespacedPodWithPath(name, namespace, path, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Pod | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **path** | **String**| path to the resource | - -### Return type - -**'String'** - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: */* - - -# **proxyDELETENamespacedService** -> 'String' proxyDELETENamespacedService(name, namespace) - - - -proxy DELETE requests to Service - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the Service - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.proxyDELETENamespacedService(name, namespace, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Service | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - -### Return type - -**'String'** - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: */* - - -# **proxyDELETENamespacedServiceWithPath** -> 'String' proxyDELETENamespacedServiceWithPath(name, namespace, path) - - - -proxy DELETE requests to Service - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the Service - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var path = "path_example"; // String | path to the resource - - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.proxyDELETENamespacedServiceWithPath(name, namespace, path, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Service | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **path** | **String**| path to the resource | - -### Return type - -**'String'** - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: */* - - -# **proxyDELETENode** -> 'String' proxyDELETENode(name) - - - -proxy DELETE requests to Node - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the Node - - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.proxyDELETENode(name, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Node | - -### Return type - -**'String'** - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: */* - - -# **proxyDELETENodeWithPath** -> 'String' proxyDELETENodeWithPath(name, path) - - - -proxy DELETE requests to Node - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the Node - -var path = "path_example"; // String | path to the resource - - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.proxyDELETENodeWithPath(name, path, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Node | - **path** | **String**| path to the resource | - -### Return type - -**'String'** - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: */* - - -# **proxyGETNamespacedPod** -> 'String' proxyGETNamespacedPod(name, namespace) - - - -proxy GET requests to Pod - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the Pod - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.proxyGETNamespacedPod(name, namespace, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Pod | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - -### Return type - -**'String'** - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: */* - - -# **proxyGETNamespacedPodWithPath** -> 'String' proxyGETNamespacedPodWithPath(name, namespace, path) - - - -proxy GET requests to Pod - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the Pod - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var path = "path_example"; // String | path to the resource - - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.proxyGETNamespacedPodWithPath(name, namespace, path, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Pod | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **path** | **String**| path to the resource | - -### Return type - -**'String'** - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: */* - - -# **proxyGETNamespacedService** -> 'String' proxyGETNamespacedService(name, namespace) - - - -proxy GET requests to Service - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the Service - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.proxyGETNamespacedService(name, namespace, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Service | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - -### Return type - -**'String'** - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: */* - - -# **proxyGETNamespacedServiceWithPath** -> 'String' proxyGETNamespacedServiceWithPath(name, namespace, path) - - - -proxy GET requests to Service - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the Service - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var path = "path_example"; // String | path to the resource - - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.proxyGETNamespacedServiceWithPath(name, namespace, path, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Service | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **path** | **String**| path to the resource | - -### Return type - -**'String'** - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: */* - - -# **proxyGETNode** -> 'String' proxyGETNode(name) - - - -proxy GET requests to Node - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the Node - - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.proxyGETNode(name, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Node | - -### Return type - -**'String'** - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: */* - - -# **proxyGETNodeWithPath** -> 'String' proxyGETNodeWithPath(name, path) - - - -proxy GET requests to Node - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the Node - -var path = "path_example"; // String | path to the resource - - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.proxyGETNodeWithPath(name, path, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Node | - **path** | **String**| path to the resource | - -### Return type - -**'String'** - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: */* - - -# **proxyHEADNamespacedPod** -> 'String' proxyHEADNamespacedPod(name, namespace) - - - -proxy HEAD requests to Pod - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the Pod - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.proxyHEADNamespacedPod(name, namespace, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Pod | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - -### Return type - -**'String'** - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: */* - - -# **proxyHEADNamespacedPodWithPath** -> 'String' proxyHEADNamespacedPodWithPath(name, namespace, path) - - - -proxy HEAD requests to Pod - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the Pod - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var path = "path_example"; // String | path to the resource - - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.proxyHEADNamespacedPodWithPath(name, namespace, path, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Pod | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **path** | **String**| path to the resource | - -### Return type - -**'String'** - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: */* - - -# **proxyHEADNamespacedService** -> 'String' proxyHEADNamespacedService(name, namespace) - - - -proxy HEAD requests to Service - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the Service - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.proxyHEADNamespacedService(name, namespace, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Service | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - -### Return type - -**'String'** - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: */* - - -# **proxyHEADNamespacedServiceWithPath** -> 'String' proxyHEADNamespacedServiceWithPath(name, namespace, path) - - - -proxy HEAD requests to Service - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the Service - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var path = "path_example"; // String | path to the resource - - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.proxyHEADNamespacedServiceWithPath(name, namespace, path, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Service | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **path** | **String**| path to the resource | - -### Return type - -**'String'** - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: */* - - -# **proxyHEADNode** -> 'String' proxyHEADNode(name) - - - -proxy HEAD requests to Node - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the Node - - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.proxyHEADNode(name, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Node | - -### Return type - -**'String'** - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: */* - - -# **proxyHEADNodeWithPath** -> 'String' proxyHEADNodeWithPath(name, path) - - - -proxy HEAD requests to Node - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the Node - -var path = "path_example"; // String | path to the resource - - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.proxyHEADNodeWithPath(name, path, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Node | - **path** | **String**| path to the resource | - -### Return type - -**'String'** - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: */* - - -# **proxyOPTIONSNamespacedPod** -> 'String' proxyOPTIONSNamespacedPod(name, namespace) - - - -proxy OPTIONS requests to Pod - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the Pod - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.proxyOPTIONSNamespacedPod(name, namespace, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Pod | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - -### Return type - -**'String'** - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: */* - - -# **proxyOPTIONSNamespacedPodWithPath** -> 'String' proxyOPTIONSNamespacedPodWithPath(name, namespace, path) - - - -proxy OPTIONS requests to Pod - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the Pod - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var path = "path_example"; // String | path to the resource - - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.proxyOPTIONSNamespacedPodWithPath(name, namespace, path, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Pod | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **path** | **String**| path to the resource | - -### Return type - -**'String'** - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: */* - - -# **proxyOPTIONSNamespacedService** -> 'String' proxyOPTIONSNamespacedService(name, namespace) - - - -proxy OPTIONS requests to Service - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the Service - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.proxyOPTIONSNamespacedService(name, namespace, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Service | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - -### Return type - -**'String'** - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: */* - - -# **proxyOPTIONSNamespacedServiceWithPath** -> 'String' proxyOPTIONSNamespacedServiceWithPath(name, namespace, path) - - - -proxy OPTIONS requests to Service - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the Service - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var path = "path_example"; // String | path to the resource - - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.proxyOPTIONSNamespacedServiceWithPath(name, namespace, path, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Service | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **path** | **String**| path to the resource | - -### Return type - -**'String'** - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: */* - - -# **proxyOPTIONSNode** -> 'String' proxyOPTIONSNode(name) - - - -proxy OPTIONS requests to Node - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the Node - - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.proxyOPTIONSNode(name, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Node | - -### Return type - -**'String'** - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: */* - - -# **proxyOPTIONSNodeWithPath** -> 'String' proxyOPTIONSNodeWithPath(name, path) - - - -proxy OPTIONS requests to Node - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the Node - -var path = "path_example"; // String | path to the resource - - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.proxyOPTIONSNodeWithPath(name, path, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Node | - **path** | **String**| path to the resource | - -### Return type - -**'String'** - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: */* - - -# **proxyPATCHNamespacedPod** -> 'String' proxyPATCHNamespacedPod(name, namespace) - - - -proxy PATCH requests to Pod - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the Pod - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.proxyPATCHNamespacedPod(name, namespace, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Pod | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - -### Return type - -**'String'** - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: */* - - -# **proxyPATCHNamespacedPodWithPath** -> 'String' proxyPATCHNamespacedPodWithPath(name, namespace, path) - - - -proxy PATCH requests to Pod - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the Pod - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var path = "path_example"; // String | path to the resource - - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.proxyPATCHNamespacedPodWithPath(name, namespace, path, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Pod | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **path** | **String**| path to the resource | - -### Return type - -**'String'** - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: */* - - -# **proxyPATCHNamespacedService** -> 'String' proxyPATCHNamespacedService(name, namespace) - - - -proxy PATCH requests to Service - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the Service - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.proxyPATCHNamespacedService(name, namespace, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Service | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - -### Return type - -**'String'** - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: */* - - -# **proxyPATCHNamespacedServiceWithPath** -> 'String' proxyPATCHNamespacedServiceWithPath(name, namespace, path) - - - -proxy PATCH requests to Service - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the Service - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var path = "path_example"; // String | path to the resource - - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.proxyPATCHNamespacedServiceWithPath(name, namespace, path, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Service | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **path** | **String**| path to the resource | - -### Return type - -**'String'** - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: */* - - -# **proxyPATCHNode** -> 'String' proxyPATCHNode(name) - - - -proxy PATCH requests to Node - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the Node - - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.proxyPATCHNode(name, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Node | - -### Return type - -**'String'** - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: */* - - -# **proxyPATCHNodeWithPath** -> 'String' proxyPATCHNodeWithPath(name, path) - - - -proxy PATCH requests to Node - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the Node - -var path = "path_example"; // String | path to the resource - - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.proxyPATCHNodeWithPath(name, path, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Node | - **path** | **String**| path to the resource | - -### Return type - -**'String'** - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: */* - - -# **proxyPOSTNamespacedPod** -> 'String' proxyPOSTNamespacedPod(name, namespace) - - - -proxy POST requests to Pod - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the Pod - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.proxyPOSTNamespacedPod(name, namespace, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Pod | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - -### Return type - -**'String'** - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: */* - - -# **proxyPOSTNamespacedPodWithPath** -> 'String' proxyPOSTNamespacedPodWithPath(name, namespace, path) - - - -proxy POST requests to Pod - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the Pod - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var path = "path_example"; // String | path to the resource - - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.proxyPOSTNamespacedPodWithPath(name, namespace, path, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Pod | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **path** | **String**| path to the resource | - -### Return type - -**'String'** - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: */* - - -# **proxyPOSTNamespacedService** -> 'String' proxyPOSTNamespacedService(name, namespace) - - - -proxy POST requests to Service - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the Service - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.proxyPOSTNamespacedService(name, namespace, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Service | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - -### Return type - -**'String'** - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: */* - - -# **proxyPOSTNamespacedServiceWithPath** -> 'String' proxyPOSTNamespacedServiceWithPath(name, namespace, path) - - - -proxy POST requests to Service - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the Service - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var path = "path_example"; // String | path to the resource - - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.proxyPOSTNamespacedServiceWithPath(name, namespace, path, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Service | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **path** | **String**| path to the resource | - -### Return type - -**'String'** - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: */* - - -# **proxyPOSTNode** -> 'String' proxyPOSTNode(name) - - - -proxy POST requests to Node - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the Node - - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.proxyPOSTNode(name, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Node | - -### Return type - -**'String'** - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: */* - - -# **proxyPOSTNodeWithPath** -> 'String' proxyPOSTNodeWithPath(name, path) - - - -proxy POST requests to Node - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the Node - -var path = "path_example"; // String | path to the resource - - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.proxyPOSTNodeWithPath(name, path, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Node | - **path** | **String**| path to the resource | - -### Return type - -**'String'** - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: */* - - -# **proxyPUTNamespacedPod** -> 'String' proxyPUTNamespacedPod(name, namespace) - - - -proxy PUT requests to Pod - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the Pod - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.proxyPUTNamespacedPod(name, namespace, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Pod | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - -### Return type - -**'String'** - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: */* - - -# **proxyPUTNamespacedPodWithPath** -> 'String' proxyPUTNamespacedPodWithPath(name, namespace, path) - - - -proxy PUT requests to Pod - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the Pod - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var path = "path_example"; // String | path to the resource - - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.proxyPUTNamespacedPodWithPath(name, namespace, path, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Pod | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **path** | **String**| path to the resource | - -### Return type - -**'String'** - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: */* - - -# **proxyPUTNamespacedService** -> 'String' proxyPUTNamespacedService(name, namespace) - - - -proxy PUT requests to Service - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the Service - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.proxyPUTNamespacedService(name, namespace, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Service | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - -### Return type - -**'String'** - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: */* - - -# **proxyPUTNamespacedServiceWithPath** -> 'String' proxyPUTNamespacedServiceWithPath(name, namespace, path) - - - -proxy PUT requests to Service - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the Service - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var path = "path_example"; // String | path to the resource - - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.proxyPUTNamespacedServiceWithPath(name, namespace, path, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Service | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **path** | **String**| path to the resource | - -### Return type - -**'String'** - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: */* - - -# **proxyPUTNode** -> 'String' proxyPUTNode(name) - - - -proxy PUT requests to Node - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the Node - - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.proxyPUTNode(name, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Node | - -### Return type - -**'String'** - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: */* - - -# **proxyPUTNodeWithPath** -> 'String' proxyPUTNodeWithPath(name, path) - - - -proxy PUT requests to Node - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the Node - -var path = "path_example"; // String | path to the resource - - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.proxyPUTNodeWithPath(name, path, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Node | - **path** | **String**| path to the resource | - -### Return type - -**'String'** - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: */* - - -# **readComponentStatus** -> V1ComponentStatus readComponentStatus(name, opts) - - - -read the specified ComponentStatus - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the ComponentStatus - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.readComponentStatus(name, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ComponentStatus | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1ComponentStatus**](V1ComponentStatus.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **readNamespace** -> V1Namespace readNamespace(name, , opts) - - - -read the specified Namespace - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the Namespace - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. - 'exact': true, // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. - '_export': true // Boolean | Should this value be exported. Export strips fields that a user can not specify. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.readNamespace(name, , opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Namespace | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **exact** | **Boolean**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. | [optional] - **_export** | **Boolean**| Should this value be exported. Export strips fields that a user can not specify. | [optional] - -### Return type - -[**V1Namespace**](V1Namespace.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **readNamespaceStatus** -> V1Namespace readNamespaceStatus(name, , opts) - - - -read status of the specified Namespace - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the Namespace - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.readNamespaceStatus(name, , opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Namespace | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1Namespace**](V1Namespace.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **readNamespacedConfigMap** -> V1ConfigMap readNamespacedConfigMap(name, namespace, , opts) - - - -read the specified ConfigMap - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the ConfigMap - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. - 'exact': true, // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. - '_export': true // Boolean | Should this value be exported. Export strips fields that a user can not specify. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.readNamespacedConfigMap(name, namespace, , opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ConfigMap | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **exact** | **Boolean**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. | [optional] - **_export** | **Boolean**| Should this value be exported. Export strips fields that a user can not specify. | [optional] - -### Return type - -[**V1ConfigMap**](V1ConfigMap.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **readNamespacedEndpoints** -> V1Endpoints readNamespacedEndpoints(name, namespace, , opts) - - - -read the specified Endpoints - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the Endpoints - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. - 'exact': true, // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. - '_export': true // Boolean | Should this value be exported. Export strips fields that a user can not specify. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.readNamespacedEndpoints(name, namespace, , opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Endpoints | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **exact** | **Boolean**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. | [optional] - **_export** | **Boolean**| Should this value be exported. Export strips fields that a user can not specify. | [optional] - -### Return type - -[**V1Endpoints**](V1Endpoints.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **readNamespacedEvent** -> V1Event readNamespacedEvent(name, namespace, , opts) - - - -read the specified Event - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the Event - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. - 'exact': true, // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. - '_export': true // Boolean | Should this value be exported. Export strips fields that a user can not specify. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.readNamespacedEvent(name, namespace, , opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Event | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **exact** | **Boolean**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. | [optional] - **_export** | **Boolean**| Should this value be exported. Export strips fields that a user can not specify. | [optional] - -### Return type - -[**V1Event**](V1Event.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **readNamespacedLimitRange** -> V1LimitRange readNamespacedLimitRange(name, namespace, , opts) - - - -read the specified LimitRange - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the LimitRange - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. - 'exact': true, // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. - '_export': true // Boolean | Should this value be exported. Export strips fields that a user can not specify. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.readNamespacedLimitRange(name, namespace, , opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the LimitRange | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **exact** | **Boolean**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. | [optional] - **_export** | **Boolean**| Should this value be exported. Export strips fields that a user can not specify. | [optional] - -### Return type - -[**V1LimitRange**](V1LimitRange.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **readNamespacedPersistentVolumeClaim** -> V1PersistentVolumeClaim readNamespacedPersistentVolumeClaim(name, namespace, , opts) - - - -read the specified PersistentVolumeClaim - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the PersistentVolumeClaim - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. - 'exact': true, // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. - '_export': true // Boolean | Should this value be exported. Export strips fields that a user can not specify. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.readNamespacedPersistentVolumeClaim(name, namespace, , opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the PersistentVolumeClaim | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **exact** | **Boolean**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. | [optional] - **_export** | **Boolean**| Should this value be exported. Export strips fields that a user can not specify. | [optional] - -### Return type - -[**V1PersistentVolumeClaim**](V1PersistentVolumeClaim.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **readNamespacedPersistentVolumeClaimStatus** -> V1PersistentVolumeClaim readNamespacedPersistentVolumeClaimStatus(name, namespace, , opts) - - - -read status of the specified PersistentVolumeClaim - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the PersistentVolumeClaim - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.readNamespacedPersistentVolumeClaimStatus(name, namespace, , opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the PersistentVolumeClaim | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1PersistentVolumeClaim**](V1PersistentVolumeClaim.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **readNamespacedPod** -> V1Pod readNamespacedPod(name, namespace, , opts) - - - -read the specified Pod - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the Pod - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. - 'exact': true, // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. - '_export': true // Boolean | Should this value be exported. Export strips fields that a user can not specify. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.readNamespacedPod(name, namespace, , opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Pod | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **exact** | **Boolean**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. | [optional] - **_export** | **Boolean**| Should this value be exported. Export strips fields that a user can not specify. | [optional] - -### Return type - -[**V1Pod**](V1Pod.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **readNamespacedPodLog** -> 'String' readNamespacedPodLog(name, namespace, opts) - - - -read log of the specified Pod - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the Pod - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var opts = { - 'container': "container_example", // String | The container for which to stream logs. Defaults to only container if there is one container in the pod. - 'follow': true, // Boolean | Follow the log stream of the pod. Defaults to false. - 'limitBytes': 56, // Number | If set, the number of bytes to read from the server before terminating the log output. This may not display a complete final line of logging, and may return slightly more or slightly less than the specified limit. - 'pretty': "pretty_example", // String | If 'true', then the output is pretty printed. - 'previous': true, // Boolean | Return previous terminated container logs. Defaults to false. - 'sinceSeconds': 56, // Number | A relative time in seconds before the current time from which to show logs. If this value precedes the time a pod was started, only logs since the pod start will be returned. If this value is in the future, no logs will be returned. Only one of sinceSeconds or sinceTime may be specified. - 'tailLines': 56, // Number | If set, the number of lines from the end of the logs to show. If not specified, logs are shown from the creation of the container or sinceSeconds or sinceTime - 'timestamps': true // Boolean | If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line of log output. Defaults to false. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.readNamespacedPodLog(name, namespace, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Pod | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **container** | **String**| The container for which to stream logs. Defaults to only container if there is one container in the pod. | [optional] - **follow** | **Boolean**| Follow the log stream of the pod. Defaults to false. | [optional] - **limitBytes** | **Number**| If set, the number of bytes to read from the server before terminating the log output. This may not display a complete final line of logging, and may return slightly more or slightly less than the specified limit. | [optional] - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **previous** | **Boolean**| Return previous terminated container logs. Defaults to false. | [optional] - **sinceSeconds** | **Number**| A relative time in seconds before the current time from which to show logs. If this value precedes the time a pod was started, only logs since the pod start will be returned. If this value is in the future, no logs will be returned. Only one of sinceSeconds or sinceTime may be specified. | [optional] - **tailLines** | **Number**| If set, the number of lines from the end of the logs to show. If not specified, logs are shown from the creation of the container or sinceSeconds or sinceTime | [optional] - **timestamps** | **Boolean**| If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line of log output. Defaults to false. | [optional] - -### Return type - -**'String'** - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: text/plain, application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **readNamespacedPodStatus** -> V1Pod readNamespacedPodStatus(name, namespace, , opts) - - - -read status of the specified Pod - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the Pod - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.readNamespacedPodStatus(name, namespace, , opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Pod | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1Pod**](V1Pod.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **readNamespacedPodTemplate** -> V1PodTemplate readNamespacedPodTemplate(name, namespace, , opts) - - - -read the specified PodTemplate - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the PodTemplate - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. - 'exact': true, // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. - '_export': true // Boolean | Should this value be exported. Export strips fields that a user can not specify. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.readNamespacedPodTemplate(name, namespace, , opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the PodTemplate | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **exact** | **Boolean**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. | [optional] - **_export** | **Boolean**| Should this value be exported. Export strips fields that a user can not specify. | [optional] - -### Return type - -[**V1PodTemplate**](V1PodTemplate.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **readNamespacedReplicationController** -> V1ReplicationController readNamespacedReplicationController(name, namespace, , opts) - - - -read the specified ReplicationController - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the ReplicationController - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. - 'exact': true, // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. - '_export': true // Boolean | Should this value be exported. Export strips fields that a user can not specify. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.readNamespacedReplicationController(name, namespace, , opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ReplicationController | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **exact** | **Boolean**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. | [optional] - **_export** | **Boolean**| Should this value be exported. Export strips fields that a user can not specify. | [optional] - -### Return type - -[**V1ReplicationController**](V1ReplicationController.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **readNamespacedReplicationControllerStatus** -> V1ReplicationController readNamespacedReplicationControllerStatus(name, namespace, , opts) - - - -read status of the specified ReplicationController - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the ReplicationController - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.readNamespacedReplicationControllerStatus(name, namespace, , opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ReplicationController | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1ReplicationController**](V1ReplicationController.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **readNamespacedResourceQuota** -> V1ResourceQuota readNamespacedResourceQuota(name, namespace, , opts) - - - -read the specified ResourceQuota - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the ResourceQuota - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. - 'exact': true, // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. - '_export': true // Boolean | Should this value be exported. Export strips fields that a user can not specify. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.readNamespacedResourceQuota(name, namespace, , opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ResourceQuota | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **exact** | **Boolean**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. | [optional] - **_export** | **Boolean**| Should this value be exported. Export strips fields that a user can not specify. | [optional] - -### Return type - -[**V1ResourceQuota**](V1ResourceQuota.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **readNamespacedResourceQuotaStatus** -> V1ResourceQuota readNamespacedResourceQuotaStatus(name, namespace, , opts) - - - -read status of the specified ResourceQuota - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the ResourceQuota - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.readNamespacedResourceQuotaStatus(name, namespace, , opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ResourceQuota | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1ResourceQuota**](V1ResourceQuota.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **readNamespacedScaleScale** -> V1Scale readNamespacedScaleScale(name, namespace, , opts) - - - -read scale of the specified Scale - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the Scale - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.readNamespacedScaleScale(name, namespace, , opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Scale | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1Scale**](V1Scale.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **readNamespacedSecret** -> V1Secret readNamespacedSecret(name, namespace, , opts) - - - -read the specified Secret - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the Secret - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. - 'exact': true, // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. - '_export': true // Boolean | Should this value be exported. Export strips fields that a user can not specify. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.readNamespacedSecret(name, namespace, , opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Secret | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **exact** | **Boolean**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. | [optional] - **_export** | **Boolean**| Should this value be exported. Export strips fields that a user can not specify. | [optional] - -### Return type - -[**V1Secret**](V1Secret.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **readNamespacedService** -> V1Service readNamespacedService(name, namespace, , opts) - - - -read the specified Service - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the Service - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. - 'exact': true, // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. - '_export': true // Boolean | Should this value be exported. Export strips fields that a user can not specify. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.readNamespacedService(name, namespace, , opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Service | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **exact** | **Boolean**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. | [optional] - **_export** | **Boolean**| Should this value be exported. Export strips fields that a user can not specify. | [optional] - -### Return type - -[**V1Service**](V1Service.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **readNamespacedServiceAccount** -> V1ServiceAccount readNamespacedServiceAccount(name, namespace, , opts) - - - -read the specified ServiceAccount - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the ServiceAccount - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. - 'exact': true, // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. - '_export': true // Boolean | Should this value be exported. Export strips fields that a user can not specify. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.readNamespacedServiceAccount(name, namespace, , opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ServiceAccount | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **exact** | **Boolean**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. | [optional] - **_export** | **Boolean**| Should this value be exported. Export strips fields that a user can not specify. | [optional] - -### Return type - -[**V1ServiceAccount**](V1ServiceAccount.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **readNamespacedServiceStatus** -> V1Service readNamespacedServiceStatus(name, namespace, , opts) - - - -read status of the specified Service - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the Service - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.readNamespacedServiceStatus(name, namespace, , opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Service | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1Service**](V1Service.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **readNode** -> V1Node readNode(name, , opts) - - - -read the specified Node - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the Node - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. - 'exact': true, // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. - '_export': true // Boolean | Should this value be exported. Export strips fields that a user can not specify. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.readNode(name, , opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Node | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **exact** | **Boolean**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. | [optional] - **_export** | **Boolean**| Should this value be exported. Export strips fields that a user can not specify. | [optional] - -### Return type - -[**V1Node**](V1Node.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **readNodeStatus** -> V1Node readNodeStatus(name, , opts) - - - -read status of the specified Node - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the Node - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.readNodeStatus(name, , opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Node | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1Node**](V1Node.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **readPersistentVolume** -> V1PersistentVolume readPersistentVolume(name, , opts) - - - -read the specified PersistentVolume - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the PersistentVolume - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. - 'exact': true, // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. - '_export': true // Boolean | Should this value be exported. Export strips fields that a user can not specify. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.readPersistentVolume(name, , opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the PersistentVolume | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **exact** | **Boolean**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. | [optional] - **_export** | **Boolean**| Should this value be exported. Export strips fields that a user can not specify. | [optional] - -### Return type - -[**V1PersistentVolume**](V1PersistentVolume.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **readPersistentVolumeStatus** -> V1PersistentVolume readPersistentVolumeStatus(name, , opts) - - - -read status of the specified PersistentVolume - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the PersistentVolume - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.readPersistentVolumeStatus(name, , opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the PersistentVolume | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1PersistentVolume**](V1PersistentVolume.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **replaceNamespace** -> V1Namespace replaceNamespace(name, body, opts) - - - -replace the specified Namespace - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the Namespace - -var body = new KubernetesJsClient.V1Namespace(); // V1Namespace | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.replaceNamespace(name, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Namespace | - **body** | [**V1Namespace**](V1Namespace.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1Namespace**](V1Namespace.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **replaceNamespaceFinalize** -> V1Namespace replaceNamespaceFinalize(name, body, opts) - - - -replace finalize of the specified Namespace - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the Namespace - -var body = new KubernetesJsClient.V1Namespace(); // V1Namespace | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.replaceNamespaceFinalize(name, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Namespace | - **body** | [**V1Namespace**](V1Namespace.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1Namespace**](V1Namespace.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **replaceNamespaceStatus** -> V1Namespace replaceNamespaceStatus(name, body, opts) - - - -replace status of the specified Namespace - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the Namespace - -var body = new KubernetesJsClient.V1Namespace(); // V1Namespace | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.replaceNamespaceStatus(name, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Namespace | - **body** | [**V1Namespace**](V1Namespace.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1Namespace**](V1Namespace.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **replaceNamespacedConfigMap** -> V1ConfigMap replaceNamespacedConfigMap(name, namespace, body, opts) - - - -replace the specified ConfigMap - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the ConfigMap - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = new KubernetesJsClient.V1ConfigMap(); // V1ConfigMap | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.replaceNamespacedConfigMap(name, namespace, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ConfigMap | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1ConfigMap**](V1ConfigMap.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1ConfigMap**](V1ConfigMap.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **replaceNamespacedEndpoints** -> V1Endpoints replaceNamespacedEndpoints(name, namespace, body, opts) - - - -replace the specified Endpoints - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the Endpoints - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = new KubernetesJsClient.V1Endpoints(); // V1Endpoints | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.replaceNamespacedEndpoints(name, namespace, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Endpoints | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1Endpoints**](V1Endpoints.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1Endpoints**](V1Endpoints.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **replaceNamespacedEvent** -> V1Event replaceNamespacedEvent(name, namespace, body, opts) - - - -replace the specified Event - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the Event - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = new KubernetesJsClient.V1Event(); // V1Event | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.replaceNamespacedEvent(name, namespace, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Event | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1Event**](V1Event.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1Event**](V1Event.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **replaceNamespacedLimitRange** -> V1LimitRange replaceNamespacedLimitRange(name, namespace, body, opts) - - - -replace the specified LimitRange - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the LimitRange - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = new KubernetesJsClient.V1LimitRange(); // V1LimitRange | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.replaceNamespacedLimitRange(name, namespace, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the LimitRange | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1LimitRange**](V1LimitRange.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1LimitRange**](V1LimitRange.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **replaceNamespacedPersistentVolumeClaim** -> V1PersistentVolumeClaim replaceNamespacedPersistentVolumeClaim(name, namespace, body, opts) - - - -replace the specified PersistentVolumeClaim - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the PersistentVolumeClaim - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = new KubernetesJsClient.V1PersistentVolumeClaim(); // V1PersistentVolumeClaim | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.replaceNamespacedPersistentVolumeClaim(name, namespace, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the PersistentVolumeClaim | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1PersistentVolumeClaim**](V1PersistentVolumeClaim.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1PersistentVolumeClaim**](V1PersistentVolumeClaim.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **replaceNamespacedPersistentVolumeClaimStatus** -> V1PersistentVolumeClaim replaceNamespacedPersistentVolumeClaimStatus(name, namespace, body, opts) - - - -replace status of the specified PersistentVolumeClaim - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the PersistentVolumeClaim - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = new KubernetesJsClient.V1PersistentVolumeClaim(); // V1PersistentVolumeClaim | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.replaceNamespacedPersistentVolumeClaimStatus(name, namespace, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the PersistentVolumeClaim | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1PersistentVolumeClaim**](V1PersistentVolumeClaim.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1PersistentVolumeClaim**](V1PersistentVolumeClaim.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **replaceNamespacedPod** -> V1Pod replaceNamespacedPod(name, namespace, body, opts) - - - -replace the specified Pod - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the Pod - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = new KubernetesJsClient.V1Pod(); // V1Pod | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.replaceNamespacedPod(name, namespace, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Pod | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1Pod**](V1Pod.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1Pod**](V1Pod.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **replaceNamespacedPodStatus** -> V1Pod replaceNamespacedPodStatus(name, namespace, body, opts) - - - -replace status of the specified Pod - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the Pod - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = new KubernetesJsClient.V1Pod(); // V1Pod | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.replaceNamespacedPodStatus(name, namespace, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Pod | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1Pod**](V1Pod.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1Pod**](V1Pod.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **replaceNamespacedPodTemplate** -> V1PodTemplate replaceNamespacedPodTemplate(name, namespace, body, opts) - - - -replace the specified PodTemplate - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the PodTemplate - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = new KubernetesJsClient.V1PodTemplate(); // V1PodTemplate | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.replaceNamespacedPodTemplate(name, namespace, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the PodTemplate | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1PodTemplate**](V1PodTemplate.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1PodTemplate**](V1PodTemplate.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **replaceNamespacedReplicationController** -> V1ReplicationController replaceNamespacedReplicationController(name, namespace, body, opts) - - - -replace the specified ReplicationController - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the ReplicationController - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = new KubernetesJsClient.V1ReplicationController(); // V1ReplicationController | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.replaceNamespacedReplicationController(name, namespace, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ReplicationController | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1ReplicationController**](V1ReplicationController.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1ReplicationController**](V1ReplicationController.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **replaceNamespacedReplicationControllerStatus** -> V1ReplicationController replaceNamespacedReplicationControllerStatus(name, namespace, body, opts) - - - -replace status of the specified ReplicationController - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the ReplicationController - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = new KubernetesJsClient.V1ReplicationController(); // V1ReplicationController | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.replaceNamespacedReplicationControllerStatus(name, namespace, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ReplicationController | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1ReplicationController**](V1ReplicationController.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1ReplicationController**](V1ReplicationController.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **replaceNamespacedResourceQuota** -> V1ResourceQuota replaceNamespacedResourceQuota(name, namespace, body, opts) - - - -replace the specified ResourceQuota - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the ResourceQuota - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = new KubernetesJsClient.V1ResourceQuota(); // V1ResourceQuota | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.replaceNamespacedResourceQuota(name, namespace, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ResourceQuota | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1ResourceQuota**](V1ResourceQuota.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1ResourceQuota**](V1ResourceQuota.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **replaceNamespacedResourceQuotaStatus** -> V1ResourceQuota replaceNamespacedResourceQuotaStatus(name, namespace, body, opts) - - - -replace status of the specified ResourceQuota - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the ResourceQuota - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = new KubernetesJsClient.V1ResourceQuota(); // V1ResourceQuota | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.replaceNamespacedResourceQuotaStatus(name, namespace, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ResourceQuota | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1ResourceQuota**](V1ResourceQuota.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1ResourceQuota**](V1ResourceQuota.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **replaceNamespacedScaleScale** -> V1Scale replaceNamespacedScaleScale(name, namespace, body, opts) - - - -replace scale of the specified Scale - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the Scale - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = new KubernetesJsClient.V1Scale(); // V1Scale | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.replaceNamespacedScaleScale(name, namespace, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Scale | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1Scale**](V1Scale.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1Scale**](V1Scale.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **replaceNamespacedSecret** -> V1Secret replaceNamespacedSecret(name, namespace, body, opts) - - - -replace the specified Secret - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the Secret - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = new KubernetesJsClient.V1Secret(); // V1Secret | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.replaceNamespacedSecret(name, namespace, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Secret | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1Secret**](V1Secret.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1Secret**](V1Secret.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **replaceNamespacedService** -> V1Service replaceNamespacedService(name, namespace, body, opts) - - - -replace the specified Service - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the Service - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = new KubernetesJsClient.V1Service(); // V1Service | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.replaceNamespacedService(name, namespace, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Service | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1Service**](V1Service.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1Service**](V1Service.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **replaceNamespacedServiceAccount** -> V1ServiceAccount replaceNamespacedServiceAccount(name, namespace, body, opts) - - - -replace the specified ServiceAccount - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the ServiceAccount - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = new KubernetesJsClient.V1ServiceAccount(); // V1ServiceAccount | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.replaceNamespacedServiceAccount(name, namespace, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ServiceAccount | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1ServiceAccount**](V1ServiceAccount.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1ServiceAccount**](V1ServiceAccount.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **replaceNamespacedServiceStatus** -> V1Service replaceNamespacedServiceStatus(name, namespace, body, opts) - - - -replace status of the specified Service - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the Service - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = new KubernetesJsClient.V1Service(); // V1Service | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.replaceNamespacedServiceStatus(name, namespace, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Service | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1Service**](V1Service.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1Service**](V1Service.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **replaceNode** -> V1Node replaceNode(name, body, opts) - - - -replace the specified Node - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the Node - -var body = new KubernetesJsClient.V1Node(); // V1Node | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.replaceNode(name, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Node | - **body** | [**V1Node**](V1Node.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1Node**](V1Node.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **replaceNodeStatus** -> V1Node replaceNodeStatus(name, body, opts) - - - -replace status of the specified Node - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the Node - -var body = new KubernetesJsClient.V1Node(); // V1Node | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.replaceNodeStatus(name, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Node | - **body** | [**V1Node**](V1Node.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1Node**](V1Node.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **replacePersistentVolume** -> V1PersistentVolume replacePersistentVolume(name, body, opts) - - - -replace the specified PersistentVolume - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the PersistentVolume - -var body = new KubernetesJsClient.V1PersistentVolume(); // V1PersistentVolume | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.replacePersistentVolume(name, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the PersistentVolume | - **body** | [**V1PersistentVolume**](V1PersistentVolume.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1PersistentVolume**](V1PersistentVolume.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **replacePersistentVolumeStatus** -> V1PersistentVolume replacePersistentVolumeStatus(name, body, opts) - - - -replace status of the specified PersistentVolume - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Core_v1Api(); - -var name = "name_example"; // String | name of the PersistentVolume - -var body = new KubernetesJsClient.V1PersistentVolume(); // V1PersistentVolume | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.replacePersistentVolumeStatus(name, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the PersistentVolume | - **body** | [**V1PersistentVolume**](V1PersistentVolume.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1PersistentVolume**](V1PersistentVolume.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - diff --git a/kubernetes/docs/ExtensionsApi.md b/kubernetes/docs/ExtensionsApi.md deleted file mode 100644 index 7f31968a8d..0000000000 --- a/kubernetes/docs/ExtensionsApi.md +++ /dev/null @@ -1,56 +0,0 @@ -# KubernetesJsClient.ExtensionsApi - -All URIs are relative to *https://localhost* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**getAPIGroup**](ExtensionsApi.md#getAPIGroup) | **GET** /apis/extensions/ | - - - -# **getAPIGroup** -> V1APIGroup getAPIGroup() - - - -get information of a group - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.ExtensionsApi(); - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.getAPIGroup(callback); -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -[**V1APIGroup**](V1APIGroup.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - diff --git a/kubernetes/docs/ExtensionsV1beta1Deployment.md b/kubernetes/docs/ExtensionsV1beta1Deployment.md deleted file mode 100644 index 278e68ba9e..0000000000 --- a/kubernetes/docs/ExtensionsV1beta1Deployment.md +++ /dev/null @@ -1,12 +0,0 @@ -# KubernetesJsClient.ExtensionsV1beta1Deployment - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object metadata. | [optional] -**spec** | [**ExtensionsV1beta1DeploymentSpec**](ExtensionsV1beta1DeploymentSpec.md) | Specification of the desired behavior of the Deployment. | [optional] -**status** | [**ExtensionsV1beta1DeploymentStatus**](ExtensionsV1beta1DeploymentStatus.md) | Most recently observed status of the Deployment. | [optional] - - diff --git a/kubernetes/docs/ExtensionsV1beta1DeploymentCondition.md b/kubernetes/docs/ExtensionsV1beta1DeploymentCondition.md deleted file mode 100644 index 39352d788c..0000000000 --- a/kubernetes/docs/ExtensionsV1beta1DeploymentCondition.md +++ /dev/null @@ -1,13 +0,0 @@ -# KubernetesJsClient.ExtensionsV1beta1DeploymentCondition - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**lastTransitionTime** | **Date** | Last time the condition transitioned from one status to another. | [optional] -**lastUpdateTime** | **Date** | The last time this condition was updated. | [optional] -**message** | **String** | A human readable message indicating details about the transition. | [optional] -**reason** | **String** | The reason for the condition's last transition. | [optional] -**status** | **String** | Status of the condition, one of True, False, Unknown. | -**type** | **String** | Type of deployment condition. | - - diff --git a/kubernetes/docs/ExtensionsV1beta1DeploymentList.md b/kubernetes/docs/ExtensionsV1beta1DeploymentList.md deleted file mode 100644 index 8a6a7f0670..0000000000 --- a/kubernetes/docs/ExtensionsV1beta1DeploymentList.md +++ /dev/null @@ -1,11 +0,0 @@ -# KubernetesJsClient.ExtensionsV1beta1DeploymentList - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] -**items** | [**[ExtensionsV1beta1Deployment]**](ExtensionsV1beta1Deployment.md) | Items is the list of Deployments. | -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata. | [optional] - - diff --git a/kubernetes/docs/ExtensionsV1beta1DeploymentRollback.md b/kubernetes/docs/ExtensionsV1beta1DeploymentRollback.md deleted file mode 100644 index 0fc9a8270b..0000000000 --- a/kubernetes/docs/ExtensionsV1beta1DeploymentRollback.md +++ /dev/null @@ -1,12 +0,0 @@ -# KubernetesJsClient.ExtensionsV1beta1DeploymentRollback - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**name** | **String** | Required: This must match the Name of a deployment. | -**rollbackTo** | [**ExtensionsV1beta1RollbackConfig**](ExtensionsV1beta1RollbackConfig.md) | The config of this deployment rollback. | -**updatedAnnotations** | **{String: String}** | The annotations to be updated to a deployment | [optional] - - diff --git a/kubernetes/docs/ExtensionsV1beta1DeploymentSpec.md b/kubernetes/docs/ExtensionsV1beta1DeploymentSpec.md deleted file mode 100644 index e750746ee7..0000000000 --- a/kubernetes/docs/ExtensionsV1beta1DeploymentSpec.md +++ /dev/null @@ -1,16 +0,0 @@ -# KubernetesJsClient.ExtensionsV1beta1DeploymentSpec - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**minReadySeconds** | **Number** | Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) | [optional] -**paused** | **Boolean** | Indicates that the deployment is paused and will not be processed by the deployment controller. | [optional] -**progressDeadlineSeconds** | **Number** | The maximum time in seconds for a deployment to make progress before it is considered to be failed. The deployment controller will continue to process failed deployments and a condition with a ProgressDeadlineExceeded reason will be surfaced in the deployment status. Once autoRollback is implemented, the deployment controller will automatically rollback failed deployments. Note that progress will not be estimated during the time a deployment is paused. This is not set by default. | [optional] -**replicas** | **Number** | Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1. | [optional] -**revisionHistoryLimit** | **Number** | The number of old ReplicaSets to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. | [optional] -**rollbackTo** | [**ExtensionsV1beta1RollbackConfig**](ExtensionsV1beta1RollbackConfig.md) | The config this deployment is rolling back to. Will be cleared after rollback is done. | [optional] -**selector** | [**V1LabelSelector**](V1LabelSelector.md) | Label selector for pods. Existing ReplicaSets whose pods are selected by this will be the ones affected by this deployment. | [optional] -**strategy** | [**ExtensionsV1beta1DeploymentStrategy**](ExtensionsV1beta1DeploymentStrategy.md) | The deployment strategy to use to replace existing pods with new ones. | [optional] -**template** | [**V1PodTemplateSpec**](V1PodTemplateSpec.md) | Template describes the pods that will be created. | - - diff --git a/kubernetes/docs/ExtensionsV1beta1DeploymentStatus.md b/kubernetes/docs/ExtensionsV1beta1DeploymentStatus.md deleted file mode 100644 index 223d9bdc17..0000000000 --- a/kubernetes/docs/ExtensionsV1beta1DeploymentStatus.md +++ /dev/null @@ -1,14 +0,0 @@ -# KubernetesJsClient.ExtensionsV1beta1DeploymentStatus - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**availableReplicas** | **Number** | Total number of available pods (ready for at least minReadySeconds) targeted by this deployment. | [optional] -**conditions** | [**[ExtensionsV1beta1DeploymentCondition]**](ExtensionsV1beta1DeploymentCondition.md) | Represents the latest available observations of a deployment's current state. | [optional] -**observedGeneration** | **Number** | The generation observed by the deployment controller. | [optional] -**readyReplicas** | **Number** | Total number of ready pods targeted by this deployment. | [optional] -**replicas** | **Number** | Total number of non-terminated pods targeted by this deployment (their labels match the selector). | [optional] -**unavailableReplicas** | **Number** | Total number of unavailable pods targeted by this deployment. | [optional] -**updatedReplicas** | **Number** | Total number of non-terminated pods targeted by this deployment that have the desired template spec. | [optional] - - diff --git a/kubernetes/docs/ExtensionsV1beta1DeploymentStrategy.md b/kubernetes/docs/ExtensionsV1beta1DeploymentStrategy.md deleted file mode 100644 index 061d95ed22..0000000000 --- a/kubernetes/docs/ExtensionsV1beta1DeploymentStrategy.md +++ /dev/null @@ -1,9 +0,0 @@ -# KubernetesJsClient.ExtensionsV1beta1DeploymentStrategy - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**rollingUpdate** | [**ExtensionsV1beta1RollingUpdateDeployment**](ExtensionsV1beta1RollingUpdateDeployment.md) | Rolling update config params. Present only if DeploymentStrategyType = RollingUpdate. | [optional] -**type** | **String** | Type of deployment. Can be \"Recreate\" or \"RollingUpdate\". Default is RollingUpdate. | [optional] - - diff --git a/kubernetes/docs/ExtensionsV1beta1RollbackConfig.md b/kubernetes/docs/ExtensionsV1beta1RollbackConfig.md deleted file mode 100644 index 2580298797..0000000000 --- a/kubernetes/docs/ExtensionsV1beta1RollbackConfig.md +++ /dev/null @@ -1,8 +0,0 @@ -# KubernetesJsClient.ExtensionsV1beta1RollbackConfig - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**revision** | **Number** | The revision to rollback to. If set to 0, rollbck to the last revision. | [optional] - - diff --git a/kubernetes/docs/ExtensionsV1beta1RollingUpdateDeployment.md b/kubernetes/docs/ExtensionsV1beta1RollingUpdateDeployment.md deleted file mode 100644 index c9e9ddb17a..0000000000 --- a/kubernetes/docs/ExtensionsV1beta1RollingUpdateDeployment.md +++ /dev/null @@ -1,9 +0,0 @@ -# KubernetesJsClient.ExtensionsV1beta1RollingUpdateDeployment - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**maxSurge** | **String** | The maximum number of pods that can be scheduled above the desired number of pods. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up. By default, a value of 1 is used. Example: when this is set to 30%, the new RC can be scaled up immediately when the rolling update starts, such that the total number of old and new pods do not exceed 130% of desired pods. Once old pods have been killed, new RC can be scaled up further, ensuring that total number of pods running at any time during the update is atmost 130% of desired pods. | [optional] -**maxUnavailable** | **String** | The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding down. This can not be 0 if MaxSurge is 0. By default, a fixed value of 1 is used. Example: when this is set to 30%, the old RC can be scaled down to 70% of desired pods immediately when the rolling update starts. Once new pods are ready, old RC can be scaled down further, followed by scaling up the new RC, ensuring that the total number of pods available at all times during the update is at least 70% of desired pods. | [optional] - - diff --git a/kubernetes/docs/ExtensionsV1beta1Scale.md b/kubernetes/docs/ExtensionsV1beta1Scale.md deleted file mode 100644 index 2c051bfb07..0000000000 --- a/kubernetes/docs/ExtensionsV1beta1Scale.md +++ /dev/null @@ -1,12 +0,0 @@ -# KubernetesJsClient.ExtensionsV1beta1Scale - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object metadata; More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata. | [optional] -**spec** | [**ExtensionsV1beta1ScaleSpec**](ExtensionsV1beta1ScaleSpec.md) | defines the behavior of the scale. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status. | [optional] -**status** | [**ExtensionsV1beta1ScaleStatus**](ExtensionsV1beta1ScaleStatus.md) | current status of the scale. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status. Read-only. | [optional] - - diff --git a/kubernetes/docs/ExtensionsV1beta1ScaleSpec.md b/kubernetes/docs/ExtensionsV1beta1ScaleSpec.md deleted file mode 100644 index 867c815348..0000000000 --- a/kubernetes/docs/ExtensionsV1beta1ScaleSpec.md +++ /dev/null @@ -1,8 +0,0 @@ -# KubernetesJsClient.ExtensionsV1beta1ScaleSpec - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**replicas** | **Number** | desired number of instances for the scaled object. | [optional] - - diff --git a/kubernetes/docs/ExtensionsV1beta1ScaleStatus.md b/kubernetes/docs/ExtensionsV1beta1ScaleStatus.md deleted file mode 100644 index 275f284109..0000000000 --- a/kubernetes/docs/ExtensionsV1beta1ScaleStatus.md +++ /dev/null @@ -1,10 +0,0 @@ -# KubernetesJsClient.ExtensionsV1beta1ScaleStatus - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**replicas** | **Number** | actual number of observed instances of the scaled object. | -**selector** | **{String: String}** | label query over pods that should match the replicas count. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors | [optional] -**targetSelector** | **String** | label selector for pods that should match the replicas count. This is a serializated version of both map-based and more expressive set-based selectors. This is done to avoid introspection in the kubernetes.clients. The string will be in the same format as the query-param syntax. If the target type only supports map-based selectors, both this field and map-based selector field are populated. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors | [optional] - - diff --git a/kubernetes/docs/Extensions_v1beta1Api.md b/kubernetes/docs/Extensions_v1beta1Api.md deleted file mode 100644 index cee7041976..0000000000 --- a/kubernetes/docs/Extensions_v1beta1Api.md +++ /dev/null @@ -1,4946 +0,0 @@ -# KubernetesJsClient.Extensions_v1beta1Api - -All URIs are relative to *https://localhost* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**createNamespacedDaemonSet**](Extensions_v1beta1Api.md#createNamespacedDaemonSet) | **POST** /apis/extensions/v1beta1/namespaces/{namespace}/daemonsets | -[**createNamespacedDeployment**](Extensions_v1beta1Api.md#createNamespacedDeployment) | **POST** /apis/extensions/v1beta1/namespaces/{namespace}/deployments | -[**createNamespacedDeploymentRollbackRollback**](Extensions_v1beta1Api.md#createNamespacedDeploymentRollbackRollback) | **POST** /apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/rollback | -[**createNamespacedIngress**](Extensions_v1beta1Api.md#createNamespacedIngress) | **POST** /apis/extensions/v1beta1/namespaces/{namespace}/ingresses | -[**createNamespacedNetworkPolicy**](Extensions_v1beta1Api.md#createNamespacedNetworkPolicy) | **POST** /apis/extensions/v1beta1/namespaces/{namespace}/networkpolicies | -[**createNamespacedReplicaSet**](Extensions_v1beta1Api.md#createNamespacedReplicaSet) | **POST** /apis/extensions/v1beta1/namespaces/{namespace}/replicasets | -[**createPodSecurityPolicy**](Extensions_v1beta1Api.md#createPodSecurityPolicy) | **POST** /apis/extensions/v1beta1/podsecuritypolicies | -[**createThirdPartyResource**](Extensions_v1beta1Api.md#createThirdPartyResource) | **POST** /apis/extensions/v1beta1/thirdpartyresources | -[**deleteCollectionNamespacedDaemonSet**](Extensions_v1beta1Api.md#deleteCollectionNamespacedDaemonSet) | **DELETE** /apis/extensions/v1beta1/namespaces/{namespace}/daemonsets | -[**deleteCollectionNamespacedDeployment**](Extensions_v1beta1Api.md#deleteCollectionNamespacedDeployment) | **DELETE** /apis/extensions/v1beta1/namespaces/{namespace}/deployments | -[**deleteCollectionNamespacedIngress**](Extensions_v1beta1Api.md#deleteCollectionNamespacedIngress) | **DELETE** /apis/extensions/v1beta1/namespaces/{namespace}/ingresses | -[**deleteCollectionNamespacedNetworkPolicy**](Extensions_v1beta1Api.md#deleteCollectionNamespacedNetworkPolicy) | **DELETE** /apis/extensions/v1beta1/namespaces/{namespace}/networkpolicies | -[**deleteCollectionNamespacedReplicaSet**](Extensions_v1beta1Api.md#deleteCollectionNamespacedReplicaSet) | **DELETE** /apis/extensions/v1beta1/namespaces/{namespace}/replicasets | -[**deleteCollectionPodSecurityPolicy**](Extensions_v1beta1Api.md#deleteCollectionPodSecurityPolicy) | **DELETE** /apis/extensions/v1beta1/podsecuritypolicies | -[**deleteCollectionThirdPartyResource**](Extensions_v1beta1Api.md#deleteCollectionThirdPartyResource) | **DELETE** /apis/extensions/v1beta1/thirdpartyresources | -[**deleteNamespacedDaemonSet**](Extensions_v1beta1Api.md#deleteNamespacedDaemonSet) | **DELETE** /apis/extensions/v1beta1/namespaces/{namespace}/daemonsets/{name} | -[**deleteNamespacedDeployment**](Extensions_v1beta1Api.md#deleteNamespacedDeployment) | **DELETE** /apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name} | -[**deleteNamespacedIngress**](Extensions_v1beta1Api.md#deleteNamespacedIngress) | **DELETE** /apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name} | -[**deleteNamespacedNetworkPolicy**](Extensions_v1beta1Api.md#deleteNamespacedNetworkPolicy) | **DELETE** /apis/extensions/v1beta1/namespaces/{namespace}/networkpolicies/{name} | -[**deleteNamespacedReplicaSet**](Extensions_v1beta1Api.md#deleteNamespacedReplicaSet) | **DELETE** /apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name} | -[**deletePodSecurityPolicy**](Extensions_v1beta1Api.md#deletePodSecurityPolicy) | **DELETE** /apis/extensions/v1beta1/podsecuritypolicies/{name} | -[**deleteThirdPartyResource**](Extensions_v1beta1Api.md#deleteThirdPartyResource) | **DELETE** /apis/extensions/v1beta1/thirdpartyresources/{name} | -[**getAPIResources**](Extensions_v1beta1Api.md#getAPIResources) | **GET** /apis/extensions/v1beta1/ | -[**listDaemonSetForAllNamespaces**](Extensions_v1beta1Api.md#listDaemonSetForAllNamespaces) | **GET** /apis/extensions/v1beta1/daemonsets | -[**listDeploymentForAllNamespaces**](Extensions_v1beta1Api.md#listDeploymentForAllNamespaces) | **GET** /apis/extensions/v1beta1/deployments | -[**listIngressForAllNamespaces**](Extensions_v1beta1Api.md#listIngressForAllNamespaces) | **GET** /apis/extensions/v1beta1/ingresses | -[**listNamespacedDaemonSet**](Extensions_v1beta1Api.md#listNamespacedDaemonSet) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/daemonsets | -[**listNamespacedDeployment**](Extensions_v1beta1Api.md#listNamespacedDeployment) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/deployments | -[**listNamespacedIngress**](Extensions_v1beta1Api.md#listNamespacedIngress) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/ingresses | -[**listNamespacedNetworkPolicy**](Extensions_v1beta1Api.md#listNamespacedNetworkPolicy) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/networkpolicies | -[**listNamespacedReplicaSet**](Extensions_v1beta1Api.md#listNamespacedReplicaSet) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/replicasets | -[**listNetworkPolicyForAllNamespaces**](Extensions_v1beta1Api.md#listNetworkPolicyForAllNamespaces) | **GET** /apis/extensions/v1beta1/networkpolicies | -[**listPodSecurityPolicy**](Extensions_v1beta1Api.md#listPodSecurityPolicy) | **GET** /apis/extensions/v1beta1/podsecuritypolicies | -[**listReplicaSetForAllNamespaces**](Extensions_v1beta1Api.md#listReplicaSetForAllNamespaces) | **GET** /apis/extensions/v1beta1/replicasets | -[**listThirdPartyResource**](Extensions_v1beta1Api.md#listThirdPartyResource) | **GET** /apis/extensions/v1beta1/thirdpartyresources | -[**patchNamespacedDaemonSet**](Extensions_v1beta1Api.md#patchNamespacedDaemonSet) | **PATCH** /apis/extensions/v1beta1/namespaces/{namespace}/daemonsets/{name} | -[**patchNamespacedDaemonSetStatus**](Extensions_v1beta1Api.md#patchNamespacedDaemonSetStatus) | **PATCH** /apis/extensions/v1beta1/namespaces/{namespace}/daemonsets/{name}/status | -[**patchNamespacedDeployment**](Extensions_v1beta1Api.md#patchNamespacedDeployment) | **PATCH** /apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name} | -[**patchNamespacedDeploymentStatus**](Extensions_v1beta1Api.md#patchNamespacedDeploymentStatus) | **PATCH** /apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/status | -[**patchNamespacedDeploymentsScale**](Extensions_v1beta1Api.md#patchNamespacedDeploymentsScale) | **PATCH** /apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/scale | -[**patchNamespacedIngress**](Extensions_v1beta1Api.md#patchNamespacedIngress) | **PATCH** /apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name} | -[**patchNamespacedIngressStatus**](Extensions_v1beta1Api.md#patchNamespacedIngressStatus) | **PATCH** /apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name}/status | -[**patchNamespacedNetworkPolicy**](Extensions_v1beta1Api.md#patchNamespacedNetworkPolicy) | **PATCH** /apis/extensions/v1beta1/namespaces/{namespace}/networkpolicies/{name} | -[**patchNamespacedReplicaSet**](Extensions_v1beta1Api.md#patchNamespacedReplicaSet) | **PATCH** /apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name} | -[**patchNamespacedReplicaSetStatus**](Extensions_v1beta1Api.md#patchNamespacedReplicaSetStatus) | **PATCH** /apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}/status | -[**patchNamespacedReplicasetsScale**](Extensions_v1beta1Api.md#patchNamespacedReplicasetsScale) | **PATCH** /apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}/scale | -[**patchNamespacedReplicationcontrollersScale**](Extensions_v1beta1Api.md#patchNamespacedReplicationcontrollersScale) | **PATCH** /apis/extensions/v1beta1/namespaces/{namespace}/replicationcontrollers/{name}/scale | -[**patchPodSecurityPolicy**](Extensions_v1beta1Api.md#patchPodSecurityPolicy) | **PATCH** /apis/extensions/v1beta1/podsecuritypolicies/{name} | -[**patchThirdPartyResource**](Extensions_v1beta1Api.md#patchThirdPartyResource) | **PATCH** /apis/extensions/v1beta1/thirdpartyresources/{name} | -[**readNamespacedDaemonSet**](Extensions_v1beta1Api.md#readNamespacedDaemonSet) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/daemonsets/{name} | -[**readNamespacedDaemonSetStatus**](Extensions_v1beta1Api.md#readNamespacedDaemonSetStatus) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/daemonsets/{name}/status | -[**readNamespacedDeployment**](Extensions_v1beta1Api.md#readNamespacedDeployment) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name} | -[**readNamespacedDeploymentStatus**](Extensions_v1beta1Api.md#readNamespacedDeploymentStatus) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/status | -[**readNamespacedDeploymentsScale**](Extensions_v1beta1Api.md#readNamespacedDeploymentsScale) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/scale | -[**readNamespacedIngress**](Extensions_v1beta1Api.md#readNamespacedIngress) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name} | -[**readNamespacedIngressStatus**](Extensions_v1beta1Api.md#readNamespacedIngressStatus) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name}/status | -[**readNamespacedNetworkPolicy**](Extensions_v1beta1Api.md#readNamespacedNetworkPolicy) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/networkpolicies/{name} | -[**readNamespacedReplicaSet**](Extensions_v1beta1Api.md#readNamespacedReplicaSet) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name} | -[**readNamespacedReplicaSetStatus**](Extensions_v1beta1Api.md#readNamespacedReplicaSetStatus) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}/status | -[**readNamespacedReplicasetsScale**](Extensions_v1beta1Api.md#readNamespacedReplicasetsScale) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}/scale | -[**readNamespacedReplicationcontrollersScale**](Extensions_v1beta1Api.md#readNamespacedReplicationcontrollersScale) | **GET** /apis/extensions/v1beta1/namespaces/{namespace}/replicationcontrollers/{name}/scale | -[**readPodSecurityPolicy**](Extensions_v1beta1Api.md#readPodSecurityPolicy) | **GET** /apis/extensions/v1beta1/podsecuritypolicies/{name} | -[**readThirdPartyResource**](Extensions_v1beta1Api.md#readThirdPartyResource) | **GET** /apis/extensions/v1beta1/thirdpartyresources/{name} | -[**replaceNamespacedDaemonSet**](Extensions_v1beta1Api.md#replaceNamespacedDaemonSet) | **PUT** /apis/extensions/v1beta1/namespaces/{namespace}/daemonsets/{name} | -[**replaceNamespacedDaemonSetStatus**](Extensions_v1beta1Api.md#replaceNamespacedDaemonSetStatus) | **PUT** /apis/extensions/v1beta1/namespaces/{namespace}/daemonsets/{name}/status | -[**replaceNamespacedDeployment**](Extensions_v1beta1Api.md#replaceNamespacedDeployment) | **PUT** /apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name} | -[**replaceNamespacedDeploymentStatus**](Extensions_v1beta1Api.md#replaceNamespacedDeploymentStatus) | **PUT** /apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/status | -[**replaceNamespacedDeploymentsScale**](Extensions_v1beta1Api.md#replaceNamespacedDeploymentsScale) | **PUT** /apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/scale | -[**replaceNamespacedIngress**](Extensions_v1beta1Api.md#replaceNamespacedIngress) | **PUT** /apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name} | -[**replaceNamespacedIngressStatus**](Extensions_v1beta1Api.md#replaceNamespacedIngressStatus) | **PUT** /apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name}/status | -[**replaceNamespacedNetworkPolicy**](Extensions_v1beta1Api.md#replaceNamespacedNetworkPolicy) | **PUT** /apis/extensions/v1beta1/namespaces/{namespace}/networkpolicies/{name} | -[**replaceNamespacedReplicaSet**](Extensions_v1beta1Api.md#replaceNamespacedReplicaSet) | **PUT** /apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name} | -[**replaceNamespacedReplicaSetStatus**](Extensions_v1beta1Api.md#replaceNamespacedReplicaSetStatus) | **PUT** /apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}/status | -[**replaceNamespacedReplicasetsScale**](Extensions_v1beta1Api.md#replaceNamespacedReplicasetsScale) | **PUT** /apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}/scale | -[**replaceNamespacedReplicationcontrollersScale**](Extensions_v1beta1Api.md#replaceNamespacedReplicationcontrollersScale) | **PUT** /apis/extensions/v1beta1/namespaces/{namespace}/replicationcontrollers/{name}/scale | -[**replacePodSecurityPolicy**](Extensions_v1beta1Api.md#replacePodSecurityPolicy) | **PUT** /apis/extensions/v1beta1/podsecuritypolicies/{name} | -[**replaceThirdPartyResource**](Extensions_v1beta1Api.md#replaceThirdPartyResource) | **PUT** /apis/extensions/v1beta1/thirdpartyresources/{name} | - - - -# **createNamespacedDaemonSet** -> V1beta1DaemonSet createNamespacedDaemonSet(namespacebody, opts) - - - -create a DaemonSet - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Extensions_v1beta1Api(); - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = new KubernetesJsClient.V1beta1DaemonSet(); // V1beta1DaemonSet | - -var opts = { - 'pretty': "pretty_example", // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.createNamespacedDaemonSet(namespacebody, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1beta1DaemonSet**](V1beta1DaemonSet.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1beta1DaemonSet**](V1beta1DaemonSet.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **createNamespacedDeployment** -> ExtensionsV1beta1Deployment createNamespacedDeployment(namespacebody, opts) - - - -create a Deployment - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Extensions_v1beta1Api(); - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = new KubernetesJsClient.ExtensionsV1beta1Deployment(); // ExtensionsV1beta1Deployment | - -var opts = { - 'pretty': "pretty_example", // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.createNamespacedDeployment(namespacebody, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**ExtensionsV1beta1Deployment**](ExtensionsV1beta1Deployment.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**ExtensionsV1beta1Deployment**](ExtensionsV1beta1Deployment.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **createNamespacedDeploymentRollbackRollback** -> ExtensionsV1beta1DeploymentRollback createNamespacedDeploymentRollbackRollback(name, namespace, body, opts) - - - -create rollback of a DeploymentRollback - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Extensions_v1beta1Api(); - -var name = "name_example"; // String | name of the DeploymentRollback - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = new KubernetesJsClient.ExtensionsV1beta1DeploymentRollback(); // ExtensionsV1beta1DeploymentRollback | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.createNamespacedDeploymentRollbackRollback(name, namespace, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the DeploymentRollback | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**ExtensionsV1beta1DeploymentRollback**](ExtensionsV1beta1DeploymentRollback.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**ExtensionsV1beta1DeploymentRollback**](ExtensionsV1beta1DeploymentRollback.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **createNamespacedIngress** -> V1beta1Ingress createNamespacedIngress(namespacebody, opts) - - - -create an Ingress - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Extensions_v1beta1Api(); - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = new KubernetesJsClient.V1beta1Ingress(); // V1beta1Ingress | - -var opts = { - 'pretty': "pretty_example", // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.createNamespacedIngress(namespacebody, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1beta1Ingress**](V1beta1Ingress.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1beta1Ingress**](V1beta1Ingress.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **createNamespacedNetworkPolicy** -> V1beta1NetworkPolicy createNamespacedNetworkPolicy(namespacebody, opts) - - - -create a NetworkPolicy - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Extensions_v1beta1Api(); - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = new KubernetesJsClient.V1beta1NetworkPolicy(); // V1beta1NetworkPolicy | - -var opts = { - 'pretty': "pretty_example", // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.createNamespacedNetworkPolicy(namespacebody, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1beta1NetworkPolicy**](V1beta1NetworkPolicy.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1beta1NetworkPolicy**](V1beta1NetworkPolicy.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **createNamespacedReplicaSet** -> V1beta1ReplicaSet createNamespacedReplicaSet(namespacebody, opts) - - - -create a ReplicaSet - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Extensions_v1beta1Api(); - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = new KubernetesJsClient.V1beta1ReplicaSet(); // V1beta1ReplicaSet | - -var opts = { - 'pretty': "pretty_example", // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.createNamespacedReplicaSet(namespacebody, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1beta1ReplicaSet**](V1beta1ReplicaSet.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1beta1ReplicaSet**](V1beta1ReplicaSet.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **createPodSecurityPolicy** -> V1beta1PodSecurityPolicy createPodSecurityPolicy(body, opts) - - - -create a PodSecurityPolicy - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Extensions_v1beta1Api(); - -var body = new KubernetesJsClient.V1beta1PodSecurityPolicy(); // V1beta1PodSecurityPolicy | - -var opts = { - 'pretty': "pretty_example", // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.createPodSecurityPolicy(body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**V1beta1PodSecurityPolicy**](V1beta1PodSecurityPolicy.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1beta1PodSecurityPolicy**](V1beta1PodSecurityPolicy.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **createThirdPartyResource** -> V1beta1ThirdPartyResource createThirdPartyResource(body, opts) - - - -create a ThirdPartyResource - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Extensions_v1beta1Api(); - -var body = new KubernetesJsClient.V1beta1ThirdPartyResource(); // V1beta1ThirdPartyResource | - -var opts = { - 'pretty': "pretty_example", // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.createThirdPartyResource(body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**V1beta1ThirdPartyResource**](V1beta1ThirdPartyResource.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1beta1ThirdPartyResource**](V1beta1ThirdPartyResource.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **deleteCollectionNamespacedDaemonSet** -> V1Status deleteCollectionNamespacedDaemonSet(namespace, opts) - - - -delete collection of DaemonSet - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Extensions_v1beta1Api(); - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var opts = { - 'pretty': "pretty_example", // String | If 'true', then the output is pretty printed. - 'fieldSelector': "fieldSelector_example", // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - 'labelSelector': "labelSelector_example", // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - 'resourceVersion': "resourceVersion_example", // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - 'timeoutSeconds': 56, // Number | Timeout for the list/watch call. - 'watch': true // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.deleteCollectionNamespacedDaemonSet(namespace, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeoutSeconds** | **Number**| Timeout for the list/watch call. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**V1Status**](V1Status.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **deleteCollectionNamespacedDeployment** -> V1Status deleteCollectionNamespacedDeployment(namespace, opts) - - - -delete collection of Deployment - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Extensions_v1beta1Api(); - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var opts = { - 'pretty': "pretty_example", // String | If 'true', then the output is pretty printed. - 'fieldSelector': "fieldSelector_example", // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - 'labelSelector': "labelSelector_example", // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - 'resourceVersion': "resourceVersion_example", // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - 'timeoutSeconds': 56, // Number | Timeout for the list/watch call. - 'watch': true // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.deleteCollectionNamespacedDeployment(namespace, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeoutSeconds** | **Number**| Timeout for the list/watch call. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**V1Status**](V1Status.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **deleteCollectionNamespacedIngress** -> V1Status deleteCollectionNamespacedIngress(namespace, opts) - - - -delete collection of Ingress - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Extensions_v1beta1Api(); - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var opts = { - 'pretty': "pretty_example", // String | If 'true', then the output is pretty printed. - 'fieldSelector': "fieldSelector_example", // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - 'labelSelector': "labelSelector_example", // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - 'resourceVersion': "resourceVersion_example", // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - 'timeoutSeconds': 56, // Number | Timeout for the list/watch call. - 'watch': true // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.deleteCollectionNamespacedIngress(namespace, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeoutSeconds** | **Number**| Timeout for the list/watch call. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**V1Status**](V1Status.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **deleteCollectionNamespacedNetworkPolicy** -> V1Status deleteCollectionNamespacedNetworkPolicy(namespace, opts) - - - -delete collection of NetworkPolicy - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Extensions_v1beta1Api(); - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var opts = { - 'pretty': "pretty_example", // String | If 'true', then the output is pretty printed. - 'fieldSelector': "fieldSelector_example", // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - 'labelSelector': "labelSelector_example", // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - 'resourceVersion': "resourceVersion_example", // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - 'timeoutSeconds': 56, // Number | Timeout for the list/watch call. - 'watch': true // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.deleteCollectionNamespacedNetworkPolicy(namespace, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeoutSeconds** | **Number**| Timeout for the list/watch call. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**V1Status**](V1Status.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **deleteCollectionNamespacedReplicaSet** -> V1Status deleteCollectionNamespacedReplicaSet(namespace, opts) - - - -delete collection of ReplicaSet - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Extensions_v1beta1Api(); - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var opts = { - 'pretty': "pretty_example", // String | If 'true', then the output is pretty printed. - 'fieldSelector': "fieldSelector_example", // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - 'labelSelector': "labelSelector_example", // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - 'resourceVersion': "resourceVersion_example", // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - 'timeoutSeconds': 56, // Number | Timeout for the list/watch call. - 'watch': true // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.deleteCollectionNamespacedReplicaSet(namespace, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeoutSeconds** | **Number**| Timeout for the list/watch call. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**V1Status**](V1Status.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **deleteCollectionPodSecurityPolicy** -> V1Status deleteCollectionPodSecurityPolicy(opts) - - - -delete collection of PodSecurityPolicy - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Extensions_v1beta1Api(); - -var opts = { - 'pretty': "pretty_example", // String | If 'true', then the output is pretty printed. - 'fieldSelector': "fieldSelector_example", // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - 'labelSelector': "labelSelector_example", // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - 'resourceVersion': "resourceVersion_example", // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - 'timeoutSeconds': 56, // Number | Timeout for the list/watch call. - 'watch': true // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.deleteCollectionPodSecurityPolicy(opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeoutSeconds** | **Number**| Timeout for the list/watch call. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**V1Status**](V1Status.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **deleteCollectionThirdPartyResource** -> V1Status deleteCollectionThirdPartyResource(opts) - - - -delete collection of ThirdPartyResource - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Extensions_v1beta1Api(); - -var opts = { - 'pretty': "pretty_example", // String | If 'true', then the output is pretty printed. - 'fieldSelector': "fieldSelector_example", // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - 'labelSelector': "labelSelector_example", // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - 'resourceVersion': "resourceVersion_example", // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - 'timeoutSeconds': 56, // Number | Timeout for the list/watch call. - 'watch': true // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.deleteCollectionThirdPartyResource(opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeoutSeconds** | **Number**| Timeout for the list/watch call. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**V1Status**](V1Status.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **deleteNamespacedDaemonSet** -> V1Status deleteNamespacedDaemonSet(name, namespace, body, opts) - - - -delete a DaemonSet - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Extensions_v1beta1Api(); - -var name = "name_example"; // String | name of the DaemonSet - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = new KubernetesJsClient.V1DeleteOptions(); // V1DeleteOptions | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. - 'gracePeriodSeconds': 56, // Number | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - 'orphanDependents': true, // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - 'propagationPolicy': "propagationPolicy_example" // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.deleteNamespacedDaemonSet(name, namespace, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the DaemonSet | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **gracePeriodSeconds** | **Number**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. | [optional] - -### Return type - -[**V1Status**](V1Status.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **deleteNamespacedDeployment** -> V1Status deleteNamespacedDeployment(name, namespace, body, opts) - - - -delete a Deployment - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Extensions_v1beta1Api(); - -var name = "name_example"; // String | name of the Deployment - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = new KubernetesJsClient.V1DeleteOptions(); // V1DeleteOptions | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. - 'gracePeriodSeconds': 56, // Number | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - 'orphanDependents': true, // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - 'propagationPolicy': "propagationPolicy_example" // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.deleteNamespacedDeployment(name, namespace, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Deployment | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **gracePeriodSeconds** | **Number**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. | [optional] - -### Return type - -[**V1Status**](V1Status.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **deleteNamespacedIngress** -> V1Status deleteNamespacedIngress(name, namespace, body, opts) - - - -delete an Ingress - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Extensions_v1beta1Api(); - -var name = "name_example"; // String | name of the Ingress - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = new KubernetesJsClient.V1DeleteOptions(); // V1DeleteOptions | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. - 'gracePeriodSeconds': 56, // Number | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - 'orphanDependents': true, // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - 'propagationPolicy': "propagationPolicy_example" // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.deleteNamespacedIngress(name, namespace, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Ingress | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **gracePeriodSeconds** | **Number**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. | [optional] - -### Return type - -[**V1Status**](V1Status.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **deleteNamespacedNetworkPolicy** -> V1Status deleteNamespacedNetworkPolicy(name, namespace, body, opts) - - - -delete a NetworkPolicy - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Extensions_v1beta1Api(); - -var name = "name_example"; // String | name of the NetworkPolicy - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = new KubernetesJsClient.V1DeleteOptions(); // V1DeleteOptions | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. - 'gracePeriodSeconds': 56, // Number | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - 'orphanDependents': true, // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - 'propagationPolicy': "propagationPolicy_example" // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.deleteNamespacedNetworkPolicy(name, namespace, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the NetworkPolicy | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **gracePeriodSeconds** | **Number**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. | [optional] - -### Return type - -[**V1Status**](V1Status.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **deleteNamespacedReplicaSet** -> V1Status deleteNamespacedReplicaSet(name, namespace, body, opts) - - - -delete a ReplicaSet - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Extensions_v1beta1Api(); - -var name = "name_example"; // String | name of the ReplicaSet - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = new KubernetesJsClient.V1DeleteOptions(); // V1DeleteOptions | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. - 'gracePeriodSeconds': 56, // Number | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - 'orphanDependents': true, // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - 'propagationPolicy': "propagationPolicy_example" // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.deleteNamespacedReplicaSet(name, namespace, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ReplicaSet | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **gracePeriodSeconds** | **Number**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. | [optional] - -### Return type - -[**V1Status**](V1Status.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **deletePodSecurityPolicy** -> V1Status deletePodSecurityPolicy(name, body, opts) - - - -delete a PodSecurityPolicy - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Extensions_v1beta1Api(); - -var name = "name_example"; // String | name of the PodSecurityPolicy - -var body = new KubernetesJsClient.V1DeleteOptions(); // V1DeleteOptions | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. - 'gracePeriodSeconds': 56, // Number | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - 'orphanDependents': true, // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - 'propagationPolicy': "propagationPolicy_example" // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.deletePodSecurityPolicy(name, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the PodSecurityPolicy | - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **gracePeriodSeconds** | **Number**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. | [optional] - -### Return type - -[**V1Status**](V1Status.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **deleteThirdPartyResource** -> V1Status deleteThirdPartyResource(name, body, opts) - - - -delete a ThirdPartyResource - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Extensions_v1beta1Api(); - -var name = "name_example"; // String | name of the ThirdPartyResource - -var body = new KubernetesJsClient.V1DeleteOptions(); // V1DeleteOptions | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. - 'gracePeriodSeconds': 56, // Number | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - 'orphanDependents': true, // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - 'propagationPolicy': "propagationPolicy_example" // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.deleteThirdPartyResource(name, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ThirdPartyResource | - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **gracePeriodSeconds** | **Number**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. | [optional] - -### Return type - -[**V1Status**](V1Status.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **getAPIResources** -> V1APIResourceList getAPIResources() - - - -get available resources - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Extensions_v1beta1Api(); - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.getAPIResources(callback); -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -[**V1APIResourceList**](V1APIResourceList.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **listDaemonSetForAllNamespaces** -> V1beta1DaemonSetList listDaemonSetForAllNamespaces(opts) - - - -list or watch objects of kind DaemonSet - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Extensions_v1beta1Api(); - -var opts = { - 'fieldSelector': "fieldSelector_example", // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - 'labelSelector': "labelSelector_example", // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - 'pretty': "pretty_example", // String | If 'true', then the output is pretty printed. - 'resourceVersion': "resourceVersion_example", // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - 'timeoutSeconds': 56, // Number | Timeout for the list/watch call. - 'watch': true // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.listDaemonSetForAllNamespaces(opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeoutSeconds** | **Number**| Timeout for the list/watch call. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**V1beta1DaemonSetList**](V1beta1DaemonSetList.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - - -# **listDeploymentForAllNamespaces** -> ExtensionsV1beta1DeploymentList listDeploymentForAllNamespaces(opts) - - - -list or watch objects of kind Deployment - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Extensions_v1beta1Api(); - -var opts = { - 'fieldSelector': "fieldSelector_example", // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - 'labelSelector': "labelSelector_example", // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - 'pretty': "pretty_example", // String | If 'true', then the output is pretty printed. - 'resourceVersion': "resourceVersion_example", // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - 'timeoutSeconds': 56, // Number | Timeout for the list/watch call. - 'watch': true // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.listDeploymentForAllNamespaces(opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeoutSeconds** | **Number**| Timeout for the list/watch call. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**ExtensionsV1beta1DeploymentList**](ExtensionsV1beta1DeploymentList.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - - -# **listIngressForAllNamespaces** -> V1beta1IngressList listIngressForAllNamespaces(opts) - - - -list or watch objects of kind Ingress - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Extensions_v1beta1Api(); - -var opts = { - 'fieldSelector': "fieldSelector_example", // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - 'labelSelector': "labelSelector_example", // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - 'pretty': "pretty_example", // String | If 'true', then the output is pretty printed. - 'resourceVersion': "resourceVersion_example", // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - 'timeoutSeconds': 56, // Number | Timeout for the list/watch call. - 'watch': true // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.listIngressForAllNamespaces(opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeoutSeconds** | **Number**| Timeout for the list/watch call. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**V1beta1IngressList**](V1beta1IngressList.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - - -# **listNamespacedDaemonSet** -> V1beta1DaemonSetList listNamespacedDaemonSet(namespace, opts) - - - -list or watch objects of kind DaemonSet - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Extensions_v1beta1Api(); - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var opts = { - 'pretty': "pretty_example", // String | If 'true', then the output is pretty printed. - 'fieldSelector': "fieldSelector_example", // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - 'labelSelector': "labelSelector_example", // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - 'resourceVersion': "resourceVersion_example", // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - 'timeoutSeconds': 56, // Number | Timeout for the list/watch call. - 'watch': true // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.listNamespacedDaemonSet(namespace, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeoutSeconds** | **Number**| Timeout for the list/watch call. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**V1beta1DaemonSetList**](V1beta1DaemonSetList.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - - -# **listNamespacedDeployment** -> ExtensionsV1beta1DeploymentList listNamespacedDeployment(namespace, opts) - - - -list or watch objects of kind Deployment - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Extensions_v1beta1Api(); - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var opts = { - 'pretty': "pretty_example", // String | If 'true', then the output is pretty printed. - 'fieldSelector': "fieldSelector_example", // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - 'labelSelector': "labelSelector_example", // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - 'resourceVersion': "resourceVersion_example", // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - 'timeoutSeconds': 56, // Number | Timeout for the list/watch call. - 'watch': true // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.listNamespacedDeployment(namespace, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeoutSeconds** | **Number**| Timeout for the list/watch call. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**ExtensionsV1beta1DeploymentList**](ExtensionsV1beta1DeploymentList.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - - -# **listNamespacedIngress** -> V1beta1IngressList listNamespacedIngress(namespace, opts) - - - -list or watch objects of kind Ingress - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Extensions_v1beta1Api(); - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var opts = { - 'pretty': "pretty_example", // String | If 'true', then the output is pretty printed. - 'fieldSelector': "fieldSelector_example", // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - 'labelSelector': "labelSelector_example", // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - 'resourceVersion': "resourceVersion_example", // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - 'timeoutSeconds': 56, // Number | Timeout for the list/watch call. - 'watch': true // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.listNamespacedIngress(namespace, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeoutSeconds** | **Number**| Timeout for the list/watch call. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**V1beta1IngressList**](V1beta1IngressList.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - - -# **listNamespacedNetworkPolicy** -> V1beta1NetworkPolicyList listNamespacedNetworkPolicy(namespace, opts) - - - -list or watch objects of kind NetworkPolicy - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Extensions_v1beta1Api(); - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var opts = { - 'pretty': "pretty_example", // String | If 'true', then the output is pretty printed. - 'fieldSelector': "fieldSelector_example", // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - 'labelSelector': "labelSelector_example", // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - 'resourceVersion': "resourceVersion_example", // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - 'timeoutSeconds': 56, // Number | Timeout for the list/watch call. - 'watch': true // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.listNamespacedNetworkPolicy(namespace, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeoutSeconds** | **Number**| Timeout for the list/watch call. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**V1beta1NetworkPolicyList**](V1beta1NetworkPolicyList.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - - -# **listNamespacedReplicaSet** -> V1beta1ReplicaSetList listNamespacedReplicaSet(namespace, opts) - - - -list or watch objects of kind ReplicaSet - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Extensions_v1beta1Api(); - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var opts = { - 'pretty': "pretty_example", // String | If 'true', then the output is pretty printed. - 'fieldSelector': "fieldSelector_example", // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - 'labelSelector': "labelSelector_example", // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - 'resourceVersion': "resourceVersion_example", // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - 'timeoutSeconds': 56, // Number | Timeout for the list/watch call. - 'watch': true // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.listNamespacedReplicaSet(namespace, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeoutSeconds** | **Number**| Timeout for the list/watch call. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**V1beta1ReplicaSetList**](V1beta1ReplicaSetList.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - - -# **listNetworkPolicyForAllNamespaces** -> V1beta1NetworkPolicyList listNetworkPolicyForAllNamespaces(opts) - - - -list or watch objects of kind NetworkPolicy - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Extensions_v1beta1Api(); - -var opts = { - 'fieldSelector': "fieldSelector_example", // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - 'labelSelector': "labelSelector_example", // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - 'pretty': "pretty_example", // String | If 'true', then the output is pretty printed. - 'resourceVersion': "resourceVersion_example", // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - 'timeoutSeconds': 56, // Number | Timeout for the list/watch call. - 'watch': true // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.listNetworkPolicyForAllNamespaces(opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeoutSeconds** | **Number**| Timeout for the list/watch call. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**V1beta1NetworkPolicyList**](V1beta1NetworkPolicyList.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - - -# **listPodSecurityPolicy** -> V1beta1PodSecurityPolicyList listPodSecurityPolicy(opts) - - - -list or watch objects of kind PodSecurityPolicy - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Extensions_v1beta1Api(); - -var opts = { - 'pretty': "pretty_example", // String | If 'true', then the output is pretty printed. - 'fieldSelector': "fieldSelector_example", // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - 'labelSelector': "labelSelector_example", // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - 'resourceVersion': "resourceVersion_example", // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - 'timeoutSeconds': 56, // Number | Timeout for the list/watch call. - 'watch': true // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.listPodSecurityPolicy(opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeoutSeconds** | **Number**| Timeout for the list/watch call. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**V1beta1PodSecurityPolicyList**](V1beta1PodSecurityPolicyList.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - - -# **listReplicaSetForAllNamespaces** -> V1beta1ReplicaSetList listReplicaSetForAllNamespaces(opts) - - - -list or watch objects of kind ReplicaSet - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Extensions_v1beta1Api(); - -var opts = { - 'fieldSelector': "fieldSelector_example", // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - 'labelSelector': "labelSelector_example", // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - 'pretty': "pretty_example", // String | If 'true', then the output is pretty printed. - 'resourceVersion': "resourceVersion_example", // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - 'timeoutSeconds': 56, // Number | Timeout for the list/watch call. - 'watch': true // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.listReplicaSetForAllNamespaces(opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeoutSeconds** | **Number**| Timeout for the list/watch call. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**V1beta1ReplicaSetList**](V1beta1ReplicaSetList.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - - -# **listThirdPartyResource** -> V1beta1ThirdPartyResourceList listThirdPartyResource(opts) - - - -list or watch objects of kind ThirdPartyResource - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Extensions_v1beta1Api(); - -var opts = { - 'pretty': "pretty_example", // String | If 'true', then the output is pretty printed. - 'fieldSelector': "fieldSelector_example", // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - 'labelSelector': "labelSelector_example", // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - 'resourceVersion': "resourceVersion_example", // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - 'timeoutSeconds': 56, // Number | Timeout for the list/watch call. - 'watch': true // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.listThirdPartyResource(opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeoutSeconds** | **Number**| Timeout for the list/watch call. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**V1beta1ThirdPartyResourceList**](V1beta1ThirdPartyResourceList.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - - -# **patchNamespacedDaemonSet** -> V1beta1DaemonSet patchNamespacedDaemonSet(name, namespace, body, opts) - - - -partially update the specified DaemonSet - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Extensions_v1beta1Api(); - -var name = "name_example"; // String | name of the DaemonSet - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = null; // Object | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.patchNamespacedDaemonSet(name, namespace, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the DaemonSet | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | **Object**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1beta1DaemonSet**](V1beta1DaemonSet.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **patchNamespacedDaemonSetStatus** -> V1beta1DaemonSet patchNamespacedDaemonSetStatus(name, namespace, body, opts) - - - -partially update status of the specified DaemonSet - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Extensions_v1beta1Api(); - -var name = "name_example"; // String | name of the DaemonSet - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = null; // Object | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.patchNamespacedDaemonSetStatus(name, namespace, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the DaemonSet | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | **Object**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1beta1DaemonSet**](V1beta1DaemonSet.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **patchNamespacedDeployment** -> ExtensionsV1beta1Deployment patchNamespacedDeployment(name, namespace, body, opts) - - - -partially update the specified Deployment - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Extensions_v1beta1Api(); - -var name = "name_example"; // String | name of the Deployment - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = null; // Object | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.patchNamespacedDeployment(name, namespace, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Deployment | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | **Object**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**ExtensionsV1beta1Deployment**](ExtensionsV1beta1Deployment.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **patchNamespacedDeploymentStatus** -> ExtensionsV1beta1Deployment patchNamespacedDeploymentStatus(name, namespace, body, opts) - - - -partially update status of the specified Deployment - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Extensions_v1beta1Api(); - -var name = "name_example"; // String | name of the Deployment - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = null; // Object | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.patchNamespacedDeploymentStatus(name, namespace, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Deployment | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | **Object**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**ExtensionsV1beta1Deployment**](ExtensionsV1beta1Deployment.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **patchNamespacedDeploymentsScale** -> ExtensionsV1beta1Scale patchNamespacedDeploymentsScale(name, namespace, body, opts) - - - -partially update scale of the specified Scale - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Extensions_v1beta1Api(); - -var name = "name_example"; // String | name of the Scale - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = null; // Object | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.patchNamespacedDeploymentsScale(name, namespace, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Scale | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | **Object**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**ExtensionsV1beta1Scale**](ExtensionsV1beta1Scale.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **patchNamespacedIngress** -> V1beta1Ingress patchNamespacedIngress(name, namespace, body, opts) - - - -partially update the specified Ingress - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Extensions_v1beta1Api(); - -var name = "name_example"; // String | name of the Ingress - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = null; // Object | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.patchNamespacedIngress(name, namespace, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Ingress | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | **Object**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1beta1Ingress**](V1beta1Ingress.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **patchNamespacedIngressStatus** -> V1beta1Ingress patchNamespacedIngressStatus(name, namespace, body, opts) - - - -partially update status of the specified Ingress - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Extensions_v1beta1Api(); - -var name = "name_example"; // String | name of the Ingress - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = null; // Object | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.patchNamespacedIngressStatus(name, namespace, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Ingress | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | **Object**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1beta1Ingress**](V1beta1Ingress.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **patchNamespacedNetworkPolicy** -> V1beta1NetworkPolicy patchNamespacedNetworkPolicy(name, namespace, body, opts) - - - -partially update the specified NetworkPolicy - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Extensions_v1beta1Api(); - -var name = "name_example"; // String | name of the NetworkPolicy - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = null; // Object | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.patchNamespacedNetworkPolicy(name, namespace, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the NetworkPolicy | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | **Object**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1beta1NetworkPolicy**](V1beta1NetworkPolicy.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **patchNamespacedReplicaSet** -> V1beta1ReplicaSet patchNamespacedReplicaSet(name, namespace, body, opts) - - - -partially update the specified ReplicaSet - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Extensions_v1beta1Api(); - -var name = "name_example"; // String | name of the ReplicaSet - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = null; // Object | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.patchNamespacedReplicaSet(name, namespace, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ReplicaSet | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | **Object**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1beta1ReplicaSet**](V1beta1ReplicaSet.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **patchNamespacedReplicaSetStatus** -> V1beta1ReplicaSet patchNamespacedReplicaSetStatus(name, namespace, body, opts) - - - -partially update status of the specified ReplicaSet - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Extensions_v1beta1Api(); - -var name = "name_example"; // String | name of the ReplicaSet - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = null; // Object | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.patchNamespacedReplicaSetStatus(name, namespace, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ReplicaSet | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | **Object**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1beta1ReplicaSet**](V1beta1ReplicaSet.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **patchNamespacedReplicasetsScale** -> ExtensionsV1beta1Scale patchNamespacedReplicasetsScale(name, namespace, body, opts) - - - -partially update scale of the specified Scale - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Extensions_v1beta1Api(); - -var name = "name_example"; // String | name of the Scale - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = null; // Object | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.patchNamespacedReplicasetsScale(name, namespace, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Scale | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | **Object**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**ExtensionsV1beta1Scale**](ExtensionsV1beta1Scale.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **patchNamespacedReplicationcontrollersScale** -> ExtensionsV1beta1Scale patchNamespacedReplicationcontrollersScale(name, namespace, body, opts) - - - -partially update scale of the specified Scale - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Extensions_v1beta1Api(); - -var name = "name_example"; // String | name of the Scale - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = null; // Object | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.patchNamespacedReplicationcontrollersScale(name, namespace, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Scale | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | **Object**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**ExtensionsV1beta1Scale**](ExtensionsV1beta1Scale.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **patchPodSecurityPolicy** -> V1beta1PodSecurityPolicy patchPodSecurityPolicy(name, body, opts) - - - -partially update the specified PodSecurityPolicy - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Extensions_v1beta1Api(); - -var name = "name_example"; // String | name of the PodSecurityPolicy - -var body = null; // Object | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.patchPodSecurityPolicy(name, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the PodSecurityPolicy | - **body** | **Object**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1beta1PodSecurityPolicy**](V1beta1PodSecurityPolicy.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **patchThirdPartyResource** -> V1beta1ThirdPartyResource patchThirdPartyResource(name, body, opts) - - - -partially update the specified ThirdPartyResource - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Extensions_v1beta1Api(); - -var name = "name_example"; // String | name of the ThirdPartyResource - -var body = null; // Object | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.patchThirdPartyResource(name, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ThirdPartyResource | - **body** | **Object**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1beta1ThirdPartyResource**](V1beta1ThirdPartyResource.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **readNamespacedDaemonSet** -> V1beta1DaemonSet readNamespacedDaemonSet(name, namespace, , opts) - - - -read the specified DaemonSet - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Extensions_v1beta1Api(); - -var name = "name_example"; // String | name of the DaemonSet - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. - 'exact': true, // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. - '_export': true // Boolean | Should this value be exported. Export strips fields that a user can not specify. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.readNamespacedDaemonSet(name, namespace, , opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the DaemonSet | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **exact** | **Boolean**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. | [optional] - **_export** | **Boolean**| Should this value be exported. Export strips fields that a user can not specify. | [optional] - -### Return type - -[**V1beta1DaemonSet**](V1beta1DaemonSet.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **readNamespacedDaemonSetStatus** -> V1beta1DaemonSet readNamespacedDaemonSetStatus(name, namespace, , opts) - - - -read status of the specified DaemonSet - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Extensions_v1beta1Api(); - -var name = "name_example"; // String | name of the DaemonSet - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.readNamespacedDaemonSetStatus(name, namespace, , opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the DaemonSet | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1beta1DaemonSet**](V1beta1DaemonSet.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **readNamespacedDeployment** -> ExtensionsV1beta1Deployment readNamespacedDeployment(name, namespace, , opts) - - - -read the specified Deployment - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Extensions_v1beta1Api(); - -var name = "name_example"; // String | name of the Deployment - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. - 'exact': true, // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. - '_export': true // Boolean | Should this value be exported. Export strips fields that a user can not specify. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.readNamespacedDeployment(name, namespace, , opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Deployment | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **exact** | **Boolean**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. | [optional] - **_export** | **Boolean**| Should this value be exported. Export strips fields that a user can not specify. | [optional] - -### Return type - -[**ExtensionsV1beta1Deployment**](ExtensionsV1beta1Deployment.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **readNamespacedDeploymentStatus** -> ExtensionsV1beta1Deployment readNamespacedDeploymentStatus(name, namespace, , opts) - - - -read status of the specified Deployment - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Extensions_v1beta1Api(); - -var name = "name_example"; // String | name of the Deployment - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.readNamespacedDeploymentStatus(name, namespace, , opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Deployment | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**ExtensionsV1beta1Deployment**](ExtensionsV1beta1Deployment.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **readNamespacedDeploymentsScale** -> ExtensionsV1beta1Scale readNamespacedDeploymentsScale(name, namespace, , opts) - - - -read scale of the specified Scale - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Extensions_v1beta1Api(); - -var name = "name_example"; // String | name of the Scale - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.readNamespacedDeploymentsScale(name, namespace, , opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Scale | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**ExtensionsV1beta1Scale**](ExtensionsV1beta1Scale.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **readNamespacedIngress** -> V1beta1Ingress readNamespacedIngress(name, namespace, , opts) - - - -read the specified Ingress - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Extensions_v1beta1Api(); - -var name = "name_example"; // String | name of the Ingress - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. - 'exact': true, // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. - '_export': true // Boolean | Should this value be exported. Export strips fields that a user can not specify. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.readNamespacedIngress(name, namespace, , opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Ingress | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **exact** | **Boolean**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. | [optional] - **_export** | **Boolean**| Should this value be exported. Export strips fields that a user can not specify. | [optional] - -### Return type - -[**V1beta1Ingress**](V1beta1Ingress.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **readNamespacedIngressStatus** -> V1beta1Ingress readNamespacedIngressStatus(name, namespace, , opts) - - - -read status of the specified Ingress - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Extensions_v1beta1Api(); - -var name = "name_example"; // String | name of the Ingress - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.readNamespacedIngressStatus(name, namespace, , opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Ingress | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1beta1Ingress**](V1beta1Ingress.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **readNamespacedNetworkPolicy** -> V1beta1NetworkPolicy readNamespacedNetworkPolicy(name, namespace, , opts) - - - -read the specified NetworkPolicy - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Extensions_v1beta1Api(); - -var name = "name_example"; // String | name of the NetworkPolicy - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. - 'exact': true, // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. - '_export': true // Boolean | Should this value be exported. Export strips fields that a user can not specify. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.readNamespacedNetworkPolicy(name, namespace, , opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the NetworkPolicy | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **exact** | **Boolean**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. | [optional] - **_export** | **Boolean**| Should this value be exported. Export strips fields that a user can not specify. | [optional] - -### Return type - -[**V1beta1NetworkPolicy**](V1beta1NetworkPolicy.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **readNamespacedReplicaSet** -> V1beta1ReplicaSet readNamespacedReplicaSet(name, namespace, , opts) - - - -read the specified ReplicaSet - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Extensions_v1beta1Api(); - -var name = "name_example"; // String | name of the ReplicaSet - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. - 'exact': true, // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. - '_export': true // Boolean | Should this value be exported. Export strips fields that a user can not specify. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.readNamespacedReplicaSet(name, namespace, , opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ReplicaSet | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **exact** | **Boolean**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. | [optional] - **_export** | **Boolean**| Should this value be exported. Export strips fields that a user can not specify. | [optional] - -### Return type - -[**V1beta1ReplicaSet**](V1beta1ReplicaSet.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **readNamespacedReplicaSetStatus** -> V1beta1ReplicaSet readNamespacedReplicaSetStatus(name, namespace, , opts) - - - -read status of the specified ReplicaSet - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Extensions_v1beta1Api(); - -var name = "name_example"; // String | name of the ReplicaSet - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.readNamespacedReplicaSetStatus(name, namespace, , opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ReplicaSet | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1beta1ReplicaSet**](V1beta1ReplicaSet.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **readNamespacedReplicasetsScale** -> ExtensionsV1beta1Scale readNamespacedReplicasetsScale(name, namespace, , opts) - - - -read scale of the specified Scale - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Extensions_v1beta1Api(); - -var name = "name_example"; // String | name of the Scale - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.readNamespacedReplicasetsScale(name, namespace, , opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Scale | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**ExtensionsV1beta1Scale**](ExtensionsV1beta1Scale.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **readNamespacedReplicationcontrollersScale** -> ExtensionsV1beta1Scale readNamespacedReplicationcontrollersScale(name, namespace, , opts) - - - -read scale of the specified Scale - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Extensions_v1beta1Api(); - -var name = "name_example"; // String | name of the Scale - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.readNamespacedReplicationcontrollersScale(name, namespace, , opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Scale | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**ExtensionsV1beta1Scale**](ExtensionsV1beta1Scale.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **readPodSecurityPolicy** -> V1beta1PodSecurityPolicy readPodSecurityPolicy(name, , opts) - - - -read the specified PodSecurityPolicy - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Extensions_v1beta1Api(); - -var name = "name_example"; // String | name of the PodSecurityPolicy - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. - 'exact': true, // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. - '_export': true // Boolean | Should this value be exported. Export strips fields that a user can not specify. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.readPodSecurityPolicy(name, , opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the PodSecurityPolicy | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **exact** | **Boolean**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. | [optional] - **_export** | **Boolean**| Should this value be exported. Export strips fields that a user can not specify. | [optional] - -### Return type - -[**V1beta1PodSecurityPolicy**](V1beta1PodSecurityPolicy.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **readThirdPartyResource** -> V1beta1ThirdPartyResource readThirdPartyResource(name, , opts) - - - -read the specified ThirdPartyResource - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Extensions_v1beta1Api(); - -var name = "name_example"; // String | name of the ThirdPartyResource - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. - 'exact': true, // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. - '_export': true // Boolean | Should this value be exported. Export strips fields that a user can not specify. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.readThirdPartyResource(name, , opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ThirdPartyResource | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **exact** | **Boolean**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. | [optional] - **_export** | **Boolean**| Should this value be exported. Export strips fields that a user can not specify. | [optional] - -### Return type - -[**V1beta1ThirdPartyResource**](V1beta1ThirdPartyResource.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **replaceNamespacedDaemonSet** -> V1beta1DaemonSet replaceNamespacedDaemonSet(name, namespace, body, opts) - - - -replace the specified DaemonSet - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Extensions_v1beta1Api(); - -var name = "name_example"; // String | name of the DaemonSet - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = new KubernetesJsClient.V1beta1DaemonSet(); // V1beta1DaemonSet | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.replaceNamespacedDaemonSet(name, namespace, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the DaemonSet | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1beta1DaemonSet**](V1beta1DaemonSet.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1beta1DaemonSet**](V1beta1DaemonSet.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **replaceNamespacedDaemonSetStatus** -> V1beta1DaemonSet replaceNamespacedDaemonSetStatus(name, namespace, body, opts) - - - -replace status of the specified DaemonSet - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Extensions_v1beta1Api(); - -var name = "name_example"; // String | name of the DaemonSet - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = new KubernetesJsClient.V1beta1DaemonSet(); // V1beta1DaemonSet | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.replaceNamespacedDaemonSetStatus(name, namespace, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the DaemonSet | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1beta1DaemonSet**](V1beta1DaemonSet.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1beta1DaemonSet**](V1beta1DaemonSet.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **replaceNamespacedDeployment** -> ExtensionsV1beta1Deployment replaceNamespacedDeployment(name, namespace, body, opts) - - - -replace the specified Deployment - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Extensions_v1beta1Api(); - -var name = "name_example"; // String | name of the Deployment - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = new KubernetesJsClient.ExtensionsV1beta1Deployment(); // ExtensionsV1beta1Deployment | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.replaceNamespacedDeployment(name, namespace, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Deployment | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**ExtensionsV1beta1Deployment**](ExtensionsV1beta1Deployment.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**ExtensionsV1beta1Deployment**](ExtensionsV1beta1Deployment.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **replaceNamespacedDeploymentStatus** -> ExtensionsV1beta1Deployment replaceNamespacedDeploymentStatus(name, namespace, body, opts) - - - -replace status of the specified Deployment - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Extensions_v1beta1Api(); - -var name = "name_example"; // String | name of the Deployment - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = new KubernetesJsClient.ExtensionsV1beta1Deployment(); // ExtensionsV1beta1Deployment | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.replaceNamespacedDeploymentStatus(name, namespace, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Deployment | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**ExtensionsV1beta1Deployment**](ExtensionsV1beta1Deployment.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**ExtensionsV1beta1Deployment**](ExtensionsV1beta1Deployment.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **replaceNamespacedDeploymentsScale** -> ExtensionsV1beta1Scale replaceNamespacedDeploymentsScale(name, namespace, body, opts) - - - -replace scale of the specified Scale - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Extensions_v1beta1Api(); - -var name = "name_example"; // String | name of the Scale - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = new KubernetesJsClient.ExtensionsV1beta1Scale(); // ExtensionsV1beta1Scale | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.replaceNamespacedDeploymentsScale(name, namespace, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Scale | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**ExtensionsV1beta1Scale**](ExtensionsV1beta1Scale.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**ExtensionsV1beta1Scale**](ExtensionsV1beta1Scale.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **replaceNamespacedIngress** -> V1beta1Ingress replaceNamespacedIngress(name, namespace, body, opts) - - - -replace the specified Ingress - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Extensions_v1beta1Api(); - -var name = "name_example"; // String | name of the Ingress - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = new KubernetesJsClient.V1beta1Ingress(); // V1beta1Ingress | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.replaceNamespacedIngress(name, namespace, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Ingress | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1beta1Ingress**](V1beta1Ingress.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1beta1Ingress**](V1beta1Ingress.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **replaceNamespacedIngressStatus** -> V1beta1Ingress replaceNamespacedIngressStatus(name, namespace, body, opts) - - - -replace status of the specified Ingress - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Extensions_v1beta1Api(); - -var name = "name_example"; // String | name of the Ingress - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = new KubernetesJsClient.V1beta1Ingress(); // V1beta1Ingress | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.replaceNamespacedIngressStatus(name, namespace, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Ingress | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1beta1Ingress**](V1beta1Ingress.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1beta1Ingress**](V1beta1Ingress.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **replaceNamespacedNetworkPolicy** -> V1beta1NetworkPolicy replaceNamespacedNetworkPolicy(name, namespace, body, opts) - - - -replace the specified NetworkPolicy - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Extensions_v1beta1Api(); - -var name = "name_example"; // String | name of the NetworkPolicy - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = new KubernetesJsClient.V1beta1NetworkPolicy(); // V1beta1NetworkPolicy | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.replaceNamespacedNetworkPolicy(name, namespace, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the NetworkPolicy | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1beta1NetworkPolicy**](V1beta1NetworkPolicy.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1beta1NetworkPolicy**](V1beta1NetworkPolicy.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **replaceNamespacedReplicaSet** -> V1beta1ReplicaSet replaceNamespacedReplicaSet(name, namespace, body, opts) - - - -replace the specified ReplicaSet - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Extensions_v1beta1Api(); - -var name = "name_example"; // String | name of the ReplicaSet - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = new KubernetesJsClient.V1beta1ReplicaSet(); // V1beta1ReplicaSet | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.replaceNamespacedReplicaSet(name, namespace, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ReplicaSet | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1beta1ReplicaSet**](V1beta1ReplicaSet.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1beta1ReplicaSet**](V1beta1ReplicaSet.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **replaceNamespacedReplicaSetStatus** -> V1beta1ReplicaSet replaceNamespacedReplicaSetStatus(name, namespace, body, opts) - - - -replace status of the specified ReplicaSet - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Extensions_v1beta1Api(); - -var name = "name_example"; // String | name of the ReplicaSet - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = new KubernetesJsClient.V1beta1ReplicaSet(); // V1beta1ReplicaSet | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.replaceNamespacedReplicaSetStatus(name, namespace, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ReplicaSet | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1beta1ReplicaSet**](V1beta1ReplicaSet.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1beta1ReplicaSet**](V1beta1ReplicaSet.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **replaceNamespacedReplicasetsScale** -> ExtensionsV1beta1Scale replaceNamespacedReplicasetsScale(name, namespace, body, opts) - - - -replace scale of the specified Scale - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Extensions_v1beta1Api(); - -var name = "name_example"; // String | name of the Scale - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = new KubernetesJsClient.ExtensionsV1beta1Scale(); // ExtensionsV1beta1Scale | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.replaceNamespacedReplicasetsScale(name, namespace, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Scale | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**ExtensionsV1beta1Scale**](ExtensionsV1beta1Scale.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**ExtensionsV1beta1Scale**](ExtensionsV1beta1Scale.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **replaceNamespacedReplicationcontrollersScale** -> ExtensionsV1beta1Scale replaceNamespacedReplicationcontrollersScale(name, namespace, body, opts) - - - -replace scale of the specified Scale - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Extensions_v1beta1Api(); - -var name = "name_example"; // String | name of the Scale - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = new KubernetesJsClient.ExtensionsV1beta1Scale(); // ExtensionsV1beta1Scale | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.replaceNamespacedReplicationcontrollersScale(name, namespace, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Scale | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**ExtensionsV1beta1Scale**](ExtensionsV1beta1Scale.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**ExtensionsV1beta1Scale**](ExtensionsV1beta1Scale.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **replacePodSecurityPolicy** -> V1beta1PodSecurityPolicy replacePodSecurityPolicy(name, body, opts) - - - -replace the specified PodSecurityPolicy - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Extensions_v1beta1Api(); - -var name = "name_example"; // String | name of the PodSecurityPolicy - -var body = new KubernetesJsClient.V1beta1PodSecurityPolicy(); // V1beta1PodSecurityPolicy | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.replacePodSecurityPolicy(name, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the PodSecurityPolicy | - **body** | [**V1beta1PodSecurityPolicy**](V1beta1PodSecurityPolicy.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1beta1PodSecurityPolicy**](V1beta1PodSecurityPolicy.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **replaceThirdPartyResource** -> V1beta1ThirdPartyResource replaceThirdPartyResource(name, body, opts) - - - -replace the specified ThirdPartyResource - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Extensions_v1beta1Api(); - -var name = "name_example"; // String | name of the ThirdPartyResource - -var body = new KubernetesJsClient.V1beta1ThirdPartyResource(); // V1beta1ThirdPartyResource | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.replaceThirdPartyResource(name, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ThirdPartyResource | - **body** | [**V1beta1ThirdPartyResource**](V1beta1ThirdPartyResource.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1beta1ThirdPartyResource**](V1beta1ThirdPartyResource.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - diff --git a/kubernetes/docs/LogsApi.md b/kubernetes/docs/LogsApi.md deleted file mode 100644 index 1273af5880..0000000000 --- a/kubernetes/docs/LogsApi.md +++ /dev/null @@ -1,106 +0,0 @@ -# KubernetesJsClient.LogsApi - -All URIs are relative to *https://localhost* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**logFileHandler**](LogsApi.md#logFileHandler) | **GET** /logs/{logpath} | -[**logFileListHandler**](LogsApi.md#logFileListHandler) | **GET** /logs/ | - - - -# **logFileHandler** -> logFileHandler(logpath) - - - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.LogsApi(); - -var logpath = "logpath_example"; // String | path to the log - - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully.'); - } -}; -apiInstance.logFileHandler(logpath, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **logpath** | **String**| path to the log | - -### Return type - -null (empty response body) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: Not defined - - -# **logFileListHandler** -> logFileListHandler() - - - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.LogsApi(); - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully.'); - } -}; -apiInstance.logFileListHandler(callback); -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -null (empty response body) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: Not defined - diff --git a/kubernetes/docs/PolicyApi.md b/kubernetes/docs/PolicyApi.md deleted file mode 100644 index f31844d611..0000000000 --- a/kubernetes/docs/PolicyApi.md +++ /dev/null @@ -1,56 +0,0 @@ -# KubernetesJsClient.PolicyApi - -All URIs are relative to *https://localhost* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**getAPIGroup**](PolicyApi.md#getAPIGroup) | **GET** /apis/policy/ | - - - -# **getAPIGroup** -> V1APIGroup getAPIGroup() - - - -get information of a group - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.PolicyApi(); - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.getAPIGroup(callback); -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -[**V1APIGroup**](V1APIGroup.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - diff --git a/kubernetes/docs/Policy_v1beta1Api.md b/kubernetes/docs/Policy_v1beta1Api.md deleted file mode 100644 index ba285ac9a9..0000000000 --- a/kubernetes/docs/Policy_v1beta1Api.md +++ /dev/null @@ -1,770 +0,0 @@ -# KubernetesJsClient.Policy_v1beta1Api - -All URIs are relative to *https://localhost* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**createNamespacedPodDisruptionBudget**](Policy_v1beta1Api.md#createNamespacedPodDisruptionBudget) | **POST** /apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets | -[**deleteCollectionNamespacedPodDisruptionBudget**](Policy_v1beta1Api.md#deleteCollectionNamespacedPodDisruptionBudget) | **DELETE** /apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets | -[**deleteNamespacedPodDisruptionBudget**](Policy_v1beta1Api.md#deleteNamespacedPodDisruptionBudget) | **DELETE** /apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets/{name} | -[**getAPIResources**](Policy_v1beta1Api.md#getAPIResources) | **GET** /apis/policy/v1beta1/ | -[**listNamespacedPodDisruptionBudget**](Policy_v1beta1Api.md#listNamespacedPodDisruptionBudget) | **GET** /apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets | -[**listPodDisruptionBudgetForAllNamespaces**](Policy_v1beta1Api.md#listPodDisruptionBudgetForAllNamespaces) | **GET** /apis/policy/v1beta1/poddisruptionbudgets | -[**patchNamespacedPodDisruptionBudget**](Policy_v1beta1Api.md#patchNamespacedPodDisruptionBudget) | **PATCH** /apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets/{name} | -[**patchNamespacedPodDisruptionBudgetStatus**](Policy_v1beta1Api.md#patchNamespacedPodDisruptionBudgetStatus) | **PATCH** /apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets/{name}/status | -[**readNamespacedPodDisruptionBudget**](Policy_v1beta1Api.md#readNamespacedPodDisruptionBudget) | **GET** /apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets/{name} | -[**readNamespacedPodDisruptionBudgetStatus**](Policy_v1beta1Api.md#readNamespacedPodDisruptionBudgetStatus) | **GET** /apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets/{name}/status | -[**replaceNamespacedPodDisruptionBudget**](Policy_v1beta1Api.md#replaceNamespacedPodDisruptionBudget) | **PUT** /apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets/{name} | -[**replaceNamespacedPodDisruptionBudgetStatus**](Policy_v1beta1Api.md#replaceNamespacedPodDisruptionBudgetStatus) | **PUT** /apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets/{name}/status | - - - -# **createNamespacedPodDisruptionBudget** -> V1beta1PodDisruptionBudget createNamespacedPodDisruptionBudget(namespacebody, opts) - - - -create a PodDisruptionBudget - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Policy_v1beta1Api(); - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = new KubernetesJsClient.V1beta1PodDisruptionBudget(); // V1beta1PodDisruptionBudget | - -var opts = { - 'pretty': "pretty_example", // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.createNamespacedPodDisruptionBudget(namespacebody, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1beta1PodDisruptionBudget**](V1beta1PodDisruptionBudget.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1beta1PodDisruptionBudget**](V1beta1PodDisruptionBudget.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **deleteCollectionNamespacedPodDisruptionBudget** -> V1Status deleteCollectionNamespacedPodDisruptionBudget(namespace, opts) - - - -delete collection of PodDisruptionBudget - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Policy_v1beta1Api(); - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var opts = { - 'pretty': "pretty_example", // String | If 'true', then the output is pretty printed. - 'fieldSelector': "fieldSelector_example", // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - 'labelSelector': "labelSelector_example", // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - 'resourceVersion': "resourceVersion_example", // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - 'timeoutSeconds': 56, // Number | Timeout for the list/watch call. - 'watch': true // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.deleteCollectionNamespacedPodDisruptionBudget(namespace, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeoutSeconds** | **Number**| Timeout for the list/watch call. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**V1Status**](V1Status.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **deleteNamespacedPodDisruptionBudget** -> V1Status deleteNamespacedPodDisruptionBudget(name, namespace, body, opts) - - - -delete a PodDisruptionBudget - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Policy_v1beta1Api(); - -var name = "name_example"; // String | name of the PodDisruptionBudget - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = new KubernetesJsClient.V1DeleteOptions(); // V1DeleteOptions | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. - 'gracePeriodSeconds': 56, // Number | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - 'orphanDependents': true, // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - 'propagationPolicy': "propagationPolicy_example" // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.deleteNamespacedPodDisruptionBudget(name, namespace, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the PodDisruptionBudget | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **gracePeriodSeconds** | **Number**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. | [optional] - -### Return type - -[**V1Status**](V1Status.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **getAPIResources** -> V1APIResourceList getAPIResources() - - - -get available resources - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Policy_v1beta1Api(); - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.getAPIResources(callback); -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -[**V1APIResourceList**](V1APIResourceList.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **listNamespacedPodDisruptionBudget** -> V1beta1PodDisruptionBudgetList listNamespacedPodDisruptionBudget(namespace, opts) - - - -list or watch objects of kind PodDisruptionBudget - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Policy_v1beta1Api(); - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var opts = { - 'pretty': "pretty_example", // String | If 'true', then the output is pretty printed. - 'fieldSelector': "fieldSelector_example", // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - 'labelSelector': "labelSelector_example", // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - 'resourceVersion': "resourceVersion_example", // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - 'timeoutSeconds': 56, // Number | Timeout for the list/watch call. - 'watch': true // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.listNamespacedPodDisruptionBudget(namespace, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeoutSeconds** | **Number**| Timeout for the list/watch call. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**V1beta1PodDisruptionBudgetList**](V1beta1PodDisruptionBudgetList.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - - -# **listPodDisruptionBudgetForAllNamespaces** -> V1beta1PodDisruptionBudgetList listPodDisruptionBudgetForAllNamespaces(opts) - - - -list or watch objects of kind PodDisruptionBudget - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Policy_v1beta1Api(); - -var opts = { - 'fieldSelector': "fieldSelector_example", // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - 'labelSelector': "labelSelector_example", // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - 'pretty': "pretty_example", // String | If 'true', then the output is pretty printed. - 'resourceVersion': "resourceVersion_example", // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - 'timeoutSeconds': 56, // Number | Timeout for the list/watch call. - 'watch': true // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.listPodDisruptionBudgetForAllNamespaces(opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeoutSeconds** | **Number**| Timeout for the list/watch call. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**V1beta1PodDisruptionBudgetList**](V1beta1PodDisruptionBudgetList.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - - -# **patchNamespacedPodDisruptionBudget** -> V1beta1PodDisruptionBudget patchNamespacedPodDisruptionBudget(name, namespace, body, opts) - - - -partially update the specified PodDisruptionBudget - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Policy_v1beta1Api(); - -var name = "name_example"; // String | name of the PodDisruptionBudget - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = null; // Object | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.patchNamespacedPodDisruptionBudget(name, namespace, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the PodDisruptionBudget | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | **Object**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1beta1PodDisruptionBudget**](V1beta1PodDisruptionBudget.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **patchNamespacedPodDisruptionBudgetStatus** -> V1beta1PodDisruptionBudget patchNamespacedPodDisruptionBudgetStatus(name, namespace, body, opts) - - - -partially update status of the specified PodDisruptionBudget - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Policy_v1beta1Api(); - -var name = "name_example"; // String | name of the PodDisruptionBudget - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = null; // Object | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.patchNamespacedPodDisruptionBudgetStatus(name, namespace, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the PodDisruptionBudget | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | **Object**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1beta1PodDisruptionBudget**](V1beta1PodDisruptionBudget.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **readNamespacedPodDisruptionBudget** -> V1beta1PodDisruptionBudget readNamespacedPodDisruptionBudget(name, namespace, , opts) - - - -read the specified PodDisruptionBudget - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Policy_v1beta1Api(); - -var name = "name_example"; // String | name of the PodDisruptionBudget - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. - 'exact': true, // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. - '_export': true // Boolean | Should this value be exported. Export strips fields that a user can not specify. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.readNamespacedPodDisruptionBudget(name, namespace, , opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the PodDisruptionBudget | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **exact** | **Boolean**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. | [optional] - **_export** | **Boolean**| Should this value be exported. Export strips fields that a user can not specify. | [optional] - -### Return type - -[**V1beta1PodDisruptionBudget**](V1beta1PodDisruptionBudget.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **readNamespacedPodDisruptionBudgetStatus** -> V1beta1PodDisruptionBudget readNamespacedPodDisruptionBudgetStatus(name, namespace, , opts) - - - -read status of the specified PodDisruptionBudget - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Policy_v1beta1Api(); - -var name = "name_example"; // String | name of the PodDisruptionBudget - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.readNamespacedPodDisruptionBudgetStatus(name, namespace, , opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the PodDisruptionBudget | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1beta1PodDisruptionBudget**](V1beta1PodDisruptionBudget.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **replaceNamespacedPodDisruptionBudget** -> V1beta1PodDisruptionBudget replaceNamespacedPodDisruptionBudget(name, namespace, body, opts) - - - -replace the specified PodDisruptionBudget - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Policy_v1beta1Api(); - -var name = "name_example"; // String | name of the PodDisruptionBudget - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = new KubernetesJsClient.V1beta1PodDisruptionBudget(); // V1beta1PodDisruptionBudget | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.replaceNamespacedPodDisruptionBudget(name, namespace, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the PodDisruptionBudget | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1beta1PodDisruptionBudget**](V1beta1PodDisruptionBudget.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1beta1PodDisruptionBudget**](V1beta1PodDisruptionBudget.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **replaceNamespacedPodDisruptionBudgetStatus** -> V1beta1PodDisruptionBudget replaceNamespacedPodDisruptionBudgetStatus(name, namespace, body, opts) - - - -replace status of the specified PodDisruptionBudget - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Policy_v1beta1Api(); - -var name = "name_example"; // String | name of the PodDisruptionBudget - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = new KubernetesJsClient.V1beta1PodDisruptionBudget(); // V1beta1PodDisruptionBudget | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.replaceNamespacedPodDisruptionBudgetStatus(name, namespace, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the PodDisruptionBudget | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1beta1PodDisruptionBudget**](V1beta1PodDisruptionBudget.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1beta1PodDisruptionBudget**](V1beta1PodDisruptionBudget.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - diff --git a/kubernetes/docs/RbacAuthorizationApi.md b/kubernetes/docs/RbacAuthorizationApi.md deleted file mode 100644 index 255752d6ce..0000000000 --- a/kubernetes/docs/RbacAuthorizationApi.md +++ /dev/null @@ -1,56 +0,0 @@ -# KubernetesJsClient.RbacAuthorizationApi - -All URIs are relative to *https://localhost* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**getAPIGroup**](RbacAuthorizationApi.md#getAPIGroup) | **GET** /apis/rbac.authorization.k8s.io/ | - - - -# **getAPIGroup** -> V1APIGroup getAPIGroup() - - - -get information of a group - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.RbacAuthorizationApi(); - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.getAPIGroup(callback); -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -[**V1APIGroup**](V1APIGroup.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - diff --git a/kubernetes/docs/RbacAuthorization_v1alpha1Api.md b/kubernetes/docs/RbacAuthorization_v1alpha1Api.md deleted file mode 100644 index 94f6ab1f33..0000000000 --- a/kubernetes/docs/RbacAuthorization_v1alpha1Api.md +++ /dev/null @@ -1,1968 +0,0 @@ -# KubernetesJsClient.RbacAuthorization_v1alpha1Api - -All URIs are relative to *https://localhost* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**createClusterRole**](RbacAuthorization_v1alpha1Api.md#createClusterRole) | **POST** /apis/rbac.authorization.k8s.io/v1alpha1/clusterroles | -[**createClusterRoleBinding**](RbacAuthorization_v1alpha1Api.md#createClusterRoleBinding) | **POST** /apis/rbac.authorization.k8s.io/v1alpha1/clusterrolebindings | -[**createNamespacedRole**](RbacAuthorization_v1alpha1Api.md#createNamespacedRole) | **POST** /apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/roles | -[**createNamespacedRoleBinding**](RbacAuthorization_v1alpha1Api.md#createNamespacedRoleBinding) | **POST** /apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/rolebindings | -[**deleteClusterRole**](RbacAuthorization_v1alpha1Api.md#deleteClusterRole) | **DELETE** /apis/rbac.authorization.k8s.io/v1alpha1/clusterroles/{name} | -[**deleteClusterRoleBinding**](RbacAuthorization_v1alpha1Api.md#deleteClusterRoleBinding) | **DELETE** /apis/rbac.authorization.k8s.io/v1alpha1/clusterrolebindings/{name} | -[**deleteCollectionClusterRole**](RbacAuthorization_v1alpha1Api.md#deleteCollectionClusterRole) | **DELETE** /apis/rbac.authorization.k8s.io/v1alpha1/clusterroles | -[**deleteCollectionClusterRoleBinding**](RbacAuthorization_v1alpha1Api.md#deleteCollectionClusterRoleBinding) | **DELETE** /apis/rbac.authorization.k8s.io/v1alpha1/clusterrolebindings | -[**deleteCollectionNamespacedRole**](RbacAuthorization_v1alpha1Api.md#deleteCollectionNamespacedRole) | **DELETE** /apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/roles | -[**deleteCollectionNamespacedRoleBinding**](RbacAuthorization_v1alpha1Api.md#deleteCollectionNamespacedRoleBinding) | **DELETE** /apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/rolebindings | -[**deleteNamespacedRole**](RbacAuthorization_v1alpha1Api.md#deleteNamespacedRole) | **DELETE** /apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/roles/{name} | -[**deleteNamespacedRoleBinding**](RbacAuthorization_v1alpha1Api.md#deleteNamespacedRoleBinding) | **DELETE** /apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/rolebindings/{name} | -[**getAPIResources**](RbacAuthorization_v1alpha1Api.md#getAPIResources) | **GET** /apis/rbac.authorization.k8s.io/v1alpha1/ | -[**listClusterRole**](RbacAuthorization_v1alpha1Api.md#listClusterRole) | **GET** /apis/rbac.authorization.k8s.io/v1alpha1/clusterroles | -[**listClusterRoleBinding**](RbacAuthorization_v1alpha1Api.md#listClusterRoleBinding) | **GET** /apis/rbac.authorization.k8s.io/v1alpha1/clusterrolebindings | -[**listNamespacedRole**](RbacAuthorization_v1alpha1Api.md#listNamespacedRole) | **GET** /apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/roles | -[**listNamespacedRoleBinding**](RbacAuthorization_v1alpha1Api.md#listNamespacedRoleBinding) | **GET** /apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/rolebindings | -[**listRoleBindingForAllNamespaces**](RbacAuthorization_v1alpha1Api.md#listRoleBindingForAllNamespaces) | **GET** /apis/rbac.authorization.k8s.io/v1alpha1/rolebindings | -[**listRoleForAllNamespaces**](RbacAuthorization_v1alpha1Api.md#listRoleForAllNamespaces) | **GET** /apis/rbac.authorization.k8s.io/v1alpha1/roles | -[**patchClusterRole**](RbacAuthorization_v1alpha1Api.md#patchClusterRole) | **PATCH** /apis/rbac.authorization.k8s.io/v1alpha1/clusterroles/{name} | -[**patchClusterRoleBinding**](RbacAuthorization_v1alpha1Api.md#patchClusterRoleBinding) | **PATCH** /apis/rbac.authorization.k8s.io/v1alpha1/clusterrolebindings/{name} | -[**patchNamespacedRole**](RbacAuthorization_v1alpha1Api.md#patchNamespacedRole) | **PATCH** /apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/roles/{name} | -[**patchNamespacedRoleBinding**](RbacAuthorization_v1alpha1Api.md#patchNamespacedRoleBinding) | **PATCH** /apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/rolebindings/{name} | -[**readClusterRole**](RbacAuthorization_v1alpha1Api.md#readClusterRole) | **GET** /apis/rbac.authorization.k8s.io/v1alpha1/clusterroles/{name} | -[**readClusterRoleBinding**](RbacAuthorization_v1alpha1Api.md#readClusterRoleBinding) | **GET** /apis/rbac.authorization.k8s.io/v1alpha1/clusterrolebindings/{name} | -[**readNamespacedRole**](RbacAuthorization_v1alpha1Api.md#readNamespacedRole) | **GET** /apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/roles/{name} | -[**readNamespacedRoleBinding**](RbacAuthorization_v1alpha1Api.md#readNamespacedRoleBinding) | **GET** /apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/rolebindings/{name} | -[**replaceClusterRole**](RbacAuthorization_v1alpha1Api.md#replaceClusterRole) | **PUT** /apis/rbac.authorization.k8s.io/v1alpha1/clusterroles/{name} | -[**replaceClusterRoleBinding**](RbacAuthorization_v1alpha1Api.md#replaceClusterRoleBinding) | **PUT** /apis/rbac.authorization.k8s.io/v1alpha1/clusterrolebindings/{name} | -[**replaceNamespacedRole**](RbacAuthorization_v1alpha1Api.md#replaceNamespacedRole) | **PUT** /apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/roles/{name} | -[**replaceNamespacedRoleBinding**](RbacAuthorization_v1alpha1Api.md#replaceNamespacedRoleBinding) | **PUT** /apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/rolebindings/{name} | - - - -# **createClusterRole** -> V1alpha1ClusterRole createClusterRole(body, opts) - - - -create a ClusterRole - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.RbacAuthorization_v1alpha1Api(); - -var body = new KubernetesJsClient.V1alpha1ClusterRole(); // V1alpha1ClusterRole | - -var opts = { - 'pretty': "pretty_example", // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.createClusterRole(body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**V1alpha1ClusterRole**](V1alpha1ClusterRole.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1alpha1ClusterRole**](V1alpha1ClusterRole.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **createClusterRoleBinding** -> V1alpha1ClusterRoleBinding createClusterRoleBinding(body, opts) - - - -create a ClusterRoleBinding - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.RbacAuthorization_v1alpha1Api(); - -var body = new KubernetesJsClient.V1alpha1ClusterRoleBinding(); // V1alpha1ClusterRoleBinding | - -var opts = { - 'pretty': "pretty_example", // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.createClusterRoleBinding(body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**V1alpha1ClusterRoleBinding**](V1alpha1ClusterRoleBinding.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1alpha1ClusterRoleBinding**](V1alpha1ClusterRoleBinding.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **createNamespacedRole** -> V1alpha1Role createNamespacedRole(namespacebody, opts) - - - -create a Role - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.RbacAuthorization_v1alpha1Api(); - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = new KubernetesJsClient.V1alpha1Role(); // V1alpha1Role | - -var opts = { - 'pretty': "pretty_example", // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.createNamespacedRole(namespacebody, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1alpha1Role**](V1alpha1Role.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1alpha1Role**](V1alpha1Role.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **createNamespacedRoleBinding** -> V1alpha1RoleBinding createNamespacedRoleBinding(namespacebody, opts) - - - -create a RoleBinding - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.RbacAuthorization_v1alpha1Api(); - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = new KubernetesJsClient.V1alpha1RoleBinding(); // V1alpha1RoleBinding | - -var opts = { - 'pretty': "pretty_example", // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.createNamespacedRoleBinding(namespacebody, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1alpha1RoleBinding**](V1alpha1RoleBinding.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1alpha1RoleBinding**](V1alpha1RoleBinding.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **deleteClusterRole** -> V1Status deleteClusterRole(name, body, opts) - - - -delete a ClusterRole - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.RbacAuthorization_v1alpha1Api(); - -var name = "name_example"; // String | name of the ClusterRole - -var body = new KubernetesJsClient.V1DeleteOptions(); // V1DeleteOptions | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. - 'gracePeriodSeconds': 56, // Number | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - 'orphanDependents': true, // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - 'propagationPolicy': "propagationPolicy_example" // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.deleteClusterRole(name, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ClusterRole | - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **gracePeriodSeconds** | **Number**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. | [optional] - -### Return type - -[**V1Status**](V1Status.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **deleteClusterRoleBinding** -> V1Status deleteClusterRoleBinding(name, body, opts) - - - -delete a ClusterRoleBinding - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.RbacAuthorization_v1alpha1Api(); - -var name = "name_example"; // String | name of the ClusterRoleBinding - -var body = new KubernetesJsClient.V1DeleteOptions(); // V1DeleteOptions | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. - 'gracePeriodSeconds': 56, // Number | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - 'orphanDependents': true, // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - 'propagationPolicy': "propagationPolicy_example" // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.deleteClusterRoleBinding(name, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ClusterRoleBinding | - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **gracePeriodSeconds** | **Number**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. | [optional] - -### Return type - -[**V1Status**](V1Status.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **deleteCollectionClusterRole** -> V1Status deleteCollectionClusterRole(opts) - - - -delete collection of ClusterRole - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.RbacAuthorization_v1alpha1Api(); - -var opts = { - 'pretty': "pretty_example", // String | If 'true', then the output is pretty printed. - 'fieldSelector': "fieldSelector_example", // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - 'labelSelector': "labelSelector_example", // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - 'resourceVersion': "resourceVersion_example", // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - 'timeoutSeconds': 56, // Number | Timeout for the list/watch call. - 'watch': true // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.deleteCollectionClusterRole(opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeoutSeconds** | **Number**| Timeout for the list/watch call. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**V1Status**](V1Status.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **deleteCollectionClusterRoleBinding** -> V1Status deleteCollectionClusterRoleBinding(opts) - - - -delete collection of ClusterRoleBinding - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.RbacAuthorization_v1alpha1Api(); - -var opts = { - 'pretty': "pretty_example", // String | If 'true', then the output is pretty printed. - 'fieldSelector': "fieldSelector_example", // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - 'labelSelector': "labelSelector_example", // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - 'resourceVersion': "resourceVersion_example", // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - 'timeoutSeconds': 56, // Number | Timeout for the list/watch call. - 'watch': true // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.deleteCollectionClusterRoleBinding(opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeoutSeconds** | **Number**| Timeout for the list/watch call. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**V1Status**](V1Status.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **deleteCollectionNamespacedRole** -> V1Status deleteCollectionNamespacedRole(namespace, opts) - - - -delete collection of Role - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.RbacAuthorization_v1alpha1Api(); - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var opts = { - 'pretty': "pretty_example", // String | If 'true', then the output is pretty printed. - 'fieldSelector': "fieldSelector_example", // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - 'labelSelector': "labelSelector_example", // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - 'resourceVersion': "resourceVersion_example", // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - 'timeoutSeconds': 56, // Number | Timeout for the list/watch call. - 'watch': true // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.deleteCollectionNamespacedRole(namespace, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeoutSeconds** | **Number**| Timeout for the list/watch call. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**V1Status**](V1Status.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **deleteCollectionNamespacedRoleBinding** -> V1Status deleteCollectionNamespacedRoleBinding(namespace, opts) - - - -delete collection of RoleBinding - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.RbacAuthorization_v1alpha1Api(); - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var opts = { - 'pretty': "pretty_example", // String | If 'true', then the output is pretty printed. - 'fieldSelector': "fieldSelector_example", // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - 'labelSelector': "labelSelector_example", // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - 'resourceVersion': "resourceVersion_example", // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - 'timeoutSeconds': 56, // Number | Timeout for the list/watch call. - 'watch': true // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.deleteCollectionNamespacedRoleBinding(namespace, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeoutSeconds** | **Number**| Timeout for the list/watch call. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**V1Status**](V1Status.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **deleteNamespacedRole** -> V1Status deleteNamespacedRole(name, namespace, body, opts) - - - -delete a Role - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.RbacAuthorization_v1alpha1Api(); - -var name = "name_example"; // String | name of the Role - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = new KubernetesJsClient.V1DeleteOptions(); // V1DeleteOptions | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. - 'gracePeriodSeconds': 56, // Number | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - 'orphanDependents': true, // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - 'propagationPolicy': "propagationPolicy_example" // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.deleteNamespacedRole(name, namespace, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Role | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **gracePeriodSeconds** | **Number**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. | [optional] - -### Return type - -[**V1Status**](V1Status.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **deleteNamespacedRoleBinding** -> V1Status deleteNamespacedRoleBinding(name, namespace, body, opts) - - - -delete a RoleBinding - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.RbacAuthorization_v1alpha1Api(); - -var name = "name_example"; // String | name of the RoleBinding - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = new KubernetesJsClient.V1DeleteOptions(); // V1DeleteOptions | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. - 'gracePeriodSeconds': 56, // Number | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - 'orphanDependents': true, // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - 'propagationPolicy': "propagationPolicy_example" // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.deleteNamespacedRoleBinding(name, namespace, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the RoleBinding | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **gracePeriodSeconds** | **Number**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. | [optional] - -### Return type - -[**V1Status**](V1Status.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **getAPIResources** -> V1APIResourceList getAPIResources() - - - -get available resources - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.RbacAuthorization_v1alpha1Api(); - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.getAPIResources(callback); -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -[**V1APIResourceList**](V1APIResourceList.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **listClusterRole** -> V1alpha1ClusterRoleList listClusterRole(opts) - - - -list or watch objects of kind ClusterRole - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.RbacAuthorization_v1alpha1Api(); - -var opts = { - 'pretty': "pretty_example", // String | If 'true', then the output is pretty printed. - 'fieldSelector': "fieldSelector_example", // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - 'labelSelector': "labelSelector_example", // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - 'resourceVersion': "resourceVersion_example", // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - 'timeoutSeconds': 56, // Number | Timeout for the list/watch call. - 'watch': true // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.listClusterRole(opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeoutSeconds** | **Number**| Timeout for the list/watch call. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**V1alpha1ClusterRoleList**](V1alpha1ClusterRoleList.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - - -# **listClusterRoleBinding** -> V1alpha1ClusterRoleBindingList listClusterRoleBinding(opts) - - - -list or watch objects of kind ClusterRoleBinding - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.RbacAuthorization_v1alpha1Api(); - -var opts = { - 'pretty': "pretty_example", // String | If 'true', then the output is pretty printed. - 'fieldSelector': "fieldSelector_example", // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - 'labelSelector': "labelSelector_example", // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - 'resourceVersion': "resourceVersion_example", // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - 'timeoutSeconds': 56, // Number | Timeout for the list/watch call. - 'watch': true // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.listClusterRoleBinding(opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeoutSeconds** | **Number**| Timeout for the list/watch call. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**V1alpha1ClusterRoleBindingList**](V1alpha1ClusterRoleBindingList.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - - -# **listNamespacedRole** -> V1alpha1RoleList listNamespacedRole(namespace, opts) - - - -list or watch objects of kind Role - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.RbacAuthorization_v1alpha1Api(); - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var opts = { - 'pretty': "pretty_example", // String | If 'true', then the output is pretty printed. - 'fieldSelector': "fieldSelector_example", // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - 'labelSelector': "labelSelector_example", // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - 'resourceVersion': "resourceVersion_example", // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - 'timeoutSeconds': 56, // Number | Timeout for the list/watch call. - 'watch': true // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.listNamespacedRole(namespace, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeoutSeconds** | **Number**| Timeout for the list/watch call. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**V1alpha1RoleList**](V1alpha1RoleList.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - - -# **listNamespacedRoleBinding** -> V1alpha1RoleBindingList listNamespacedRoleBinding(namespace, opts) - - - -list or watch objects of kind RoleBinding - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.RbacAuthorization_v1alpha1Api(); - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var opts = { - 'pretty': "pretty_example", // String | If 'true', then the output is pretty printed. - 'fieldSelector': "fieldSelector_example", // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - 'labelSelector': "labelSelector_example", // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - 'resourceVersion': "resourceVersion_example", // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - 'timeoutSeconds': 56, // Number | Timeout for the list/watch call. - 'watch': true // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.listNamespacedRoleBinding(namespace, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeoutSeconds** | **Number**| Timeout for the list/watch call. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**V1alpha1RoleBindingList**](V1alpha1RoleBindingList.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - - -# **listRoleBindingForAllNamespaces** -> V1alpha1RoleBindingList listRoleBindingForAllNamespaces(opts) - - - -list or watch objects of kind RoleBinding - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.RbacAuthorization_v1alpha1Api(); - -var opts = { - 'fieldSelector': "fieldSelector_example", // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - 'labelSelector': "labelSelector_example", // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - 'pretty': "pretty_example", // String | If 'true', then the output is pretty printed. - 'resourceVersion': "resourceVersion_example", // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - 'timeoutSeconds': 56, // Number | Timeout for the list/watch call. - 'watch': true // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.listRoleBindingForAllNamespaces(opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeoutSeconds** | **Number**| Timeout for the list/watch call. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**V1alpha1RoleBindingList**](V1alpha1RoleBindingList.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - - -# **listRoleForAllNamespaces** -> V1alpha1RoleList listRoleForAllNamespaces(opts) - - - -list or watch objects of kind Role - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.RbacAuthorization_v1alpha1Api(); - -var opts = { - 'fieldSelector': "fieldSelector_example", // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - 'labelSelector': "labelSelector_example", // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - 'pretty': "pretty_example", // String | If 'true', then the output is pretty printed. - 'resourceVersion': "resourceVersion_example", // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - 'timeoutSeconds': 56, // Number | Timeout for the list/watch call. - 'watch': true // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.listRoleForAllNamespaces(opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeoutSeconds** | **Number**| Timeout for the list/watch call. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**V1alpha1RoleList**](V1alpha1RoleList.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - - -# **patchClusterRole** -> V1alpha1ClusterRole patchClusterRole(name, body, opts) - - - -partially update the specified ClusterRole - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.RbacAuthorization_v1alpha1Api(); - -var name = "name_example"; // String | name of the ClusterRole - -var body = null; // Object | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.patchClusterRole(name, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ClusterRole | - **body** | **Object**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1alpha1ClusterRole**](V1alpha1ClusterRole.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **patchClusterRoleBinding** -> V1alpha1ClusterRoleBinding patchClusterRoleBinding(name, body, opts) - - - -partially update the specified ClusterRoleBinding - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.RbacAuthorization_v1alpha1Api(); - -var name = "name_example"; // String | name of the ClusterRoleBinding - -var body = null; // Object | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.patchClusterRoleBinding(name, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ClusterRoleBinding | - **body** | **Object**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1alpha1ClusterRoleBinding**](V1alpha1ClusterRoleBinding.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **patchNamespacedRole** -> V1alpha1Role patchNamespacedRole(name, namespace, body, opts) - - - -partially update the specified Role - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.RbacAuthorization_v1alpha1Api(); - -var name = "name_example"; // String | name of the Role - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = null; // Object | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.patchNamespacedRole(name, namespace, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Role | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | **Object**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1alpha1Role**](V1alpha1Role.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **patchNamespacedRoleBinding** -> V1alpha1RoleBinding patchNamespacedRoleBinding(name, namespace, body, opts) - - - -partially update the specified RoleBinding - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.RbacAuthorization_v1alpha1Api(); - -var name = "name_example"; // String | name of the RoleBinding - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = null; // Object | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.patchNamespacedRoleBinding(name, namespace, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the RoleBinding | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | **Object**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1alpha1RoleBinding**](V1alpha1RoleBinding.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **readClusterRole** -> V1alpha1ClusterRole readClusterRole(name, , opts) - - - -read the specified ClusterRole - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.RbacAuthorization_v1alpha1Api(); - -var name = "name_example"; // String | name of the ClusterRole - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.readClusterRole(name, , opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ClusterRole | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1alpha1ClusterRole**](V1alpha1ClusterRole.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **readClusterRoleBinding** -> V1alpha1ClusterRoleBinding readClusterRoleBinding(name, , opts) - - - -read the specified ClusterRoleBinding - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.RbacAuthorization_v1alpha1Api(); - -var name = "name_example"; // String | name of the ClusterRoleBinding - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.readClusterRoleBinding(name, , opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ClusterRoleBinding | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1alpha1ClusterRoleBinding**](V1alpha1ClusterRoleBinding.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **readNamespacedRole** -> V1alpha1Role readNamespacedRole(name, namespace, , opts) - - - -read the specified Role - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.RbacAuthorization_v1alpha1Api(); - -var name = "name_example"; // String | name of the Role - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.readNamespacedRole(name, namespace, , opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Role | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1alpha1Role**](V1alpha1Role.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **readNamespacedRoleBinding** -> V1alpha1RoleBinding readNamespacedRoleBinding(name, namespace, , opts) - - - -read the specified RoleBinding - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.RbacAuthorization_v1alpha1Api(); - -var name = "name_example"; // String | name of the RoleBinding - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.readNamespacedRoleBinding(name, namespace, , opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the RoleBinding | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1alpha1RoleBinding**](V1alpha1RoleBinding.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **replaceClusterRole** -> V1alpha1ClusterRole replaceClusterRole(name, body, opts) - - - -replace the specified ClusterRole - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.RbacAuthorization_v1alpha1Api(); - -var name = "name_example"; // String | name of the ClusterRole - -var body = new KubernetesJsClient.V1alpha1ClusterRole(); // V1alpha1ClusterRole | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.replaceClusterRole(name, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ClusterRole | - **body** | [**V1alpha1ClusterRole**](V1alpha1ClusterRole.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1alpha1ClusterRole**](V1alpha1ClusterRole.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **replaceClusterRoleBinding** -> V1alpha1ClusterRoleBinding replaceClusterRoleBinding(name, body, opts) - - - -replace the specified ClusterRoleBinding - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.RbacAuthorization_v1alpha1Api(); - -var name = "name_example"; // String | name of the ClusterRoleBinding - -var body = new KubernetesJsClient.V1alpha1ClusterRoleBinding(); // V1alpha1ClusterRoleBinding | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.replaceClusterRoleBinding(name, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ClusterRoleBinding | - **body** | [**V1alpha1ClusterRoleBinding**](V1alpha1ClusterRoleBinding.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1alpha1ClusterRoleBinding**](V1alpha1ClusterRoleBinding.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **replaceNamespacedRole** -> V1alpha1Role replaceNamespacedRole(name, namespace, body, opts) - - - -replace the specified Role - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.RbacAuthorization_v1alpha1Api(); - -var name = "name_example"; // String | name of the Role - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = new KubernetesJsClient.V1alpha1Role(); // V1alpha1Role | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.replaceNamespacedRole(name, namespace, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Role | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1alpha1Role**](V1alpha1Role.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1alpha1Role**](V1alpha1Role.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **replaceNamespacedRoleBinding** -> V1alpha1RoleBinding replaceNamespacedRoleBinding(name, namespace, body, opts) - - - -replace the specified RoleBinding - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.RbacAuthorization_v1alpha1Api(); - -var name = "name_example"; // String | name of the RoleBinding - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = new KubernetesJsClient.V1alpha1RoleBinding(); // V1alpha1RoleBinding | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.replaceNamespacedRoleBinding(name, namespace, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the RoleBinding | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1alpha1RoleBinding**](V1alpha1RoleBinding.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1alpha1RoleBinding**](V1alpha1RoleBinding.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - diff --git a/kubernetes/docs/RbacAuthorization_v1beta1Api.md b/kubernetes/docs/RbacAuthorization_v1beta1Api.md deleted file mode 100644 index 28ad563217..0000000000 --- a/kubernetes/docs/RbacAuthorization_v1beta1Api.md +++ /dev/null @@ -1,1968 +0,0 @@ -# KubernetesJsClient.RbacAuthorization_v1beta1Api - -All URIs are relative to *https://localhost* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**createClusterRole**](RbacAuthorization_v1beta1Api.md#createClusterRole) | **POST** /apis/rbac.authorization.k8s.io/v1beta1/clusterroles | -[**createClusterRoleBinding**](RbacAuthorization_v1beta1Api.md#createClusterRoleBinding) | **POST** /apis/rbac.authorization.k8s.io/v1beta1/clusterrolebindings | -[**createNamespacedRole**](RbacAuthorization_v1beta1Api.md#createNamespacedRole) | **POST** /apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/roles | -[**createNamespacedRoleBinding**](RbacAuthorization_v1beta1Api.md#createNamespacedRoleBinding) | **POST** /apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/rolebindings | -[**deleteClusterRole**](RbacAuthorization_v1beta1Api.md#deleteClusterRole) | **DELETE** /apis/rbac.authorization.k8s.io/v1beta1/clusterroles/{name} | -[**deleteClusterRoleBinding**](RbacAuthorization_v1beta1Api.md#deleteClusterRoleBinding) | **DELETE** /apis/rbac.authorization.k8s.io/v1beta1/clusterrolebindings/{name} | -[**deleteCollectionClusterRole**](RbacAuthorization_v1beta1Api.md#deleteCollectionClusterRole) | **DELETE** /apis/rbac.authorization.k8s.io/v1beta1/clusterroles | -[**deleteCollectionClusterRoleBinding**](RbacAuthorization_v1beta1Api.md#deleteCollectionClusterRoleBinding) | **DELETE** /apis/rbac.authorization.k8s.io/v1beta1/clusterrolebindings | -[**deleteCollectionNamespacedRole**](RbacAuthorization_v1beta1Api.md#deleteCollectionNamespacedRole) | **DELETE** /apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/roles | -[**deleteCollectionNamespacedRoleBinding**](RbacAuthorization_v1beta1Api.md#deleteCollectionNamespacedRoleBinding) | **DELETE** /apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/rolebindings | -[**deleteNamespacedRole**](RbacAuthorization_v1beta1Api.md#deleteNamespacedRole) | **DELETE** /apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/roles/{name} | -[**deleteNamespacedRoleBinding**](RbacAuthorization_v1beta1Api.md#deleteNamespacedRoleBinding) | **DELETE** /apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/rolebindings/{name} | -[**getAPIResources**](RbacAuthorization_v1beta1Api.md#getAPIResources) | **GET** /apis/rbac.authorization.k8s.io/v1beta1/ | -[**listClusterRole**](RbacAuthorization_v1beta1Api.md#listClusterRole) | **GET** /apis/rbac.authorization.k8s.io/v1beta1/clusterroles | -[**listClusterRoleBinding**](RbacAuthorization_v1beta1Api.md#listClusterRoleBinding) | **GET** /apis/rbac.authorization.k8s.io/v1beta1/clusterrolebindings | -[**listNamespacedRole**](RbacAuthorization_v1beta1Api.md#listNamespacedRole) | **GET** /apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/roles | -[**listNamespacedRoleBinding**](RbacAuthorization_v1beta1Api.md#listNamespacedRoleBinding) | **GET** /apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/rolebindings | -[**listRoleBindingForAllNamespaces**](RbacAuthorization_v1beta1Api.md#listRoleBindingForAllNamespaces) | **GET** /apis/rbac.authorization.k8s.io/v1beta1/rolebindings | -[**listRoleForAllNamespaces**](RbacAuthorization_v1beta1Api.md#listRoleForAllNamespaces) | **GET** /apis/rbac.authorization.k8s.io/v1beta1/roles | -[**patchClusterRole**](RbacAuthorization_v1beta1Api.md#patchClusterRole) | **PATCH** /apis/rbac.authorization.k8s.io/v1beta1/clusterroles/{name} | -[**patchClusterRoleBinding**](RbacAuthorization_v1beta1Api.md#patchClusterRoleBinding) | **PATCH** /apis/rbac.authorization.k8s.io/v1beta1/clusterrolebindings/{name} | -[**patchNamespacedRole**](RbacAuthorization_v1beta1Api.md#patchNamespacedRole) | **PATCH** /apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/roles/{name} | -[**patchNamespacedRoleBinding**](RbacAuthorization_v1beta1Api.md#patchNamespacedRoleBinding) | **PATCH** /apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/rolebindings/{name} | -[**readClusterRole**](RbacAuthorization_v1beta1Api.md#readClusterRole) | **GET** /apis/rbac.authorization.k8s.io/v1beta1/clusterroles/{name} | -[**readClusterRoleBinding**](RbacAuthorization_v1beta1Api.md#readClusterRoleBinding) | **GET** /apis/rbac.authorization.k8s.io/v1beta1/clusterrolebindings/{name} | -[**readNamespacedRole**](RbacAuthorization_v1beta1Api.md#readNamespacedRole) | **GET** /apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/roles/{name} | -[**readNamespacedRoleBinding**](RbacAuthorization_v1beta1Api.md#readNamespacedRoleBinding) | **GET** /apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/rolebindings/{name} | -[**replaceClusterRole**](RbacAuthorization_v1beta1Api.md#replaceClusterRole) | **PUT** /apis/rbac.authorization.k8s.io/v1beta1/clusterroles/{name} | -[**replaceClusterRoleBinding**](RbacAuthorization_v1beta1Api.md#replaceClusterRoleBinding) | **PUT** /apis/rbac.authorization.k8s.io/v1beta1/clusterrolebindings/{name} | -[**replaceNamespacedRole**](RbacAuthorization_v1beta1Api.md#replaceNamespacedRole) | **PUT** /apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/roles/{name} | -[**replaceNamespacedRoleBinding**](RbacAuthorization_v1beta1Api.md#replaceNamespacedRoleBinding) | **PUT** /apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/rolebindings/{name} | - - - -# **createClusterRole** -> V1beta1ClusterRole createClusterRole(body, opts) - - - -create a ClusterRole - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.RbacAuthorization_v1beta1Api(); - -var body = new KubernetesJsClient.V1beta1ClusterRole(); // V1beta1ClusterRole | - -var opts = { - 'pretty': "pretty_example", // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.createClusterRole(body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**V1beta1ClusterRole**](V1beta1ClusterRole.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1beta1ClusterRole**](V1beta1ClusterRole.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **createClusterRoleBinding** -> V1beta1ClusterRoleBinding createClusterRoleBinding(body, opts) - - - -create a ClusterRoleBinding - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.RbacAuthorization_v1beta1Api(); - -var body = new KubernetesJsClient.V1beta1ClusterRoleBinding(); // V1beta1ClusterRoleBinding | - -var opts = { - 'pretty': "pretty_example", // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.createClusterRoleBinding(body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**V1beta1ClusterRoleBinding**](V1beta1ClusterRoleBinding.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1beta1ClusterRoleBinding**](V1beta1ClusterRoleBinding.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **createNamespacedRole** -> V1beta1Role createNamespacedRole(namespacebody, opts) - - - -create a Role - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.RbacAuthorization_v1beta1Api(); - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = new KubernetesJsClient.V1beta1Role(); // V1beta1Role | - -var opts = { - 'pretty': "pretty_example", // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.createNamespacedRole(namespacebody, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1beta1Role**](V1beta1Role.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1beta1Role**](V1beta1Role.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **createNamespacedRoleBinding** -> V1beta1RoleBinding createNamespacedRoleBinding(namespacebody, opts) - - - -create a RoleBinding - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.RbacAuthorization_v1beta1Api(); - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = new KubernetesJsClient.V1beta1RoleBinding(); // V1beta1RoleBinding | - -var opts = { - 'pretty': "pretty_example", // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.createNamespacedRoleBinding(namespacebody, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1beta1RoleBinding**](V1beta1RoleBinding.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1beta1RoleBinding**](V1beta1RoleBinding.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **deleteClusterRole** -> V1Status deleteClusterRole(name, body, opts) - - - -delete a ClusterRole - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.RbacAuthorization_v1beta1Api(); - -var name = "name_example"; // String | name of the ClusterRole - -var body = new KubernetesJsClient.V1DeleteOptions(); // V1DeleteOptions | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. - 'gracePeriodSeconds': 56, // Number | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - 'orphanDependents': true, // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - 'propagationPolicy': "propagationPolicy_example" // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.deleteClusterRole(name, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ClusterRole | - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **gracePeriodSeconds** | **Number**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. | [optional] - -### Return type - -[**V1Status**](V1Status.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **deleteClusterRoleBinding** -> V1Status deleteClusterRoleBinding(name, body, opts) - - - -delete a ClusterRoleBinding - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.RbacAuthorization_v1beta1Api(); - -var name = "name_example"; // String | name of the ClusterRoleBinding - -var body = new KubernetesJsClient.V1DeleteOptions(); // V1DeleteOptions | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. - 'gracePeriodSeconds': 56, // Number | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - 'orphanDependents': true, // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - 'propagationPolicy': "propagationPolicy_example" // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.deleteClusterRoleBinding(name, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ClusterRoleBinding | - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **gracePeriodSeconds** | **Number**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. | [optional] - -### Return type - -[**V1Status**](V1Status.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **deleteCollectionClusterRole** -> V1Status deleteCollectionClusterRole(opts) - - - -delete collection of ClusterRole - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.RbacAuthorization_v1beta1Api(); - -var opts = { - 'pretty': "pretty_example", // String | If 'true', then the output is pretty printed. - 'fieldSelector': "fieldSelector_example", // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - 'labelSelector': "labelSelector_example", // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - 'resourceVersion': "resourceVersion_example", // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - 'timeoutSeconds': 56, // Number | Timeout for the list/watch call. - 'watch': true // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.deleteCollectionClusterRole(opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeoutSeconds** | **Number**| Timeout for the list/watch call. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**V1Status**](V1Status.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **deleteCollectionClusterRoleBinding** -> V1Status deleteCollectionClusterRoleBinding(opts) - - - -delete collection of ClusterRoleBinding - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.RbacAuthorization_v1beta1Api(); - -var opts = { - 'pretty': "pretty_example", // String | If 'true', then the output is pretty printed. - 'fieldSelector': "fieldSelector_example", // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - 'labelSelector': "labelSelector_example", // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - 'resourceVersion': "resourceVersion_example", // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - 'timeoutSeconds': 56, // Number | Timeout for the list/watch call. - 'watch': true // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.deleteCollectionClusterRoleBinding(opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeoutSeconds** | **Number**| Timeout for the list/watch call. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**V1Status**](V1Status.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **deleteCollectionNamespacedRole** -> V1Status deleteCollectionNamespacedRole(namespace, opts) - - - -delete collection of Role - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.RbacAuthorization_v1beta1Api(); - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var opts = { - 'pretty': "pretty_example", // String | If 'true', then the output is pretty printed. - 'fieldSelector': "fieldSelector_example", // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - 'labelSelector': "labelSelector_example", // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - 'resourceVersion': "resourceVersion_example", // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - 'timeoutSeconds': 56, // Number | Timeout for the list/watch call. - 'watch': true // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.deleteCollectionNamespacedRole(namespace, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeoutSeconds** | **Number**| Timeout for the list/watch call. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**V1Status**](V1Status.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **deleteCollectionNamespacedRoleBinding** -> V1Status deleteCollectionNamespacedRoleBinding(namespace, opts) - - - -delete collection of RoleBinding - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.RbacAuthorization_v1beta1Api(); - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var opts = { - 'pretty': "pretty_example", // String | If 'true', then the output is pretty printed. - 'fieldSelector': "fieldSelector_example", // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - 'labelSelector': "labelSelector_example", // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - 'resourceVersion': "resourceVersion_example", // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - 'timeoutSeconds': 56, // Number | Timeout for the list/watch call. - 'watch': true // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.deleteCollectionNamespacedRoleBinding(namespace, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeoutSeconds** | **Number**| Timeout for the list/watch call. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**V1Status**](V1Status.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **deleteNamespacedRole** -> V1Status deleteNamespacedRole(name, namespace, body, opts) - - - -delete a Role - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.RbacAuthorization_v1beta1Api(); - -var name = "name_example"; // String | name of the Role - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = new KubernetesJsClient.V1DeleteOptions(); // V1DeleteOptions | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. - 'gracePeriodSeconds': 56, // Number | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - 'orphanDependents': true, // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - 'propagationPolicy': "propagationPolicy_example" // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.deleteNamespacedRole(name, namespace, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Role | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **gracePeriodSeconds** | **Number**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. | [optional] - -### Return type - -[**V1Status**](V1Status.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **deleteNamespacedRoleBinding** -> V1Status deleteNamespacedRoleBinding(name, namespace, body, opts) - - - -delete a RoleBinding - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.RbacAuthorization_v1beta1Api(); - -var name = "name_example"; // String | name of the RoleBinding - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = new KubernetesJsClient.V1DeleteOptions(); // V1DeleteOptions | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. - 'gracePeriodSeconds': 56, // Number | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - 'orphanDependents': true, // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - 'propagationPolicy': "propagationPolicy_example" // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.deleteNamespacedRoleBinding(name, namespace, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the RoleBinding | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **gracePeriodSeconds** | **Number**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. | [optional] - -### Return type - -[**V1Status**](V1Status.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **getAPIResources** -> V1APIResourceList getAPIResources() - - - -get available resources - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.RbacAuthorization_v1beta1Api(); - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.getAPIResources(callback); -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -[**V1APIResourceList**](V1APIResourceList.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **listClusterRole** -> V1beta1ClusterRoleList listClusterRole(opts) - - - -list or watch objects of kind ClusterRole - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.RbacAuthorization_v1beta1Api(); - -var opts = { - 'pretty': "pretty_example", // String | If 'true', then the output is pretty printed. - 'fieldSelector': "fieldSelector_example", // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - 'labelSelector': "labelSelector_example", // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - 'resourceVersion': "resourceVersion_example", // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - 'timeoutSeconds': 56, // Number | Timeout for the list/watch call. - 'watch': true // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.listClusterRole(opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeoutSeconds** | **Number**| Timeout for the list/watch call. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**V1beta1ClusterRoleList**](V1beta1ClusterRoleList.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - - -# **listClusterRoleBinding** -> V1beta1ClusterRoleBindingList listClusterRoleBinding(opts) - - - -list or watch objects of kind ClusterRoleBinding - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.RbacAuthorization_v1beta1Api(); - -var opts = { - 'pretty': "pretty_example", // String | If 'true', then the output is pretty printed. - 'fieldSelector': "fieldSelector_example", // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - 'labelSelector': "labelSelector_example", // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - 'resourceVersion': "resourceVersion_example", // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - 'timeoutSeconds': 56, // Number | Timeout for the list/watch call. - 'watch': true // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.listClusterRoleBinding(opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeoutSeconds** | **Number**| Timeout for the list/watch call. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**V1beta1ClusterRoleBindingList**](V1beta1ClusterRoleBindingList.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - - -# **listNamespacedRole** -> V1beta1RoleList listNamespacedRole(namespace, opts) - - - -list or watch objects of kind Role - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.RbacAuthorization_v1beta1Api(); - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var opts = { - 'pretty': "pretty_example", // String | If 'true', then the output is pretty printed. - 'fieldSelector': "fieldSelector_example", // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - 'labelSelector': "labelSelector_example", // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - 'resourceVersion': "resourceVersion_example", // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - 'timeoutSeconds': 56, // Number | Timeout for the list/watch call. - 'watch': true // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.listNamespacedRole(namespace, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeoutSeconds** | **Number**| Timeout for the list/watch call. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**V1beta1RoleList**](V1beta1RoleList.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - - -# **listNamespacedRoleBinding** -> V1beta1RoleBindingList listNamespacedRoleBinding(namespace, opts) - - - -list or watch objects of kind RoleBinding - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.RbacAuthorization_v1beta1Api(); - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var opts = { - 'pretty': "pretty_example", // String | If 'true', then the output is pretty printed. - 'fieldSelector': "fieldSelector_example", // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - 'labelSelector': "labelSelector_example", // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - 'resourceVersion': "resourceVersion_example", // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - 'timeoutSeconds': 56, // Number | Timeout for the list/watch call. - 'watch': true // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.listNamespacedRoleBinding(namespace, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeoutSeconds** | **Number**| Timeout for the list/watch call. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**V1beta1RoleBindingList**](V1beta1RoleBindingList.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - - -# **listRoleBindingForAllNamespaces** -> V1beta1RoleBindingList listRoleBindingForAllNamespaces(opts) - - - -list or watch objects of kind RoleBinding - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.RbacAuthorization_v1beta1Api(); - -var opts = { - 'fieldSelector': "fieldSelector_example", // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - 'labelSelector': "labelSelector_example", // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - 'pretty': "pretty_example", // String | If 'true', then the output is pretty printed. - 'resourceVersion': "resourceVersion_example", // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - 'timeoutSeconds': 56, // Number | Timeout for the list/watch call. - 'watch': true // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.listRoleBindingForAllNamespaces(opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeoutSeconds** | **Number**| Timeout for the list/watch call. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**V1beta1RoleBindingList**](V1beta1RoleBindingList.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - - -# **listRoleForAllNamespaces** -> V1beta1RoleList listRoleForAllNamespaces(opts) - - - -list or watch objects of kind Role - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.RbacAuthorization_v1beta1Api(); - -var opts = { - 'fieldSelector': "fieldSelector_example", // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - 'labelSelector': "labelSelector_example", // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - 'pretty': "pretty_example", // String | If 'true', then the output is pretty printed. - 'resourceVersion': "resourceVersion_example", // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - 'timeoutSeconds': 56, // Number | Timeout for the list/watch call. - 'watch': true // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.listRoleForAllNamespaces(opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeoutSeconds** | **Number**| Timeout for the list/watch call. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**V1beta1RoleList**](V1beta1RoleList.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - - -# **patchClusterRole** -> V1beta1ClusterRole patchClusterRole(name, body, opts) - - - -partially update the specified ClusterRole - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.RbacAuthorization_v1beta1Api(); - -var name = "name_example"; // String | name of the ClusterRole - -var body = null; // Object | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.patchClusterRole(name, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ClusterRole | - **body** | **Object**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1beta1ClusterRole**](V1beta1ClusterRole.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **patchClusterRoleBinding** -> V1beta1ClusterRoleBinding patchClusterRoleBinding(name, body, opts) - - - -partially update the specified ClusterRoleBinding - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.RbacAuthorization_v1beta1Api(); - -var name = "name_example"; // String | name of the ClusterRoleBinding - -var body = null; // Object | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.patchClusterRoleBinding(name, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ClusterRoleBinding | - **body** | **Object**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1beta1ClusterRoleBinding**](V1beta1ClusterRoleBinding.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **patchNamespacedRole** -> V1beta1Role patchNamespacedRole(name, namespace, body, opts) - - - -partially update the specified Role - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.RbacAuthorization_v1beta1Api(); - -var name = "name_example"; // String | name of the Role - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = null; // Object | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.patchNamespacedRole(name, namespace, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Role | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | **Object**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1beta1Role**](V1beta1Role.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **patchNamespacedRoleBinding** -> V1beta1RoleBinding patchNamespacedRoleBinding(name, namespace, body, opts) - - - -partially update the specified RoleBinding - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.RbacAuthorization_v1beta1Api(); - -var name = "name_example"; // String | name of the RoleBinding - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = null; // Object | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.patchNamespacedRoleBinding(name, namespace, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the RoleBinding | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | **Object**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1beta1RoleBinding**](V1beta1RoleBinding.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **readClusterRole** -> V1beta1ClusterRole readClusterRole(name, , opts) - - - -read the specified ClusterRole - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.RbacAuthorization_v1beta1Api(); - -var name = "name_example"; // String | name of the ClusterRole - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.readClusterRole(name, , opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ClusterRole | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1beta1ClusterRole**](V1beta1ClusterRole.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **readClusterRoleBinding** -> V1beta1ClusterRoleBinding readClusterRoleBinding(name, , opts) - - - -read the specified ClusterRoleBinding - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.RbacAuthorization_v1beta1Api(); - -var name = "name_example"; // String | name of the ClusterRoleBinding - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.readClusterRoleBinding(name, , opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ClusterRoleBinding | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1beta1ClusterRoleBinding**](V1beta1ClusterRoleBinding.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **readNamespacedRole** -> V1beta1Role readNamespacedRole(name, namespace, , opts) - - - -read the specified Role - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.RbacAuthorization_v1beta1Api(); - -var name = "name_example"; // String | name of the Role - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.readNamespacedRole(name, namespace, , opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Role | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1beta1Role**](V1beta1Role.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **readNamespacedRoleBinding** -> V1beta1RoleBinding readNamespacedRoleBinding(name, namespace, , opts) - - - -read the specified RoleBinding - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.RbacAuthorization_v1beta1Api(); - -var name = "name_example"; // String | name of the RoleBinding - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.readNamespacedRoleBinding(name, namespace, , opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the RoleBinding | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1beta1RoleBinding**](V1beta1RoleBinding.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **replaceClusterRole** -> V1beta1ClusterRole replaceClusterRole(name, body, opts) - - - -replace the specified ClusterRole - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.RbacAuthorization_v1beta1Api(); - -var name = "name_example"; // String | name of the ClusterRole - -var body = new KubernetesJsClient.V1beta1ClusterRole(); // V1beta1ClusterRole | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.replaceClusterRole(name, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ClusterRole | - **body** | [**V1beta1ClusterRole**](V1beta1ClusterRole.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1beta1ClusterRole**](V1beta1ClusterRole.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **replaceClusterRoleBinding** -> V1beta1ClusterRoleBinding replaceClusterRoleBinding(name, body, opts) - - - -replace the specified ClusterRoleBinding - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.RbacAuthorization_v1beta1Api(); - -var name = "name_example"; // String | name of the ClusterRoleBinding - -var body = new KubernetesJsClient.V1beta1ClusterRoleBinding(); // V1beta1ClusterRoleBinding | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.replaceClusterRoleBinding(name, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ClusterRoleBinding | - **body** | [**V1beta1ClusterRoleBinding**](V1beta1ClusterRoleBinding.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1beta1ClusterRoleBinding**](V1beta1ClusterRoleBinding.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **replaceNamespacedRole** -> V1beta1Role replaceNamespacedRole(name, namespace, body, opts) - - - -replace the specified Role - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.RbacAuthorization_v1beta1Api(); - -var name = "name_example"; // String | name of the Role - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = new KubernetesJsClient.V1beta1Role(); // V1beta1Role | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.replaceNamespacedRole(name, namespace, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the Role | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1beta1Role**](V1beta1Role.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1beta1Role**](V1beta1Role.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **replaceNamespacedRoleBinding** -> V1beta1RoleBinding replaceNamespacedRoleBinding(name, namespace, body, opts) - - - -replace the specified RoleBinding - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.RbacAuthorization_v1beta1Api(); - -var name = "name_example"; // String | name of the RoleBinding - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = new KubernetesJsClient.V1beta1RoleBinding(); // V1beta1RoleBinding | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.replaceNamespacedRoleBinding(name, namespace, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the RoleBinding | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1beta1RoleBinding**](V1beta1RoleBinding.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1beta1RoleBinding**](V1beta1RoleBinding.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - diff --git a/kubernetes/docs/RuntimeRawExtension.md b/kubernetes/docs/RuntimeRawExtension.md deleted file mode 100644 index ed8c2f639b..0000000000 --- a/kubernetes/docs/RuntimeRawExtension.md +++ /dev/null @@ -1,8 +0,0 @@ -# KubernetesJsClient.RuntimeRawExtension - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**raw** | **String** | Raw is the underlying serialization of this object. | - - diff --git a/kubernetes/docs/SettingsApi.md b/kubernetes/docs/SettingsApi.md deleted file mode 100644 index dd853fde5a..0000000000 --- a/kubernetes/docs/SettingsApi.md +++ /dev/null @@ -1,56 +0,0 @@ -# KubernetesJsClient.SettingsApi - -All URIs are relative to *https://localhost* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**getAPIGroup**](SettingsApi.md#getAPIGroup) | **GET** /apis/settings.k8s.io/ | - - - -# **getAPIGroup** -> V1APIGroup getAPIGroup() - - - -get information of a group - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.SettingsApi(); - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.getAPIGroup(callback); -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -[**V1APIGroup**](V1APIGroup.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - diff --git a/kubernetes/docs/Settings_v1alpha1Api.md b/kubernetes/docs/Settings_v1alpha1Api.md deleted file mode 100644 index f4d6646dc9..0000000000 --- a/kubernetes/docs/Settings_v1alpha1Api.md +++ /dev/null @@ -1,581 +0,0 @@ -# KubernetesJsClient.Settings_v1alpha1Api - -All URIs are relative to *https://localhost* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**createNamespacedPodPreset**](Settings_v1alpha1Api.md#createNamespacedPodPreset) | **POST** /apis/settings.k8s.io/v1alpha1/namespaces/{namespace}/podpresets | -[**deleteCollectionNamespacedPodPreset**](Settings_v1alpha1Api.md#deleteCollectionNamespacedPodPreset) | **DELETE** /apis/settings.k8s.io/v1alpha1/namespaces/{namespace}/podpresets | -[**deleteNamespacedPodPreset**](Settings_v1alpha1Api.md#deleteNamespacedPodPreset) | **DELETE** /apis/settings.k8s.io/v1alpha1/namespaces/{namespace}/podpresets/{name} | -[**getAPIResources**](Settings_v1alpha1Api.md#getAPIResources) | **GET** /apis/settings.k8s.io/v1alpha1/ | -[**listNamespacedPodPreset**](Settings_v1alpha1Api.md#listNamespacedPodPreset) | **GET** /apis/settings.k8s.io/v1alpha1/namespaces/{namespace}/podpresets | -[**listPodPresetForAllNamespaces**](Settings_v1alpha1Api.md#listPodPresetForAllNamespaces) | **GET** /apis/settings.k8s.io/v1alpha1/podpresets | -[**patchNamespacedPodPreset**](Settings_v1alpha1Api.md#patchNamespacedPodPreset) | **PATCH** /apis/settings.k8s.io/v1alpha1/namespaces/{namespace}/podpresets/{name} | -[**readNamespacedPodPreset**](Settings_v1alpha1Api.md#readNamespacedPodPreset) | **GET** /apis/settings.k8s.io/v1alpha1/namespaces/{namespace}/podpresets/{name} | -[**replaceNamespacedPodPreset**](Settings_v1alpha1Api.md#replaceNamespacedPodPreset) | **PUT** /apis/settings.k8s.io/v1alpha1/namespaces/{namespace}/podpresets/{name} | - - - -# **createNamespacedPodPreset** -> V1alpha1PodPreset createNamespacedPodPreset(namespacebody, opts) - - - -create a PodPreset - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Settings_v1alpha1Api(); - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = new KubernetesJsClient.V1alpha1PodPreset(); // V1alpha1PodPreset | - -var opts = { - 'pretty': "pretty_example", // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.createNamespacedPodPreset(namespacebody, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1alpha1PodPreset**](V1alpha1PodPreset.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1alpha1PodPreset**](V1alpha1PodPreset.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **deleteCollectionNamespacedPodPreset** -> V1Status deleteCollectionNamespacedPodPreset(namespace, opts) - - - -delete collection of PodPreset - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Settings_v1alpha1Api(); - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var opts = { - 'pretty': "pretty_example", // String | If 'true', then the output is pretty printed. - 'fieldSelector': "fieldSelector_example", // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - 'labelSelector': "labelSelector_example", // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - 'resourceVersion': "resourceVersion_example", // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - 'timeoutSeconds': 56, // Number | Timeout for the list/watch call. - 'watch': true // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.deleteCollectionNamespacedPodPreset(namespace, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeoutSeconds** | **Number**| Timeout for the list/watch call. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**V1Status**](V1Status.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **deleteNamespacedPodPreset** -> V1Status deleteNamespacedPodPreset(name, namespace, body, opts) - - - -delete a PodPreset - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Settings_v1alpha1Api(); - -var name = "name_example"; // String | name of the PodPreset - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = new KubernetesJsClient.V1DeleteOptions(); // V1DeleteOptions | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. - 'gracePeriodSeconds': 56, // Number | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - 'orphanDependents': true, // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - 'propagationPolicy': "propagationPolicy_example" // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.deleteNamespacedPodPreset(name, namespace, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the PodPreset | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **gracePeriodSeconds** | **Number**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. | [optional] - -### Return type - -[**V1Status**](V1Status.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **getAPIResources** -> V1APIResourceList getAPIResources() - - - -get available resources - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Settings_v1alpha1Api(); - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.getAPIResources(callback); -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -[**V1APIResourceList**](V1APIResourceList.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **listNamespacedPodPreset** -> V1alpha1PodPresetList listNamespacedPodPreset(namespace, opts) - - - -list or watch objects of kind PodPreset - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Settings_v1alpha1Api(); - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var opts = { - 'pretty': "pretty_example", // String | If 'true', then the output is pretty printed. - 'fieldSelector': "fieldSelector_example", // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - 'labelSelector': "labelSelector_example", // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - 'resourceVersion': "resourceVersion_example", // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - 'timeoutSeconds': 56, // Number | Timeout for the list/watch call. - 'watch': true // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.listNamespacedPodPreset(namespace, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeoutSeconds** | **Number**| Timeout for the list/watch call. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**V1alpha1PodPresetList**](V1alpha1PodPresetList.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - - -# **listPodPresetForAllNamespaces** -> V1alpha1PodPresetList listPodPresetForAllNamespaces(opts) - - - -list or watch objects of kind PodPreset - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Settings_v1alpha1Api(); - -var opts = { - 'fieldSelector': "fieldSelector_example", // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - 'labelSelector': "labelSelector_example", // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - 'pretty': "pretty_example", // String | If 'true', then the output is pretty printed. - 'resourceVersion': "resourceVersion_example", // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - 'timeoutSeconds': 56, // Number | Timeout for the list/watch call. - 'watch': true // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.listPodPresetForAllNamespaces(opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeoutSeconds** | **Number**| Timeout for the list/watch call. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**V1alpha1PodPresetList**](V1alpha1PodPresetList.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - - -# **patchNamespacedPodPreset** -> V1alpha1PodPreset patchNamespacedPodPreset(name, namespace, body, opts) - - - -partially update the specified PodPreset - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Settings_v1alpha1Api(); - -var name = "name_example"; // String | name of the PodPreset - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = null; // Object | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.patchNamespacedPodPreset(name, namespace, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the PodPreset | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | **Object**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1alpha1PodPreset**](V1alpha1PodPreset.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **readNamespacedPodPreset** -> V1alpha1PodPreset readNamespacedPodPreset(name, namespace, , opts) - - - -read the specified PodPreset - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Settings_v1alpha1Api(); - -var name = "name_example"; // String | name of the PodPreset - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. - 'exact': true, // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. - '_export': true // Boolean | Should this value be exported. Export strips fields that a user can not specify. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.readNamespacedPodPreset(name, namespace, , opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the PodPreset | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **exact** | **Boolean**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. | [optional] - **_export** | **Boolean**| Should this value be exported. Export strips fields that a user can not specify. | [optional] - -### Return type - -[**V1alpha1PodPreset**](V1alpha1PodPreset.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **replaceNamespacedPodPreset** -> V1alpha1PodPreset replaceNamespacedPodPreset(name, namespace, body, opts) - - - -replace the specified PodPreset - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Settings_v1alpha1Api(); - -var name = "name_example"; // String | name of the PodPreset - -var namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - -var body = new KubernetesJsClient.V1alpha1PodPreset(); // V1alpha1PodPreset | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.replaceNamespacedPodPreset(name, namespace, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the PodPreset | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1alpha1PodPreset**](V1alpha1PodPreset.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1alpha1PodPreset**](V1alpha1PodPreset.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - diff --git a/kubernetes/docs/StorageApi.md b/kubernetes/docs/StorageApi.md deleted file mode 100644 index 35b9e7df25..0000000000 --- a/kubernetes/docs/StorageApi.md +++ /dev/null @@ -1,56 +0,0 @@ -# KubernetesJsClient.StorageApi - -All URIs are relative to *https://localhost* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**getAPIGroup**](StorageApi.md#getAPIGroup) | **GET** /apis/storage.k8s.io/ | - - - -# **getAPIGroup** -> V1APIGroup getAPIGroup() - - - -get information of a group - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.StorageApi(); - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.getAPIGroup(callback); -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -[**V1APIGroup**](V1APIGroup.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - diff --git a/kubernetes/docs/Storage_v1Api.md b/kubernetes/docs/Storage_v1Api.md deleted file mode 100644 index 86c64340f0..0000000000 --- a/kubernetes/docs/Storage_v1Api.md +++ /dev/null @@ -1,495 +0,0 @@ -# KubernetesJsClient.Storage_v1Api - -All URIs are relative to *https://localhost* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**createStorageClass**](Storage_v1Api.md#createStorageClass) | **POST** /apis/storage.k8s.io/v1/storageclasses | -[**deleteCollectionStorageClass**](Storage_v1Api.md#deleteCollectionStorageClass) | **DELETE** /apis/storage.k8s.io/v1/storageclasses | -[**deleteStorageClass**](Storage_v1Api.md#deleteStorageClass) | **DELETE** /apis/storage.k8s.io/v1/storageclasses/{name} | -[**getAPIResources**](Storage_v1Api.md#getAPIResources) | **GET** /apis/storage.k8s.io/v1/ | -[**listStorageClass**](Storage_v1Api.md#listStorageClass) | **GET** /apis/storage.k8s.io/v1/storageclasses | -[**patchStorageClass**](Storage_v1Api.md#patchStorageClass) | **PATCH** /apis/storage.k8s.io/v1/storageclasses/{name} | -[**readStorageClass**](Storage_v1Api.md#readStorageClass) | **GET** /apis/storage.k8s.io/v1/storageclasses/{name} | -[**replaceStorageClass**](Storage_v1Api.md#replaceStorageClass) | **PUT** /apis/storage.k8s.io/v1/storageclasses/{name} | - - - -# **createStorageClass** -> V1StorageClass createStorageClass(body, opts) - - - -create a StorageClass - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Storage_v1Api(); - -var body = new KubernetesJsClient.V1StorageClass(); // V1StorageClass | - -var opts = { - 'pretty': "pretty_example", // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.createStorageClass(body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**V1StorageClass**](V1StorageClass.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1StorageClass**](V1StorageClass.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **deleteCollectionStorageClass** -> V1Status deleteCollectionStorageClass(opts) - - - -delete collection of StorageClass - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Storage_v1Api(); - -var opts = { - 'pretty': "pretty_example", // String | If 'true', then the output is pretty printed. - 'fieldSelector': "fieldSelector_example", // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - 'labelSelector': "labelSelector_example", // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - 'resourceVersion': "resourceVersion_example", // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - 'timeoutSeconds': 56, // Number | Timeout for the list/watch call. - 'watch': true // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.deleteCollectionStorageClass(opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeoutSeconds** | **Number**| Timeout for the list/watch call. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**V1Status**](V1Status.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **deleteStorageClass** -> V1Status deleteStorageClass(name, body, opts) - - - -delete a StorageClass - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Storage_v1Api(); - -var name = "name_example"; // String | name of the StorageClass - -var body = new KubernetesJsClient.V1DeleteOptions(); // V1DeleteOptions | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. - 'gracePeriodSeconds': 56, // Number | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - 'orphanDependents': true, // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - 'propagationPolicy': "propagationPolicy_example" // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.deleteStorageClass(name, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the StorageClass | - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **gracePeriodSeconds** | **Number**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. | [optional] - -### Return type - -[**V1Status**](V1Status.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **getAPIResources** -> V1APIResourceList getAPIResources() - - - -get available resources - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Storage_v1Api(); - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.getAPIResources(callback); -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -[**V1APIResourceList**](V1APIResourceList.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **listStorageClass** -> V1StorageClassList listStorageClass(opts) - - - -list or watch objects of kind StorageClass - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Storage_v1Api(); - -var opts = { - 'pretty': "pretty_example", // String | If 'true', then the output is pretty printed. - 'fieldSelector': "fieldSelector_example", // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - 'labelSelector': "labelSelector_example", // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - 'resourceVersion': "resourceVersion_example", // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - 'timeoutSeconds': 56, // Number | Timeout for the list/watch call. - 'watch': true // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.listStorageClass(opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeoutSeconds** | **Number**| Timeout for the list/watch call. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**V1StorageClassList**](V1StorageClassList.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - - -# **patchStorageClass** -> V1StorageClass patchStorageClass(name, body, opts) - - - -partially update the specified StorageClass - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Storage_v1Api(); - -var name = "name_example"; // String | name of the StorageClass - -var body = null; // Object | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.patchStorageClass(name, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the StorageClass | - **body** | **Object**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1StorageClass**](V1StorageClass.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **readStorageClass** -> V1StorageClass readStorageClass(name, , opts) - - - -read the specified StorageClass - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Storage_v1Api(); - -var name = "name_example"; // String | name of the StorageClass - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. - 'exact': true, // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. - '_export': true // Boolean | Should this value be exported. Export strips fields that a user can not specify. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.readStorageClass(name, , opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the StorageClass | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **exact** | **Boolean**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. | [optional] - **_export** | **Boolean**| Should this value be exported. Export strips fields that a user can not specify. | [optional] - -### Return type - -[**V1StorageClass**](V1StorageClass.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **replaceStorageClass** -> V1StorageClass replaceStorageClass(name, body, opts) - - - -replace the specified StorageClass - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Storage_v1Api(); - -var name = "name_example"; // String | name of the StorageClass - -var body = new KubernetesJsClient.V1StorageClass(); // V1StorageClass | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.replaceStorageClass(name, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the StorageClass | - **body** | [**V1StorageClass**](V1StorageClass.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1StorageClass**](V1StorageClass.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - diff --git a/kubernetes/docs/Storage_v1beta1Api.md b/kubernetes/docs/Storage_v1beta1Api.md deleted file mode 100644 index 60fe2f72cb..0000000000 --- a/kubernetes/docs/Storage_v1beta1Api.md +++ /dev/null @@ -1,495 +0,0 @@ -# KubernetesJsClient.Storage_v1beta1Api - -All URIs are relative to *https://localhost* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**createStorageClass**](Storage_v1beta1Api.md#createStorageClass) | **POST** /apis/storage.k8s.io/v1beta1/storageclasses | -[**deleteCollectionStorageClass**](Storage_v1beta1Api.md#deleteCollectionStorageClass) | **DELETE** /apis/storage.k8s.io/v1beta1/storageclasses | -[**deleteStorageClass**](Storage_v1beta1Api.md#deleteStorageClass) | **DELETE** /apis/storage.k8s.io/v1beta1/storageclasses/{name} | -[**getAPIResources**](Storage_v1beta1Api.md#getAPIResources) | **GET** /apis/storage.k8s.io/v1beta1/ | -[**listStorageClass**](Storage_v1beta1Api.md#listStorageClass) | **GET** /apis/storage.k8s.io/v1beta1/storageclasses | -[**patchStorageClass**](Storage_v1beta1Api.md#patchStorageClass) | **PATCH** /apis/storage.k8s.io/v1beta1/storageclasses/{name} | -[**readStorageClass**](Storage_v1beta1Api.md#readStorageClass) | **GET** /apis/storage.k8s.io/v1beta1/storageclasses/{name} | -[**replaceStorageClass**](Storage_v1beta1Api.md#replaceStorageClass) | **PUT** /apis/storage.k8s.io/v1beta1/storageclasses/{name} | - - - -# **createStorageClass** -> V1beta1StorageClass createStorageClass(body, opts) - - - -create a StorageClass - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Storage_v1beta1Api(); - -var body = new KubernetesJsClient.V1beta1StorageClass(); // V1beta1StorageClass | - -var opts = { - 'pretty': "pretty_example", // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.createStorageClass(body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**V1beta1StorageClass**](V1beta1StorageClass.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1beta1StorageClass**](V1beta1StorageClass.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **deleteCollectionStorageClass** -> V1Status deleteCollectionStorageClass(opts) - - - -delete collection of StorageClass - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Storage_v1beta1Api(); - -var opts = { - 'pretty': "pretty_example", // String | If 'true', then the output is pretty printed. - 'fieldSelector': "fieldSelector_example", // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - 'labelSelector': "labelSelector_example", // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - 'resourceVersion': "resourceVersion_example", // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - 'timeoutSeconds': 56, // Number | Timeout for the list/watch call. - 'watch': true // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.deleteCollectionStorageClass(opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeoutSeconds** | **Number**| Timeout for the list/watch call. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**V1Status**](V1Status.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **deleteStorageClass** -> V1Status deleteStorageClass(name, body, opts) - - - -delete a StorageClass - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Storage_v1beta1Api(); - -var name = "name_example"; // String | name of the StorageClass - -var body = new KubernetesJsClient.V1DeleteOptions(); // V1DeleteOptions | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. - 'gracePeriodSeconds': 56, // Number | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - 'orphanDependents': true, // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - 'propagationPolicy': "propagationPolicy_example" // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.deleteStorageClass(name, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the StorageClass | - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **gracePeriodSeconds** | **Number**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. | [optional] - -### Return type - -[**V1Status**](V1Status.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **getAPIResources** -> V1APIResourceList getAPIResources() - - - -get available resources - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Storage_v1beta1Api(); - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.getAPIResources(callback); -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -[**V1APIResourceList**](V1APIResourceList.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **listStorageClass** -> V1beta1StorageClassList listStorageClass(opts) - - - -list or watch objects of kind StorageClass - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Storage_v1beta1Api(); - -var opts = { - 'pretty': "pretty_example", // String | If 'true', then the output is pretty printed. - 'fieldSelector': "fieldSelector_example", // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - 'labelSelector': "labelSelector_example", // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - 'resourceVersion': "resourceVersion_example", // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - 'timeoutSeconds': 56, // Number | Timeout for the list/watch call. - 'watch': true // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.listStorageClass(opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] - **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] - **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] - **timeoutSeconds** | **Number**| Timeout for the list/watch call. | [optional] - **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - -### Return type - -[**V1beta1StorageClassList**](V1beta1StorageClassList.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - - -# **patchStorageClass** -> V1beta1StorageClass patchStorageClass(name, body, opts) - - - -partially update the specified StorageClass - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Storage_v1beta1Api(); - -var name = "name_example"; // String | name of the StorageClass - -var body = null; // Object | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.patchStorageClass(name, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the StorageClass | - **body** | **Object**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1beta1StorageClass**](V1beta1StorageClass.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **readStorageClass** -> V1beta1StorageClass readStorageClass(name, , opts) - - - -read the specified StorageClass - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Storage_v1beta1Api(); - -var name = "name_example"; // String | name of the StorageClass - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. - 'exact': true, // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. - '_export': true // Boolean | Should this value be exported. Export strips fields that a user can not specify. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.readStorageClass(name, , opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the StorageClass | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **exact** | **Boolean**| Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. | [optional] - **_export** | **Boolean**| Should this value be exported. Export strips fields that a user can not specify. | [optional] - -### Return type - -[**V1beta1StorageClass**](V1beta1StorageClass.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - - -# **replaceStorageClass** -> V1beta1StorageClass replaceStorageClass(name, body, opts) - - - -replace the specified StorageClass - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.Storage_v1beta1Api(); - -var name = "name_example"; // String | name of the StorageClass - -var body = new KubernetesJsClient.V1beta1StorageClass(); // V1beta1StorageClass | - -var opts = { - 'pretty': "pretty_example" // String | If 'true', then the output is pretty printed. -}; - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.replaceStorageClass(name, body, opts, callback); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the StorageClass | - **body** | [**V1beta1StorageClass**](V1beta1StorageClass.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1beta1StorageClass**](V1beta1StorageClass.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: */* - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - diff --git a/kubernetes/docs/V1APIGroup.md b/kubernetes/docs/V1APIGroup.md deleted file mode 100644 index 1bbfda9937..0000000000 --- a/kubernetes/docs/V1APIGroup.md +++ /dev/null @@ -1,13 +0,0 @@ -# KubernetesJsClient.V1APIGroup - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**name** | **String** | name is the name of the group. | -**preferredVersion** | [**V1GroupVersionForDiscovery**](V1GroupVersionForDiscovery.md) | preferredVersion is the version preferred by the API server, which probably is the storage version. | [optional] -**serverAddressByClientCIDRs** | [**[V1ServerAddressByClientCIDR]**](V1ServerAddressByClientCIDR.md) | a map of kubernetes.client CIDR to server address that is serving this group. This is to help kubernetes.clients reach servers in the most network-efficient way possible. Clients can use the appropriate server address as per the CIDR that they match. In case of multiple matches, kubernetes.clients should use the longest matching CIDR. The server returns only those CIDRs that it thinks that the kubernetes.client can match. For example: the master will return an internal IP CIDR only, if the kubernetes.client reaches the server using an internal IP. Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the kubernetes.client IP. | -**versions** | [**[V1GroupVersionForDiscovery]**](V1GroupVersionForDiscovery.md) | versions are the versions supported in this group. | - - diff --git a/kubernetes/docs/V1APIGroupList.md b/kubernetes/docs/V1APIGroupList.md deleted file mode 100644 index 556fa82e7c..0000000000 --- a/kubernetes/docs/V1APIGroupList.md +++ /dev/null @@ -1,10 +0,0 @@ -# KubernetesJsClient.V1APIGroupList - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] -**groups** | [**[V1APIGroup]**](V1APIGroup.md) | groups is a list of APIGroup. | -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] - - diff --git a/kubernetes/docs/V1APIResource.md b/kubernetes/docs/V1APIResource.md deleted file mode 100644 index fc53d81807..0000000000 --- a/kubernetes/docs/V1APIResource.md +++ /dev/null @@ -1,12 +0,0 @@ -# KubernetesJsClient.V1APIResource - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**kind** | **String** | kind is the kind for the resource (e.g. 'Foo' is the kind for a resource 'foo') | -**name** | **String** | name is the name of the resource. | -**namespaced** | **Boolean** | namespaced indicates if a resource is namespaced or not. | -**shortNames** | **[String]** | shortNames is a list of suggested short names of the resource. | [optional] -**verbs** | **[String]** | verbs is a list of supported kube verbs (this includes get, list, watch, create, update, patch, delete, deletecollection, and proxy) | - - diff --git a/kubernetes/docs/V1APIResourceList.md b/kubernetes/docs/V1APIResourceList.md deleted file mode 100644 index 40fc9f1602..0000000000 --- a/kubernetes/docs/V1APIResourceList.md +++ /dev/null @@ -1,11 +0,0 @@ -# KubernetesJsClient.V1APIResourceList - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] -**groupVersion** | **String** | groupVersion is the group and version this APIResourceList is for. | -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**resources** | [**[V1APIResource]**](V1APIResource.md) | resources contains the name of the resources and if they are namespaced. | - - diff --git a/kubernetes/docs/V1APIVersions.md b/kubernetes/docs/V1APIVersions.md deleted file mode 100644 index b8b81e1095..0000000000 --- a/kubernetes/docs/V1APIVersions.md +++ /dev/null @@ -1,11 +0,0 @@ -# KubernetesJsClient.V1APIVersions - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**serverAddressByClientCIDRs** | [**[V1ServerAddressByClientCIDR]**](V1ServerAddressByClientCIDR.md) | a map of kubernetes.client CIDR to server address that is serving this group. This is to help kubernetes.clients reach servers in the most network-efficient way possible. Clients can use the appropriate server address as per the CIDR that they match. In case of multiple matches, kubernetes.clients should use the longest matching CIDR. The server returns only those CIDRs that it thinks that the kubernetes.client can match. For example: the master will return an internal IP CIDR only, if the kubernetes.client reaches the server using an internal IP. Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the kubernetes.client IP. | -**versions** | **[String]** | versions are the api versions that are available. | - - diff --git a/kubernetes/docs/V1AWSElasticBlockStoreVolumeSource.md b/kubernetes/docs/V1AWSElasticBlockStoreVolumeSource.md deleted file mode 100644 index 025333cad2..0000000000 --- a/kubernetes/docs/V1AWSElasticBlockStoreVolumeSource.md +++ /dev/null @@ -1,11 +0,0 @@ -# KubernetesJsClient.V1AWSElasticBlockStoreVolumeSource - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**fsType** | **String** | Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: http://kubernetes.io/docs/user-guide/volumes#awselasticblockstore | [optional] -**partition** | **Number** | The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as \"1\". Similarly, the volume partition for /dev/sda is \"0\" (or you can leave the property empty). | [optional] -**readOnly** | **Boolean** | Specify \"true\" to force and set the ReadOnly property in VolumeMounts to \"true\". If omitted, the default is \"false\". More info: http://kubernetes.io/docs/user-guide/volumes#awselasticblockstore | [optional] -**volumeID** | **String** | Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: http://kubernetes.io/docs/user-guide/volumes#awselasticblockstore | - - diff --git a/kubernetes/docs/V1Affinity.md b/kubernetes/docs/V1Affinity.md deleted file mode 100644 index ca90ddd5ac..0000000000 --- a/kubernetes/docs/V1Affinity.md +++ /dev/null @@ -1,10 +0,0 @@ -# KubernetesJsClient.V1Affinity - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**nodeAffinity** | [**V1NodeAffinity**](V1NodeAffinity.md) | Describes node affinity scheduling rules for the pod. | [optional] -**podAffinity** | [**V1PodAffinity**](V1PodAffinity.md) | Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). | [optional] -**podAntiAffinity** | [**V1PodAntiAffinity**](V1PodAntiAffinity.md) | Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). | [optional] - - diff --git a/kubernetes/docs/V1AttachedVolume.md b/kubernetes/docs/V1AttachedVolume.md deleted file mode 100644 index dd6db2956f..0000000000 --- a/kubernetes/docs/V1AttachedVolume.md +++ /dev/null @@ -1,9 +0,0 @@ -# KubernetesJsClient.V1AttachedVolume - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**devicePath** | **String** | DevicePath represents the device path where the volume should be available | -**name** | **String** | Name of the attached volume | - - diff --git a/kubernetes/docs/V1AzureDiskVolumeSource.md b/kubernetes/docs/V1AzureDiskVolumeSource.md deleted file mode 100644 index b3eccd3ed2..0000000000 --- a/kubernetes/docs/V1AzureDiskVolumeSource.md +++ /dev/null @@ -1,12 +0,0 @@ -# KubernetesJsClient.V1AzureDiskVolumeSource - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**cachingMode** | **String** | Host Caching mode: None, Read Only, Read Write. | [optional] -**diskName** | **String** | The Name of the data disk in the blob storage | -**diskURI** | **String** | The URI the data disk in the blob storage | -**fsType** | **String** | Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. | [optional] -**readOnly** | **Boolean** | Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. | [optional] - - diff --git a/kubernetes/docs/V1AzureFileVolumeSource.md b/kubernetes/docs/V1AzureFileVolumeSource.md deleted file mode 100644 index b9cf59e462..0000000000 --- a/kubernetes/docs/V1AzureFileVolumeSource.md +++ /dev/null @@ -1,10 +0,0 @@ -# KubernetesJsClient.V1AzureFileVolumeSource - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**readOnly** | **Boolean** | Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. | [optional] -**secretName** | **String** | the name of secret that contains Azure Storage Account Name and Key | -**shareName** | **String** | Share Name | - - diff --git a/kubernetes/docs/V1Binding.md b/kubernetes/docs/V1Binding.md deleted file mode 100644 index 632dd7003d..0000000000 --- a/kubernetes/docs/V1Binding.md +++ /dev/null @@ -1,11 +0,0 @@ -# KubernetesJsClient.V1Binding - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata | [optional] -**target** | [**V1ObjectReference**](V1ObjectReference.md) | The target object that you want to bind to the standard object. | - - diff --git a/kubernetes/docs/V1Capabilities.md b/kubernetes/docs/V1Capabilities.md deleted file mode 100644 index dd353b7bb2..0000000000 --- a/kubernetes/docs/V1Capabilities.md +++ /dev/null @@ -1,9 +0,0 @@ -# KubernetesJsClient.V1Capabilities - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**add** | **[String]** | Added capabilities | [optional] -**drop** | **[String]** | Removed capabilities | [optional] - - diff --git a/kubernetes/docs/V1CephFSVolumeSource.md b/kubernetes/docs/V1CephFSVolumeSource.md deleted file mode 100644 index ba621d90c2..0000000000 --- a/kubernetes/docs/V1CephFSVolumeSource.md +++ /dev/null @@ -1,13 +0,0 @@ -# KubernetesJsClient.V1CephFSVolumeSource - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**monitors** | **[String]** | Required: Monitors is a collection of Ceph monitors More info: http://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it | -**path** | **String** | Optional: Used as the mounted root, rather than the full Ceph tree, default is / | [optional] -**readOnly** | **Boolean** | Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: http://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it | [optional] -**secretFile** | **String** | Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: http://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it | [optional] -**secretRef** | [**V1LocalObjectReference**](V1LocalObjectReference.md) | Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: http://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it | [optional] -**user** | **String** | Optional: User is the rados user name, default is admin More info: http://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it | [optional] - - diff --git a/kubernetes/docs/V1CinderVolumeSource.md b/kubernetes/docs/V1CinderVolumeSource.md deleted file mode 100644 index fcb5b3467a..0000000000 --- a/kubernetes/docs/V1CinderVolumeSource.md +++ /dev/null @@ -1,10 +0,0 @@ -# KubernetesJsClient.V1CinderVolumeSource - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**fsType** | **String** | Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: http://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md | [optional] -**readOnly** | **Boolean** | Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: http://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md | [optional] -**volumeID** | **String** | volume id used to identify the volume in cinder More info: http://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md | - - diff --git a/kubernetes/docs/V1ComponentCondition.md b/kubernetes/docs/V1ComponentCondition.md deleted file mode 100644 index fb609401b7..0000000000 --- a/kubernetes/docs/V1ComponentCondition.md +++ /dev/null @@ -1,11 +0,0 @@ -# KubernetesJsClient.V1ComponentCondition - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**error** | **String** | Condition error code for a component. For example, a health check error code. | [optional] -**message** | **String** | Message about the condition for a component. For example, information about a health check. | [optional] -**status** | **String** | Status of the condition for a component. Valid values for \"Healthy\": \"True\", \"False\", or \"Unknown\". | -**type** | **String** | Type of condition for a component. Valid value: \"Healthy\" | - - diff --git a/kubernetes/docs/V1ComponentStatus.md b/kubernetes/docs/V1ComponentStatus.md deleted file mode 100644 index 98e6d4662b..0000000000 --- a/kubernetes/docs/V1ComponentStatus.md +++ /dev/null @@ -1,11 +0,0 @@ -# KubernetesJsClient.V1ComponentStatus - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] -**conditions** | [**[V1ComponentCondition]**](V1ComponentCondition.md) | List of component conditions observed | [optional] -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata | [optional] - - diff --git a/kubernetes/docs/V1ComponentStatusList.md b/kubernetes/docs/V1ComponentStatusList.md deleted file mode 100644 index 5d337fe2ee..0000000000 --- a/kubernetes/docs/V1ComponentStatusList.md +++ /dev/null @@ -1,11 +0,0 @@ -# KubernetesJsClient.V1ComponentStatusList - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] -**items** | [**[V1ComponentStatus]**](V1ComponentStatus.md) | List of ComponentStatus objects. | -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] - - diff --git a/kubernetes/docs/V1ConfigMap.md b/kubernetes/docs/V1ConfigMap.md deleted file mode 100644 index e9907a8420..0000000000 --- a/kubernetes/docs/V1ConfigMap.md +++ /dev/null @@ -1,11 +0,0 @@ -# KubernetesJsClient.V1ConfigMap - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] -**data** | **{String: String}** | Data contains the configuration data. Each key must be a valid DNS_SUBDOMAIN with an optional leading dot. | [optional] -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata | [optional] - - diff --git a/kubernetes/docs/V1ConfigMapEnvSource.md b/kubernetes/docs/V1ConfigMapEnvSource.md deleted file mode 100644 index 4cde8d30d5..0000000000 --- a/kubernetes/docs/V1ConfigMapEnvSource.md +++ /dev/null @@ -1,9 +0,0 @@ -# KubernetesJsClient.V1ConfigMapEnvSource - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names | [optional] -**optional** | **Boolean** | Specify whether the ConfigMap must be defined | [optional] - - diff --git a/kubernetes/docs/V1ConfigMapKeySelector.md b/kubernetes/docs/V1ConfigMapKeySelector.md deleted file mode 100644 index 8a37ba0d37..0000000000 --- a/kubernetes/docs/V1ConfigMapKeySelector.md +++ /dev/null @@ -1,10 +0,0 @@ -# KubernetesJsClient.V1ConfigMapKeySelector - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**key** | **String** | The key to select. | -**name** | **String** | Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names | [optional] -**optional** | **Boolean** | Specify whether the ConfigMap or it's key must be defined | [optional] - - diff --git a/kubernetes/docs/V1ConfigMapList.md b/kubernetes/docs/V1ConfigMapList.md deleted file mode 100644 index 5c7c895a10..0000000000 --- a/kubernetes/docs/V1ConfigMapList.md +++ /dev/null @@ -1,11 +0,0 @@ -# KubernetesJsClient.V1ConfigMapList - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] -**items** | [**[V1ConfigMap]**](V1ConfigMap.md) | Items is the list of ConfigMaps. | -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata | [optional] - - diff --git a/kubernetes/docs/V1ConfigMapProjection.md b/kubernetes/docs/V1ConfigMapProjection.md deleted file mode 100644 index d79a5eed89..0000000000 --- a/kubernetes/docs/V1ConfigMapProjection.md +++ /dev/null @@ -1,10 +0,0 @@ -# KubernetesJsClient.V1ConfigMapProjection - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**items** | [**[V1KeyToPath]**](V1KeyToPath.md) | If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. | [optional] -**name** | **String** | Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names | [optional] -**optional** | **Boolean** | Specify whether the ConfigMap or it's keys must be defined | [optional] - - diff --git a/kubernetes/docs/V1ConfigMapVolumeSource.md b/kubernetes/docs/V1ConfigMapVolumeSource.md deleted file mode 100644 index dfda3d2c2f..0000000000 --- a/kubernetes/docs/V1ConfigMapVolumeSource.md +++ /dev/null @@ -1,11 +0,0 @@ -# KubernetesJsClient.V1ConfigMapVolumeSource - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**defaultMode** | **Number** | Optional: mode bits to use on created files by default. Must be a value between 0 and 0777. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. | [optional] -**items** | [**[V1KeyToPath]**](V1KeyToPath.md) | If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. | [optional] -**name** | **String** | Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names | [optional] -**optional** | **Boolean** | Specify whether the ConfigMap or it's keys must be defined | [optional] - - diff --git a/kubernetes/docs/V1Container.md b/kubernetes/docs/V1Container.md deleted file mode 100644 index 571922e191..0000000000 --- a/kubernetes/docs/V1Container.md +++ /dev/null @@ -1,27 +0,0 @@ -# KubernetesJsClient.V1Container - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**args** | **[String]** | Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/containers#containers-and-commands | [optional] -**command** | **[String]** | Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/containers#containers-and-commands | [optional] -**env** | [**[V1EnvVar]**](V1EnvVar.md) | List of environment variables to set in the container. Cannot be updated. | [optional] -**envFrom** | [**[V1EnvFromSource]**](V1EnvFromSource.md) | List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. | [optional] -**image** | **String** | Docker image name. More info: http://kubernetes.io/docs/user-guide/images | [optional] -**imagePullPolicy** | **String** | Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/images#updating-images | [optional] -**lifecycle** | [**V1Lifecycle**](V1Lifecycle.md) | Actions that the management system should take in response to container lifecycle events. Cannot be updated. | [optional] -**livenessProbe** | [**V1Probe**](V1Probe.md) | Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/pod-states#container-probes | [optional] -**name** | **String** | Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. | -**ports** | [**[V1ContainerPort]**](V1ContainerPort.md) | List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default \"0.0.0.0\" address inside a container will be accessible from the network. Cannot be updated. | [optional] -**readinessProbe** | [**V1Probe**](V1Probe.md) | Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/pod-states#container-probes | [optional] -**resources** | [**V1ResourceRequirements**](V1ResourceRequirements.md) | Compute Resources required by this container. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#resources | [optional] -**securityContext** | [**V1SecurityContext**](V1SecurityContext.md) | Security options the pod should run with. More info: http://releases.k8s.io/HEAD/docs/design/security_context.md | [optional] -**stdin** | **Boolean** | Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. | [optional] -**stdinOnce** | **Boolean** | Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first kubernetes.client attaches to stdin, and then remains open and accepts data until the kubernetes.client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false | [optional] -**terminationMessagePath** | **String** | Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. | [optional] -**terminationMessagePolicy** | **String** | Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. | [optional] -**tty** | **Boolean** | Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. | [optional] -**volumeMounts** | [**[V1VolumeMount]**](V1VolumeMount.md) | Pod volumes to mount into the container's filesystem. Cannot be updated. | [optional] -**workingDir** | **String** | Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. | [optional] - - diff --git a/kubernetes/docs/V1ContainerImage.md b/kubernetes/docs/V1ContainerImage.md deleted file mode 100644 index 3050d9e802..0000000000 --- a/kubernetes/docs/V1ContainerImage.md +++ /dev/null @@ -1,9 +0,0 @@ -# KubernetesJsClient.V1ContainerImage - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**names** | **[String]** | Names by which this image is known. e.g. [\"gcr.io/google_containers/hyperkube:v1.0.7\", \"dockerhub.io/google_containers/hyperkube:v1.0.7\"] | -**sizeBytes** | **Number** | The size of the image in bytes. | [optional] - - diff --git a/kubernetes/docs/V1ContainerPort.md b/kubernetes/docs/V1ContainerPort.md deleted file mode 100644 index 4aeab20bdb..0000000000 --- a/kubernetes/docs/V1ContainerPort.md +++ /dev/null @@ -1,12 +0,0 @@ -# KubernetesJsClient.V1ContainerPort - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**containerPort** | **Number** | Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. | -**hostIP** | **String** | What host IP to bind the external port to. | [optional] -**hostPort** | **Number** | Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. | [optional] -**name** | **String** | If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. | [optional] -**protocol** | **String** | Protocol for port. Must be UDP or TCP. Defaults to \"TCP\". | [optional] - - diff --git a/kubernetes/docs/V1ContainerState.md b/kubernetes/docs/V1ContainerState.md deleted file mode 100644 index facb0b70e8..0000000000 --- a/kubernetes/docs/V1ContainerState.md +++ /dev/null @@ -1,10 +0,0 @@ -# KubernetesJsClient.V1ContainerState - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**running** | [**V1ContainerStateRunning**](V1ContainerStateRunning.md) | Details about a running container | [optional] -**terminated** | [**V1ContainerStateTerminated**](V1ContainerStateTerminated.md) | Details about a terminated container | [optional] -**waiting** | [**V1ContainerStateWaiting**](V1ContainerStateWaiting.md) | Details about a waiting container | [optional] - - diff --git a/kubernetes/docs/V1ContainerStateRunning.md b/kubernetes/docs/V1ContainerStateRunning.md deleted file mode 100644 index fb15eb367c..0000000000 --- a/kubernetes/docs/V1ContainerStateRunning.md +++ /dev/null @@ -1,8 +0,0 @@ -# KubernetesJsClient.V1ContainerStateRunning - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**startedAt** | **Date** | Time at which the container was last (re-)started | [optional] - - diff --git a/kubernetes/docs/V1ContainerStateTerminated.md b/kubernetes/docs/V1ContainerStateTerminated.md deleted file mode 100644 index 86ea99e426..0000000000 --- a/kubernetes/docs/V1ContainerStateTerminated.md +++ /dev/null @@ -1,14 +0,0 @@ -# KubernetesJsClient.V1ContainerStateTerminated - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**containerID** | **String** | Container's ID in the format 'docker://<container_id>' | [optional] -**exitCode** | **Number** | Exit status from the last termination of the container | -**finishedAt** | **Date** | Time at which the container last terminated | [optional] -**message** | **String** | Message regarding the last termination of the container | [optional] -**reason** | **String** | (brief) reason from the last termination of the container | [optional] -**signal** | **Number** | Signal from the last termination of the container | [optional] -**startedAt** | **Date** | Time at which previous execution of the container started | [optional] - - diff --git a/kubernetes/docs/V1ContainerStateWaiting.md b/kubernetes/docs/V1ContainerStateWaiting.md deleted file mode 100644 index e5614852bb..0000000000 --- a/kubernetes/docs/V1ContainerStateWaiting.md +++ /dev/null @@ -1,9 +0,0 @@ -# KubernetesJsClient.V1ContainerStateWaiting - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**message** | **String** | Message regarding why the container is not yet running. | [optional] -**reason** | **String** | (brief) reason the container is not yet running. | [optional] - - diff --git a/kubernetes/docs/V1ContainerStatus.md b/kubernetes/docs/V1ContainerStatus.md deleted file mode 100644 index 53ea732ce5..0000000000 --- a/kubernetes/docs/V1ContainerStatus.md +++ /dev/null @@ -1,15 +0,0 @@ -# KubernetesJsClient.V1ContainerStatus - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**containerID** | **String** | Container's ID in the format 'docker://<container_id>'. More info: http://kubernetes.io/docs/user-guide/container-environment#container-information | [optional] -**image** | **String** | The image the container is running. More info: http://kubernetes.io/docs/user-guide/images | -**imageID** | **String** | ImageID of the container's image. | -**lastState** | [**V1ContainerState**](V1ContainerState.md) | Details about the container's last termination condition. | [optional] -**name** | **String** | This must be a DNS_LABEL. Each container in a pod must have a unique name. Cannot be updated. | -**ready** | **Boolean** | Specifies whether the container has passed its readiness probe. | -**restartCount** | **Number** | The number of times the container has been restarted, currently based on the number of dead containers that have not yet been removed. Note that this is calculated from dead containers. But those containers are subject to garbage collection. This value will get capped at 5 by GC. | -**state** | [**V1ContainerState**](V1ContainerState.md) | Details about the container's current condition. | [optional] - - diff --git a/kubernetes/docs/V1CrossVersionObjectReference.md b/kubernetes/docs/V1CrossVersionObjectReference.md deleted file mode 100644 index b1edcb577a..0000000000 --- a/kubernetes/docs/V1CrossVersionObjectReference.md +++ /dev/null @@ -1,10 +0,0 @@ -# KubernetesJsClient.V1CrossVersionObjectReference - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | API version of the referent | [optional] -**kind** | **String** | Kind of the referent; More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds\" | -**name** | **String** | Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names | - - diff --git a/kubernetes/docs/V1DaemonEndpoint.md b/kubernetes/docs/V1DaemonEndpoint.md deleted file mode 100644 index b992ccbcf5..0000000000 --- a/kubernetes/docs/V1DaemonEndpoint.md +++ /dev/null @@ -1,8 +0,0 @@ -# KubernetesJsClient.V1DaemonEndpoint - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**port** | **Number** | Port number of the given endpoint. | - - diff --git a/kubernetes/docs/V1DeleteOptions.md b/kubernetes/docs/V1DeleteOptions.md deleted file mode 100644 index 726c2f5ac2..0000000000 --- a/kubernetes/docs/V1DeleteOptions.md +++ /dev/null @@ -1,13 +0,0 @@ -# KubernetesJsClient.V1DeleteOptions - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] -**gracePeriodSeconds** | **Number** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**orphanDependents** | **Boolean** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] -**preconditions** | [**V1Preconditions**](V1Preconditions.md) | Must be fulfilled before a deletion is carried out. If not possible, a 409 Conflict status will be returned. | [optional] -**propagationPolicy** | **String** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. | [optional] - - diff --git a/kubernetes/docs/V1DownwardAPIProjection.md b/kubernetes/docs/V1DownwardAPIProjection.md deleted file mode 100644 index 1aeabbbb74..0000000000 --- a/kubernetes/docs/V1DownwardAPIProjection.md +++ /dev/null @@ -1,8 +0,0 @@ -# KubernetesJsClient.V1DownwardAPIProjection - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**items** | [**[V1DownwardAPIVolumeFile]**](V1DownwardAPIVolumeFile.md) | Items is a list of DownwardAPIVolume file | [optional] - - diff --git a/kubernetes/docs/V1DownwardAPIVolumeFile.md b/kubernetes/docs/V1DownwardAPIVolumeFile.md deleted file mode 100644 index 28a5d52c6b..0000000000 --- a/kubernetes/docs/V1DownwardAPIVolumeFile.md +++ /dev/null @@ -1,11 +0,0 @@ -# KubernetesJsClient.V1DownwardAPIVolumeFile - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**fieldRef** | [**V1ObjectFieldSelector**](V1ObjectFieldSelector.md) | Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. | [optional] -**mode** | **Number** | Optional: mode bits to use on this file, must be a value between 0 and 0777. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. | [optional] -**path** | **String** | Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' | -**resourceFieldRef** | [**V1ResourceFieldSelector**](V1ResourceFieldSelector.md) | Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. | [optional] - - diff --git a/kubernetes/docs/V1DownwardAPIVolumeSource.md b/kubernetes/docs/V1DownwardAPIVolumeSource.md deleted file mode 100644 index 253dfe157f..0000000000 --- a/kubernetes/docs/V1DownwardAPIVolumeSource.md +++ /dev/null @@ -1,9 +0,0 @@ -# KubernetesJsClient.V1DownwardAPIVolumeSource - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**defaultMode** | **Number** | Optional: mode bits to use on created files by default. Must be a value between 0 and 0777. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. | [optional] -**items** | [**[V1DownwardAPIVolumeFile]**](V1DownwardAPIVolumeFile.md) | Items is a list of downward API volume file | [optional] - - diff --git a/kubernetes/docs/V1EmptyDirVolumeSource.md b/kubernetes/docs/V1EmptyDirVolumeSource.md deleted file mode 100644 index 0b79e51466..0000000000 --- a/kubernetes/docs/V1EmptyDirVolumeSource.md +++ /dev/null @@ -1,8 +0,0 @@ -# KubernetesJsClient.V1EmptyDirVolumeSource - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**medium** | **String** | What type of storage medium should back this directory. The default is \"\" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir | [optional] - - diff --git a/kubernetes/docs/V1EndpointAddress.md b/kubernetes/docs/V1EndpointAddress.md deleted file mode 100644 index b34b19d956..0000000000 --- a/kubernetes/docs/V1EndpointAddress.md +++ /dev/null @@ -1,11 +0,0 @@ -# KubernetesJsClient.V1EndpointAddress - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**hostname** | **String** | The Hostname of this endpoint | [optional] -**ip** | **String** | The IP of this endpoint. May not be loopback (127.0.0.0/8), link-local (169.254.0.0/16), or link-local multicast ((224.0.0.0/24). IPv6 is also accepted but not fully supported on all platforms. Also, certain kubernetes components, like kube-proxy, are not IPv6 ready. | -**nodeName** | **String** | Optional: Node hosting this endpoint. This can be used to determine endpoints local to a node. | [optional] -**targetRef** | [**V1ObjectReference**](V1ObjectReference.md) | Reference to object providing the endpoint. | [optional] - - diff --git a/kubernetes/docs/V1EndpointPort.md b/kubernetes/docs/V1EndpointPort.md deleted file mode 100644 index 553ea601b9..0000000000 --- a/kubernetes/docs/V1EndpointPort.md +++ /dev/null @@ -1,10 +0,0 @@ -# KubernetesJsClient.V1EndpointPort - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | The name of this port (corresponds to ServicePort.Name). Must be a DNS_LABEL. Optional only if one port is defined. | [optional] -**port** | **Number** | The port number of the endpoint. | -**protocol** | **String** | The IP protocol for this port. Must be UDP or TCP. Default is TCP. | [optional] - - diff --git a/kubernetes/docs/V1EndpointSubset.md b/kubernetes/docs/V1EndpointSubset.md deleted file mode 100644 index 684738905e..0000000000 --- a/kubernetes/docs/V1EndpointSubset.md +++ /dev/null @@ -1,10 +0,0 @@ -# KubernetesJsClient.V1EndpointSubset - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**addresses** | [**[V1EndpointAddress]**](V1EndpointAddress.md) | IP addresses which offer the related ports that are marked as ready. These endpoints should be considered safe for load balancers and kubernetes.clients to utilize. | [optional] -**notReadyAddresses** | [**[V1EndpointAddress]**](V1EndpointAddress.md) | IP addresses which offer the related ports but are not currently marked as ready because they have not yet finished starting, have recently failed a readiness check, or have recently failed a liveness check. | [optional] -**ports** | [**[V1EndpointPort]**](V1EndpointPort.md) | Port numbers available on the related IP addresses. | [optional] - - diff --git a/kubernetes/docs/V1Endpoints.md b/kubernetes/docs/V1Endpoints.md deleted file mode 100644 index 896fc31f72..0000000000 --- a/kubernetes/docs/V1Endpoints.md +++ /dev/null @@ -1,11 +0,0 @@ -# KubernetesJsClient.V1Endpoints - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata | [optional] -**subsets** | [**[V1EndpointSubset]**](V1EndpointSubset.md) | The set of all endpoints is the union of all subsets. Addresses are placed into subsets according to the IPs they share. A single address with multiple ports, some of which are ready and some of which are not (because they come from different containers) will result in the address being displayed in different subsets for the different ports. No address will appear in both Addresses and NotReadyAddresses in the same subset. Sets of addresses and ports that comprise a service. | - - diff --git a/kubernetes/docs/V1EndpointsList.md b/kubernetes/docs/V1EndpointsList.md deleted file mode 100644 index 4c030ae53b..0000000000 --- a/kubernetes/docs/V1EndpointsList.md +++ /dev/null @@ -1,11 +0,0 @@ -# KubernetesJsClient.V1EndpointsList - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] -**items** | [**[V1Endpoints]**](V1Endpoints.md) | List of endpoints. | -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] - - diff --git a/kubernetes/docs/V1EnvFromSource.md b/kubernetes/docs/V1EnvFromSource.md deleted file mode 100644 index cd48494f72..0000000000 --- a/kubernetes/docs/V1EnvFromSource.md +++ /dev/null @@ -1,10 +0,0 @@ -# KubernetesJsClient.V1EnvFromSource - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**configMapRef** | [**V1ConfigMapEnvSource**](V1ConfigMapEnvSource.md) | The ConfigMap to select from | [optional] -**prefix** | **String** | An optional identifer to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. | [optional] -**secretRef** | [**V1SecretEnvSource**](V1SecretEnvSource.md) | The Secret to select from | [optional] - - diff --git a/kubernetes/docs/V1EnvVar.md b/kubernetes/docs/V1EnvVar.md deleted file mode 100644 index e6e98e0613..0000000000 --- a/kubernetes/docs/V1EnvVar.md +++ /dev/null @@ -1,10 +0,0 @@ -# KubernetesJsClient.V1EnvVar - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | Name of the environment variable. Must be a C_IDENTIFIER. | -**value** | **String** | Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to \"\". | [optional] -**valueFrom** | [**V1EnvVarSource**](V1EnvVarSource.md) | Source for the environment variable's value. Cannot be used if value is not empty. | [optional] - - diff --git a/kubernetes/docs/V1EnvVarSource.md b/kubernetes/docs/V1EnvVarSource.md deleted file mode 100644 index b8cba8c9b2..0000000000 --- a/kubernetes/docs/V1EnvVarSource.md +++ /dev/null @@ -1,11 +0,0 @@ -# KubernetesJsClient.V1EnvVarSource - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**configMapKeyRef** | [**V1ConfigMapKeySelector**](V1ConfigMapKeySelector.md) | Selects a key of a ConfigMap. | [optional] -**fieldRef** | [**V1ObjectFieldSelector**](V1ObjectFieldSelector.md) | Selects a field of the pod: supports metadata.name, metadata.namespace, metadata.labels, metadata.annotations, spec.nodeName, spec.serviceAccountName, status.podIP. | [optional] -**resourceFieldRef** | [**V1ResourceFieldSelector**](V1ResourceFieldSelector.md) | Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. | [optional] -**secretKeyRef** | [**V1SecretKeySelector**](V1SecretKeySelector.md) | Selects a key of a secret in the pod's namespace | [optional] - - diff --git a/kubernetes/docs/V1Event.md b/kubernetes/docs/V1Event.md deleted file mode 100644 index 88986fe12e..0000000000 --- a/kubernetes/docs/V1Event.md +++ /dev/null @@ -1,18 +0,0 @@ -# KubernetesJsClient.V1Event - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] -**count** | **Number** | The number of times this event has occurred. | [optional] -**firstTimestamp** | **Date** | The time at which the event was first recorded. (Time of server receipt is in TypeMeta.) | [optional] -**involvedObject** | [**V1ObjectReference**](V1ObjectReference.md) | The object that this event is about. | -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**lastTimestamp** | **Date** | The time at which the most recent occurrence of this event was recorded. | [optional] -**message** | **String** | A human-readable description of the status of this operation. | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata | -**reason** | **String** | This should be a short, machine understandable string that gives the reason for the transition into the object's current status. | [optional] -**source** | [**V1EventSource**](V1EventSource.md) | The component reporting this event. Should be a short machine understandable string. | [optional] -**type** | **String** | Type of this event (Normal, Warning), new types could be added in the future | [optional] - - diff --git a/kubernetes/docs/V1EventList.md b/kubernetes/docs/V1EventList.md deleted file mode 100644 index fa5a7c9131..0000000000 --- a/kubernetes/docs/V1EventList.md +++ /dev/null @@ -1,11 +0,0 @@ -# KubernetesJsClient.V1EventList - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] -**items** | [**[V1Event]**](V1Event.md) | List of events | -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] - - diff --git a/kubernetes/docs/V1EventSource.md b/kubernetes/docs/V1EventSource.md deleted file mode 100644 index 662cf253ff..0000000000 --- a/kubernetes/docs/V1EventSource.md +++ /dev/null @@ -1,9 +0,0 @@ -# KubernetesJsClient.V1EventSource - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**component** | **String** | Component from which the event is generated. | [optional] -**host** | **String** | Node name on which the event is generated. | [optional] - - diff --git a/kubernetes/docs/V1ExecAction.md b/kubernetes/docs/V1ExecAction.md deleted file mode 100644 index 45b4dfac02..0000000000 --- a/kubernetes/docs/V1ExecAction.md +++ /dev/null @@ -1,8 +0,0 @@ -# KubernetesJsClient.V1ExecAction - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**command** | **[String]** | Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. | [optional] - - diff --git a/kubernetes/docs/V1FCVolumeSource.md b/kubernetes/docs/V1FCVolumeSource.md deleted file mode 100644 index 7bc94882ef..0000000000 --- a/kubernetes/docs/V1FCVolumeSource.md +++ /dev/null @@ -1,11 +0,0 @@ -# KubernetesJsClient.V1FCVolumeSource - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**fsType** | **String** | Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. | [optional] -**lun** | **Number** | Required: FC target lun number | -**readOnly** | **Boolean** | Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. | [optional] -**targetWWNs** | **[String]** | Required: FC target worldwide names (WWNs) | - - diff --git a/kubernetes/docs/V1FlexVolumeSource.md b/kubernetes/docs/V1FlexVolumeSource.md deleted file mode 100644 index 6f6c628155..0000000000 --- a/kubernetes/docs/V1FlexVolumeSource.md +++ /dev/null @@ -1,12 +0,0 @@ -# KubernetesJsClient.V1FlexVolumeSource - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**driver** | **String** | Driver is the name of the driver to use for this volume. | -**fsType** | **String** | Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". The default filesystem depends on FlexVolume script. | [optional] -**options** | **{String: String}** | Optional: Extra command options if any. | [optional] -**readOnly** | **Boolean** | Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. | [optional] -**secretRef** | [**V1LocalObjectReference**](V1LocalObjectReference.md) | Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. | [optional] - - diff --git a/kubernetes/docs/V1FlockerVolumeSource.md b/kubernetes/docs/V1FlockerVolumeSource.md deleted file mode 100644 index c691e98af6..0000000000 --- a/kubernetes/docs/V1FlockerVolumeSource.md +++ /dev/null @@ -1,9 +0,0 @@ -# KubernetesJsClient.V1FlockerVolumeSource - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**datasetName** | **String** | Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated | [optional] -**datasetUUID** | **String** | UUID of the dataset. This is unique identifier of a Flocker dataset | [optional] - - diff --git a/kubernetes/docs/V1GCEPersistentDiskVolumeSource.md b/kubernetes/docs/V1GCEPersistentDiskVolumeSource.md deleted file mode 100644 index fda68e1a42..0000000000 --- a/kubernetes/docs/V1GCEPersistentDiskVolumeSource.md +++ /dev/null @@ -1,11 +0,0 @@ -# KubernetesJsClient.V1GCEPersistentDiskVolumeSource - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**fsType** | **String** | Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: http://kubernetes.io/docs/user-guide/volumes#gcepersistentdisk | [optional] -**partition** | **Number** | The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as \"1\". Similarly, the volume partition for /dev/sda is \"0\" (or you can leave the property empty). More info: http://kubernetes.io/docs/user-guide/volumes#gcepersistentdisk | [optional] -**pdName** | **String** | Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: http://kubernetes.io/docs/user-guide/volumes#gcepersistentdisk | -**readOnly** | **Boolean** | ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: http://kubernetes.io/docs/user-guide/volumes#gcepersistentdisk | [optional] - - diff --git a/kubernetes/docs/V1GitRepoVolumeSource.md b/kubernetes/docs/V1GitRepoVolumeSource.md deleted file mode 100644 index 63cdbde177..0000000000 --- a/kubernetes/docs/V1GitRepoVolumeSource.md +++ /dev/null @@ -1,10 +0,0 @@ -# KubernetesJsClient.V1GitRepoVolumeSource - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**directory** | **String** | Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. | [optional] -**repository** | **String** | Repository URL | -**revision** | **String** | Commit hash for the specified revision. | [optional] - - diff --git a/kubernetes/docs/V1GlusterfsVolumeSource.md b/kubernetes/docs/V1GlusterfsVolumeSource.md deleted file mode 100644 index d525574575..0000000000 --- a/kubernetes/docs/V1GlusterfsVolumeSource.md +++ /dev/null @@ -1,10 +0,0 @@ -# KubernetesJsClient.V1GlusterfsVolumeSource - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**endpoints** | **String** | EndpointsName is the endpoint name that details Glusterfs topology. More info: http://releases.k8s.io/HEAD/examples/volumes/glusterfs/README.md#create-a-pod | -**path** | **String** | Path is the Glusterfs volume path. More info: http://releases.k8s.io/HEAD/examples/volumes/glusterfs/README.md#create-a-pod | -**readOnly** | **Boolean** | ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: http://releases.k8s.io/HEAD/examples/volumes/glusterfs/README.md#create-a-pod | [optional] - - diff --git a/kubernetes/docs/V1GroupVersionForDiscovery.md b/kubernetes/docs/V1GroupVersionForDiscovery.md deleted file mode 100644 index 6bdc160464..0000000000 --- a/kubernetes/docs/V1GroupVersionForDiscovery.md +++ /dev/null @@ -1,9 +0,0 @@ -# KubernetesJsClient.V1GroupVersionForDiscovery - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**groupVersion** | **String** | groupVersion specifies the API group and version in the form \"group/version\" | -**version** | **String** | version specifies the version in the form of \"version\". This is to save the kubernetes.clients the trouble of splitting the GroupVersion. | - - diff --git a/kubernetes/docs/V1HTTPGetAction.md b/kubernetes/docs/V1HTTPGetAction.md deleted file mode 100644 index b67eccd014..0000000000 --- a/kubernetes/docs/V1HTTPGetAction.md +++ /dev/null @@ -1,12 +0,0 @@ -# KubernetesJsClient.V1HTTPGetAction - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**host** | **String** | Host name to connect to, defaults to the pod IP. You probably want to set \"Host\" in httpHeaders instead. | [optional] -**httpHeaders** | [**[V1HTTPHeader]**](V1HTTPHeader.md) | Custom headers to set in the request. HTTP allows repeated headers. | [optional] -**path** | **String** | Path to access on the HTTP server. | [optional] -**port** | **String** | Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. | -**scheme** | **String** | Scheme to use for connecting to the host. Defaults to HTTP. | [optional] - - diff --git a/kubernetes/docs/V1HTTPHeader.md b/kubernetes/docs/V1HTTPHeader.md deleted file mode 100644 index 79704062fb..0000000000 --- a/kubernetes/docs/V1HTTPHeader.md +++ /dev/null @@ -1,9 +0,0 @@ -# KubernetesJsClient.V1HTTPHeader - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | The header field name | -**value** | **String** | The header field value | - - diff --git a/kubernetes/docs/V1Handler.md b/kubernetes/docs/V1Handler.md deleted file mode 100644 index c02f1de04a..0000000000 --- a/kubernetes/docs/V1Handler.md +++ /dev/null @@ -1,10 +0,0 @@ -# KubernetesJsClient.V1Handler - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**exec** | [**V1ExecAction**](V1ExecAction.md) | One and only one of the following should be specified. Exec specifies the action to take. | [optional] -**httpGet** | [**V1HTTPGetAction**](V1HTTPGetAction.md) | HTTPGet specifies the http request to perform. | [optional] -**tcpSocket** | [**V1TCPSocketAction**](V1TCPSocketAction.md) | TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported | [optional] - - diff --git a/kubernetes/docs/V1HorizontalPodAutoscaler.md b/kubernetes/docs/V1HorizontalPodAutoscaler.md deleted file mode 100644 index c4d7755853..0000000000 --- a/kubernetes/docs/V1HorizontalPodAutoscaler.md +++ /dev/null @@ -1,12 +0,0 @@ -# KubernetesJsClient.V1HorizontalPodAutoscaler - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata | [optional] -**spec** | [**V1HorizontalPodAutoscalerSpec**](V1HorizontalPodAutoscalerSpec.md) | behaviour of autoscaler. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status. | [optional] -**status** | [**V1HorizontalPodAutoscalerStatus**](V1HorizontalPodAutoscalerStatus.md) | current information about the autoscaler. | [optional] - - diff --git a/kubernetes/docs/V1HorizontalPodAutoscalerList.md b/kubernetes/docs/V1HorizontalPodAutoscalerList.md deleted file mode 100644 index 6a9339ea94..0000000000 --- a/kubernetes/docs/V1HorizontalPodAutoscalerList.md +++ /dev/null @@ -1,11 +0,0 @@ -# KubernetesJsClient.V1HorizontalPodAutoscalerList - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] -**items** | [**[V1HorizontalPodAutoscaler]**](V1HorizontalPodAutoscaler.md) | list of horizontal pod autoscaler objects. | -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata. | [optional] - - diff --git a/kubernetes/docs/V1HorizontalPodAutoscalerSpec.md b/kubernetes/docs/V1HorizontalPodAutoscalerSpec.md deleted file mode 100644 index 831fa300a3..0000000000 --- a/kubernetes/docs/V1HorizontalPodAutoscalerSpec.md +++ /dev/null @@ -1,11 +0,0 @@ -# KubernetesJsClient.V1HorizontalPodAutoscalerSpec - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**maxReplicas** | **Number** | upper limit for the number of pods that can be set by the autoscaler; cannot be smaller than MinReplicas. | -**minReplicas** | **Number** | lower limit for the number of pods that can be set by the autoscaler, default 1. | [optional] -**scaleTargetRef** | [**V1CrossVersionObjectReference**](V1CrossVersionObjectReference.md) | reference to scaled resource; horizontal pod autoscaler will learn the current resource consumption and will set the desired number of pods by using its Scale subresource. | -**targetCPUUtilizationPercentage** | **Number** | target average CPU utilization (represented as a percentage of requested CPU) over all the pods; if not specified the default autoscaling policy will be used. | [optional] - - diff --git a/kubernetes/docs/V1HorizontalPodAutoscalerStatus.md b/kubernetes/docs/V1HorizontalPodAutoscalerStatus.md deleted file mode 100644 index 20742bec0b..0000000000 --- a/kubernetes/docs/V1HorizontalPodAutoscalerStatus.md +++ /dev/null @@ -1,12 +0,0 @@ -# KubernetesJsClient.V1HorizontalPodAutoscalerStatus - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**currentCPUUtilizationPercentage** | **Number** | current average CPU utilization over all pods, represented as a percentage of requested CPU, e.g. 70 means that an average pod is using now 70% of its requested CPU. | [optional] -**currentReplicas** | **Number** | current number of replicas of pods managed by this autoscaler. | -**desiredReplicas** | **Number** | desired number of replicas of pods managed by this autoscaler. | -**lastScaleTime** | **Date** | last time the HorizontalPodAutoscaler scaled the number of pods; used by the autoscaler to control how often the number of pods is changed. | [optional] -**observedGeneration** | **Number** | most recent generation observed by this autoscaler. | [optional] - - diff --git a/kubernetes/docs/V1HostPathVolumeSource.md b/kubernetes/docs/V1HostPathVolumeSource.md deleted file mode 100644 index 5682a955a7..0000000000 --- a/kubernetes/docs/V1HostPathVolumeSource.md +++ /dev/null @@ -1,8 +0,0 @@ -# KubernetesJsClient.V1HostPathVolumeSource - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**path** | **String** | Path of the directory on the host. More info: http://kubernetes.io/docs/user-guide/volumes#hostpath | - - diff --git a/kubernetes/docs/V1ISCSIVolumeSource.md b/kubernetes/docs/V1ISCSIVolumeSource.md deleted file mode 100644 index 4148d27402..0000000000 --- a/kubernetes/docs/V1ISCSIVolumeSource.md +++ /dev/null @@ -1,14 +0,0 @@ -# KubernetesJsClient.V1ISCSIVolumeSource - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**fsType** | **String** | Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: http://kubernetes.io/docs/user-guide/volumes#iscsi | [optional] -**iqn** | **String** | Target iSCSI Qualified Name. | -**iscsiInterface** | **String** | Optional: Defaults to 'default' (tcp). iSCSI interface name that uses an iSCSI transport. | [optional] -**lun** | **Number** | iSCSI target lun number. | -**portals** | **[String]** | iSCSI target portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). | [optional] -**readOnly** | **Boolean** | ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. | [optional] -**targetPortal** | **String** | iSCSI target portal. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). | - - diff --git a/kubernetes/docs/V1Job.md b/kubernetes/docs/V1Job.md deleted file mode 100644 index a19762c2cf..0000000000 --- a/kubernetes/docs/V1Job.md +++ /dev/null @@ -1,12 +0,0 @@ -# KubernetesJsClient.V1Job - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata | [optional] -**spec** | [**V1JobSpec**](V1JobSpec.md) | Spec is a structure defining the expected behavior of a job. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status | [optional] -**status** | [**V1JobStatus**](V1JobStatus.md) | Status is a structure describing current status of a job. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status | [optional] - - diff --git a/kubernetes/docs/V1JobCondition.md b/kubernetes/docs/V1JobCondition.md deleted file mode 100644 index d49a7511a0..0000000000 --- a/kubernetes/docs/V1JobCondition.md +++ /dev/null @@ -1,13 +0,0 @@ -# KubernetesJsClient.V1JobCondition - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**lastProbeTime** | **Date** | Last time the condition was checked. | [optional] -**lastTransitionTime** | **Date** | Last time the condition transit from one status to another. | [optional] -**message** | **String** | Human readable message indicating details about last transition. | [optional] -**reason** | **String** | (brief) reason for the condition's last transition. | [optional] -**status** | **String** | Status of the condition, one of True, False, Unknown. | -**type** | **String** | Type of job condition, Complete or Failed. | - - diff --git a/kubernetes/docs/V1JobList.md b/kubernetes/docs/V1JobList.md deleted file mode 100644 index d692018d9d..0000000000 --- a/kubernetes/docs/V1JobList.md +++ /dev/null @@ -1,11 +0,0 @@ -# KubernetesJsClient.V1JobList - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] -**items** | [**[V1Job]**](V1Job.md) | Items is the list of Job. | -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata | [optional] - - diff --git a/kubernetes/docs/V1JobSpec.md b/kubernetes/docs/V1JobSpec.md deleted file mode 100644 index 6e9cf42c75..0000000000 --- a/kubernetes/docs/V1JobSpec.md +++ /dev/null @@ -1,13 +0,0 @@ -# KubernetesJsClient.V1JobSpec - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**activeDeadlineSeconds** | **Number** | Optional duration in seconds relative to the startTime that the job may be active before the system tries to terminate it; value must be positive integer | [optional] -**completions** | **Number** | Completions specifies the desired number of successfully finished pods the job should be run with. Setting to nil means that the success of any pod signals the success of all pods, and allows parallelism to have any positive value. Setting to 1 means that parallelism is limited to 1 and the success of that pod signals the success of the job. More info: http://kubernetes.io/docs/user-guide/jobs | [optional] -**manualSelector** | **Boolean** | ManualSelector controls generation of pod labels and pod selectors. Leave `manualSelector` unset unless you are certain what you are doing. When false or unset, the system pick labels unique to this job and appends those labels to the pod template. When true, the user is responsible for picking unique labels and specifying the selector. Failure to pick a unique label may cause this and other jobs to not function correctly. However, You may see `manualSelector=true` in jobs that were created with the old `extensions/v1beta1` API. More info: http://releases.k8s.io/HEAD/docs/design/selector-generation.md | [optional] -**parallelism** | **Number** | Parallelism specifies the maximum desired number of pods the job should run at any given time. The actual number of pods running in steady state will be less than this number when ((.spec.completions - .status.successful) < .spec.parallelism), i.e. when the work left to do is less than max parallelism. More info: http://kubernetes.io/docs/user-guide/jobs | [optional] -**selector** | [**V1LabelSelector**](V1LabelSelector.md) | Selector is a label query over pods that should match the pod count. Normally, the system sets this field for you. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors | [optional] -**template** | [**V1PodTemplateSpec**](V1PodTemplateSpec.md) | Template is the object that describes the pod that will be created when executing a job. More info: http://kubernetes.io/docs/user-guide/jobs | - - diff --git a/kubernetes/docs/V1JobStatus.md b/kubernetes/docs/V1JobStatus.md deleted file mode 100644 index 807aed7f39..0000000000 --- a/kubernetes/docs/V1JobStatus.md +++ /dev/null @@ -1,13 +0,0 @@ -# KubernetesJsClient.V1JobStatus - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**active** | **Number** | Active is the number of actively running pods. | [optional] -**completionTime** | **Date** | CompletionTime represents time when the job was completed. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC. | [optional] -**conditions** | [**[V1JobCondition]**](V1JobCondition.md) | Conditions represent the latest available observations of an object's current state. More info: http://kubernetes.io/docs/user-guide/jobs | [optional] -**failed** | **Number** | Failed is the number of pods which reached Phase Failed. | [optional] -**startTime** | **Date** | StartTime represents time when the job was acknowledged by the Job Manager. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC. | [optional] -**succeeded** | **Number** | Succeeded is the number of pods which reached Phase Succeeded. | [optional] - - diff --git a/kubernetes/docs/V1KeyToPath.md b/kubernetes/docs/V1KeyToPath.md deleted file mode 100644 index 2b2de77c1d..0000000000 --- a/kubernetes/docs/V1KeyToPath.md +++ /dev/null @@ -1,10 +0,0 @@ -# KubernetesJsClient.V1KeyToPath - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**key** | **String** | The key to project. | -**mode** | **Number** | Optional: mode bits to use on this file, must be a value between 0 and 0777. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. | [optional] -**path** | **String** | The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. | - - diff --git a/kubernetes/docs/V1LabelSelector.md b/kubernetes/docs/V1LabelSelector.md deleted file mode 100644 index c4a3a61f70..0000000000 --- a/kubernetes/docs/V1LabelSelector.md +++ /dev/null @@ -1,9 +0,0 @@ -# KubernetesJsClient.V1LabelSelector - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**matchExpressions** | [**[V1LabelSelectorRequirement]**](V1LabelSelectorRequirement.md) | matchExpressions is a list of label selector requirements. The requirements are ANDed. | [optional] -**matchLabels** | **{String: String}** | matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \"key\", the operator is \"In\", and the values array contains only \"value\". The requirements are ANDed. | [optional] - - diff --git a/kubernetes/docs/V1LabelSelectorRequirement.md b/kubernetes/docs/V1LabelSelectorRequirement.md deleted file mode 100644 index c4ad5a25be..0000000000 --- a/kubernetes/docs/V1LabelSelectorRequirement.md +++ /dev/null @@ -1,10 +0,0 @@ -# KubernetesJsClient.V1LabelSelectorRequirement - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**key** | **String** | key is the label key that the selector applies to. | -**operator** | **String** | operator represents a key's relationship to a set of values. Valid operators ard In, NotIn, Exists and DoesNotExist. | -**values** | **[String]** | values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. | [optional] - - diff --git a/kubernetes/docs/V1Lifecycle.md b/kubernetes/docs/V1Lifecycle.md deleted file mode 100644 index d7ebad14de..0000000000 --- a/kubernetes/docs/V1Lifecycle.md +++ /dev/null @@ -1,9 +0,0 @@ -# KubernetesJsClient.V1Lifecycle - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**postStart** | [**V1Handler**](V1Handler.md) | PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: http://kubernetes.io/docs/user-guide/container-environment#hook-details | [optional] -**preStop** | [**V1Handler**](V1Handler.md) | PreStop is called immediately before a container is terminated. The container is terminated after the handler completes. The reason for termination is passed to the handler. Regardless of the outcome of the handler, the container is eventually terminated. Other management of the container blocks until the hook completes. More info: http://kubernetes.io/docs/user-guide/container-environment#hook-details | [optional] - - diff --git a/kubernetes/docs/V1LimitRange.md b/kubernetes/docs/V1LimitRange.md deleted file mode 100644 index 05b7ed0140..0000000000 --- a/kubernetes/docs/V1LimitRange.md +++ /dev/null @@ -1,11 +0,0 @@ -# KubernetesJsClient.V1LimitRange - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata | [optional] -**spec** | [**V1LimitRangeSpec**](V1LimitRangeSpec.md) | Spec defines the limits enforced. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status | [optional] - - diff --git a/kubernetes/docs/V1LimitRangeItem.md b/kubernetes/docs/V1LimitRangeItem.md deleted file mode 100644 index 4395e05837..0000000000 --- a/kubernetes/docs/V1LimitRangeItem.md +++ /dev/null @@ -1,13 +0,0 @@ -# KubernetesJsClient.V1LimitRangeItem - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**_default** | **{String: String}** | Default resource requirement limit value by resource name if resource limit is omitted. | [optional] -**defaultRequest** | **{String: String}** | DefaultRequest is the default resource requirement request value by resource name if resource request is omitted. | [optional] -**max** | **{String: String}** | Max usage constraints on this kind by resource name. | [optional] -**maxLimitRequestRatio** | **{String: String}** | MaxLimitRequestRatio if specified, the named resource must have a request and limit that are both non-zero where limit divided by request is less than or equal to the enumerated value; this represents the max burst for the named resource. | [optional] -**min** | **{String: String}** | Min usage constraints on this kind by resource name. | [optional] -**type** | **String** | Type of resource that this limit applies to. | [optional] - - diff --git a/kubernetes/docs/V1LimitRangeList.md b/kubernetes/docs/V1LimitRangeList.md deleted file mode 100644 index 4073ed0236..0000000000 --- a/kubernetes/docs/V1LimitRangeList.md +++ /dev/null @@ -1,11 +0,0 @@ -# KubernetesJsClient.V1LimitRangeList - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] -**items** | [**[V1LimitRange]**](V1LimitRange.md) | Items is a list of LimitRange objects. More info: http://releases.k8s.io/HEAD/docs/design/admission_control_limit_range.md | -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] - - diff --git a/kubernetes/docs/V1LimitRangeSpec.md b/kubernetes/docs/V1LimitRangeSpec.md deleted file mode 100644 index a4a6543937..0000000000 --- a/kubernetes/docs/V1LimitRangeSpec.md +++ /dev/null @@ -1,8 +0,0 @@ -# KubernetesJsClient.V1LimitRangeSpec - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**limits** | [**[V1LimitRangeItem]**](V1LimitRangeItem.md) | Limits is the list of LimitRangeItem objects that are enforced. | - - diff --git a/kubernetes/docs/V1ListMeta.md b/kubernetes/docs/V1ListMeta.md deleted file mode 100644 index 3ccbbf3740..0000000000 --- a/kubernetes/docs/V1ListMeta.md +++ /dev/null @@ -1,9 +0,0 @@ -# KubernetesJsClient.V1ListMeta - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**resourceVersion** | **String** | String that identifies the server's internal version of this object that can be used by kubernetes.clients to determine when objects have changed. Value must be treated as opaque by kubernetes.clients and passed unmodified back to the server. Populated by the system. Read-only. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#concurrency-control-and-consistency | [optional] -**selfLink** | **String** | SelfLink is a URL representing this object. Populated by the system. Read-only. | [optional] - - diff --git a/kubernetes/docs/V1LoadBalancerIngress.md b/kubernetes/docs/V1LoadBalancerIngress.md deleted file mode 100644 index 73b100b4e1..0000000000 --- a/kubernetes/docs/V1LoadBalancerIngress.md +++ /dev/null @@ -1,9 +0,0 @@ -# KubernetesJsClient.V1LoadBalancerIngress - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**hostname** | **String** | Hostname is set for load-balancer ingress points that are DNS based (typically AWS load-balancers) | [optional] -**ip** | **String** | IP is set for load-balancer ingress points that are IP based (typically GCE or OpenStack load-balancers) | [optional] - - diff --git a/kubernetes/docs/V1LoadBalancerStatus.md b/kubernetes/docs/V1LoadBalancerStatus.md deleted file mode 100644 index 8f6401c85a..0000000000 --- a/kubernetes/docs/V1LoadBalancerStatus.md +++ /dev/null @@ -1,8 +0,0 @@ -# KubernetesJsClient.V1LoadBalancerStatus - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**ingress** | [**[V1LoadBalancerIngress]**](V1LoadBalancerIngress.md) | Ingress is a list containing ingress points for the load-balancer. Traffic intended for the service should be sent to these ingress points. | [optional] - - diff --git a/kubernetes/docs/V1LocalObjectReference.md b/kubernetes/docs/V1LocalObjectReference.md deleted file mode 100644 index 15808aebeb..0000000000 --- a/kubernetes/docs/V1LocalObjectReference.md +++ /dev/null @@ -1,8 +0,0 @@ -# KubernetesJsClient.V1LocalObjectReference - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names | [optional] - - diff --git a/kubernetes/docs/V1LocalSubjectAccessReview.md b/kubernetes/docs/V1LocalSubjectAccessReview.md deleted file mode 100644 index 18fa5fc8df..0000000000 --- a/kubernetes/docs/V1LocalSubjectAccessReview.md +++ /dev/null @@ -1,12 +0,0 @@ -# KubernetesJsClient.V1LocalSubjectAccessReview - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**spec** | [**V1SubjectAccessReviewSpec**](V1SubjectAccessReviewSpec.md) | Spec holds information about the request being evaluated. spec.namespace must be equal to the namespace you made the request against. If empty, it is defaulted. | -**status** | [**V1SubjectAccessReviewStatus**](V1SubjectAccessReviewStatus.md) | Status is filled in by the server and indicates whether the request is allowed or not | [optional] - - diff --git a/kubernetes/docs/V1NFSVolumeSource.md b/kubernetes/docs/V1NFSVolumeSource.md deleted file mode 100644 index 7541355b32..0000000000 --- a/kubernetes/docs/V1NFSVolumeSource.md +++ /dev/null @@ -1,10 +0,0 @@ -# KubernetesJsClient.V1NFSVolumeSource - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**path** | **String** | Path that is exported by the NFS server. More info: http://kubernetes.io/docs/user-guide/volumes#nfs | -**readOnly** | **Boolean** | ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: http://kubernetes.io/docs/user-guide/volumes#nfs | [optional] -**server** | **String** | Server is the hostname or IP address of the NFS server. More info: http://kubernetes.io/docs/user-guide/volumes#nfs | - - diff --git a/kubernetes/docs/V1Namespace.md b/kubernetes/docs/V1Namespace.md deleted file mode 100644 index dc634eb361..0000000000 --- a/kubernetes/docs/V1Namespace.md +++ /dev/null @@ -1,12 +0,0 @@ -# KubernetesJsClient.V1Namespace - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata | [optional] -**spec** | [**V1NamespaceSpec**](V1NamespaceSpec.md) | Spec defines the behavior of the Namespace. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status | [optional] -**status** | [**V1NamespaceStatus**](V1NamespaceStatus.md) | Status describes the current status of a Namespace. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status | [optional] - - diff --git a/kubernetes/docs/V1NamespaceList.md b/kubernetes/docs/V1NamespaceList.md deleted file mode 100644 index dc8cedf2a7..0000000000 --- a/kubernetes/docs/V1NamespaceList.md +++ /dev/null @@ -1,11 +0,0 @@ -# KubernetesJsClient.V1NamespaceList - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] -**items** | [**[V1Namespace]**](V1Namespace.md) | Items is the list of Namespace objects in the list. More info: http://kubernetes.io/docs/user-guide/namespaces | -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] - - diff --git a/kubernetes/docs/V1NamespaceSpec.md b/kubernetes/docs/V1NamespaceSpec.md deleted file mode 100644 index 37cdb2e1d0..0000000000 --- a/kubernetes/docs/V1NamespaceSpec.md +++ /dev/null @@ -1,8 +0,0 @@ -# KubernetesJsClient.V1NamespaceSpec - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**finalizers** | **[String]** | Finalizers is an opaque list of values that must be empty to permanently remove object from storage. More info: http://releases.k8s.io/HEAD/docs/design/namespaces.md#finalizers | [optional] - - diff --git a/kubernetes/docs/V1NamespaceStatus.md b/kubernetes/docs/V1NamespaceStatus.md deleted file mode 100644 index b2e5c3c91f..0000000000 --- a/kubernetes/docs/V1NamespaceStatus.md +++ /dev/null @@ -1,8 +0,0 @@ -# KubernetesJsClient.V1NamespaceStatus - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**phase** | **String** | Phase is the current lifecycle phase of the namespace. More info: http://releases.k8s.io/HEAD/docs/design/namespaces.md#phases | [optional] - - diff --git a/kubernetes/docs/V1Node.md b/kubernetes/docs/V1Node.md deleted file mode 100644 index 53c017db09..0000000000 --- a/kubernetes/docs/V1Node.md +++ /dev/null @@ -1,12 +0,0 @@ -# KubernetesJsClient.V1Node - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata | [optional] -**spec** | [**V1NodeSpec**](V1NodeSpec.md) | Spec defines the behavior of a node. http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status | [optional] -**status** | [**V1NodeStatus**](V1NodeStatus.md) | Most recently observed status of the node. Populated by the system. Read-only. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status | [optional] - - diff --git a/kubernetes/docs/V1NodeAddress.md b/kubernetes/docs/V1NodeAddress.md deleted file mode 100644 index 6d20d4f9d4..0000000000 --- a/kubernetes/docs/V1NodeAddress.md +++ /dev/null @@ -1,9 +0,0 @@ -# KubernetesJsClient.V1NodeAddress - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**address** | **String** | The node address. | -**type** | **String** | Node address type, one of Hostname, ExternalIP or InternalIP. | - - diff --git a/kubernetes/docs/V1NodeAffinity.md b/kubernetes/docs/V1NodeAffinity.md deleted file mode 100644 index 9dfe8f2a20..0000000000 --- a/kubernetes/docs/V1NodeAffinity.md +++ /dev/null @@ -1,9 +0,0 @@ -# KubernetesJsClient.V1NodeAffinity - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**preferredDuringSchedulingIgnoredDuringExecution** | [**[V1PreferredSchedulingTerm]**](V1PreferredSchedulingTerm.md) | The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. | [optional] -**requiredDuringSchedulingIgnoredDuringExecution** | [**V1NodeSelector**](V1NodeSelector.md) | If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. | [optional] - - diff --git a/kubernetes/docs/V1NodeCondition.md b/kubernetes/docs/V1NodeCondition.md deleted file mode 100644 index aa0279dc44..0000000000 --- a/kubernetes/docs/V1NodeCondition.md +++ /dev/null @@ -1,13 +0,0 @@ -# KubernetesJsClient.V1NodeCondition - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**lastHeartbeatTime** | **Date** | Last time we got an update on a given condition. | [optional] -**lastTransitionTime** | **Date** | Last time the condition transit from one status to another. | [optional] -**message** | **String** | Human readable message indicating details about last transition. | [optional] -**reason** | **String** | (brief) reason for the condition's last transition. | [optional] -**status** | **String** | Status of the condition, one of True, False, Unknown. | -**type** | **String** | Type of node condition. | - - diff --git a/kubernetes/docs/V1NodeDaemonEndpoints.md b/kubernetes/docs/V1NodeDaemonEndpoints.md deleted file mode 100644 index 6628c67f47..0000000000 --- a/kubernetes/docs/V1NodeDaemonEndpoints.md +++ /dev/null @@ -1,8 +0,0 @@ -# KubernetesJsClient.V1NodeDaemonEndpoints - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**kubeletEndpoint** | [**V1DaemonEndpoint**](V1DaemonEndpoint.md) | Endpoint on which Kubelet is listening. | [optional] - - diff --git a/kubernetes/docs/V1NodeList.md b/kubernetes/docs/V1NodeList.md deleted file mode 100644 index 9381f45e0b..0000000000 --- a/kubernetes/docs/V1NodeList.md +++ /dev/null @@ -1,11 +0,0 @@ -# KubernetesJsClient.V1NodeList - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] -**items** | [**[V1Node]**](V1Node.md) | List of nodes | -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] - - diff --git a/kubernetes/docs/V1NodeSelector.md b/kubernetes/docs/V1NodeSelector.md deleted file mode 100644 index 1ce5e5c13d..0000000000 --- a/kubernetes/docs/V1NodeSelector.md +++ /dev/null @@ -1,8 +0,0 @@ -# KubernetesJsClient.V1NodeSelector - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**nodeSelectorTerms** | [**[V1NodeSelectorTerm]**](V1NodeSelectorTerm.md) | Required. A list of node selector terms. The terms are ORed. | - - diff --git a/kubernetes/docs/V1NodeSelectorRequirement.md b/kubernetes/docs/V1NodeSelectorRequirement.md deleted file mode 100644 index 1d5d5daa97..0000000000 --- a/kubernetes/docs/V1NodeSelectorRequirement.md +++ /dev/null @@ -1,10 +0,0 @@ -# KubernetesJsClient.V1NodeSelectorRequirement - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**key** | **String** | The label key that the selector applies to. | -**operator** | **String** | Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. | -**values** | **[String]** | An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch. | [optional] - - diff --git a/kubernetes/docs/V1NodeSelectorTerm.md b/kubernetes/docs/V1NodeSelectorTerm.md deleted file mode 100644 index 0226ddb48e..0000000000 --- a/kubernetes/docs/V1NodeSelectorTerm.md +++ /dev/null @@ -1,8 +0,0 @@ -# KubernetesJsClient.V1NodeSelectorTerm - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**matchExpressions** | [**[V1NodeSelectorRequirement]**](V1NodeSelectorRequirement.md) | Required. A list of node selector requirements. The requirements are ANDed. | - - diff --git a/kubernetes/docs/V1NodeSpec.md b/kubernetes/docs/V1NodeSpec.md deleted file mode 100644 index 6672e72971..0000000000 --- a/kubernetes/docs/V1NodeSpec.md +++ /dev/null @@ -1,12 +0,0 @@ -# KubernetesJsClient.V1NodeSpec - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**externalID** | **String** | External ID of the node assigned by some machine database (e.g. a cloud provider). Deprecated. | [optional] -**podCIDR** | **String** | PodCIDR represents the pod IP range assigned to the node. | [optional] -**providerID** | **String** | ID of the node assigned by the cloud provider in the format: <ProviderName>://<ProviderSpecificNodeID> | [optional] -**taints** | [**[V1Taint]**](V1Taint.md) | If specified, the node's taints. | [optional] -**unschedulable** | **Boolean** | Unschedulable controls node schedulability of new pods. By default, node is schedulable. More info: http://releases.k8s.io/HEAD/docs/admin/node.md#manual-node-administration | [optional] - - diff --git a/kubernetes/docs/V1NodeStatus.md b/kubernetes/docs/V1NodeStatus.md deleted file mode 100644 index c593277c67..0000000000 --- a/kubernetes/docs/V1NodeStatus.md +++ /dev/null @@ -1,17 +0,0 @@ -# KubernetesJsClient.V1NodeStatus - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**addresses** | [**[V1NodeAddress]**](V1NodeAddress.md) | List of addresses reachable to the node. Queried from cloud provider, if available. More info: http://releases.k8s.io/HEAD/docs/admin/node.md#node-addresses | [optional] -**allocatable** | **{String: String}** | Allocatable represents the resources of a node that are available for scheduling. Defaults to Capacity. | [optional] -**capacity** | **{String: String}** | Capacity represents the total resources of a node. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#capacity for more details. | [optional] -**conditions** | [**[V1NodeCondition]**](V1NodeCondition.md) | Conditions is an array of current observed node conditions. More info: http://releases.k8s.io/HEAD/docs/admin/node.md#node-condition | [optional] -**daemonEndpoints** | [**V1NodeDaemonEndpoints**](V1NodeDaemonEndpoints.md) | Endpoints of daemons running on the Node. | [optional] -**images** | [**[V1ContainerImage]**](V1ContainerImage.md) | List of container images on this node | [optional] -**nodeInfo** | [**V1NodeSystemInfo**](V1NodeSystemInfo.md) | Set of ids/uuids to uniquely identify the node. More info: http://releases.k8s.io/HEAD/docs/admin/node.md#node-info | [optional] -**phase** | **String** | NodePhase is the recently observed lifecycle phase of the node. More info: http://releases.k8s.io/HEAD/docs/admin/node.md#node-phase The field is never populated, and now is deprecated. | [optional] -**volumesAttached** | [**[V1AttachedVolume]**](V1AttachedVolume.md) | List of volumes that are attached to the node. | [optional] -**volumesInUse** | **[String]** | List of attachable volumes in use (mounted) by the node. | [optional] - - diff --git a/kubernetes/docs/V1NodeSystemInfo.md b/kubernetes/docs/V1NodeSystemInfo.md deleted file mode 100644 index 99205c7376..0000000000 --- a/kubernetes/docs/V1NodeSystemInfo.md +++ /dev/null @@ -1,17 +0,0 @@ -# KubernetesJsClient.V1NodeSystemInfo - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**architecture** | **String** | The Architecture reported by the node | -**bootID** | **String** | Boot ID reported by the node. | -**containerRuntimeVersion** | **String** | ContainerRuntime Version reported by the node through runtime remote API (e.g. docker://1.5.0). | -**kernelVersion** | **String** | Kernel Version reported by the node from 'uname -r' (e.g. 3.16.0-0.bpo.4-amd64). | -**kubeProxyVersion** | **String** | KubeProxy Version reported by the node. | -**kubeletVersion** | **String** | Kubelet Version reported by the node. | -**machineID** | **String** | MachineID reported by the node. For unique machine identification in the cluster this field is prefered. Learn more from man(5) machine-id: http://man7.org/linux/man-pages/man5/machine-id.5.html | -**operatingSystem** | **String** | The Operating System reported by the node | -**osImage** | **String** | OS Image reported by the node from /etc/os-release (e.g. Debian GNU/Linux 7 (wheezy)). | -**systemUUID** | **String** | SystemUUID reported by the node. For unique machine identification MachineID is prefered. This field is specific to Red Hat hosts https://access.redhat.com/documentation/en-US/Red_Hat_Subscription_Management/1/html/RHSM/getting-system-uuid.html | - - diff --git a/kubernetes/docs/V1NonResourceAttributes.md b/kubernetes/docs/V1NonResourceAttributes.md deleted file mode 100644 index 6944982523..0000000000 --- a/kubernetes/docs/V1NonResourceAttributes.md +++ /dev/null @@ -1,9 +0,0 @@ -# KubernetesJsClient.V1NonResourceAttributes - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**path** | **String** | Path is the URL path of the request | [optional] -**verb** | **String** | Verb is the standard HTTP verb | [optional] - - diff --git a/kubernetes/docs/V1ObjectFieldSelector.md b/kubernetes/docs/V1ObjectFieldSelector.md deleted file mode 100644 index db6be48bbf..0000000000 --- a/kubernetes/docs/V1ObjectFieldSelector.md +++ /dev/null @@ -1,9 +0,0 @@ -# KubernetesJsClient.V1ObjectFieldSelector - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | Version of the schema the FieldPath is written in terms of, defaults to \"v1\". | [optional] -**fieldPath** | **String** | Path of the field to select in the specified API version. | - - diff --git a/kubernetes/docs/V1ObjectMeta.md b/kubernetes/docs/V1ObjectMeta.md deleted file mode 100644 index 4422714229..0000000000 --- a/kubernetes/docs/V1ObjectMeta.md +++ /dev/null @@ -1,22 +0,0 @@ -# KubernetesJsClient.V1ObjectMeta - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**annotations** | **{String: String}** | Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations | [optional] -**clusterName** | **String** | The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. | [optional] -**creationTimestamp** | **Date** | CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. Populated by the system. Read-only. Null for lists. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata | [optional] -**deletionGracePeriodSeconds** | **Number** | Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. | [optional] -**deletionTimestamp** | **Date** | DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a kubernetes.client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field. Once set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. Populated by the system when a graceful deletion is requested. Read-only. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata | [optional] -**finalizers** | **[String]** | Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. | [optional] -**generateName** | **String** | GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the kubernetes.client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the kubernetes.client should retry (optionally after the time indicated in the Retry-After header). Applied only if Name is not specified. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#idempotency | [optional] -**generation** | **Number** | A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. | [optional] -**labels** | **{String: String}** | Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels | [optional] -**name** | **String** | Name must be unique within a namespace. Is required when creating resources, although some resources may allow a kubernetes.client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names | [optional] -**namespace** | **String** | Namespace defines the space within each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces | [optional] -**ownerReferences** | [**[V1OwnerReference]**](V1OwnerReference.md) | List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. | [optional] -**resourceVersion** | **String** | An opaque value that represents the internal version of this object that can be used by kubernetes.clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. Populated by the system. Read-only. Value must be treated as opaque by kubernetes.clients and . More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#concurrency-control-and-consistency | [optional] -**selfLink** | **String** | SelfLink is a URL representing this object. Populated by the system. Read-only. | [optional] -**uid** | **String** | UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids | [optional] - - diff --git a/kubernetes/docs/V1ObjectReference.md b/kubernetes/docs/V1ObjectReference.md deleted file mode 100644 index 2a75e8c7f0..0000000000 --- a/kubernetes/docs/V1ObjectReference.md +++ /dev/null @@ -1,14 +0,0 @@ -# KubernetesJsClient.V1ObjectReference - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | API version of the referent. | [optional] -**fieldPath** | **String** | If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: \"spec.containers{name}\" (where \"name\" refers to the name of the container that triggered the event) or if no container name is specified \"spec.containers[2]\" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. | [optional] -**kind** | **String** | Kind of the referent. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**name** | **String** | Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names | [optional] -**namespace** | **String** | Namespace of the referent. More info: http://kubernetes.io/docs/user-guide/namespaces | [optional] -**resourceVersion** | **String** | Specific resourceVersion to which this reference is made, if any. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#concurrency-control-and-consistency | [optional] -**uid** | **String** | UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids | [optional] - - diff --git a/kubernetes/docs/V1OwnerReference.md b/kubernetes/docs/V1OwnerReference.md deleted file mode 100644 index 2b86d96b47..0000000000 --- a/kubernetes/docs/V1OwnerReference.md +++ /dev/null @@ -1,13 +0,0 @@ -# KubernetesJsClient.V1OwnerReference - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | API version of the referent. | -**blockOwnerDeletion** | **Boolean** | If true, AND if the owner has the \"foregroundDeletion\" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs \"delete\" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. | [optional] -**controller** | **Boolean** | If true, this reference points to the managing controller. | [optional] -**kind** | **String** | Kind of the referent. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | -**name** | **String** | Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names | -**uid** | **String** | UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids | - - diff --git a/kubernetes/docs/V1PersistentVolume.md b/kubernetes/docs/V1PersistentVolume.md deleted file mode 100644 index 929b36ae65..0000000000 --- a/kubernetes/docs/V1PersistentVolume.md +++ /dev/null @@ -1,12 +0,0 @@ -# KubernetesJsClient.V1PersistentVolume - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata | [optional] -**spec** | [**V1PersistentVolumeSpec**](V1PersistentVolumeSpec.md) | Spec defines a specification of a persistent volume owned by the cluster. Provisioned by an administrator. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#persistent-volumes | [optional] -**status** | [**V1PersistentVolumeStatus**](V1PersistentVolumeStatus.md) | Status represents the current information/status for the persistent volume. Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#persistent-volumes | [optional] - - diff --git a/kubernetes/docs/V1PersistentVolumeClaim.md b/kubernetes/docs/V1PersistentVolumeClaim.md deleted file mode 100644 index 693418aa5b..0000000000 --- a/kubernetes/docs/V1PersistentVolumeClaim.md +++ /dev/null @@ -1,12 +0,0 @@ -# KubernetesJsClient.V1PersistentVolumeClaim - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata | [optional] -**spec** | [**V1PersistentVolumeClaimSpec**](V1PersistentVolumeClaimSpec.md) | Spec defines the desired characteristics of a volume requested by a pod author. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#persistentvolumeclaims | [optional] -**status** | [**V1PersistentVolumeClaimStatus**](V1PersistentVolumeClaimStatus.md) | Status represents the current information/status of a persistent volume claim. Read-only. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#persistentvolumeclaims | [optional] - - diff --git a/kubernetes/docs/V1PersistentVolumeClaimList.md b/kubernetes/docs/V1PersistentVolumeClaimList.md deleted file mode 100644 index de798a5bfb..0000000000 --- a/kubernetes/docs/V1PersistentVolumeClaimList.md +++ /dev/null @@ -1,11 +0,0 @@ -# KubernetesJsClient.V1PersistentVolumeClaimList - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] -**items** | [**[V1PersistentVolumeClaim]**](V1PersistentVolumeClaim.md) | A list of persistent volume claims. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#persistentvolumeclaims | -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] - - diff --git a/kubernetes/docs/V1PersistentVolumeClaimSpec.md b/kubernetes/docs/V1PersistentVolumeClaimSpec.md deleted file mode 100644 index cc6ba0992f..0000000000 --- a/kubernetes/docs/V1PersistentVolumeClaimSpec.md +++ /dev/null @@ -1,12 +0,0 @@ -# KubernetesJsClient.V1PersistentVolumeClaimSpec - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**accessModes** | **[String]** | AccessModes contains the desired access modes the volume should have. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#access-modes-1 | [optional] -**resources** | [**V1ResourceRequirements**](V1ResourceRequirements.md) | Resources represents the minimum resources the volume should have. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#resources | [optional] -**selector** | [**V1LabelSelector**](V1LabelSelector.md) | A label query over volumes to consider for binding. | [optional] -**storageClassName** | **String** | Name of the StorageClass required by the claim. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#class-1 | [optional] -**volumeName** | **String** | VolumeName is the binding reference to the PersistentVolume backing this claim. | [optional] - - diff --git a/kubernetes/docs/V1PersistentVolumeClaimStatus.md b/kubernetes/docs/V1PersistentVolumeClaimStatus.md deleted file mode 100644 index 66495bb910..0000000000 --- a/kubernetes/docs/V1PersistentVolumeClaimStatus.md +++ /dev/null @@ -1,10 +0,0 @@ -# KubernetesJsClient.V1PersistentVolumeClaimStatus - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**accessModes** | **[String]** | AccessModes contains the actual access modes the volume backing the PVC has. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#access-modes-1 | [optional] -**capacity** | **{String: String}** | Represents the actual resources of the underlying volume. | [optional] -**phase** | **String** | Phase represents the current phase of PersistentVolumeClaim. | [optional] - - diff --git a/kubernetes/docs/V1PersistentVolumeClaimVolumeSource.md b/kubernetes/docs/V1PersistentVolumeClaimVolumeSource.md deleted file mode 100644 index db37d6f130..0000000000 --- a/kubernetes/docs/V1PersistentVolumeClaimVolumeSource.md +++ /dev/null @@ -1,9 +0,0 @@ -# KubernetesJsClient.V1PersistentVolumeClaimVolumeSource - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**claimName** | **String** | ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#persistentvolumeclaims | -**readOnly** | **Boolean** | Will force the ReadOnly setting in VolumeMounts. Default false. | [optional] - - diff --git a/kubernetes/docs/V1PersistentVolumeList.md b/kubernetes/docs/V1PersistentVolumeList.md deleted file mode 100644 index 7708778ba0..0000000000 --- a/kubernetes/docs/V1PersistentVolumeList.md +++ /dev/null @@ -1,11 +0,0 @@ -# KubernetesJsClient.V1PersistentVolumeList - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] -**items** | [**[V1PersistentVolume]**](V1PersistentVolume.md) | List of persistent volumes. More info: http://kubernetes.io/docs/user-guide/persistent-volumes | -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] - - diff --git a/kubernetes/docs/V1PersistentVolumeSpec.md b/kubernetes/docs/V1PersistentVolumeSpec.md deleted file mode 100644 index af88167253..0000000000 --- a/kubernetes/docs/V1PersistentVolumeSpec.md +++ /dev/null @@ -1,31 +0,0 @@ -# KubernetesJsClient.V1PersistentVolumeSpec - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**accessModes** | **[String]** | AccessModes contains all ways the volume can be mounted. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#access-modes | [optional] -**awsElasticBlockStore** | [**V1AWSElasticBlockStoreVolumeSource**](V1AWSElasticBlockStoreVolumeSource.md) | AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: http://kubernetes.io/docs/user-guide/volumes#awselasticblockstore | [optional] -**azureDisk** | [**V1AzureDiskVolumeSource**](V1AzureDiskVolumeSource.md) | AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. | [optional] -**azureFile** | [**V1AzureFileVolumeSource**](V1AzureFileVolumeSource.md) | AzureFile represents an Azure File Service mount on the host and bind mount to the pod. | [optional] -**capacity** | **{String: String}** | A description of the persistent volume's resources and capacity. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#capacity | [optional] -**cephfs** | [**V1CephFSVolumeSource**](V1CephFSVolumeSource.md) | CephFS represents a Ceph FS mount on the host that shares a pod's lifetime | [optional] -**cinder** | [**V1CinderVolumeSource**](V1CinderVolumeSource.md) | Cinder represents a cinder volume attached and mounted on kubelets host machine More info: http://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md | [optional] -**claimRef** | [**V1ObjectReference**](V1ObjectReference.md) | ClaimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim. Expected to be non-nil when bound. claim.VolumeName is the authoritative bind between PV and PVC. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#binding | [optional] -**fc** | [**V1FCVolumeSource**](V1FCVolumeSource.md) | FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. | [optional] -**flexVolume** | [**V1FlexVolumeSource**](V1FlexVolumeSource.md) | FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. This is an alpha feature and may change in future. | [optional] -**flocker** | [**V1FlockerVolumeSource**](V1FlockerVolumeSource.md) | Flocker represents a Flocker volume attached to a kubelet's host machine and exposed to the pod for its usage. This depends on the Flocker control service being running | [optional] -**gcePersistentDisk** | [**V1GCEPersistentDiskVolumeSource**](V1GCEPersistentDiskVolumeSource.md) | GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin. More info: http://kubernetes.io/docs/user-guide/volumes#gcepersistentdisk | [optional] -**glusterfs** | [**V1GlusterfsVolumeSource**](V1GlusterfsVolumeSource.md) | Glusterfs represents a Glusterfs volume that is attached to a host and exposed to the pod. Provisioned by an admin. More info: http://releases.k8s.io/HEAD/examples/volumes/glusterfs/README.md | [optional] -**hostPath** | [**V1HostPathVolumeSource**](V1HostPathVolumeSource.md) | HostPath represents a directory on the host. Provisioned by a developer or tester. This is useful for single-node development and testing only! On-host storage is not supported in any way and WILL NOT WORK in a multi-node cluster. More info: http://kubernetes.io/docs/user-guide/volumes#hostpath | [optional] -**iscsi** | [**V1ISCSIVolumeSource**](V1ISCSIVolumeSource.md) | ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin. | [optional] -**nfs** | [**V1NFSVolumeSource**](V1NFSVolumeSource.md) | NFS represents an NFS mount on the host. Provisioned by an admin. More info: http://kubernetes.io/docs/user-guide/volumes#nfs | [optional] -**persistentVolumeReclaimPolicy** | **String** | What happens to a persistent volume when released from its claim. Valid options are Retain (default) and Recycle. Recycling must be supported by the volume plugin underlying this persistent volume. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#recycling-policy | [optional] -**photonPersistentDisk** | [**V1PhotonPersistentDiskVolumeSource**](V1PhotonPersistentDiskVolumeSource.md) | PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine | [optional] -**portworxVolume** | [**V1PortworxVolumeSource**](V1PortworxVolumeSource.md) | PortworxVolume represents a portworx volume attached and mounted on kubelets host machine | [optional] -**quobyte** | [**V1QuobyteVolumeSource**](V1QuobyteVolumeSource.md) | Quobyte represents a Quobyte mount on the host that shares a pod's lifetime | [optional] -**rbd** | [**V1RBDVolumeSource**](V1RBDVolumeSource.md) | RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: http://releases.k8s.io/HEAD/examples/volumes/rbd/README.md | [optional] -**scaleIO** | [**V1ScaleIOVolumeSource**](V1ScaleIOVolumeSource.md) | ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. | [optional] -**storageClassName** | **String** | Name of StorageClass to which this persistent volume belongs. Empty value means that this volume does not belong to any StorageClass. | [optional] -**vsphereVolume** | [**V1VsphereVirtualDiskVolumeSource**](V1VsphereVirtualDiskVolumeSource.md) | VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine | [optional] - - diff --git a/kubernetes/docs/V1PersistentVolumeStatus.md b/kubernetes/docs/V1PersistentVolumeStatus.md deleted file mode 100644 index 2350dfa55e..0000000000 --- a/kubernetes/docs/V1PersistentVolumeStatus.md +++ /dev/null @@ -1,10 +0,0 @@ -# KubernetesJsClient.V1PersistentVolumeStatus - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**message** | **String** | A human-readable message indicating details about why the volume is in this state. | [optional] -**phase** | **String** | Phase indicates if a volume is available, bound to a claim, or released by a claim. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#phase | [optional] -**reason** | **String** | Reason is a brief CamelCase string that describes any failure and is meant for machine parsing and tidy display in the CLI. | [optional] - - diff --git a/kubernetes/docs/V1PhotonPersistentDiskVolumeSource.md b/kubernetes/docs/V1PhotonPersistentDiskVolumeSource.md deleted file mode 100644 index 7b3c38477d..0000000000 --- a/kubernetes/docs/V1PhotonPersistentDiskVolumeSource.md +++ /dev/null @@ -1,9 +0,0 @@ -# KubernetesJsClient.V1PhotonPersistentDiskVolumeSource - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**fsType** | **String** | Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. | [optional] -**pdID** | **String** | ID that identifies Photon Controller persistent disk | - - diff --git a/kubernetes/docs/V1Pod.md b/kubernetes/docs/V1Pod.md deleted file mode 100644 index 7503e7758c..0000000000 --- a/kubernetes/docs/V1Pod.md +++ /dev/null @@ -1,12 +0,0 @@ -# KubernetesJsClient.V1Pod - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata | [optional] -**spec** | [**V1PodSpec**](V1PodSpec.md) | Specification of the desired behavior of the pod. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status | [optional] -**status** | [**V1PodStatus**](V1PodStatus.md) | Most recently observed status of the pod. This data may not be up to date. Populated by the system. Read-only. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status | [optional] - - diff --git a/kubernetes/docs/V1PodAffinity.md b/kubernetes/docs/V1PodAffinity.md deleted file mode 100644 index b6e916810d..0000000000 --- a/kubernetes/docs/V1PodAffinity.md +++ /dev/null @@ -1,9 +0,0 @@ -# KubernetesJsClient.V1PodAffinity - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**preferredDuringSchedulingIgnoredDuringExecution** | [**[V1WeightedPodAffinityTerm]**](V1WeightedPodAffinityTerm.md) | The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. | [optional] -**requiredDuringSchedulingIgnoredDuringExecution** | [**[V1PodAffinityTerm]**](V1PodAffinityTerm.md) | NOT YET IMPLEMENTED. TODO: Uncomment field once it is implemented. If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system will try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. RequiredDuringSchedulingRequiredDuringExecution []PodAffinityTerm `json:\"requiredDuringSchedulingRequiredDuringExecution,omitempty\"` If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. | [optional] - - diff --git a/kubernetes/docs/V1PodAffinityTerm.md b/kubernetes/docs/V1PodAffinityTerm.md deleted file mode 100644 index eb52243c83..0000000000 --- a/kubernetes/docs/V1PodAffinityTerm.md +++ /dev/null @@ -1,10 +0,0 @@ -# KubernetesJsClient.V1PodAffinityTerm - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**labelSelector** | [**V1LabelSelector**](V1LabelSelector.md) | A label query over a set of resources, in this case pods. | [optional] -**namespaces** | **[String]** | namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means \"this pod's namespace\" | [optional] -**topologyKey** | **String** | This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. For PreferredDuringScheduling pod anti-affinity, empty topologyKey is interpreted as \"all topologies\" (\"all topologies\" here means all the topologyKeys indicated by scheduler command-line argument --failure-domains); for affinity and for RequiredDuringScheduling pod anti-affinity, empty topologyKey is not allowed. | [optional] - - diff --git a/kubernetes/docs/V1PodAntiAffinity.md b/kubernetes/docs/V1PodAntiAffinity.md deleted file mode 100644 index f539b7d257..0000000000 --- a/kubernetes/docs/V1PodAntiAffinity.md +++ /dev/null @@ -1,9 +0,0 @@ -# KubernetesJsClient.V1PodAntiAffinity - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**preferredDuringSchedulingIgnoredDuringExecution** | [**[V1WeightedPodAffinityTerm]**](V1WeightedPodAffinityTerm.md) | The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. | [optional] -**requiredDuringSchedulingIgnoredDuringExecution** | [**[V1PodAffinityTerm]**](V1PodAffinityTerm.md) | NOT YET IMPLEMENTED. TODO: Uncomment field once it is implemented. If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system will try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. RequiredDuringSchedulingRequiredDuringExecution []PodAffinityTerm `json:\"requiredDuringSchedulingRequiredDuringExecution,omitempty\"` If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. | [optional] - - diff --git a/kubernetes/docs/V1PodCondition.md b/kubernetes/docs/V1PodCondition.md deleted file mode 100644 index 20d1202743..0000000000 --- a/kubernetes/docs/V1PodCondition.md +++ /dev/null @@ -1,13 +0,0 @@ -# KubernetesJsClient.V1PodCondition - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**lastProbeTime** | **Date** | Last time we probed the condition. | [optional] -**lastTransitionTime** | **Date** | Last time the condition transitioned from one status to another. | [optional] -**message** | **String** | Human-readable message indicating details about last transition. | [optional] -**reason** | **String** | Unique, one-word, CamelCase reason for the condition's last transition. | [optional] -**status** | **String** | Status is the status of the condition. Can be True, False, Unknown. More info: http://kubernetes.io/docs/user-guide/pod-states#pod-conditions | -**type** | **String** | Type is the type of the condition. Currently only Ready. More info: http://kubernetes.io/docs/user-guide/pod-states#pod-conditions | - - diff --git a/kubernetes/docs/V1PodList.md b/kubernetes/docs/V1PodList.md deleted file mode 100644 index e4ffa8c6e4..0000000000 --- a/kubernetes/docs/V1PodList.md +++ /dev/null @@ -1,11 +0,0 @@ -# KubernetesJsClient.V1PodList - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] -**items** | [**[V1Pod]**](V1Pod.md) | List of pods. More info: http://kubernetes.io/docs/user-guide/pods | -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] - - diff --git a/kubernetes/docs/V1PodSecurityContext.md b/kubernetes/docs/V1PodSecurityContext.md deleted file mode 100644 index b97531ac95..0000000000 --- a/kubernetes/docs/V1PodSecurityContext.md +++ /dev/null @@ -1,12 +0,0 @@ -# KubernetesJsClient.V1PodSecurityContext - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**fsGroup** | **Number** | A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- If unset, the Kubelet will not modify the ownership and permissions of any volume. | [optional] -**runAsNonRoot** | **Boolean** | Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. | [optional] -**runAsUser** | **Number** | The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. | [optional] -**seLinuxOptions** | [**V1SELinuxOptions**](V1SELinuxOptions.md) | The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. | [optional] -**supplementalGroups** | **[Number]** | A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. | [optional] - - diff --git a/kubernetes/docs/V1PodSpec.md b/kubernetes/docs/V1PodSpec.md deleted file mode 100644 index 00d382dc44..0000000000 --- a/kubernetes/docs/V1PodSpec.md +++ /dev/null @@ -1,29 +0,0 @@ -# KubernetesJsClient.V1PodSpec - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**activeDeadlineSeconds** | **Number** | Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. | [optional] -**affinity** | [**V1Affinity**](V1Affinity.md) | If specified, the pod's scheduling constraints | [optional] -**automountServiceAccountToken** | **Boolean** | AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. | [optional] -**containers** | [**[V1Container]**](V1Container.md) | List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/containers | -**dnsPolicy** | **String** | Set DNS policy for containers within the pod. One of 'ClusterFirstWithHostNet', 'ClusterFirst' or 'Default'. Defaults to \"ClusterFirst\". To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. | [optional] -**hostIPC** | **Boolean** | Use the host's ipc namespace. Optional: Default to false. | [optional] -**hostNetwork** | **Boolean** | Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. | [optional] -**hostPID** | **Boolean** | Use the host's pid namespace. Optional: Default to false. | [optional] -**hostname** | **String** | Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. | [optional] -**imagePullSecrets** | [**[V1LocalObjectReference]**](V1LocalObjectReference.md) | ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: http://kubernetes.io/docs/user-guide/images#specifying-imagepullsecrets-on-a-pod | [optional] -**initContainers** | [**[V1Container]**](V1Container.md) | List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, or Liveness probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/containers | [optional] -**nodeName** | **String** | NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. | [optional] -**nodeSelector** | **{String: String}** | NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: http://kubernetes.io/docs/user-guide/node-selection/README | [optional] -**restartPolicy** | **String** | Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: http://kubernetes.io/docs/user-guide/pod-states#restartpolicy | [optional] -**schedulerName** | **String** | If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. | [optional] -**securityContext** | [**V1PodSecurityContext**](V1PodSecurityContext.md) | SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. | [optional] -**serviceAccount** | **String** | DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. | [optional] -**serviceAccountName** | **String** | ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: http://releases.k8s.io/HEAD/docs/design/service_accounts.md | [optional] -**subdomain** | **String** | If specified, the fully qualified Pod hostname will be \"<hostname>.<subdomain>.<pod namespace>.svc.<cluster domain>\". If not specified, the pod will not have a domainname at all. | [optional] -**terminationGracePeriodSeconds** | **Number** | Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. | [optional] -**tolerations** | [**[V1Toleration]**](V1Toleration.md) | If specified, the pod's tolerations. | [optional] -**volumes** | [**[V1Volume]**](V1Volume.md) | List of volumes that can be mounted by containers belonging to the pod. More info: http://kubernetes.io/docs/user-guide/volumes | [optional] - - diff --git a/kubernetes/docs/V1PodStatus.md b/kubernetes/docs/V1PodStatus.md deleted file mode 100644 index cc8c6ebce7..0000000000 --- a/kubernetes/docs/V1PodStatus.md +++ /dev/null @@ -1,17 +0,0 @@ -# KubernetesJsClient.V1PodStatus - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**conditions** | [**[V1PodCondition]**](V1PodCondition.md) | Current service state of pod. More info: http://kubernetes.io/docs/user-guide/pod-states#pod-conditions | [optional] -**containerStatuses** | [**[V1ContainerStatus]**](V1ContainerStatus.md) | The list has one entry per container in the manifest. Each entry is currently the output of `docker inspect`. More info: http://kubernetes.io/docs/user-guide/pod-states#container-statuses | [optional] -**hostIP** | **String** | IP address of the host to which the pod is assigned. Empty if not yet scheduled. | [optional] -**initContainerStatuses** | [**[V1ContainerStatus]**](V1ContainerStatus.md) | The list has one entry per init container in the manifest. The most recent successful init container will have ready = true, the most recently started container will have startTime set. More info: http://kubernetes.io/docs/user-guide/pod-states#container-statuses | [optional] -**message** | **String** | A human readable message indicating details about why the pod is in this condition. | [optional] -**phase** | **String** | Current condition of the pod. More info: http://kubernetes.io/docs/user-guide/pod-states#pod-phase | [optional] -**podIP** | **String** | IP address allocated to the pod. Routable at least within the cluster. Empty if not yet allocated. | [optional] -**qosClass** | **String** | The Quality of Service (QOS) classification assigned to the pod based on resource requirements See PodQOSClass type for available QOS classes More info: https://github.com/kubernetes/kubernetes/blob/master/docs/design/resource-qos.md | [optional] -**reason** | **String** | A brief CamelCase message indicating details about why the pod is in this state. e.g. 'OutOfDisk' | [optional] -**startTime** | **Date** | RFC 3339 date and time at which the object was acknowledged by the Kubelet. This is before the Kubelet pulled the container image(s) for the pod. | [optional] - - diff --git a/kubernetes/docs/V1PodTemplate.md b/kubernetes/docs/V1PodTemplate.md deleted file mode 100644 index 0bc8610b2f..0000000000 --- a/kubernetes/docs/V1PodTemplate.md +++ /dev/null @@ -1,11 +0,0 @@ -# KubernetesJsClient.V1PodTemplate - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata | [optional] -**template** | [**V1PodTemplateSpec**](V1PodTemplateSpec.md) | Template defines the pods that will be created from this pod template. http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status | [optional] - - diff --git a/kubernetes/docs/V1PodTemplateList.md b/kubernetes/docs/V1PodTemplateList.md deleted file mode 100644 index e27560e597..0000000000 --- a/kubernetes/docs/V1PodTemplateList.md +++ /dev/null @@ -1,11 +0,0 @@ -# KubernetesJsClient.V1PodTemplateList - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] -**items** | [**[V1PodTemplate]**](V1PodTemplate.md) | List of pod templates | -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] - - diff --git a/kubernetes/docs/V1PodTemplateSpec.md b/kubernetes/docs/V1PodTemplateSpec.md deleted file mode 100644 index 1ff62897f5..0000000000 --- a/kubernetes/docs/V1PodTemplateSpec.md +++ /dev/null @@ -1,9 +0,0 @@ -# KubernetesJsClient.V1PodTemplateSpec - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata | [optional] -**spec** | [**V1PodSpec**](V1PodSpec.md) | Specification of the desired behavior of the pod. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status | [optional] - - diff --git a/kubernetes/docs/V1PortworxVolumeSource.md b/kubernetes/docs/V1PortworxVolumeSource.md deleted file mode 100644 index 878e94099d..0000000000 --- a/kubernetes/docs/V1PortworxVolumeSource.md +++ /dev/null @@ -1,10 +0,0 @@ -# KubernetesJsClient.V1PortworxVolumeSource - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**fsType** | **String** | FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\". Implicitly inferred to be \"ext4\" if unspecified. | [optional] -**readOnly** | **Boolean** | Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. | [optional] -**volumeID** | **String** | VolumeID uniquely identifies a Portworx volume | - - diff --git a/kubernetes/docs/V1Preconditions.md b/kubernetes/docs/V1Preconditions.md deleted file mode 100644 index c12e5f0c8f..0000000000 --- a/kubernetes/docs/V1Preconditions.md +++ /dev/null @@ -1,8 +0,0 @@ -# KubernetesJsClient.V1Preconditions - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**uid** | **String** | Specifies the target UID. | [optional] - - diff --git a/kubernetes/docs/V1PreferredSchedulingTerm.md b/kubernetes/docs/V1PreferredSchedulingTerm.md deleted file mode 100644 index 83efa30dac..0000000000 --- a/kubernetes/docs/V1PreferredSchedulingTerm.md +++ /dev/null @@ -1,9 +0,0 @@ -# KubernetesJsClient.V1PreferredSchedulingTerm - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**preference** | [**V1NodeSelectorTerm**](V1NodeSelectorTerm.md) | A node selector term, associated with the corresponding weight. | -**weight** | **Number** | Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. | - - diff --git a/kubernetes/docs/V1Probe.md b/kubernetes/docs/V1Probe.md deleted file mode 100644 index de79d01d8b..0000000000 --- a/kubernetes/docs/V1Probe.md +++ /dev/null @@ -1,15 +0,0 @@ -# KubernetesJsClient.V1Probe - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**exec** | [**V1ExecAction**](V1ExecAction.md) | One and only one of the following should be specified. Exec specifies the action to take. | [optional] -**failureThreshold** | **Number** | Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. | [optional] -**httpGet** | [**V1HTTPGetAction**](V1HTTPGetAction.md) | HTTPGet specifies the http request to perform. | [optional] -**initialDelaySeconds** | **Number** | Number of seconds after the container has started before liveness probes are initiated. More info: http://kubernetes.io/docs/user-guide/pod-states#container-probes | [optional] -**periodSeconds** | **Number** | How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. | [optional] -**successThreshold** | **Number** | Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness. Minimum value is 1. | [optional] -**tcpSocket** | [**V1TCPSocketAction**](V1TCPSocketAction.md) | TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported | [optional] -**timeoutSeconds** | **Number** | Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: http://kubernetes.io/docs/user-guide/pod-states#container-probes | [optional] - - diff --git a/kubernetes/docs/V1ProjectedVolumeSource.md b/kubernetes/docs/V1ProjectedVolumeSource.md deleted file mode 100644 index 012fc3e9ee..0000000000 --- a/kubernetes/docs/V1ProjectedVolumeSource.md +++ /dev/null @@ -1,9 +0,0 @@ -# KubernetesJsClient.V1ProjectedVolumeSource - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**defaultMode** | **Number** | Mode bits to use on created files by default. Must be a value between 0 and 0777. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. | [optional] -**sources** | [**[V1VolumeProjection]**](V1VolumeProjection.md) | list of volume projections | - - diff --git a/kubernetes/docs/V1QuobyteVolumeSource.md b/kubernetes/docs/V1QuobyteVolumeSource.md deleted file mode 100644 index b73a3eac65..0000000000 --- a/kubernetes/docs/V1QuobyteVolumeSource.md +++ /dev/null @@ -1,12 +0,0 @@ -# KubernetesJsClient.V1QuobyteVolumeSource - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**group** | **String** | Group to map volume access to Default is no group | [optional] -**readOnly** | **Boolean** | ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. | [optional] -**registry** | **String** | Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes | -**user** | **String** | User to map volume access to Defaults to serivceaccount user | [optional] -**volume** | **String** | Volume is a string that references an already created Quobyte volume by name. | - - diff --git a/kubernetes/docs/V1RBDVolumeSource.md b/kubernetes/docs/V1RBDVolumeSource.md deleted file mode 100644 index a361010f6e..0000000000 --- a/kubernetes/docs/V1RBDVolumeSource.md +++ /dev/null @@ -1,15 +0,0 @@ -# KubernetesJsClient.V1RBDVolumeSource - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**fsType** | **String** | Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: http://kubernetes.io/docs/user-guide/volumes#rbd | [optional] -**image** | **String** | The rados image name. More info: http://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it | -**keyring** | **String** | Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: http://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it | [optional] -**monitors** | **[String]** | A collection of Ceph monitors. More info: http://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it | -**pool** | **String** | The rados pool name. Default is rbd. More info: http://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it. | [optional] -**readOnly** | **Boolean** | ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: http://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it | [optional] -**secretRef** | [**V1LocalObjectReference**](V1LocalObjectReference.md) | SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: http://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it | [optional] -**user** | **String** | The rados user name. Default is admin. More info: http://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it | [optional] - - diff --git a/kubernetes/docs/V1ReplicationController.md b/kubernetes/docs/V1ReplicationController.md deleted file mode 100644 index 950601bafa..0000000000 --- a/kubernetes/docs/V1ReplicationController.md +++ /dev/null @@ -1,12 +0,0 @@ -# KubernetesJsClient.V1ReplicationController - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | If the Labels of a ReplicationController are empty, they are defaulted to be the same as the Pod(s) that the replication controller manages. Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata | [optional] -**spec** | [**V1ReplicationControllerSpec**](V1ReplicationControllerSpec.md) | Spec defines the specification of the desired behavior of the replication controller. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status | [optional] -**status** | [**V1ReplicationControllerStatus**](V1ReplicationControllerStatus.md) | Status is the most recently observed status of the replication controller. This data may be out of date by some window of time. Populated by the system. Read-only. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status | [optional] - - diff --git a/kubernetes/docs/V1ReplicationControllerCondition.md b/kubernetes/docs/V1ReplicationControllerCondition.md deleted file mode 100644 index d76a8716f7..0000000000 --- a/kubernetes/docs/V1ReplicationControllerCondition.md +++ /dev/null @@ -1,12 +0,0 @@ -# KubernetesJsClient.V1ReplicationControllerCondition - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**lastTransitionTime** | **Date** | The last time the condition transitioned from one status to another. | [optional] -**message** | **String** | A human readable message indicating details about the transition. | [optional] -**reason** | **String** | The reason for the condition's last transition. | [optional] -**status** | **String** | Status of the condition, one of True, False, Unknown. | -**type** | **String** | Type of replication controller condition. | - - diff --git a/kubernetes/docs/V1ReplicationControllerList.md b/kubernetes/docs/V1ReplicationControllerList.md deleted file mode 100644 index 525e3b299b..0000000000 --- a/kubernetes/docs/V1ReplicationControllerList.md +++ /dev/null @@ -1,11 +0,0 @@ -# KubernetesJsClient.V1ReplicationControllerList - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] -**items** | [**[V1ReplicationController]**](V1ReplicationController.md) | List of replication controllers. More info: http://kubernetes.io/docs/user-guide/replication-controller | -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] - - diff --git a/kubernetes/docs/V1ReplicationControllerSpec.md b/kubernetes/docs/V1ReplicationControllerSpec.md deleted file mode 100644 index 1146785003..0000000000 --- a/kubernetes/docs/V1ReplicationControllerSpec.md +++ /dev/null @@ -1,11 +0,0 @@ -# KubernetesJsClient.V1ReplicationControllerSpec - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**minReadySeconds** | **Number** | Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) | [optional] -**replicas** | **Number** | Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: http://kubernetes.io/docs/user-guide/replication-controller#what-is-a-replication-controller | [optional] -**selector** | **{String: String}** | Selector is a label query over pods that should match the Replicas count. If Selector is empty, it is defaulted to the labels present on the Pod template. Label keys and values that must match in order to be controlled by this replication controller, if empty defaulted to labels on Pod template. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors | [optional] -**template** | [**V1PodTemplateSpec**](V1PodTemplateSpec.md) | Template is the object that describes the pod that will be created if insufficient replicas are detected. This takes precedence over a TemplateRef. More info: http://kubernetes.io/docs/user-guide/replication-controller#pod-template | [optional] - - diff --git a/kubernetes/docs/V1ReplicationControllerStatus.md b/kubernetes/docs/V1ReplicationControllerStatus.md deleted file mode 100644 index 894f8ed340..0000000000 --- a/kubernetes/docs/V1ReplicationControllerStatus.md +++ /dev/null @@ -1,13 +0,0 @@ -# KubernetesJsClient.V1ReplicationControllerStatus - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**availableReplicas** | **Number** | The number of available replicas (ready for at least minReadySeconds) for this replication controller. | [optional] -**conditions** | [**[V1ReplicationControllerCondition]**](V1ReplicationControllerCondition.md) | Represents the latest available observations of a replication controller's current state. | [optional] -**fullyLabeledReplicas** | **Number** | The number of pods that have labels matching the labels of the pod template of the replication controller. | [optional] -**observedGeneration** | **Number** | ObservedGeneration reflects the generation of the most recently observed replication controller. | [optional] -**readyReplicas** | **Number** | The number of ready replicas for this replication controller. | [optional] -**replicas** | **Number** | Replicas is the most recently oberved number of replicas. More info: http://kubernetes.io/docs/user-guide/replication-controller#what-is-a-replication-controller | - - diff --git a/kubernetes/docs/V1ResourceAttributes.md b/kubernetes/docs/V1ResourceAttributes.md deleted file mode 100644 index 9c30d8c4d2..0000000000 --- a/kubernetes/docs/V1ResourceAttributes.md +++ /dev/null @@ -1,14 +0,0 @@ -# KubernetesJsClient.V1ResourceAttributes - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**group** | **String** | Group is the API Group of the Resource. \"*\" means all. | [optional] -**name** | **String** | Name is the name of the resource being requested for a \"get\" or deleted for a \"delete\". \"\" (empty) means all. | [optional] -**namespace** | **String** | Namespace is the namespace of the action being requested. Currently, there is no distinction between no namespace and all namespaces \"\" (empty) is defaulted for LocalSubjectAccessReviews \"\" (empty) is empty for cluster-scoped resources \"\" (empty) means \"all\" for namespace scoped resources from a SubjectAccessReview or SelfSubjectAccessReview | [optional] -**resource** | **String** | Resource is one of the existing resource types. \"*\" means all. | [optional] -**subresource** | **String** | Subresource is one of the existing resource types. \"\" means none. | [optional] -**verb** | **String** | Verb is a kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy. \"*\" means all. | [optional] -**version** | **String** | Version is the API Version of the Resource. \"*\" means all. | [optional] - - diff --git a/kubernetes/docs/V1ResourceFieldSelector.md b/kubernetes/docs/V1ResourceFieldSelector.md deleted file mode 100644 index fd2b33b9f4..0000000000 --- a/kubernetes/docs/V1ResourceFieldSelector.md +++ /dev/null @@ -1,10 +0,0 @@ -# KubernetesJsClient.V1ResourceFieldSelector - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**containerName** | **String** | Container name: required for volumes, optional for env vars | [optional] -**divisor** | **String** | Specifies the output format of the exposed resources, defaults to \"1\" | [optional] -**resource** | **String** | Required: resource to select | - - diff --git a/kubernetes/docs/V1ResourceQuota.md b/kubernetes/docs/V1ResourceQuota.md deleted file mode 100644 index e0c230decc..0000000000 --- a/kubernetes/docs/V1ResourceQuota.md +++ /dev/null @@ -1,12 +0,0 @@ -# KubernetesJsClient.V1ResourceQuota - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata | [optional] -**spec** | [**V1ResourceQuotaSpec**](V1ResourceQuotaSpec.md) | Spec defines the desired quota. http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status | [optional] -**status** | [**V1ResourceQuotaStatus**](V1ResourceQuotaStatus.md) | Status defines the actual enforced quota and its current usage. http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status | [optional] - - diff --git a/kubernetes/docs/V1ResourceQuotaList.md b/kubernetes/docs/V1ResourceQuotaList.md deleted file mode 100644 index a0a3692ce6..0000000000 --- a/kubernetes/docs/V1ResourceQuotaList.md +++ /dev/null @@ -1,11 +0,0 @@ -# KubernetesJsClient.V1ResourceQuotaList - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] -**items** | [**[V1ResourceQuota]**](V1ResourceQuota.md) | Items is a list of ResourceQuota objects. More info: http://releases.k8s.io/HEAD/docs/design/admission_control_resource_quota.md#admissioncontrol-plugin-resourcequota | -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] - - diff --git a/kubernetes/docs/V1ResourceQuotaSpec.md b/kubernetes/docs/V1ResourceQuotaSpec.md deleted file mode 100644 index f608bf684b..0000000000 --- a/kubernetes/docs/V1ResourceQuotaSpec.md +++ /dev/null @@ -1,9 +0,0 @@ -# KubernetesJsClient.V1ResourceQuotaSpec - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**hard** | **{String: String}** | Hard is the set of desired hard limits for each named resource. More info: http://releases.k8s.io/HEAD/docs/design/admission_control_resource_quota.md#admissioncontrol-plugin-resourcequota | [optional] -**scopes** | **[String]** | A collection of filters that must match each object tracked by a quota. If not specified, the quota matches all objects. | [optional] - - diff --git a/kubernetes/docs/V1ResourceQuotaStatus.md b/kubernetes/docs/V1ResourceQuotaStatus.md deleted file mode 100644 index e4b70d6d9b..0000000000 --- a/kubernetes/docs/V1ResourceQuotaStatus.md +++ /dev/null @@ -1,9 +0,0 @@ -# KubernetesJsClient.V1ResourceQuotaStatus - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**hard** | **{String: String}** | Hard is the set of enforced hard limits for each named resource. More info: http://releases.k8s.io/HEAD/docs/design/admission_control_resource_quota.md#admissioncontrol-plugin-resourcequota | [optional] -**used** | **{String: String}** | Used is the current observed total usage of the resource in the namespace. | [optional] - - diff --git a/kubernetes/docs/V1ResourceRequirements.md b/kubernetes/docs/V1ResourceRequirements.md deleted file mode 100644 index 808fb24f7b..0000000000 --- a/kubernetes/docs/V1ResourceRequirements.md +++ /dev/null @@ -1,9 +0,0 @@ -# KubernetesJsClient.V1ResourceRequirements - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**limits** | **{String: String}** | Limits describes the maximum amount of compute resources allowed. More info: http://kubernetes.io/docs/user-guide/compute-resources/ | [optional] -**requests** | **{String: String}** | Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: http://kubernetes.io/docs/user-guide/compute-resources/ | [optional] - - diff --git a/kubernetes/docs/V1SELinuxOptions.md b/kubernetes/docs/V1SELinuxOptions.md deleted file mode 100644 index 9d630543da..0000000000 --- a/kubernetes/docs/V1SELinuxOptions.md +++ /dev/null @@ -1,11 +0,0 @@ -# KubernetesJsClient.V1SELinuxOptions - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**level** | **String** | Level is SELinux level label that applies to the container. | [optional] -**role** | **String** | Role is a SELinux role label that applies to the container. | [optional] -**type** | **String** | Type is a SELinux type label that applies to the container. | [optional] -**user** | **String** | User is a SELinux user label that applies to the container. | [optional] - - diff --git a/kubernetes/docs/V1Scale.md b/kubernetes/docs/V1Scale.md deleted file mode 100644 index b7127d09b8..0000000000 --- a/kubernetes/docs/V1Scale.md +++ /dev/null @@ -1,12 +0,0 @@ -# KubernetesJsClient.V1Scale - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object metadata; More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata. | [optional] -**spec** | [**V1ScaleSpec**](V1ScaleSpec.md) | defines the behavior of the scale. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status. | [optional] -**status** | [**V1ScaleStatus**](V1ScaleStatus.md) | current status of the scale. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status. Read-only. | [optional] - - diff --git a/kubernetes/docs/V1ScaleIOVolumeSource.md b/kubernetes/docs/V1ScaleIOVolumeSource.md deleted file mode 100644 index a659cebbde..0000000000 --- a/kubernetes/docs/V1ScaleIOVolumeSource.md +++ /dev/null @@ -1,17 +0,0 @@ -# KubernetesJsClient.V1ScaleIOVolumeSource - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**fsType** | **String** | Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. | [optional] -**gateway** | **String** | The host address of the ScaleIO API Gateway. | -**protectionDomain** | **String** | The name of the Protection Domain for the configured storage (defaults to \"default\"). | [optional] -**readOnly** | **Boolean** | Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. | [optional] -**secretRef** | [**V1LocalObjectReference**](V1LocalObjectReference.md) | SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. | -**sslEnabled** | **Boolean** | Flag to enable/disable SSL communication with Gateway, default false | [optional] -**storageMode** | **String** | Indicates whether the storage for a volume should be thick or thin (defaults to \"thin\"). | [optional] -**storagePool** | **String** | The Storage Pool associated with the protection domain (defaults to \"default\"). | [optional] -**system** | **String** | The name of the storage system as configured in ScaleIO. | -**volumeName** | **String** | The name of a volume already created in the ScaleIO system that is associated with this volume source. | [optional] - - diff --git a/kubernetes/docs/V1ScaleSpec.md b/kubernetes/docs/V1ScaleSpec.md deleted file mode 100644 index a9160b8136..0000000000 --- a/kubernetes/docs/V1ScaleSpec.md +++ /dev/null @@ -1,8 +0,0 @@ -# KubernetesJsClient.V1ScaleSpec - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**replicas** | **Number** | desired number of instances for the scaled object. | [optional] - - diff --git a/kubernetes/docs/V1ScaleStatus.md b/kubernetes/docs/V1ScaleStatus.md deleted file mode 100644 index 8178b41946..0000000000 --- a/kubernetes/docs/V1ScaleStatus.md +++ /dev/null @@ -1,9 +0,0 @@ -# KubernetesJsClient.V1ScaleStatus - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**replicas** | **Number** | actual number of observed instances of the scaled object. | -**selector** | **String** | label query over pods that should match the replicas count. This is same as the label selector but in the string format to avoid introspection by kubernetes.clients. The string will be in the same format as the query-param syntax. More info about label selectors: http://kubernetes.io/docs/user-guide/labels#label-selectors | [optional] - - diff --git a/kubernetes/docs/V1Secret.md b/kubernetes/docs/V1Secret.md deleted file mode 100644 index 33da96a086..0000000000 --- a/kubernetes/docs/V1Secret.md +++ /dev/null @@ -1,13 +0,0 @@ -# KubernetesJsClient.V1Secret - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] -**data** | **{String: String}** | Data contains the secret data. Each key must be a valid DNS_SUBDOMAIN or leading dot followed by valid DNS_SUBDOMAIN. The serialized form of the secret data is a base64 encoded string, representing the arbitrary (possibly non-string) data value here. Described in https://tools.ietf.org/html/rfc4648#section-4 | [optional] -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata | [optional] -**stringData** | **{String: String}** | stringData allows specifying non-binary secret data in string form. It is provided as a write-only convenience method. All keys and values are merged into the data field on write, overwriting any existing values. It is never output when reading from the API. | [optional] -**type** | **String** | Used to facilitate programmatic handling of secret data. | [optional] - - diff --git a/kubernetes/docs/V1SecretEnvSource.md b/kubernetes/docs/V1SecretEnvSource.md deleted file mode 100644 index 2b9f9487cd..0000000000 --- a/kubernetes/docs/V1SecretEnvSource.md +++ /dev/null @@ -1,9 +0,0 @@ -# KubernetesJsClient.V1SecretEnvSource - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names | [optional] -**optional** | **Boolean** | Specify whether the Secret must be defined | [optional] - - diff --git a/kubernetes/docs/V1SecretKeySelector.md b/kubernetes/docs/V1SecretKeySelector.md deleted file mode 100644 index d0cac250c5..0000000000 --- a/kubernetes/docs/V1SecretKeySelector.md +++ /dev/null @@ -1,10 +0,0 @@ -# KubernetesJsClient.V1SecretKeySelector - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**key** | **String** | The key of the secret to select from. Must be a valid secret key. | -**name** | **String** | Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names | [optional] -**optional** | **Boolean** | Specify whether the Secret or it's key must be defined | [optional] - - diff --git a/kubernetes/docs/V1SecretList.md b/kubernetes/docs/V1SecretList.md deleted file mode 100644 index b12eb1d8ad..0000000000 --- a/kubernetes/docs/V1SecretList.md +++ /dev/null @@ -1,11 +0,0 @@ -# KubernetesJsClient.V1SecretList - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] -**items** | [**[V1Secret]**](V1Secret.md) | Items is a list of secret objects. More info: http://kubernetes.io/docs/user-guide/secrets | -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] - - diff --git a/kubernetes/docs/V1SecretProjection.md b/kubernetes/docs/V1SecretProjection.md deleted file mode 100644 index 84e3b8e840..0000000000 --- a/kubernetes/docs/V1SecretProjection.md +++ /dev/null @@ -1,10 +0,0 @@ -# KubernetesJsClient.V1SecretProjection - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**items** | [**[V1KeyToPath]**](V1KeyToPath.md) | If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. | [optional] -**name** | **String** | Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names | [optional] -**optional** | **Boolean** | Specify whether the Secret or its key must be defined | [optional] - - diff --git a/kubernetes/docs/V1SecretVolumeSource.md b/kubernetes/docs/V1SecretVolumeSource.md deleted file mode 100644 index d8b2ac358f..0000000000 --- a/kubernetes/docs/V1SecretVolumeSource.md +++ /dev/null @@ -1,11 +0,0 @@ -# KubernetesJsClient.V1SecretVolumeSource - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**defaultMode** | **Number** | Optional: mode bits to use on created files by default. Must be a value between 0 and 0777. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. | [optional] -**items** | [**[V1KeyToPath]**](V1KeyToPath.md) | If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. | [optional] -**optional** | **Boolean** | Specify whether the Secret or it's keys must be defined | [optional] -**secretName** | **String** | Name of the secret in the pod's namespace to use. More info: http://kubernetes.io/docs/user-guide/volumes#secrets | [optional] - - diff --git a/kubernetes/docs/V1SecurityContext.md b/kubernetes/docs/V1SecurityContext.md deleted file mode 100644 index 382009bca8..0000000000 --- a/kubernetes/docs/V1SecurityContext.md +++ /dev/null @@ -1,13 +0,0 @@ -# KubernetesJsClient.V1SecurityContext - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**capabilities** | [**V1Capabilities**](V1Capabilities.md) | The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. | [optional] -**privileged** | **Boolean** | Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. | [optional] -**readOnlyRootFilesystem** | **Boolean** | Whether this container has a read-only root filesystem. Default is false. | [optional] -**runAsNonRoot** | **Boolean** | Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. | [optional] -**runAsUser** | **Number** | The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. | [optional] -**seLinuxOptions** | [**V1SELinuxOptions**](V1SELinuxOptions.md) | The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. | [optional] - - diff --git a/kubernetes/docs/V1SelfSubjectAccessReview.md b/kubernetes/docs/V1SelfSubjectAccessReview.md deleted file mode 100644 index 1d2b6ae8d5..0000000000 --- a/kubernetes/docs/V1SelfSubjectAccessReview.md +++ /dev/null @@ -1,12 +0,0 @@ -# KubernetesJsClient.V1SelfSubjectAccessReview - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**spec** | [**V1SelfSubjectAccessReviewSpec**](V1SelfSubjectAccessReviewSpec.md) | Spec holds information about the request being evaluated. user and groups must be empty | -**status** | [**V1SubjectAccessReviewStatus**](V1SubjectAccessReviewStatus.md) | Status is filled in by the server and indicates whether the request is allowed or not | [optional] - - diff --git a/kubernetes/docs/V1SelfSubjectAccessReviewSpec.md b/kubernetes/docs/V1SelfSubjectAccessReviewSpec.md deleted file mode 100644 index 06dc09dfca..0000000000 --- a/kubernetes/docs/V1SelfSubjectAccessReviewSpec.md +++ /dev/null @@ -1,9 +0,0 @@ -# KubernetesJsClient.V1SelfSubjectAccessReviewSpec - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**nonResourceAttributes** | [**V1NonResourceAttributes**](V1NonResourceAttributes.md) | NonResourceAttributes describes information for a non-resource access request | [optional] -**resourceAttributes** | [**V1ResourceAttributes**](V1ResourceAttributes.md) | ResourceAuthorizationAttributes describes information for a resource access request | [optional] - - diff --git a/kubernetes/docs/V1ServerAddressByClientCIDR.md b/kubernetes/docs/V1ServerAddressByClientCIDR.md deleted file mode 100644 index 85ebe43647..0000000000 --- a/kubernetes/docs/V1ServerAddressByClientCIDR.md +++ /dev/null @@ -1,9 +0,0 @@ -# KubernetesJsClient.V1ServerAddressByClientCIDR - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**kubernetes.clientCIDR** | **String** | The CIDR with which kubernetes.clients can match their IP to figure out the server address that they should use. | -**serverAddress** | **String** | Address of this server, suitable for a kubernetes.client that matches the above CIDR. This can be a hostname, hostname:port, IP or IP:port. | - - diff --git a/kubernetes/docs/V1Service.md b/kubernetes/docs/V1Service.md deleted file mode 100644 index fbf92f1cb1..0000000000 --- a/kubernetes/docs/V1Service.md +++ /dev/null @@ -1,12 +0,0 @@ -# KubernetesJsClient.V1Service - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata | [optional] -**spec** | [**V1ServiceSpec**](V1ServiceSpec.md) | Spec defines the behavior of a service. http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status | [optional] -**status** | [**V1ServiceStatus**](V1ServiceStatus.md) | Most recently observed status of the service. Populated by the system. Read-only. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status | [optional] - - diff --git a/kubernetes/docs/V1ServiceAccount.md b/kubernetes/docs/V1ServiceAccount.md deleted file mode 100644 index 47bb73ab01..0000000000 --- a/kubernetes/docs/V1ServiceAccount.md +++ /dev/null @@ -1,13 +0,0 @@ -# KubernetesJsClient.V1ServiceAccount - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] -**automountServiceAccountToken** | **Boolean** | AutomountServiceAccountToken indicates whether pods running as this service account should have an API token automatically mounted. Can be overridden at the pod level. | [optional] -**imagePullSecrets** | [**[V1LocalObjectReference]**](V1LocalObjectReference.md) | ImagePullSecrets is a list of references to secrets in the same namespace to use for pulling any images in pods that reference this ServiceAccount. ImagePullSecrets are distinct from Secrets because Secrets can be mounted in the pod, but ImagePullSecrets are only accessed by the kubelet. More info: http://kubernetes.io/docs/user-guide/secrets#manually-specifying-an-imagepullsecret | [optional] -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata | [optional] -**secrets** | [**[V1ObjectReference]**](V1ObjectReference.md) | Secrets is the list of secrets allowed to be used by pods running using this ServiceAccount. More info: http://kubernetes.io/docs/user-guide/secrets | [optional] - - diff --git a/kubernetes/docs/V1ServiceAccountList.md b/kubernetes/docs/V1ServiceAccountList.md deleted file mode 100644 index 809eb150c2..0000000000 --- a/kubernetes/docs/V1ServiceAccountList.md +++ /dev/null @@ -1,11 +0,0 @@ -# KubernetesJsClient.V1ServiceAccountList - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] -**items** | [**[V1ServiceAccount]**](V1ServiceAccount.md) | List of ServiceAccounts. More info: http://releases.k8s.io/HEAD/docs/design/service_accounts.md#service-accounts | -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] - - diff --git a/kubernetes/docs/V1ServiceList.md b/kubernetes/docs/V1ServiceList.md deleted file mode 100644 index 4a6f333977..0000000000 --- a/kubernetes/docs/V1ServiceList.md +++ /dev/null @@ -1,11 +0,0 @@ -# KubernetesJsClient.V1ServiceList - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] -**items** | [**[V1Service]**](V1Service.md) | List of services | -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] - - diff --git a/kubernetes/docs/V1ServicePort.md b/kubernetes/docs/V1ServicePort.md deleted file mode 100644 index 54238471c4..0000000000 --- a/kubernetes/docs/V1ServicePort.md +++ /dev/null @@ -1,12 +0,0 @@ -# KubernetesJsClient.V1ServicePort - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | The name of this port within the service. This must be a DNS_LABEL. All ports within a ServiceSpec must have unique names. This maps to the 'Name' field in EndpointPort objects. Optional if only one ServicePort is defined on this service. | [optional] -**nodePort** | **Number** | The port on each node on which this service is exposed when type=NodePort or LoadBalancer. Usually assigned by the system. If specified, it will be allocated to the service if unused or else creation of the service will fail. Default is to auto-allocate a port if the ServiceType of this Service requires one. More info: http://kubernetes.io/docs/user-guide/services#type--nodeport | [optional] -**port** | **Number** | The port that will be exposed by this service. | -**protocol** | **String** | The IP protocol for this port. Supports \"TCP\" and \"UDP\". Default is TCP. | [optional] -**targetPort** | **String** | Number or name of the port to access on the pods targeted by the service. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. If this is a string, it will be looked up as a named port in the target Pod's container ports. If this is not specified, the value of the 'port' field is used (an identity map). This field is ignored for services with clusterIP=None, and should be omitted or set equal to the 'port' field. More info: http://kubernetes.io/docs/user-guide/services#defining-a-service | [optional] - - diff --git a/kubernetes/docs/V1ServiceSpec.md b/kubernetes/docs/V1ServiceSpec.md deleted file mode 100644 index 79d732aef9..0000000000 --- a/kubernetes/docs/V1ServiceSpec.md +++ /dev/null @@ -1,17 +0,0 @@ -# KubernetesJsClient.V1ServiceSpec - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**clusterIP** | **String** | clusterIP is the IP address of the service and is usually assigned randomly by the master. If an address is specified manually and is not in use by others, it will be allocated to the service; otherwise, creation of the service will fail. This field can not be changed through updates. Valid values are \"None\", empty string (\"\"), or a valid IP address. \"None\" can be specified for headless services when proxying is not required. Only applies to types ClusterIP, NodePort, and LoadBalancer. Ignored if type is ExternalName. More info: http://kubernetes.io/docs/user-guide/services#virtual-ips-and-service-proxies | [optional] -**deprecatedPublicIPs** | **[String]** | deprecatedPublicIPs is deprecated and replaced by the externalIPs field with almost the exact same semantics. This field is retained in the v1 API for compatibility until at least 8/20/2016. It will be removed from any new API revisions. If both deprecatedPublicIPs *and* externalIPs are set, deprecatedPublicIPs is used. | [optional] -**externalIPs** | **[String]** | externalIPs is a list of IP addresses for which nodes in the cluster will also accept traffic for this service. These IPs are not managed by Kubernetes. The user is responsible for ensuring that traffic arrives at a node with this IP. A common example is external load-balancers that are not part of the Kubernetes system. A previous form of this functionality exists as the deprecatedPublicIPs field. When using this field, callers should also clear the deprecatedPublicIPs field. | [optional] -**externalName** | **String** | externalName is the external reference that kubedns or equivalent will return as a CNAME record for this service. No proxying will be involved. Must be a valid DNS name and requires Type to be ExternalName. | [optional] -**loadBalancerIP** | **String** | Only applies to Service Type: LoadBalancer LoadBalancer will get created with the IP specified in this field. This feature depends on whether the underlying cloud-provider supports specifying the loadBalancerIP when a load balancer is created. This field will be ignored if the cloud-provider does not support the feature. | [optional] -**loadBalancerSourceRanges** | **[String]** | If specified and supported by the platform, this will restrict traffic through the cloud-provider load-balancer will be restricted to the specified kubernetes.client IPs. This field will be ignored if the cloud-provider does not support the feature.\" More info: http://kubernetes.io/docs/user-guide/services-firewalls | [optional] -**ports** | [**[V1ServicePort]**](V1ServicePort.md) | The list of ports that are exposed by this service. More info: http://kubernetes.io/docs/user-guide/services#virtual-ips-and-service-proxies | [optional] -**selector** | **{String: String}** | Route service traffic to pods with label keys and values matching this selector. If empty or not present, the service is assumed to have an external process managing its endpoints, which Kubernetes will not modify. Only applies to types ClusterIP, NodePort, and LoadBalancer. Ignored if type is ExternalName. More info: http://kubernetes.io/docs/user-guide/services#overview | [optional] -**sessionAffinity** | **String** | Supports \"ClientIP\" and \"None\". Used to maintain session affinity. Enable kubernetes.client IP based session affinity. Must be ClientIP or None. Defaults to None. More info: http://kubernetes.io/docs/user-guide/services#virtual-ips-and-service-proxies | [optional] -**type** | **String** | type determines how the Service is exposed. Defaults to ClusterIP. Valid options are ExternalName, ClusterIP, NodePort, and LoadBalancer. \"ExternalName\" maps to the specified externalName. \"ClusterIP\" allocates a cluster-internal IP address for load-balancing to endpoints. Endpoints are determined by the selector or if that is not specified, by manual construction of an Endpoints object. If clusterIP is \"None\", no virtual IP is allocated and the endpoints are published as a set of endpoints rather than a stable IP. \"NodePort\" builds on ClusterIP and allocates a port on every node which routes to the clusterIP. \"LoadBalancer\" builds on NodePort and creates an external load-balancer (if supported in the current cloud) which routes to the clusterIP. More info: http://kubernetes.io/docs/user-guide/services#overview | [optional] - - diff --git a/kubernetes/docs/V1ServiceStatus.md b/kubernetes/docs/V1ServiceStatus.md deleted file mode 100644 index cc8ea5ce2e..0000000000 --- a/kubernetes/docs/V1ServiceStatus.md +++ /dev/null @@ -1,8 +0,0 @@ -# KubernetesJsClient.V1ServiceStatus - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**loadBalancer** | [**V1LoadBalancerStatus**](V1LoadBalancerStatus.md) | LoadBalancer contains the current status of the load-balancer, if one is present. | [optional] - - diff --git a/kubernetes/docs/V1Status.md b/kubernetes/docs/V1Status.md deleted file mode 100644 index 26dd11e2f8..0000000000 --- a/kubernetes/docs/V1Status.md +++ /dev/null @@ -1,15 +0,0 @@ -# KubernetesJsClient.V1Status - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] -**code** | **Number** | Suggested HTTP return code for this status, 0 if not set. | [optional] -**details** | [**V1StatusDetails**](V1StatusDetails.md) | Extended data associated with the reason. Each reason may define its own extended details. This field is optional and the data returned is not guaranteed to conform to any schema except that defined by the reason type. | [optional] -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**message** | **String** | A human-readable description of the status of this operation. | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**reason** | **String** | A machine-readable description of why this operation is in the \"Failure\" status. If this value is empty there is no information available. A Reason clarifies an HTTP status code but does not override it. | [optional] -**status** | **String** | Status of the operation. One of: \"Success\" or \"Failure\". More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status | [optional] - - diff --git a/kubernetes/docs/V1StatusCause.md b/kubernetes/docs/V1StatusCause.md deleted file mode 100644 index 075f472253..0000000000 --- a/kubernetes/docs/V1StatusCause.md +++ /dev/null @@ -1,10 +0,0 @@ -# KubernetesJsClient.V1StatusCause - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**field** | **String** | The field of the resource that has caused this error, as named by its JSON serialization. May include dot and postfix notation for nested attributes. Arrays are zero-indexed. Fields may appear more than once in an array of causes due to fields having multiple errors. Optional. Examples: \"name\" - the field \"name\" on the current resource \"items[0].name\" - the field \"name\" on the first array entry in \"items\" | [optional] -**message** | **String** | A human-readable description of the cause of the error. This field may be presented as-is to a reader. | [optional] -**reason** | **String** | A machine-readable description of the cause of the error. If this value is empty there is no information available. | [optional] - - diff --git a/kubernetes/docs/V1StatusDetails.md b/kubernetes/docs/V1StatusDetails.md deleted file mode 100644 index 83c5209822..0000000000 --- a/kubernetes/docs/V1StatusDetails.md +++ /dev/null @@ -1,12 +0,0 @@ -# KubernetesJsClient.V1StatusDetails - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**causes** | [**[V1StatusCause]**](V1StatusCause.md) | The Causes array includes more details associated with the StatusReason failure. Not all StatusReasons may provide detailed causes. | [optional] -**group** | **String** | The group attribute of the resource associated with the status StatusReason. | [optional] -**kind** | **String** | The kind attribute of the resource associated with the status StatusReason. On some operations may differ from the requested resource Kind. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**name** | **String** | The name attribute of the resource associated with the status StatusReason (when there is a single name which can be described). | [optional] -**retryAfterSeconds** | **Number** | If specified, the time in seconds before the operation should be retried. | [optional] - - diff --git a/kubernetes/docs/V1StorageClass.md b/kubernetes/docs/V1StorageClass.md deleted file mode 100644 index 2fffb3ae0a..0000000000 --- a/kubernetes/docs/V1StorageClass.md +++ /dev/null @@ -1,12 +0,0 @@ -# KubernetesJsClient.V1StorageClass - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata | [optional] -**parameters** | **{String: String}** | Parameters holds the parameters for the provisioner that should create volumes of this storage class. | [optional] -**provisioner** | **String** | Provisioner indicates the type of the provisioner. | - - diff --git a/kubernetes/docs/V1StorageClassList.md b/kubernetes/docs/V1StorageClassList.md deleted file mode 100644 index 6d1636ab64..0000000000 --- a/kubernetes/docs/V1StorageClassList.md +++ /dev/null @@ -1,11 +0,0 @@ -# KubernetesJsClient.V1StorageClassList - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] -**items** | [**[V1StorageClass]**](V1StorageClass.md) | Items is the list of StorageClasses | -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata | [optional] - - diff --git a/kubernetes/docs/V1SubjectAccessReview.md b/kubernetes/docs/V1SubjectAccessReview.md deleted file mode 100644 index af96bf77e7..0000000000 --- a/kubernetes/docs/V1SubjectAccessReview.md +++ /dev/null @@ -1,12 +0,0 @@ -# KubernetesJsClient.V1SubjectAccessReview - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**spec** | [**V1SubjectAccessReviewSpec**](V1SubjectAccessReviewSpec.md) | Spec holds information about the request being evaluated | -**status** | [**V1SubjectAccessReviewStatus**](V1SubjectAccessReviewStatus.md) | Status is filled in by the server and indicates whether the request is allowed or not | [optional] - - diff --git a/kubernetes/docs/V1SubjectAccessReviewSpec.md b/kubernetes/docs/V1SubjectAccessReviewSpec.md deleted file mode 100644 index d6ea041f49..0000000000 --- a/kubernetes/docs/V1SubjectAccessReviewSpec.md +++ /dev/null @@ -1,12 +0,0 @@ -# KubernetesJsClient.V1SubjectAccessReviewSpec - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**extra** | **{String: [String]}** | Extra corresponds to the user.Info.GetExtra() method from the authenticator. Since that is input to the authorizer it needs a reflection here. | [optional] -**groups** | **[String]** | Groups is the groups you're testing for. | [optional] -**nonResourceAttributes** | [**V1NonResourceAttributes**](V1NonResourceAttributes.md) | NonResourceAttributes describes information for a non-resource access request | [optional] -**resourceAttributes** | [**V1ResourceAttributes**](V1ResourceAttributes.md) | ResourceAuthorizationAttributes describes information for a resource access request | [optional] -**user** | **String** | User is the user you're testing for. If you specify \"User\" but not \"Groups\", then is it interpreted as \"What if User were not a member of any groups | [optional] - - diff --git a/kubernetes/docs/V1SubjectAccessReviewStatus.md b/kubernetes/docs/V1SubjectAccessReviewStatus.md deleted file mode 100644 index 5e4ebe6a40..0000000000 --- a/kubernetes/docs/V1SubjectAccessReviewStatus.md +++ /dev/null @@ -1,10 +0,0 @@ -# KubernetesJsClient.V1SubjectAccessReviewStatus - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**allowed** | **Boolean** | Allowed is required. True if the action would be allowed, false otherwise. | -**evaluationError** | **String** | EvaluationError is an indication that some error occurred during the authorization check. It is entirely possible to get an error and be able to continue determine authorization status in spite of it. For instance, RBAC can be missing a role, but enough roles are still present and bound to reason about the request. | [optional] -**reason** | **String** | Reason is optional. It indicates why a request was allowed or denied. | [optional] - - diff --git a/kubernetes/docs/V1TCPSocketAction.md b/kubernetes/docs/V1TCPSocketAction.md deleted file mode 100644 index 5192ada2a9..0000000000 --- a/kubernetes/docs/V1TCPSocketAction.md +++ /dev/null @@ -1,8 +0,0 @@ -# KubernetesJsClient.V1TCPSocketAction - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**port** | **String** | Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. | - - diff --git a/kubernetes/docs/V1Taint.md b/kubernetes/docs/V1Taint.md deleted file mode 100644 index 20ddfa0c6a..0000000000 --- a/kubernetes/docs/V1Taint.md +++ /dev/null @@ -1,11 +0,0 @@ -# KubernetesJsClient.V1Taint - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**effect** | **String** | Required. The effect of the taint on pods that do not tolerate the taint. Valid effects are NoSchedule, PreferNoSchedule and NoExecute. | -**key** | **String** | Required. The taint key to be applied to a node. | -**timeAdded** | **Date** | TimeAdded represents the time at which the taint was added. It is only written for NoExecute taints. | [optional] -**value** | **String** | Required. The taint value corresponding to the taint key. | [optional] - - diff --git a/kubernetes/docs/V1TokenReview.md b/kubernetes/docs/V1TokenReview.md deleted file mode 100644 index e22904df52..0000000000 --- a/kubernetes/docs/V1TokenReview.md +++ /dev/null @@ -1,12 +0,0 @@ -# KubernetesJsClient.V1TokenReview - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**spec** | [**V1TokenReviewSpec**](V1TokenReviewSpec.md) | Spec holds information about the request being evaluated | -**status** | [**V1TokenReviewStatus**](V1TokenReviewStatus.md) | Status is filled in by the server and indicates whether the request can be authenticated. | [optional] - - diff --git a/kubernetes/docs/V1TokenReviewSpec.md b/kubernetes/docs/V1TokenReviewSpec.md deleted file mode 100644 index 7cd697f246..0000000000 --- a/kubernetes/docs/V1TokenReviewSpec.md +++ /dev/null @@ -1,8 +0,0 @@ -# KubernetesJsClient.V1TokenReviewSpec - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**token** | **String** | Token is the opaque bearer token. | [optional] - - diff --git a/kubernetes/docs/V1TokenReviewStatus.md b/kubernetes/docs/V1TokenReviewStatus.md deleted file mode 100644 index a5b7a6b4bc..0000000000 --- a/kubernetes/docs/V1TokenReviewStatus.md +++ /dev/null @@ -1,10 +0,0 @@ -# KubernetesJsClient.V1TokenReviewStatus - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**authenticated** | **Boolean** | Authenticated indicates that the token was associated with a known user. | [optional] -**error** | **String** | Error indicates that the token couldn't be checked | [optional] -**user** | [**V1UserInfo**](V1UserInfo.md) | User is the UserInfo associated with the provided token. | [optional] - - diff --git a/kubernetes/docs/V1Toleration.md b/kubernetes/docs/V1Toleration.md deleted file mode 100644 index 681afaaae0..0000000000 --- a/kubernetes/docs/V1Toleration.md +++ /dev/null @@ -1,12 +0,0 @@ -# KubernetesJsClient.V1Toleration - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**effect** | **String** | Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. | [optional] -**key** | **String** | Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. | [optional] -**operator** | **String** | Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. | [optional] -**tolerationSeconds** | **Number** | TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. | [optional] -**value** | **String** | Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. | [optional] - - diff --git a/kubernetes/docs/V1UserInfo.md b/kubernetes/docs/V1UserInfo.md deleted file mode 100644 index 4fc51b3f55..0000000000 --- a/kubernetes/docs/V1UserInfo.md +++ /dev/null @@ -1,11 +0,0 @@ -# KubernetesJsClient.V1UserInfo - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**extra** | **{String: [String]}** | Any additional information provided by the authenticator. | [optional] -**groups** | **[String]** | The names of groups this user is a part of. | [optional] -**uid** | **String** | A unique value that identifies this user across time. If this user is deleted and another user by the same name is added, they will have different UIDs. | [optional] -**username** | **String** | The name that uniquely identifies this user among all active users. | [optional] - - diff --git a/kubernetes/docs/V1Volume.md b/kubernetes/docs/V1Volume.md deleted file mode 100644 index ecb3e0ab95..0000000000 --- a/kubernetes/docs/V1Volume.md +++ /dev/null @@ -1,34 +0,0 @@ -# KubernetesJsClient.V1Volume - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**awsElasticBlockStore** | [**V1AWSElasticBlockStoreVolumeSource**](V1AWSElasticBlockStoreVolumeSource.md) | AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: http://kubernetes.io/docs/user-guide/volumes#awselasticblockstore | [optional] -**azureDisk** | [**V1AzureDiskVolumeSource**](V1AzureDiskVolumeSource.md) | AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. | [optional] -**azureFile** | [**V1AzureFileVolumeSource**](V1AzureFileVolumeSource.md) | AzureFile represents an Azure File Service mount on the host and bind mount to the pod. | [optional] -**cephfs** | [**V1CephFSVolumeSource**](V1CephFSVolumeSource.md) | CephFS represents a Ceph FS mount on the host that shares a pod's lifetime | [optional] -**cinder** | [**V1CinderVolumeSource**](V1CinderVolumeSource.md) | Cinder represents a cinder volume attached and mounted on kubelets host machine More info: http://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md | [optional] -**configMap** | [**V1ConfigMapVolumeSource**](V1ConfigMapVolumeSource.md) | ConfigMap represents a configMap that should populate this volume | [optional] -**downwardAPI** | [**V1DownwardAPIVolumeSource**](V1DownwardAPIVolumeSource.md) | DownwardAPI represents downward API about the pod that should populate this volume | [optional] -**emptyDir** | [**V1EmptyDirVolumeSource**](V1EmptyDirVolumeSource.md) | EmptyDir represents a temporary directory that shares a pod's lifetime. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir | [optional] -**fc** | [**V1FCVolumeSource**](V1FCVolumeSource.md) | FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. | [optional] -**flexVolume** | [**V1FlexVolumeSource**](V1FlexVolumeSource.md) | FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. This is an alpha feature and may change in future. | [optional] -**flocker** | [**V1FlockerVolumeSource**](V1FlockerVolumeSource.md) | Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running | [optional] -**gcePersistentDisk** | [**V1GCEPersistentDiskVolumeSource**](V1GCEPersistentDiskVolumeSource.md) | GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: http://kubernetes.io/docs/user-guide/volumes#gcepersistentdisk | [optional] -**gitRepo** | [**V1GitRepoVolumeSource**](V1GitRepoVolumeSource.md) | GitRepo represents a git repository at a particular revision. | [optional] -**glusterfs** | [**V1GlusterfsVolumeSource**](V1GlusterfsVolumeSource.md) | Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: http://releases.k8s.io/HEAD/examples/volumes/glusterfs/README.md | [optional] -**hostPath** | [**V1HostPathVolumeSource**](V1HostPathVolumeSource.md) | HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: http://kubernetes.io/docs/user-guide/volumes#hostpath | [optional] -**iscsi** | [**V1ISCSIVolumeSource**](V1ISCSIVolumeSource.md) | ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: http://releases.k8s.io/HEAD/examples/volumes/iscsi/README.md | [optional] -**name** | **String** | Volume's name. Must be a DNS_LABEL and unique within the pod. More info: http://kubernetes.io/docs/user-guide/identifiers#names | -**nfs** | [**V1NFSVolumeSource**](V1NFSVolumeSource.md) | NFS represents an NFS mount on the host that shares a pod's lifetime More info: http://kubernetes.io/docs/user-guide/volumes#nfs | [optional] -**persistentVolumeClaim** | [**V1PersistentVolumeClaimVolumeSource**](V1PersistentVolumeClaimVolumeSource.md) | PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#persistentvolumeclaims | [optional] -**photonPersistentDisk** | [**V1PhotonPersistentDiskVolumeSource**](V1PhotonPersistentDiskVolumeSource.md) | PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine | [optional] -**portworxVolume** | [**V1PortworxVolumeSource**](V1PortworxVolumeSource.md) | PortworxVolume represents a portworx volume attached and mounted on kubelets host machine | [optional] -**projected** | [**V1ProjectedVolumeSource**](V1ProjectedVolumeSource.md) | Items for all in one resources secrets, configmaps, and downward API | [optional] -**quobyte** | [**V1QuobyteVolumeSource**](V1QuobyteVolumeSource.md) | Quobyte represents a Quobyte mount on the host that shares a pod's lifetime | [optional] -**rbd** | [**V1RBDVolumeSource**](V1RBDVolumeSource.md) | RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: http://releases.k8s.io/HEAD/examples/volumes/rbd/README.md | [optional] -**scaleIO** | [**V1ScaleIOVolumeSource**](V1ScaleIOVolumeSource.md) | ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. | [optional] -**secret** | [**V1SecretVolumeSource**](V1SecretVolumeSource.md) | Secret represents a secret that should populate this volume. More info: http://kubernetes.io/docs/user-guide/volumes#secrets | [optional] -**vsphereVolume** | [**V1VsphereVirtualDiskVolumeSource**](V1VsphereVirtualDiskVolumeSource.md) | VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine | [optional] - - diff --git a/kubernetes/docs/V1VolumeMount.md b/kubernetes/docs/V1VolumeMount.md deleted file mode 100644 index 2e6d28f995..0000000000 --- a/kubernetes/docs/V1VolumeMount.md +++ /dev/null @@ -1,11 +0,0 @@ -# KubernetesJsClient.V1VolumeMount - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**mountPath** | **String** | Path within the container at which the volume should be mounted. Must not contain ':'. | -**name** | **String** | This must match the Name of a Volume. | -**readOnly** | **Boolean** | Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. | [optional] -**subPath** | **String** | Path within the volume from which the container's volume should be mounted. Defaults to \"\" (volume's root). | [optional] - - diff --git a/kubernetes/docs/V1VolumeProjection.md b/kubernetes/docs/V1VolumeProjection.md deleted file mode 100644 index c1a24bab1f..0000000000 --- a/kubernetes/docs/V1VolumeProjection.md +++ /dev/null @@ -1,10 +0,0 @@ -# KubernetesJsClient.V1VolumeProjection - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**configMap** | [**V1ConfigMapProjection**](V1ConfigMapProjection.md) | information about the configMap data to project | [optional] -**downwardAPI** | [**V1DownwardAPIProjection**](V1DownwardAPIProjection.md) | information about the downwardAPI data to project | [optional] -**secret** | [**V1SecretProjection**](V1SecretProjection.md) | information about the secret data to project | [optional] - - diff --git a/kubernetes/docs/V1VsphereVirtualDiskVolumeSource.md b/kubernetes/docs/V1VsphereVirtualDiskVolumeSource.md deleted file mode 100644 index 4daf3b448e..0000000000 --- a/kubernetes/docs/V1VsphereVirtualDiskVolumeSource.md +++ /dev/null @@ -1,9 +0,0 @@ -# KubernetesJsClient.V1VsphereVirtualDiskVolumeSource - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**fsType** | **String** | Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. | [optional] -**volumePath** | **String** | Path that identifies vSphere volume vmdk | - - diff --git a/kubernetes/docs/V1WatchEvent.md b/kubernetes/docs/V1WatchEvent.md deleted file mode 100644 index ff2f9253d6..0000000000 --- a/kubernetes/docs/V1WatchEvent.md +++ /dev/null @@ -1,9 +0,0 @@ -# KubernetesJsClient.V1WatchEvent - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**_object** | [**RuntimeRawExtension**](RuntimeRawExtension.md) | Object is: * If Type is Added or Modified: the new state of the object. * If Type is Deleted: the state of the object immediately before deletion. * If Type is Error: *Status is recommended; other types may make sense depending on context. | -**type** | **String** | | - - diff --git a/kubernetes/docs/V1WeightedPodAffinityTerm.md b/kubernetes/docs/V1WeightedPodAffinityTerm.md deleted file mode 100644 index 3cd27d63c0..0000000000 --- a/kubernetes/docs/V1WeightedPodAffinityTerm.md +++ /dev/null @@ -1,9 +0,0 @@ -# KubernetesJsClient.V1WeightedPodAffinityTerm - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**podAffinityTerm** | [**V1PodAffinityTerm**](V1PodAffinityTerm.md) | Required. A pod affinity term, associated with the corresponding weight. | -**weight** | **Number** | weight associated with matching the corresponding podAffinityTerm, in the range 1-100. | - - diff --git a/kubernetes/docs/V1alpha1ClusterRole.md b/kubernetes/docs/V1alpha1ClusterRole.md deleted file mode 100644 index e05598fef8..0000000000 --- a/kubernetes/docs/V1alpha1ClusterRole.md +++ /dev/null @@ -1,11 +0,0 @@ -# KubernetesJsClient.V1alpha1ClusterRole - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. | [optional] -**rules** | [**[V1alpha1PolicyRule]**](V1alpha1PolicyRule.md) | Rules holds all the PolicyRules for this ClusterRole | - - diff --git a/kubernetes/docs/V1alpha1ClusterRoleBinding.md b/kubernetes/docs/V1alpha1ClusterRoleBinding.md deleted file mode 100644 index 63d11056af..0000000000 --- a/kubernetes/docs/V1alpha1ClusterRoleBinding.md +++ /dev/null @@ -1,12 +0,0 @@ -# KubernetesJsClient.V1alpha1ClusterRoleBinding - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. | [optional] -**roleRef** | [**V1alpha1RoleRef**](V1alpha1RoleRef.md) | RoleRef can only reference a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. | -**subjects** | [**[V1alpha1Subject]**](V1alpha1Subject.md) | Subjects holds references to the objects the role applies to. | - - diff --git a/kubernetes/docs/V1alpha1ClusterRoleBindingList.md b/kubernetes/docs/V1alpha1ClusterRoleBindingList.md deleted file mode 100644 index 4e6991fc97..0000000000 --- a/kubernetes/docs/V1alpha1ClusterRoleBindingList.md +++ /dev/null @@ -1,11 +0,0 @@ -# KubernetesJsClient.V1alpha1ClusterRoleBindingList - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] -**items** | [**[V1alpha1ClusterRoleBinding]**](V1alpha1ClusterRoleBinding.md) | Items is a list of ClusterRoleBindings | -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard object's metadata. | [optional] - - diff --git a/kubernetes/docs/V1alpha1ClusterRoleList.md b/kubernetes/docs/V1alpha1ClusterRoleList.md deleted file mode 100644 index 13b4307954..0000000000 --- a/kubernetes/docs/V1alpha1ClusterRoleList.md +++ /dev/null @@ -1,11 +0,0 @@ -# KubernetesJsClient.V1alpha1ClusterRoleList - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] -**items** | [**[V1alpha1ClusterRole]**](V1alpha1ClusterRole.md) | Items is a list of ClusterRoles | -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard object's metadata. | [optional] - - diff --git a/kubernetes/docs/V1alpha1PodPreset.md b/kubernetes/docs/V1alpha1PodPreset.md deleted file mode 100644 index 381f81d690..0000000000 --- a/kubernetes/docs/V1alpha1PodPreset.md +++ /dev/null @@ -1,11 +0,0 @@ -# KubernetesJsClient.V1alpha1PodPreset - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**spec** | [**V1alpha1PodPresetSpec**](V1alpha1PodPresetSpec.md) | | [optional] - - diff --git a/kubernetes/docs/V1alpha1PodPresetList.md b/kubernetes/docs/V1alpha1PodPresetList.md deleted file mode 100644 index 3b8fc2db88..0000000000 --- a/kubernetes/docs/V1alpha1PodPresetList.md +++ /dev/null @@ -1,11 +0,0 @@ -# KubernetesJsClient.V1alpha1PodPresetList - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] -**items** | [**[V1alpha1PodPreset]**](V1alpha1PodPreset.md) | Items is a list of schema objects. | -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata | [optional] - - diff --git a/kubernetes/docs/V1alpha1PodPresetSpec.md b/kubernetes/docs/V1alpha1PodPresetSpec.md deleted file mode 100644 index 4818501eb2..0000000000 --- a/kubernetes/docs/V1alpha1PodPresetSpec.md +++ /dev/null @@ -1,12 +0,0 @@ -# KubernetesJsClient.V1alpha1PodPresetSpec - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**env** | [**[V1EnvVar]**](V1EnvVar.md) | Env defines the collection of EnvVar to inject into containers. | [optional] -**envFrom** | [**[V1EnvFromSource]**](V1EnvFromSource.md) | EnvFrom defines the collection of EnvFromSource to inject into containers. | [optional] -**selector** | [**V1LabelSelector**](V1LabelSelector.md) | Selector is a label query over a set of resources, in this case pods. Required. | [optional] -**volumeMounts** | [**[V1VolumeMount]**](V1VolumeMount.md) | VolumeMounts defines the collection of VolumeMount to inject into containers. | [optional] -**volumes** | [**[V1Volume]**](V1Volume.md) | Volumes defines the collection of Volume to inject into the pod. | [optional] - - diff --git a/kubernetes/docs/V1alpha1PolicyRule.md b/kubernetes/docs/V1alpha1PolicyRule.md deleted file mode 100644 index 45d1cfe4a0..0000000000 --- a/kubernetes/docs/V1alpha1PolicyRule.md +++ /dev/null @@ -1,12 +0,0 @@ -# KubernetesJsClient.V1alpha1PolicyRule - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiGroups** | **[String]** | APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. | [optional] -**nonResourceURLs** | **[String]** | NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path This name is intentionally different than the internal type so that the DefaultConvert works nicely and because the ordering may be different. Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules can either apply to API resources (such as \"pods\" or \"secrets\") or non-resource URL paths (such as \"/api\"), but not both. | [optional] -**resourceNames** | **[String]** | ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. | [optional] -**resources** | **[String]** | Resources is a list of resources this rule applies to. ResourceAll represents all resources. | [optional] -**verbs** | **[String]** | Verbs is a list of Verbs that apply to ALL the ResourceKinds and AttributeRestrictions contained in this rule. VerbAll represents all kinds. | - - diff --git a/kubernetes/docs/V1alpha1Role.md b/kubernetes/docs/V1alpha1Role.md deleted file mode 100644 index fb79cd1858..0000000000 --- a/kubernetes/docs/V1alpha1Role.md +++ /dev/null @@ -1,11 +0,0 @@ -# KubernetesJsClient.V1alpha1Role - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. | [optional] -**rules** | [**[V1alpha1PolicyRule]**](V1alpha1PolicyRule.md) | Rules holds all the PolicyRules for this Role | - - diff --git a/kubernetes/docs/V1alpha1RoleBinding.md b/kubernetes/docs/V1alpha1RoleBinding.md deleted file mode 100644 index 433a727556..0000000000 --- a/kubernetes/docs/V1alpha1RoleBinding.md +++ /dev/null @@ -1,12 +0,0 @@ -# KubernetesJsClient.V1alpha1RoleBinding - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. | [optional] -**roleRef** | [**V1alpha1RoleRef**](V1alpha1RoleRef.md) | RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. | -**subjects** | [**[V1alpha1Subject]**](V1alpha1Subject.md) | Subjects holds references to the objects the role applies to. | - - diff --git a/kubernetes/docs/V1alpha1RoleBindingList.md b/kubernetes/docs/V1alpha1RoleBindingList.md deleted file mode 100644 index 7611f9c391..0000000000 --- a/kubernetes/docs/V1alpha1RoleBindingList.md +++ /dev/null @@ -1,11 +0,0 @@ -# KubernetesJsClient.V1alpha1RoleBindingList - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] -**items** | [**[V1alpha1RoleBinding]**](V1alpha1RoleBinding.md) | Items is a list of RoleBindings | -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard object's metadata. | [optional] - - diff --git a/kubernetes/docs/V1alpha1RoleList.md b/kubernetes/docs/V1alpha1RoleList.md deleted file mode 100644 index cd8cdae9fa..0000000000 --- a/kubernetes/docs/V1alpha1RoleList.md +++ /dev/null @@ -1,11 +0,0 @@ -# KubernetesJsClient.V1alpha1RoleList - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] -**items** | [**[V1alpha1Role]**](V1alpha1Role.md) | Items is a list of Roles | -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard object's metadata. | [optional] - - diff --git a/kubernetes/docs/V1alpha1RoleRef.md b/kubernetes/docs/V1alpha1RoleRef.md deleted file mode 100644 index 3a6a358030..0000000000 --- a/kubernetes/docs/V1alpha1RoleRef.md +++ /dev/null @@ -1,10 +0,0 @@ -# KubernetesJsClient.V1alpha1RoleRef - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiGroup** | **String** | APIGroup is the group for the resource being referenced | -**kind** | **String** | Kind is the type of resource being referenced | -**name** | **String** | Name is the name of resource being referenced | - - diff --git a/kubernetes/docs/V1alpha1Subject.md b/kubernetes/docs/V1alpha1Subject.md deleted file mode 100644 index fbf3fd29bb..0000000000 --- a/kubernetes/docs/V1alpha1Subject.md +++ /dev/null @@ -1,11 +0,0 @@ -# KubernetesJsClient.V1alpha1Subject - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion holds the API group and version of the referenced subject. Defaults to \"v1\" for ServiceAccount subjects. Defaults to \"rbac.authorization.k8s.io/v1alpha1\" for User and Group subjects. | [optional] -**kind** | **String** | Kind of object being referenced. Values defined by this API group are \"User\", \"Group\", and \"ServiceAccount\". If the Authorizer does not recognized the kind value, the Authorizer should report an error. | -**name** | **String** | Name of the object being referenced. | -**namespace** | **String** | Namespace of the referenced object. If the object kind is non-namespace, such as \"User\" or \"Group\", and this value is not empty the Authorizer should report an error. | [optional] - - diff --git a/kubernetes/docs/V1beta1APIVersion.md b/kubernetes/docs/V1beta1APIVersion.md deleted file mode 100644 index 985eef3efa..0000000000 --- a/kubernetes/docs/V1beta1APIVersion.md +++ /dev/null @@ -1,8 +0,0 @@ -# KubernetesJsClient.V1beta1APIVersion - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | Name of this version (e.g. 'v1'). | [optional] - - diff --git a/kubernetes/docs/V1beta1CertificateSigningRequest.md b/kubernetes/docs/V1beta1CertificateSigningRequest.md deleted file mode 100644 index 231c1d12eb..0000000000 --- a/kubernetes/docs/V1beta1CertificateSigningRequest.md +++ /dev/null @@ -1,12 +0,0 @@ -# KubernetesJsClient.V1beta1CertificateSigningRequest - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**spec** | [**V1beta1CertificateSigningRequestSpec**](V1beta1CertificateSigningRequestSpec.md) | The certificate request itself and any additional information. | [optional] -**status** | [**V1beta1CertificateSigningRequestStatus**](V1beta1CertificateSigningRequestStatus.md) | Derived information about the request. | [optional] - - diff --git a/kubernetes/docs/V1beta1CertificateSigningRequestCondition.md b/kubernetes/docs/V1beta1CertificateSigningRequestCondition.md deleted file mode 100644 index ffd55a11dd..0000000000 --- a/kubernetes/docs/V1beta1CertificateSigningRequestCondition.md +++ /dev/null @@ -1,11 +0,0 @@ -# KubernetesJsClient.V1beta1CertificateSigningRequestCondition - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**lastUpdateTime** | **Date** | timestamp for the last update to this condition | [optional] -**message** | **String** | human readable message with details about the request state | [optional] -**reason** | **String** | brief reason for the request state | [optional] -**type** | **String** | request approval state, currently Approved or Denied. | - - diff --git a/kubernetes/docs/V1beta1CertificateSigningRequestList.md b/kubernetes/docs/V1beta1CertificateSigningRequestList.md deleted file mode 100644 index 28d1ee206e..0000000000 --- a/kubernetes/docs/V1beta1CertificateSigningRequestList.md +++ /dev/null @@ -1,11 +0,0 @@ -# KubernetesJsClient.V1beta1CertificateSigningRequestList - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] -**items** | [**[V1beta1CertificateSigningRequest]**](V1beta1CertificateSigningRequest.md) | | -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] - - diff --git a/kubernetes/docs/V1beta1CertificateSigningRequestSpec.md b/kubernetes/docs/V1beta1CertificateSigningRequestSpec.md deleted file mode 100644 index 15cb524821..0000000000 --- a/kubernetes/docs/V1beta1CertificateSigningRequestSpec.md +++ /dev/null @@ -1,13 +0,0 @@ -# KubernetesJsClient.V1beta1CertificateSigningRequestSpec - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**extra** | **{String: [String]}** | Extra information about the requesting user. See user.Info interface for details. | [optional] -**groups** | **[String]** | Group information about the requesting user. See user.Info interface for details. | [optional] -**request** | **String** | Base64-encoded PKCS#10 CSR data | -**uid** | **String** | UID information about the requesting user. See user.Info interface for details. | [optional] -**usages** | **[String]** | allowedUsages specifies a set of usage contexts the key will be valid for. See: https://tools.ietf.org/html/rfc5280#section-4.2.1.3 https://tools.ietf.org/html/rfc5280#section-4.2.1.12 | [optional] -**username** | **String** | Information about the requesting user. See user.Info interface for details. | [optional] - - diff --git a/kubernetes/docs/V1beta1CertificateSigningRequestStatus.md b/kubernetes/docs/V1beta1CertificateSigningRequestStatus.md deleted file mode 100644 index b6df800183..0000000000 --- a/kubernetes/docs/V1beta1CertificateSigningRequestStatus.md +++ /dev/null @@ -1,9 +0,0 @@ -# KubernetesJsClient.V1beta1CertificateSigningRequestStatus - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**certificate** | **String** | If request was approved, the controller will place the issued certificate here. | [optional] -**conditions** | [**[V1beta1CertificateSigningRequestCondition]**](V1beta1CertificateSigningRequestCondition.md) | Conditions applied to the request, such as approval or denial. | [optional] - - diff --git a/kubernetes/docs/V1beta1ClusterRole.md b/kubernetes/docs/V1beta1ClusterRole.md deleted file mode 100644 index 2294ecb83b..0000000000 --- a/kubernetes/docs/V1beta1ClusterRole.md +++ /dev/null @@ -1,11 +0,0 @@ -# KubernetesJsClient.V1beta1ClusterRole - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. | [optional] -**rules** | [**[V1beta1PolicyRule]**](V1beta1PolicyRule.md) | Rules holds all the PolicyRules for this ClusterRole | - - diff --git a/kubernetes/docs/V1beta1ClusterRoleBinding.md b/kubernetes/docs/V1beta1ClusterRoleBinding.md deleted file mode 100644 index 4e9722dadd..0000000000 --- a/kubernetes/docs/V1beta1ClusterRoleBinding.md +++ /dev/null @@ -1,12 +0,0 @@ -# KubernetesJsClient.V1beta1ClusterRoleBinding - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. | [optional] -**roleRef** | [**V1beta1RoleRef**](V1beta1RoleRef.md) | RoleRef can only reference a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. | -**subjects** | [**[V1beta1Subject]**](V1beta1Subject.md) | Subjects holds references to the objects the role applies to. | - - diff --git a/kubernetes/docs/V1beta1ClusterRoleBindingList.md b/kubernetes/docs/V1beta1ClusterRoleBindingList.md deleted file mode 100644 index 2442c85b03..0000000000 --- a/kubernetes/docs/V1beta1ClusterRoleBindingList.md +++ /dev/null @@ -1,11 +0,0 @@ -# KubernetesJsClient.V1beta1ClusterRoleBindingList - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] -**items** | [**[V1beta1ClusterRoleBinding]**](V1beta1ClusterRoleBinding.md) | Items is a list of ClusterRoleBindings | -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard object's metadata. | [optional] - - diff --git a/kubernetes/docs/V1beta1ClusterRoleList.md b/kubernetes/docs/V1beta1ClusterRoleList.md deleted file mode 100644 index 0f92974955..0000000000 --- a/kubernetes/docs/V1beta1ClusterRoleList.md +++ /dev/null @@ -1,11 +0,0 @@ -# KubernetesJsClient.V1beta1ClusterRoleList - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] -**items** | [**[V1beta1ClusterRole]**](V1beta1ClusterRole.md) | Items is a list of ClusterRoles | -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard object's metadata. | [optional] - - diff --git a/kubernetes/docs/V1beta1DaemonSet.md b/kubernetes/docs/V1beta1DaemonSet.md deleted file mode 100644 index e5d39ab300..0000000000 --- a/kubernetes/docs/V1beta1DaemonSet.md +++ /dev/null @@ -1,12 +0,0 @@ -# KubernetesJsClient.V1beta1DaemonSet - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata | [optional] -**spec** | [**V1beta1DaemonSetSpec**](V1beta1DaemonSetSpec.md) | The desired behavior of this daemon set. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status | [optional] -**status** | [**V1beta1DaemonSetStatus**](V1beta1DaemonSetStatus.md) | The current status of this daemon set. This data may be out of date by some window of time. Populated by the system. Read-only. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status | [optional] - - diff --git a/kubernetes/docs/V1beta1DaemonSetList.md b/kubernetes/docs/V1beta1DaemonSetList.md deleted file mode 100644 index 8765850028..0000000000 --- a/kubernetes/docs/V1beta1DaemonSetList.md +++ /dev/null @@ -1,11 +0,0 @@ -# KubernetesJsClient.V1beta1DaemonSetList - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] -**items** | [**[V1beta1DaemonSet]**](V1beta1DaemonSet.md) | A list of daemon sets. | -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata | [optional] - - diff --git a/kubernetes/docs/V1beta1DaemonSetSpec.md b/kubernetes/docs/V1beta1DaemonSetSpec.md deleted file mode 100644 index 952fcdcd94..0000000000 --- a/kubernetes/docs/V1beta1DaemonSetSpec.md +++ /dev/null @@ -1,12 +0,0 @@ -# KubernetesJsClient.V1beta1DaemonSetSpec - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**minReadySeconds** | **Number** | The minimum number of seconds for which a newly created DaemonSet pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready). | [optional] -**selector** | [**V1LabelSelector**](V1LabelSelector.md) | A label query over pods that are managed by the daemon set. Must match in order to be controlled. If empty, defaulted to labels on Pod template. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors | [optional] -**template** | [**V1PodTemplateSpec**](V1PodTemplateSpec.md) | An object that describes the pod that will be created. The DaemonSet will create exactly one copy of this pod on every node that matches the template's node selector (or on every node if no node selector is specified). More info: http://kubernetes.io/docs/user-guide/replication-controller#pod-template | -**templateGeneration** | **Number** | A sequence number representing a specific generation of the template. Populated by the system. It can be set only during the creation. | [optional] -**updateStrategy** | [**V1beta1DaemonSetUpdateStrategy**](V1beta1DaemonSetUpdateStrategy.md) | An update strategy to replace existing DaemonSet pods with new pods. | [optional] - - diff --git a/kubernetes/docs/V1beta1DaemonSetStatus.md b/kubernetes/docs/V1beta1DaemonSetStatus.md deleted file mode 100644 index 4df0d4278d..0000000000 --- a/kubernetes/docs/V1beta1DaemonSetStatus.md +++ /dev/null @@ -1,15 +0,0 @@ -# KubernetesJsClient.V1beta1DaemonSetStatus - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**currentNumberScheduled** | **Number** | The number of nodes that are running at least 1 daemon pod and are supposed to run the daemon pod. More info: http://releases.k8s.io/HEAD/docs/admin/daemons.md | -**desiredNumberScheduled** | **Number** | The total number of nodes that should be running the daemon pod (including nodes correctly running the daemon pod). More info: http://releases.k8s.io/HEAD/docs/admin/daemons.md | -**numberAvailable** | **Number** | The number of nodes that should be running the daemon pod and have one or more of the daemon pod running and available (ready for at least spec.minReadySeconds) | [optional] -**numberMisscheduled** | **Number** | The number of nodes that are running the daemon pod, but are not supposed to run the daemon pod. More info: http://releases.k8s.io/HEAD/docs/admin/daemons.md | -**numberReady** | **Number** | The number of nodes that should be running the daemon pod and have one or more of the daemon pod running and ready. | -**numberUnavailable** | **Number** | The number of nodes that should be running the daemon pod and have none of the daemon pod running and available (ready for at least spec.minReadySeconds) | [optional] -**observedGeneration** | **Number** | The most recent generation observed by the daemon set controller. | [optional] -**updatedNumberScheduled** | **Number** | The total number of nodes that are running updated daemon pod | [optional] - - diff --git a/kubernetes/docs/V1beta1DaemonSetUpdateStrategy.md b/kubernetes/docs/V1beta1DaemonSetUpdateStrategy.md deleted file mode 100644 index 74ddfc40f8..0000000000 --- a/kubernetes/docs/V1beta1DaemonSetUpdateStrategy.md +++ /dev/null @@ -1,9 +0,0 @@ -# KubernetesJsClient.V1beta1DaemonSetUpdateStrategy - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**rollingUpdate** | [**V1beta1RollingUpdateDaemonSet**](V1beta1RollingUpdateDaemonSet.md) | Rolling update config params. Present only if type = \"RollingUpdate\". | [optional] -**type** | **String** | Type of daemon set update. Can be \"RollingUpdate\" or \"OnDelete\". Default is OnDelete. | [optional] - - diff --git a/kubernetes/docs/V1beta1Eviction.md b/kubernetes/docs/V1beta1Eviction.md deleted file mode 100644 index 5e0c96a423..0000000000 --- a/kubernetes/docs/V1beta1Eviction.md +++ /dev/null @@ -1,11 +0,0 @@ -# KubernetesJsClient.V1beta1Eviction - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] -**deleteOptions** | [**V1DeleteOptions**](V1DeleteOptions.md) | DeleteOptions may be provided | [optional] -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | ObjectMeta describes the pod that is being evicted. | [optional] - - diff --git a/kubernetes/docs/V1beta1FSGroupStrategyOptions.md b/kubernetes/docs/V1beta1FSGroupStrategyOptions.md deleted file mode 100644 index 14a4675bad..0000000000 --- a/kubernetes/docs/V1beta1FSGroupStrategyOptions.md +++ /dev/null @@ -1,9 +0,0 @@ -# KubernetesJsClient.V1beta1FSGroupStrategyOptions - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**ranges** | [**[V1beta1IDRange]**](V1beta1IDRange.md) | Ranges are the allowed ranges of fs groups. If you would like to force a single fs group then supply a single range with the same start and end. | [optional] -**rule** | **String** | Rule is the strategy that will dictate what FSGroup is used in the SecurityContext. | [optional] - - diff --git a/kubernetes/docs/V1beta1HTTPIngressPath.md b/kubernetes/docs/V1beta1HTTPIngressPath.md deleted file mode 100644 index baa6e39016..0000000000 --- a/kubernetes/docs/V1beta1HTTPIngressPath.md +++ /dev/null @@ -1,9 +0,0 @@ -# KubernetesJsClient.V1beta1HTTPIngressPath - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**backend** | [**V1beta1IngressBackend**](V1beta1IngressBackend.md) | Backend defines the referenced service endpoint to which the traffic will be forwarded to. | -**path** | **String** | Path is an extended POSIX regex as defined by IEEE Std 1003.1, (i.e this follows the egrep/unix syntax, not the perl syntax) matched against the path of an incoming request. Currently it can contain characters disallowed from the conventional \"path\" part of a URL as defined by RFC 3986. Paths must begin with a '/'. If unspecified, the path defaults to a catch all sending traffic to the backend. | [optional] - - diff --git a/kubernetes/docs/V1beta1HTTPIngressRuleValue.md b/kubernetes/docs/V1beta1HTTPIngressRuleValue.md deleted file mode 100644 index dfbcd66cb5..0000000000 --- a/kubernetes/docs/V1beta1HTTPIngressRuleValue.md +++ /dev/null @@ -1,8 +0,0 @@ -# KubernetesJsClient.V1beta1HTTPIngressRuleValue - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**paths** | [**[V1beta1HTTPIngressPath]**](V1beta1HTTPIngressPath.md) | A collection of paths that map requests to backends. | - - diff --git a/kubernetes/docs/V1beta1HostPortRange.md b/kubernetes/docs/V1beta1HostPortRange.md deleted file mode 100644 index cdd924fd5e..0000000000 --- a/kubernetes/docs/V1beta1HostPortRange.md +++ /dev/null @@ -1,9 +0,0 @@ -# KubernetesJsClient.V1beta1HostPortRange - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**max** | **Number** | max is the end of the range, inclusive. | -**min** | **Number** | min is the start of the range, inclusive. | - - diff --git a/kubernetes/docs/V1beta1IDRange.md b/kubernetes/docs/V1beta1IDRange.md deleted file mode 100644 index ec9931a824..0000000000 --- a/kubernetes/docs/V1beta1IDRange.md +++ /dev/null @@ -1,9 +0,0 @@ -# KubernetesJsClient.V1beta1IDRange - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**max** | **Number** | Max is the end of the range, inclusive. | -**min** | **Number** | Min is the start of the range, inclusive. | - - diff --git a/kubernetes/docs/V1beta1Ingress.md b/kubernetes/docs/V1beta1Ingress.md deleted file mode 100644 index b0b04a3f4e..0000000000 --- a/kubernetes/docs/V1beta1Ingress.md +++ /dev/null @@ -1,12 +0,0 @@ -# KubernetesJsClient.V1beta1Ingress - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata | [optional] -**spec** | [**V1beta1IngressSpec**](V1beta1IngressSpec.md) | Spec is the desired state of the Ingress. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status | [optional] -**status** | [**V1beta1IngressStatus**](V1beta1IngressStatus.md) | Status is the current state of the Ingress. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status | [optional] - - diff --git a/kubernetes/docs/V1beta1IngressBackend.md b/kubernetes/docs/V1beta1IngressBackend.md deleted file mode 100644 index 969ef4bc50..0000000000 --- a/kubernetes/docs/V1beta1IngressBackend.md +++ /dev/null @@ -1,9 +0,0 @@ -# KubernetesJsClient.V1beta1IngressBackend - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**serviceName** | **String** | Specifies the name of the referenced service. | -**servicePort** | **String** | Specifies the port of the referenced service. | - - diff --git a/kubernetes/docs/V1beta1IngressList.md b/kubernetes/docs/V1beta1IngressList.md deleted file mode 100644 index 69a758dbf3..0000000000 --- a/kubernetes/docs/V1beta1IngressList.md +++ /dev/null @@ -1,11 +0,0 @@ -# KubernetesJsClient.V1beta1IngressList - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] -**items** | [**[V1beta1Ingress]**](V1beta1Ingress.md) | Items is the list of Ingress. | -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata | [optional] - - diff --git a/kubernetes/docs/V1beta1IngressRule.md b/kubernetes/docs/V1beta1IngressRule.md deleted file mode 100644 index d2080622ef..0000000000 --- a/kubernetes/docs/V1beta1IngressRule.md +++ /dev/null @@ -1,9 +0,0 @@ -# KubernetesJsClient.V1beta1IngressRule - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**host** | **String** | Host is the fully qualified domain name of a network host, as defined by RFC 3986. Note the following deviations from the \"host\" part of the URI as defined in the RFC: 1. IPs are not allowed. Currently an IngressRuleValue can only apply to the IP in the Spec of the parent Ingress. 2. The `:` delimiter is not respected because ports are not allowed. Currently the port of an Ingress is implicitly :80 for http and :443 for https. Both these may change in the future. Incoming requests are matched against the host before the IngressRuleValue. If the host is unspecified, the Ingress routes all traffic based on the specified IngressRuleValue. | [optional] -**http** | [**V1beta1HTTPIngressRuleValue**](V1beta1HTTPIngressRuleValue.md) | | [optional] - - diff --git a/kubernetes/docs/V1beta1IngressSpec.md b/kubernetes/docs/V1beta1IngressSpec.md deleted file mode 100644 index 86a3516e2f..0000000000 --- a/kubernetes/docs/V1beta1IngressSpec.md +++ /dev/null @@ -1,10 +0,0 @@ -# KubernetesJsClient.V1beta1IngressSpec - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**backend** | [**V1beta1IngressBackend**](V1beta1IngressBackend.md) | A default backend capable of servicing requests that don't match any rule. At least one of 'backend' or 'rules' must be specified. This field is optional to allow the loadbalancer controller or defaulting logic to specify a global default. | [optional] -**rules** | [**[V1beta1IngressRule]**](V1beta1IngressRule.md) | A list of host rules used to configure the Ingress. If unspecified, or no rule matches, all traffic is sent to the default backend. | [optional] -**tls** | [**[V1beta1IngressTLS]**](V1beta1IngressTLS.md) | TLS configuration. Currently the Ingress only supports a single TLS port, 443. If multiple members of this list specify different hosts, they will be multiplexed on the same port according to the hostname specified through the SNI TLS extension, if the ingress controller fulfilling the ingress supports SNI. | [optional] - - diff --git a/kubernetes/docs/V1beta1IngressStatus.md b/kubernetes/docs/V1beta1IngressStatus.md deleted file mode 100644 index c3cf8fd55f..0000000000 --- a/kubernetes/docs/V1beta1IngressStatus.md +++ /dev/null @@ -1,8 +0,0 @@ -# KubernetesJsClient.V1beta1IngressStatus - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**loadBalancer** | [**V1LoadBalancerStatus**](V1LoadBalancerStatus.md) | LoadBalancer contains the current status of the load-balancer. | [optional] - - diff --git a/kubernetes/docs/V1beta1IngressTLS.md b/kubernetes/docs/V1beta1IngressTLS.md deleted file mode 100644 index fceb303204..0000000000 --- a/kubernetes/docs/V1beta1IngressTLS.md +++ /dev/null @@ -1,9 +0,0 @@ -# KubernetesJsClient.V1beta1IngressTLS - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**hosts** | **[String]** | Hosts are a list of hosts included in the TLS certificate. The values in this list must match the name/s used in the tlsSecret. Defaults to the wildcard host setting for the loadbalancer controller fulfilling this Ingress, if left unspecified. | [optional] -**secretName** | **String** | SecretName is the name of the secret used to terminate SSL traffic on 443. Field is left optional to allow SSL routing based on SNI hostname alone. If the SNI host in a listener conflicts with the \"Host\" header field used by an IngressRule, the SNI host is used for termination and value of the Host header is used for routing. | [optional] - - diff --git a/kubernetes/docs/V1beta1LocalSubjectAccessReview.md b/kubernetes/docs/V1beta1LocalSubjectAccessReview.md deleted file mode 100644 index 4b3fefe958..0000000000 --- a/kubernetes/docs/V1beta1LocalSubjectAccessReview.md +++ /dev/null @@ -1,12 +0,0 @@ -# KubernetesJsClient.V1beta1LocalSubjectAccessReview - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**spec** | [**V1beta1SubjectAccessReviewSpec**](V1beta1SubjectAccessReviewSpec.md) | Spec holds information about the request being evaluated. spec.namespace must be equal to the namespace you made the request against. If empty, it is defaulted. | -**status** | [**V1beta1SubjectAccessReviewStatus**](V1beta1SubjectAccessReviewStatus.md) | Status is filled in by the server and indicates whether the request is allowed or not | [optional] - - diff --git a/kubernetes/docs/V1beta1NetworkPolicy.md b/kubernetes/docs/V1beta1NetworkPolicy.md deleted file mode 100644 index 0895762c11..0000000000 --- a/kubernetes/docs/V1beta1NetworkPolicy.md +++ /dev/null @@ -1,11 +0,0 @@ -# KubernetesJsClient.V1beta1NetworkPolicy - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata | [optional] -**spec** | [**V1beta1NetworkPolicySpec**](V1beta1NetworkPolicySpec.md) | Specification of the desired behavior for this NetworkPolicy. | [optional] - - diff --git a/kubernetes/docs/V1beta1NetworkPolicyIngressRule.md b/kubernetes/docs/V1beta1NetworkPolicyIngressRule.md deleted file mode 100644 index 74d993558f..0000000000 --- a/kubernetes/docs/V1beta1NetworkPolicyIngressRule.md +++ /dev/null @@ -1,9 +0,0 @@ -# KubernetesJsClient.V1beta1NetworkPolicyIngressRule - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**from** | [**[V1beta1NetworkPolicyPeer]**](V1beta1NetworkPolicyPeer.md) | List of sources which should be able to access the pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is not provided, this rule matches all sources (traffic not restricted by source). If this field is empty, this rule matches no sources (no traffic matches). If this field is present and contains at least on item, this rule allows traffic only if the traffic matches at least one item in the from list. | [optional] -**ports** | [**[V1beta1NetworkPolicyPort]**](V1beta1NetworkPolicyPort.md) | List of ports which should be made accessible on the pods selected for this rule. Each item in this list is combined using a logical OR. If this field is not provided, this rule matches all ports (traffic not restricted by port). If this field is empty, this rule matches no ports (no traffic matches). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list. | [optional] - - diff --git a/kubernetes/docs/V1beta1NetworkPolicyList.md b/kubernetes/docs/V1beta1NetworkPolicyList.md deleted file mode 100644 index e556b8010d..0000000000 --- a/kubernetes/docs/V1beta1NetworkPolicyList.md +++ /dev/null @@ -1,11 +0,0 @@ -# KubernetesJsClient.V1beta1NetworkPolicyList - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] -**items** | [**[V1beta1NetworkPolicy]**](V1beta1NetworkPolicy.md) | Items is a list of schema objects. | -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata | [optional] - - diff --git a/kubernetes/docs/V1beta1NetworkPolicyPeer.md b/kubernetes/docs/V1beta1NetworkPolicyPeer.md deleted file mode 100644 index 17f9ec411b..0000000000 --- a/kubernetes/docs/V1beta1NetworkPolicyPeer.md +++ /dev/null @@ -1,9 +0,0 @@ -# KubernetesJsClient.V1beta1NetworkPolicyPeer - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**namespaceSelector** | [**V1LabelSelector**](V1LabelSelector.md) | Selects Namespaces using cluster scoped-labels. This matches all pods in all namespaces selected by this label selector. This field follows standard label selector semantics. If omitted, this selector selects no namespaces. If present but empty, this selector selects all namespaces. | [optional] -**podSelector** | [**V1LabelSelector**](V1LabelSelector.md) | This is a label selector which selects Pods in this namespace. This field follows standard label selector semantics. If not provided, this selector selects no pods. If present but empty, this selector selects all pods in this namespace. | [optional] - - diff --git a/kubernetes/docs/V1beta1NetworkPolicyPort.md b/kubernetes/docs/V1beta1NetworkPolicyPort.md deleted file mode 100644 index 0b52cec7b6..0000000000 --- a/kubernetes/docs/V1beta1NetworkPolicyPort.md +++ /dev/null @@ -1,9 +0,0 @@ -# KubernetesJsClient.V1beta1NetworkPolicyPort - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**port** | **String** | If specified, the port on the given protocol. This can either be a numerical or named port on a pod. If this field is not provided, this matches all port names and numbers. If present, only traffic on the specified protocol AND port will be matched. | [optional] -**protocol** | **String** | Optional. The protocol (TCP or UDP) which traffic must match. If not specified, this field defaults to TCP. | [optional] - - diff --git a/kubernetes/docs/V1beta1NetworkPolicySpec.md b/kubernetes/docs/V1beta1NetworkPolicySpec.md deleted file mode 100644 index 9b573b7021..0000000000 --- a/kubernetes/docs/V1beta1NetworkPolicySpec.md +++ /dev/null @@ -1,9 +0,0 @@ -# KubernetesJsClient.V1beta1NetworkPolicySpec - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**ingress** | [**[V1beta1NetworkPolicyIngressRule]**](V1beta1NetworkPolicyIngressRule.md) | List of ingress rules to be applied to the selected pods. Traffic is allowed to a pod if namespace.networkPolicy.ingress.isolation is undefined and cluster policy allows it, OR if the traffic source is the pod's local node, OR if the traffic matches at least one ingress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy does not affect ingress isolation. If this field is present and contains at least one rule, this policy allows any traffic which matches at least one of the ingress rules in this list. | [optional] -**podSelector** | [**V1LabelSelector**](V1LabelSelector.md) | Selects the pods to which this NetworkPolicy object applies. The array of ingress rules is applied to any pods selected by this field. Multiple network policies can select the same set of pods. In this case, the ingress rules for each are combined additively. This field is NOT optional and follows standard label selector semantics. An empty podSelector matches all pods in this namespace. | - - diff --git a/kubernetes/docs/V1beta1NonResourceAttributes.md b/kubernetes/docs/V1beta1NonResourceAttributes.md deleted file mode 100644 index 488b7cce05..0000000000 --- a/kubernetes/docs/V1beta1NonResourceAttributes.md +++ /dev/null @@ -1,9 +0,0 @@ -# KubernetesJsClient.V1beta1NonResourceAttributes - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**path** | **String** | Path is the URL path of the request | [optional] -**verb** | **String** | Verb is the standard HTTP verb | [optional] - - diff --git a/kubernetes/docs/V1beta1PodDisruptionBudget.md b/kubernetes/docs/V1beta1PodDisruptionBudget.md deleted file mode 100644 index 84618a6842..0000000000 --- a/kubernetes/docs/V1beta1PodDisruptionBudget.md +++ /dev/null @@ -1,12 +0,0 @@ -# KubernetesJsClient.V1beta1PodDisruptionBudget - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**spec** | [**V1beta1PodDisruptionBudgetSpec**](V1beta1PodDisruptionBudgetSpec.md) | Specification of the desired behavior of the PodDisruptionBudget. | [optional] -**status** | [**V1beta1PodDisruptionBudgetStatus**](V1beta1PodDisruptionBudgetStatus.md) | Most recently observed status of the PodDisruptionBudget. | [optional] - - diff --git a/kubernetes/docs/V1beta1PodDisruptionBudgetList.md b/kubernetes/docs/V1beta1PodDisruptionBudgetList.md deleted file mode 100644 index d574a8420a..0000000000 --- a/kubernetes/docs/V1beta1PodDisruptionBudgetList.md +++ /dev/null @@ -1,11 +0,0 @@ -# KubernetesJsClient.V1beta1PodDisruptionBudgetList - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] -**items** | [**[V1beta1PodDisruptionBudget]**](V1beta1PodDisruptionBudget.md) | | -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] - - diff --git a/kubernetes/docs/V1beta1PodDisruptionBudgetSpec.md b/kubernetes/docs/V1beta1PodDisruptionBudgetSpec.md deleted file mode 100644 index e62dd4fb37..0000000000 --- a/kubernetes/docs/V1beta1PodDisruptionBudgetSpec.md +++ /dev/null @@ -1,9 +0,0 @@ -# KubernetesJsClient.V1beta1PodDisruptionBudgetSpec - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**minAvailable** | **String** | An eviction is allowed if at least \"minAvailable\" pods selected by \"selector\" will still be available after the eviction, i.e. even in the absence of the evicted pod. So for example you can prevent all voluntary evictions by specifying \"100%\". | [optional] -**selector** | [**V1LabelSelector**](V1LabelSelector.md) | Label query over pods whose evictions are managed by the disruption budget. | [optional] - - diff --git a/kubernetes/docs/V1beta1PodDisruptionBudgetStatus.md b/kubernetes/docs/V1beta1PodDisruptionBudgetStatus.md deleted file mode 100644 index b27d823698..0000000000 --- a/kubernetes/docs/V1beta1PodDisruptionBudgetStatus.md +++ /dev/null @@ -1,13 +0,0 @@ -# KubernetesJsClient.V1beta1PodDisruptionBudgetStatus - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**currentHealthy** | **Number** | current number of healthy pods | -**desiredHealthy** | **Number** | minimum desired number of healthy pods | -**disruptedPods** | **{String: Date}** | DisruptedPods contains information about pods whose eviction was processed by the API server eviction subresource handler but has not yet been observed by the PodDisruptionBudget controller. A pod will be in this map from the time when the API server processed the eviction request to the time when the pod is seen by PDB controller as having been marked for deletion (or after a timeout). The key in the map is the name of the pod and the value is the time when the API server processed the eviction request. If the deletion didn't occur and a pod is still there it will be removed from the list automatically by PodDisruptionBudget controller after some time. If everything goes smooth this map should be empty for the most of the time. Large number of entries in the map may indicate problems with pod deletions. | -**disruptionsAllowed** | **Number** | Number of pod disruptions that are currently allowed. | -**expectedPods** | **Number** | total number of pods counted by this disruption budget | -**observedGeneration** | **Number** | Most recent generation observed when updating this PDB status. PodDisruptionsAllowed and other status informatio is valid only if observedGeneration equals to PDB's object generation. | [optional] - - diff --git a/kubernetes/docs/V1beta1PodSecurityPolicy.md b/kubernetes/docs/V1beta1PodSecurityPolicy.md deleted file mode 100644 index 99ca895d79..0000000000 --- a/kubernetes/docs/V1beta1PodSecurityPolicy.md +++ /dev/null @@ -1,11 +0,0 @@ -# KubernetesJsClient.V1beta1PodSecurityPolicy - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata | [optional] -**spec** | [**V1beta1PodSecurityPolicySpec**](V1beta1PodSecurityPolicySpec.md) | spec defines the policy enforced. | [optional] - - diff --git a/kubernetes/docs/V1beta1PodSecurityPolicyList.md b/kubernetes/docs/V1beta1PodSecurityPolicyList.md deleted file mode 100644 index 0cbf81d3fc..0000000000 --- a/kubernetes/docs/V1beta1PodSecurityPolicyList.md +++ /dev/null @@ -1,11 +0,0 @@ -# KubernetesJsClient.V1beta1PodSecurityPolicyList - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] -**items** | [**[V1beta1PodSecurityPolicy]**](V1beta1PodSecurityPolicy.md) | Items is a list of schema objects. | -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata | [optional] - - diff --git a/kubernetes/docs/V1beta1PodSecurityPolicySpec.md b/kubernetes/docs/V1beta1PodSecurityPolicySpec.md deleted file mode 100644 index 311b05476b..0000000000 --- a/kubernetes/docs/V1beta1PodSecurityPolicySpec.md +++ /dev/null @@ -1,21 +0,0 @@ -# KubernetesJsClient.V1beta1PodSecurityPolicySpec - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**allowedCapabilities** | **[String]** | AllowedCapabilities is a list of capabilities that can be requested to add to the container. Capabilities in this field may be added at the pod author's discretion. You must not list a capability in both AllowedCapabilities and RequiredDropCapabilities. | [optional] -**defaultAddCapabilities** | **[String]** | DefaultAddCapabilities is the default set of capabilities that will be added to the container unless the pod spec specifically drops the capability. You may not list a capabiility in both DefaultAddCapabilities and RequiredDropCapabilities. | [optional] -**fsGroup** | [**V1beta1FSGroupStrategyOptions**](V1beta1FSGroupStrategyOptions.md) | FSGroup is the strategy that will dictate what fs group is used by the SecurityContext. | -**hostIPC** | **Boolean** | hostIPC determines if the policy allows the use of HostIPC in the pod spec. | [optional] -**hostNetwork** | **Boolean** | hostNetwork determines if the policy allows the use of HostNetwork in the pod spec. | [optional] -**hostPID** | **Boolean** | hostPID determines if the policy allows the use of HostPID in the pod spec. | [optional] -**hostPorts** | [**[V1beta1HostPortRange]**](V1beta1HostPortRange.md) | hostPorts determines which host port ranges are allowed to be exposed. | [optional] -**privileged** | **Boolean** | privileged determines if a pod can request to be run as privileged. | [optional] -**readOnlyRootFilesystem** | **Boolean** | ReadOnlyRootFilesystem when set to true will force containers to run with a read only root file system. If the container specifically requests to run with a non-read only root file system the PSP should deny the pod. If set to false the container may run with a read only root file system if it wishes but it will not be forced to. | [optional] -**requiredDropCapabilities** | **[String]** | RequiredDropCapabilities are the capabilities that will be dropped from the container. These are required to be dropped and cannot be added. | [optional] -**runAsUser** | [**V1beta1RunAsUserStrategyOptions**](V1beta1RunAsUserStrategyOptions.md) | runAsUser is the strategy that will dictate the allowable RunAsUser values that may be set. | -**seLinux** | [**V1beta1SELinuxStrategyOptions**](V1beta1SELinuxStrategyOptions.md) | seLinux is the strategy that will dictate the allowable labels that may be set. | -**supplementalGroups** | [**V1beta1SupplementalGroupsStrategyOptions**](V1beta1SupplementalGroupsStrategyOptions.md) | SupplementalGroups is the strategy that will dictate what supplemental groups are used by the SecurityContext. | -**volumes** | **[String]** | volumes is a white list of allowed volume plugins. Empty indicates that all plugins may be used. | [optional] - - diff --git a/kubernetes/docs/V1beta1PolicyRule.md b/kubernetes/docs/V1beta1PolicyRule.md deleted file mode 100644 index ec2849de7c..0000000000 --- a/kubernetes/docs/V1beta1PolicyRule.md +++ /dev/null @@ -1,12 +0,0 @@ -# KubernetesJsClient.V1beta1PolicyRule - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiGroups** | **[String]** | APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. | [optional] -**nonResourceURLs** | **[String]** | NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules can either apply to API resources (such as \"pods\" or \"secrets\") or non-resource URL paths (such as \"/api\"), but not both. | [optional] -**resourceNames** | **[String]** | ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. | [optional] -**resources** | **[String]** | Resources is a list of resources this rule applies to. ResourceAll represents all resources. | [optional] -**verbs** | **[String]** | Verbs is a list of Verbs that apply to ALL the ResourceKinds and AttributeRestrictions contained in this rule. VerbAll represents all kinds. | - - diff --git a/kubernetes/docs/V1beta1ReplicaSet.md b/kubernetes/docs/V1beta1ReplicaSet.md deleted file mode 100644 index 8ccc17cc18..0000000000 --- a/kubernetes/docs/V1beta1ReplicaSet.md +++ /dev/null @@ -1,12 +0,0 @@ -# KubernetesJsClient.V1beta1ReplicaSet - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | If the Labels of a ReplicaSet are empty, they are defaulted to be the same as the Pod(s) that the ReplicaSet manages. Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata | [optional] -**spec** | [**V1beta1ReplicaSetSpec**](V1beta1ReplicaSetSpec.md) | Spec defines the specification of the desired behavior of the ReplicaSet. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status | [optional] -**status** | [**V1beta1ReplicaSetStatus**](V1beta1ReplicaSetStatus.md) | Status is the most recently observed status of the ReplicaSet. This data may be out of date by some window of time. Populated by the system. Read-only. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status | [optional] - - diff --git a/kubernetes/docs/V1beta1ReplicaSetCondition.md b/kubernetes/docs/V1beta1ReplicaSetCondition.md deleted file mode 100644 index 58dda04fd2..0000000000 --- a/kubernetes/docs/V1beta1ReplicaSetCondition.md +++ /dev/null @@ -1,12 +0,0 @@ -# KubernetesJsClient.V1beta1ReplicaSetCondition - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**lastTransitionTime** | **Date** | The last time the condition transitioned from one status to another. | [optional] -**message** | **String** | A human readable message indicating details about the transition. | [optional] -**reason** | **String** | The reason for the condition's last transition. | [optional] -**status** | **String** | Status of the condition, one of True, False, Unknown. | -**type** | **String** | Type of replica set condition. | - - diff --git a/kubernetes/docs/V1beta1ReplicaSetList.md b/kubernetes/docs/V1beta1ReplicaSetList.md deleted file mode 100644 index dcabc91599..0000000000 --- a/kubernetes/docs/V1beta1ReplicaSetList.md +++ /dev/null @@ -1,11 +0,0 @@ -# KubernetesJsClient.V1beta1ReplicaSetList - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] -**items** | [**[V1beta1ReplicaSet]**](V1beta1ReplicaSet.md) | List of ReplicaSets. More info: http://kubernetes.io/docs/user-guide/replication-controller | -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] - - diff --git a/kubernetes/docs/V1beta1ReplicaSetSpec.md b/kubernetes/docs/V1beta1ReplicaSetSpec.md deleted file mode 100644 index 0a59847398..0000000000 --- a/kubernetes/docs/V1beta1ReplicaSetSpec.md +++ /dev/null @@ -1,11 +0,0 @@ -# KubernetesJsClient.V1beta1ReplicaSetSpec - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**minReadySeconds** | **Number** | Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) | [optional] -**replicas** | **Number** | Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: http://kubernetes.io/docs/user-guide/replication-controller#what-is-a-replication-controller | [optional] -**selector** | [**V1LabelSelector**](V1LabelSelector.md) | Selector is a label query over pods that should match the replica count. If the selector is empty, it is defaulted to the labels present on the pod template. Label keys and values that must match in order to be controlled by this replica set. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors | [optional] -**template** | [**V1PodTemplateSpec**](V1PodTemplateSpec.md) | Template is the object that describes the pod that will be created if insufficient replicas are detected. More info: http://kubernetes.io/docs/user-guide/replication-controller#pod-template | [optional] - - diff --git a/kubernetes/docs/V1beta1ReplicaSetStatus.md b/kubernetes/docs/V1beta1ReplicaSetStatus.md deleted file mode 100644 index 39c3f6e1cc..0000000000 --- a/kubernetes/docs/V1beta1ReplicaSetStatus.md +++ /dev/null @@ -1,13 +0,0 @@ -# KubernetesJsClient.V1beta1ReplicaSetStatus - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**availableReplicas** | **Number** | The number of available replicas (ready for at least minReadySeconds) for this replica set. | [optional] -**conditions** | [**[V1beta1ReplicaSetCondition]**](V1beta1ReplicaSetCondition.md) | Represents the latest available observations of a replica set's current state. | [optional] -**fullyLabeledReplicas** | **Number** | The number of pods that have labels matching the labels of the pod template of the replicaset. | [optional] -**observedGeneration** | **Number** | ObservedGeneration reflects the generation of the most recently observed ReplicaSet. | [optional] -**readyReplicas** | **Number** | The number of ready replicas for this replica set. | [optional] -**replicas** | **Number** | Replicas is the most recently oberved number of replicas. More info: http://kubernetes.io/docs/user-guide/replication-controller#what-is-a-replication-controller | - - diff --git a/kubernetes/docs/V1beta1ResourceAttributes.md b/kubernetes/docs/V1beta1ResourceAttributes.md deleted file mode 100644 index df4575354a..0000000000 --- a/kubernetes/docs/V1beta1ResourceAttributes.md +++ /dev/null @@ -1,14 +0,0 @@ -# KubernetesJsClient.V1beta1ResourceAttributes - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**group** | **String** | Group is the API Group of the Resource. \"*\" means all. | [optional] -**name** | **String** | Name is the name of the resource being requested for a \"get\" or deleted for a \"delete\". \"\" (empty) means all. | [optional] -**namespace** | **String** | Namespace is the namespace of the action being requested. Currently, there is no distinction between no namespace and all namespaces \"\" (empty) is defaulted for LocalSubjectAccessReviews \"\" (empty) is empty for cluster-scoped resources \"\" (empty) means \"all\" for namespace scoped resources from a SubjectAccessReview or SelfSubjectAccessReview | [optional] -**resource** | **String** | Resource is one of the existing resource types. \"*\" means all. | [optional] -**subresource** | **String** | Subresource is one of the existing resource types. \"\" means none. | [optional] -**verb** | **String** | Verb is a kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy. \"*\" means all. | [optional] -**version** | **String** | Version is the API Version of the Resource. \"*\" means all. | [optional] - - diff --git a/kubernetes/docs/V1beta1Role.md b/kubernetes/docs/V1beta1Role.md deleted file mode 100644 index fc7f266a3c..0000000000 --- a/kubernetes/docs/V1beta1Role.md +++ /dev/null @@ -1,11 +0,0 @@ -# KubernetesJsClient.V1beta1Role - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. | [optional] -**rules** | [**[V1beta1PolicyRule]**](V1beta1PolicyRule.md) | Rules holds all the PolicyRules for this Role | - - diff --git a/kubernetes/docs/V1beta1RoleBinding.md b/kubernetes/docs/V1beta1RoleBinding.md deleted file mode 100644 index 1c894811a6..0000000000 --- a/kubernetes/docs/V1beta1RoleBinding.md +++ /dev/null @@ -1,12 +0,0 @@ -# KubernetesJsClient.V1beta1RoleBinding - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. | [optional] -**roleRef** | [**V1beta1RoleRef**](V1beta1RoleRef.md) | RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. | -**subjects** | [**[V1beta1Subject]**](V1beta1Subject.md) | Subjects holds references to the objects the role applies to. | - - diff --git a/kubernetes/docs/V1beta1RoleBindingList.md b/kubernetes/docs/V1beta1RoleBindingList.md deleted file mode 100644 index 81cd7eb694..0000000000 --- a/kubernetes/docs/V1beta1RoleBindingList.md +++ /dev/null @@ -1,11 +0,0 @@ -# KubernetesJsClient.V1beta1RoleBindingList - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] -**items** | [**[V1beta1RoleBinding]**](V1beta1RoleBinding.md) | Items is a list of RoleBindings | -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard object's metadata. | [optional] - - diff --git a/kubernetes/docs/V1beta1RoleList.md b/kubernetes/docs/V1beta1RoleList.md deleted file mode 100644 index e5e4cf7434..0000000000 --- a/kubernetes/docs/V1beta1RoleList.md +++ /dev/null @@ -1,11 +0,0 @@ -# KubernetesJsClient.V1beta1RoleList - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] -**items** | [**[V1beta1Role]**](V1beta1Role.md) | Items is a list of Roles | -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard object's metadata. | [optional] - - diff --git a/kubernetes/docs/V1beta1RoleRef.md b/kubernetes/docs/V1beta1RoleRef.md deleted file mode 100644 index 8826f71090..0000000000 --- a/kubernetes/docs/V1beta1RoleRef.md +++ /dev/null @@ -1,10 +0,0 @@ -# KubernetesJsClient.V1beta1RoleRef - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiGroup** | **String** | APIGroup is the group for the resource being referenced | -**kind** | **String** | Kind is the type of resource being referenced | -**name** | **String** | Name is the name of resource being referenced | - - diff --git a/kubernetes/docs/V1beta1RollingUpdateDaemonSet.md b/kubernetes/docs/V1beta1RollingUpdateDaemonSet.md deleted file mode 100644 index 6bc82c1f10..0000000000 --- a/kubernetes/docs/V1beta1RollingUpdateDaemonSet.md +++ /dev/null @@ -1,8 +0,0 @@ -# KubernetesJsClient.V1beta1RollingUpdateDaemonSet - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**maxUnavailable** | **String** | The maximum number of DaemonSet pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of total number of DaemonSet pods at the start of the update (ex: 10%). Absolute number is calculated from percentage by rounding up. This cannot be 0. Default value is 1. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their pods stopped for an update at any given time. The update starts by stopping at most 30% of those DaemonSet pods and then brings up new DaemonSet pods in their place. Once the new pods are available, it then proceeds onto other DaemonSet pods, thus ensuring that at least 70% of original number of DaemonSet pods are available at all times during the update. | [optional] - - diff --git a/kubernetes/docs/V1beta1RunAsUserStrategyOptions.md b/kubernetes/docs/V1beta1RunAsUserStrategyOptions.md deleted file mode 100644 index 342a780391..0000000000 --- a/kubernetes/docs/V1beta1RunAsUserStrategyOptions.md +++ /dev/null @@ -1,9 +0,0 @@ -# KubernetesJsClient.V1beta1RunAsUserStrategyOptions - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**ranges** | [**[V1beta1IDRange]**](V1beta1IDRange.md) | Ranges are the allowed ranges of uids that may be used. | [optional] -**rule** | **String** | Rule is the strategy that will dictate the allowable RunAsUser values that may be set. | - - diff --git a/kubernetes/docs/V1beta1SELinuxStrategyOptions.md b/kubernetes/docs/V1beta1SELinuxStrategyOptions.md deleted file mode 100644 index 92b1eea021..0000000000 --- a/kubernetes/docs/V1beta1SELinuxStrategyOptions.md +++ /dev/null @@ -1,9 +0,0 @@ -# KubernetesJsClient.V1beta1SELinuxStrategyOptions - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**rule** | **String** | type is the strategy that will dictate the allowable labels that may be set. | -**seLinuxOptions** | [**V1SELinuxOptions**](V1SELinuxOptions.md) | seLinuxOptions required to run as; required for MustRunAs More info: http://releases.k8s.io/HEAD/docs/design/security_context.md#security-context | [optional] - - diff --git a/kubernetes/docs/V1beta1SelfSubjectAccessReview.md b/kubernetes/docs/V1beta1SelfSubjectAccessReview.md deleted file mode 100644 index a5dc0389e3..0000000000 --- a/kubernetes/docs/V1beta1SelfSubjectAccessReview.md +++ /dev/null @@ -1,12 +0,0 @@ -# KubernetesJsClient.V1beta1SelfSubjectAccessReview - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**spec** | [**V1beta1SelfSubjectAccessReviewSpec**](V1beta1SelfSubjectAccessReviewSpec.md) | Spec holds information about the request being evaluated. user and groups must be empty | -**status** | [**V1beta1SubjectAccessReviewStatus**](V1beta1SubjectAccessReviewStatus.md) | Status is filled in by the server and indicates whether the request is allowed or not | [optional] - - diff --git a/kubernetes/docs/V1beta1SelfSubjectAccessReviewSpec.md b/kubernetes/docs/V1beta1SelfSubjectAccessReviewSpec.md deleted file mode 100644 index 4035cd2f16..0000000000 --- a/kubernetes/docs/V1beta1SelfSubjectAccessReviewSpec.md +++ /dev/null @@ -1,9 +0,0 @@ -# KubernetesJsClient.V1beta1SelfSubjectAccessReviewSpec - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**nonResourceAttributes** | [**V1beta1NonResourceAttributes**](V1beta1NonResourceAttributes.md) | NonResourceAttributes describes information for a non-resource access request | [optional] -**resourceAttributes** | [**V1beta1ResourceAttributes**](V1beta1ResourceAttributes.md) | ResourceAuthorizationAttributes describes information for a resource access request | [optional] - - diff --git a/kubernetes/docs/V1beta1StatefulSet.md b/kubernetes/docs/V1beta1StatefulSet.md deleted file mode 100644 index 34e3dbaf14..0000000000 --- a/kubernetes/docs/V1beta1StatefulSet.md +++ /dev/null @@ -1,12 +0,0 @@ -# KubernetesJsClient.V1beta1StatefulSet - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**spec** | [**V1beta1StatefulSetSpec**](V1beta1StatefulSetSpec.md) | Spec defines the desired identities of pods in this set. | [optional] -**status** | [**V1beta1StatefulSetStatus**](V1beta1StatefulSetStatus.md) | Status is the current status of Pods in this StatefulSet. This data may be out of date by some window of time. | [optional] - - diff --git a/kubernetes/docs/V1beta1StatefulSetList.md b/kubernetes/docs/V1beta1StatefulSetList.md deleted file mode 100644 index 2650becbab..0000000000 --- a/kubernetes/docs/V1beta1StatefulSetList.md +++ /dev/null @@ -1,11 +0,0 @@ -# KubernetesJsClient.V1beta1StatefulSetList - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] -**items** | [**[V1beta1StatefulSet]**](V1beta1StatefulSet.md) | | -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] - - diff --git a/kubernetes/docs/V1beta1StatefulSetSpec.md b/kubernetes/docs/V1beta1StatefulSetSpec.md deleted file mode 100644 index cc77b8e953..0000000000 --- a/kubernetes/docs/V1beta1StatefulSetSpec.md +++ /dev/null @@ -1,12 +0,0 @@ -# KubernetesJsClient.V1beta1StatefulSetSpec - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**replicas** | **Number** | Replicas is the desired number of replicas of the given Template. These are replicas in the sense that they are instantiations of the same Template, but individual replicas also have a consistent identity. If unspecified, defaults to 1. | [optional] -**selector** | [**V1LabelSelector**](V1LabelSelector.md) | Selector is a label query over pods that should match the replica count. If empty, defaulted to labels on the pod template. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors | [optional] -**serviceName** | **String** | ServiceName is the name of the service that governs this StatefulSet. This service must exist before the StatefulSet, and is responsible for the network identity of the set. Pods get DNS/hostnames that follow the pattern: pod-specific-string.serviceName.default.svc.cluster.local where \"pod-specific-string\" is managed by the StatefulSet controller. | -**template** | [**V1PodTemplateSpec**](V1PodTemplateSpec.md) | Template is the object that describes the pod that will be created if insufficient replicas are detected. Each pod stamped out by the StatefulSet will fulfill this Template, but have a unique identity from the rest of the StatefulSet. | -**volumeClaimTemplates** | [**[V1PersistentVolumeClaim]**](V1PersistentVolumeClaim.md) | VolumeClaimTemplates is a list of claims that pods are allowed to reference. The StatefulSet controller is responsible for mapping network identities to claims in a way that maintains the identity of a pod. Every claim in this list must have at least one matching (by name) volumeMount in one container in the template. A claim in this list takes precedence over any volumes in the template, with the same name. | [optional] - - diff --git a/kubernetes/docs/V1beta1StatefulSetStatus.md b/kubernetes/docs/V1beta1StatefulSetStatus.md deleted file mode 100644 index da2fa1450b..0000000000 --- a/kubernetes/docs/V1beta1StatefulSetStatus.md +++ /dev/null @@ -1,9 +0,0 @@ -# KubernetesJsClient.V1beta1StatefulSetStatus - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**observedGeneration** | **Number** | most recent generation observed by this StatefulSet. | [optional] -**replicas** | **Number** | Replicas is the number of actual replicas. | - - diff --git a/kubernetes/docs/V1beta1StorageClass.md b/kubernetes/docs/V1beta1StorageClass.md deleted file mode 100644 index 1512ae7c05..0000000000 --- a/kubernetes/docs/V1beta1StorageClass.md +++ /dev/null @@ -1,12 +0,0 @@ -# KubernetesJsClient.V1beta1StorageClass - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata | [optional] -**parameters** | **{String: String}** | Parameters holds the parameters for the provisioner that should create volumes of this storage class. | [optional] -**provisioner** | **String** | Provisioner indicates the type of the provisioner. | - - diff --git a/kubernetes/docs/V1beta1StorageClassList.md b/kubernetes/docs/V1beta1StorageClassList.md deleted file mode 100644 index 157976cdf8..0000000000 --- a/kubernetes/docs/V1beta1StorageClassList.md +++ /dev/null @@ -1,11 +0,0 @@ -# KubernetesJsClient.V1beta1StorageClassList - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] -**items** | [**[V1beta1StorageClass]**](V1beta1StorageClass.md) | Items is the list of StorageClasses | -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata | [optional] - - diff --git a/kubernetes/docs/V1beta1Subject.md b/kubernetes/docs/V1beta1Subject.md deleted file mode 100644 index 46a03adcde..0000000000 --- a/kubernetes/docs/V1beta1Subject.md +++ /dev/null @@ -1,11 +0,0 @@ -# KubernetesJsClient.V1beta1Subject - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiGroup** | **String** | APIGroup holds the API group of the referenced subject. Defaults to \"\" for ServiceAccount subjects. Defaults to \"rbac.authorization.k8s.io\" for User and Group subjects. | [optional] -**kind** | **String** | Kind of object being referenced. Values defined by this API group are \"User\", \"Group\", and \"ServiceAccount\". If the Authorizer does not recognized the kind value, the Authorizer should report an error. | -**name** | **String** | Name of the object being referenced. | -**namespace** | **String** | Namespace of the referenced object. If the object kind is non-namespace, such as \"User\" or \"Group\", and this value is not empty the Authorizer should report an error. | [optional] - - diff --git a/kubernetes/docs/V1beta1SubjectAccessReview.md b/kubernetes/docs/V1beta1SubjectAccessReview.md deleted file mode 100644 index 9998540a35..0000000000 --- a/kubernetes/docs/V1beta1SubjectAccessReview.md +++ /dev/null @@ -1,12 +0,0 @@ -# KubernetesJsClient.V1beta1SubjectAccessReview - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**spec** | [**V1beta1SubjectAccessReviewSpec**](V1beta1SubjectAccessReviewSpec.md) | Spec holds information about the request being evaluated | -**status** | [**V1beta1SubjectAccessReviewStatus**](V1beta1SubjectAccessReviewStatus.md) | Status is filled in by the server and indicates whether the request is allowed or not | [optional] - - diff --git a/kubernetes/docs/V1beta1SubjectAccessReviewSpec.md b/kubernetes/docs/V1beta1SubjectAccessReviewSpec.md deleted file mode 100644 index de6b54b7f8..0000000000 --- a/kubernetes/docs/V1beta1SubjectAccessReviewSpec.md +++ /dev/null @@ -1,12 +0,0 @@ -# KubernetesJsClient.V1beta1SubjectAccessReviewSpec - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**extra** | **{String: [String]}** | Extra corresponds to the user.Info.GetExtra() method from the authenticator. Since that is input to the authorizer it needs a reflection here. | [optional] -**group** | **[String]** | Groups is the groups you're testing for. | [optional] -**nonResourceAttributes** | [**V1beta1NonResourceAttributes**](V1beta1NonResourceAttributes.md) | NonResourceAttributes describes information for a non-resource access request | [optional] -**resourceAttributes** | [**V1beta1ResourceAttributes**](V1beta1ResourceAttributes.md) | ResourceAuthorizationAttributes describes information for a resource access request | [optional] -**user** | **String** | User is the user you're testing for. If you specify \"User\" but not \"Group\", then is it interpreted as \"What if User were not a member of any groups | [optional] - - diff --git a/kubernetes/docs/V1beta1SubjectAccessReviewStatus.md b/kubernetes/docs/V1beta1SubjectAccessReviewStatus.md deleted file mode 100644 index e8d9560533..0000000000 --- a/kubernetes/docs/V1beta1SubjectAccessReviewStatus.md +++ /dev/null @@ -1,10 +0,0 @@ -# KubernetesJsClient.V1beta1SubjectAccessReviewStatus - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**allowed** | **Boolean** | Allowed is required. True if the action would be allowed, false otherwise. | -**evaluationError** | **String** | EvaluationError is an indication that some error occurred during the authorization check. It is entirely possible to get an error and be able to continue determine authorization status in spite of it. For instance, RBAC can be missing a role, but enough roles are still present and bound to reason about the request. | [optional] -**reason** | **String** | Reason is optional. It indicates why a request was allowed or denied. | [optional] - - diff --git a/kubernetes/docs/V1beta1SupplementalGroupsStrategyOptions.md b/kubernetes/docs/V1beta1SupplementalGroupsStrategyOptions.md deleted file mode 100644 index 496509722d..0000000000 --- a/kubernetes/docs/V1beta1SupplementalGroupsStrategyOptions.md +++ /dev/null @@ -1,9 +0,0 @@ -# KubernetesJsClient.V1beta1SupplementalGroupsStrategyOptions - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**ranges** | [**[V1beta1IDRange]**](V1beta1IDRange.md) | Ranges are the allowed ranges of supplemental groups. If you would like to force a single supplemental group then supply a single range with the same start and end. | [optional] -**rule** | **String** | Rule is the strategy that will dictate what supplemental groups is used in the SecurityContext. | [optional] - - diff --git a/kubernetes/docs/V1beta1ThirdPartyResource.md b/kubernetes/docs/V1beta1ThirdPartyResource.md deleted file mode 100644 index 790a3ee2ce..0000000000 --- a/kubernetes/docs/V1beta1ThirdPartyResource.md +++ /dev/null @@ -1,12 +0,0 @@ -# KubernetesJsClient.V1beta1ThirdPartyResource - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] -**description** | **String** | Description is the description of this object. | [optional] -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object metadata | [optional] -**versions** | [**[V1beta1APIVersion]**](V1beta1APIVersion.md) | Versions are versions for this third party object | [optional] - - diff --git a/kubernetes/docs/V1beta1ThirdPartyResourceList.md b/kubernetes/docs/V1beta1ThirdPartyResourceList.md deleted file mode 100644 index 07ca20b55c..0000000000 --- a/kubernetes/docs/V1beta1ThirdPartyResourceList.md +++ /dev/null @@ -1,11 +0,0 @@ -# KubernetesJsClient.V1beta1ThirdPartyResourceList - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] -**items** | [**[V1beta1ThirdPartyResource]**](V1beta1ThirdPartyResource.md) | Items is the list of ThirdPartyResources. | -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata. | [optional] - - diff --git a/kubernetes/docs/V1beta1TokenReview.md b/kubernetes/docs/V1beta1TokenReview.md deleted file mode 100644 index dcbcc519b8..0000000000 --- a/kubernetes/docs/V1beta1TokenReview.md +++ /dev/null @@ -1,12 +0,0 @@ -# KubernetesJsClient.V1beta1TokenReview - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**spec** | [**V1beta1TokenReviewSpec**](V1beta1TokenReviewSpec.md) | Spec holds information about the request being evaluated | -**status** | [**V1beta1TokenReviewStatus**](V1beta1TokenReviewStatus.md) | Status is filled in by the server and indicates whether the request can be authenticated. | [optional] - - diff --git a/kubernetes/docs/V1beta1TokenReviewSpec.md b/kubernetes/docs/V1beta1TokenReviewSpec.md deleted file mode 100644 index dc869b9843..0000000000 --- a/kubernetes/docs/V1beta1TokenReviewSpec.md +++ /dev/null @@ -1,8 +0,0 @@ -# KubernetesJsClient.V1beta1TokenReviewSpec - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**token** | **String** | Token is the opaque bearer token. | [optional] - - diff --git a/kubernetes/docs/V1beta1TokenReviewStatus.md b/kubernetes/docs/V1beta1TokenReviewStatus.md deleted file mode 100644 index 140bdd01a6..0000000000 --- a/kubernetes/docs/V1beta1TokenReviewStatus.md +++ /dev/null @@ -1,10 +0,0 @@ -# KubernetesJsClient.V1beta1TokenReviewStatus - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**authenticated** | **Boolean** | Authenticated indicates that the token was associated with a known user. | [optional] -**error** | **String** | Error indicates that the token couldn't be checked | [optional] -**user** | [**V1beta1UserInfo**](V1beta1UserInfo.md) | User is the UserInfo associated with the provided token. | [optional] - - diff --git a/kubernetes/docs/V1beta1UserInfo.md b/kubernetes/docs/V1beta1UserInfo.md deleted file mode 100644 index ccc6b1c870..0000000000 --- a/kubernetes/docs/V1beta1UserInfo.md +++ /dev/null @@ -1,11 +0,0 @@ -# KubernetesJsClient.V1beta1UserInfo - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**extra** | **{String: [String]}** | Any additional information provided by the authenticator. | [optional] -**groups** | **[String]** | The names of groups this user is a part of. | [optional] -**uid** | **String** | A unique value that identifies this user across time. If this user is deleted and another user by the same name is added, they will have different UIDs. | [optional] -**username** | **String** | The name that uniquely identifies this user among all active users. | [optional] - - diff --git a/kubernetes/docs/V2alpha1CronJob.md b/kubernetes/docs/V2alpha1CronJob.md deleted file mode 100644 index ffaeba59a4..0000000000 --- a/kubernetes/docs/V2alpha1CronJob.md +++ /dev/null @@ -1,12 +0,0 @@ -# KubernetesJsClient.V2alpha1CronJob - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata | [optional] -**spec** | [**V2alpha1CronJobSpec**](V2alpha1CronJobSpec.md) | Spec is a structure defining the expected behavior of a job, including the schedule. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status | [optional] -**status** | [**V2alpha1CronJobStatus**](V2alpha1CronJobStatus.md) | Status is a structure describing current status of a job. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status | [optional] - - diff --git a/kubernetes/docs/V2alpha1CronJobList.md b/kubernetes/docs/V2alpha1CronJobList.md deleted file mode 100644 index 84154e2c9e..0000000000 --- a/kubernetes/docs/V2alpha1CronJobList.md +++ /dev/null @@ -1,11 +0,0 @@ -# KubernetesJsClient.V2alpha1CronJobList - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] -**items** | [**[V2alpha1CronJob]**](V2alpha1CronJob.md) | Items is the list of CronJob. | -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata | [optional] - - diff --git a/kubernetes/docs/V2alpha1CronJobSpec.md b/kubernetes/docs/V2alpha1CronJobSpec.md deleted file mode 100644 index a7fdcb71ef..0000000000 --- a/kubernetes/docs/V2alpha1CronJobSpec.md +++ /dev/null @@ -1,14 +0,0 @@ -# KubernetesJsClient.V2alpha1CronJobSpec - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**concurrencyPolicy** | **String** | ConcurrencyPolicy specifies how to treat concurrent executions of a Job. Defaults to Allow. | [optional] -**failedJobsHistoryLimit** | **Number** | The number of failed finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified. | [optional] -**jobTemplate** | [**V2alpha1JobTemplateSpec**](V2alpha1JobTemplateSpec.md) | JobTemplate is the object that describes the job that will be created when executing a CronJob. | -**schedule** | **String** | Schedule contains the schedule in Cron format, see https://en.wikipedia.org/wiki/Cron. | -**startingDeadlineSeconds** | **Number** | Optional deadline in seconds for starting the job if it misses scheduled time for any reason. Missed jobs executions will be counted as failed ones. | [optional] -**successfulJobsHistoryLimit** | **Number** | The number of successful finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified. | [optional] -**suspend** | **Boolean** | Suspend flag tells the controller to suspend subsequent executions, it does not apply to already started executions. Defaults to false. | [optional] - - diff --git a/kubernetes/docs/V2alpha1CronJobStatus.md b/kubernetes/docs/V2alpha1CronJobStatus.md deleted file mode 100644 index 4f25926265..0000000000 --- a/kubernetes/docs/V2alpha1CronJobStatus.md +++ /dev/null @@ -1,9 +0,0 @@ -# KubernetesJsClient.V2alpha1CronJobStatus - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**active** | [**[V1ObjectReference]**](V1ObjectReference.md) | Active holds pointers to currently running jobs. | [optional] -**lastScheduleTime** | **Date** | LastScheduleTime keeps information of when was the last time the job was successfully scheduled. | [optional] - - diff --git a/kubernetes/docs/V2alpha1CrossVersionObjectReference.md b/kubernetes/docs/V2alpha1CrossVersionObjectReference.md deleted file mode 100644 index 71af9f843a..0000000000 --- a/kubernetes/docs/V2alpha1CrossVersionObjectReference.md +++ /dev/null @@ -1,10 +0,0 @@ -# KubernetesJsClient.V2alpha1CrossVersionObjectReference - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | API version of the referent | [optional] -**kind** | **String** | Kind of the referent; More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds\" | -**name** | **String** | Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names | - - diff --git a/kubernetes/docs/V2alpha1HorizontalPodAutoscaler.md b/kubernetes/docs/V2alpha1HorizontalPodAutoscaler.md deleted file mode 100644 index a6ef965657..0000000000 --- a/kubernetes/docs/V2alpha1HorizontalPodAutoscaler.md +++ /dev/null @@ -1,12 +0,0 @@ -# KubernetesJsClient.V2alpha1HorizontalPodAutoscaler - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | metadata is the standard object metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata | [optional] -**spec** | [**V2alpha1HorizontalPodAutoscalerSpec**](V2alpha1HorizontalPodAutoscalerSpec.md) | spec is the specification for the behaviour of the autoscaler. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status. | [optional] -**status** | [**V2alpha1HorizontalPodAutoscalerStatus**](V2alpha1HorizontalPodAutoscalerStatus.md) | status is the current information about the autoscaler. | [optional] - - diff --git a/kubernetes/docs/V2alpha1HorizontalPodAutoscalerList.md b/kubernetes/docs/V2alpha1HorizontalPodAutoscalerList.md deleted file mode 100644 index 5d1fed89ae..0000000000 --- a/kubernetes/docs/V2alpha1HorizontalPodAutoscalerList.md +++ /dev/null @@ -1,11 +0,0 @@ -# KubernetesJsClient.V2alpha1HorizontalPodAutoscalerList - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] -**items** | [**[V2alpha1HorizontalPodAutoscaler]**](V2alpha1HorizontalPodAutoscaler.md) | items is the list of horizontal pod autoscaler objects. | -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | metadata is the standard list metadata. | [optional] - - diff --git a/kubernetes/docs/V2alpha1HorizontalPodAutoscalerSpec.md b/kubernetes/docs/V2alpha1HorizontalPodAutoscalerSpec.md deleted file mode 100644 index 5efbaadcc2..0000000000 --- a/kubernetes/docs/V2alpha1HorizontalPodAutoscalerSpec.md +++ /dev/null @@ -1,11 +0,0 @@ -# KubernetesJsClient.V2alpha1HorizontalPodAutoscalerSpec - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**maxReplicas** | **Number** | maxReplicas is the upper limit for the number of replicas to which the autoscaler can scale up. It cannot be less that minReplicas. | -**metrics** | [**[V2alpha1MetricSpec]**](V2alpha1MetricSpec.md) | metrics contains the specifications for which to use to calculate the desired replica count (the maximum replica count across all metrics will be used). The desired replica count is calculated multiplying the ratio between the target value and the current value by the current number of pods. Ergo, metrics used must decrease as the pod count is increased, and vice-versa. See the individual metric source types for more information about how each type of metric must respond. | [optional] -**minReplicas** | **Number** | minReplicas is the lower limit for the number of replicas to which the autoscaler can scale down. It defaults to 1 pod. | [optional] -**scaleTargetRef** | [**V2alpha1CrossVersionObjectReference**](V2alpha1CrossVersionObjectReference.md) | scaleTargetRef points to the target resource to scale, and is used to the pods for which metrics should be collected, as well as to actually change the replica count. | - - diff --git a/kubernetes/docs/V2alpha1HorizontalPodAutoscalerStatus.md b/kubernetes/docs/V2alpha1HorizontalPodAutoscalerStatus.md deleted file mode 100644 index b7de803615..0000000000 --- a/kubernetes/docs/V2alpha1HorizontalPodAutoscalerStatus.md +++ /dev/null @@ -1,12 +0,0 @@ -# KubernetesJsClient.V2alpha1HorizontalPodAutoscalerStatus - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**currentMetrics** | [**[V2alpha1MetricStatus]**](V2alpha1MetricStatus.md) | currentMetrics is the last read state of the metrics used by this autoscaler. | -**currentReplicas** | **Number** | currentReplicas is current number of replicas of pods managed by this autoscaler, as last seen by the autoscaler. | -**desiredReplicas** | **Number** | desiredReplicas is the desired number of replicas of pods managed by this autoscaler, as last calculated by the autoscaler. | -**lastScaleTime** | **Date** | lastScaleTime is the last time the HorizontalPodAutoscaler scaled the number of pods, used by the autoscaler to control how often the number of pods is changed. | [optional] -**observedGeneration** | **Number** | observedGeneration is the most recent generation observed by this autoscaler. | [optional] - - diff --git a/kubernetes/docs/V2alpha1JobTemplateSpec.md b/kubernetes/docs/V2alpha1JobTemplateSpec.md deleted file mode 100644 index e0c60f7d0c..0000000000 --- a/kubernetes/docs/V2alpha1JobTemplateSpec.md +++ /dev/null @@ -1,9 +0,0 @@ -# KubernetesJsClient.V2alpha1JobTemplateSpec - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata of the jobs created from this template. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata | [optional] -**spec** | [**V1JobSpec**](V1JobSpec.md) | Specification of the desired behavior of the job. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status | [optional] - - diff --git a/kubernetes/docs/V2alpha1MetricSpec.md b/kubernetes/docs/V2alpha1MetricSpec.md deleted file mode 100644 index 8b7617a697..0000000000 --- a/kubernetes/docs/V2alpha1MetricSpec.md +++ /dev/null @@ -1,11 +0,0 @@ -# KubernetesJsClient.V2alpha1MetricSpec - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**_object** | [**V2alpha1ObjectMetricSource**](V2alpha1ObjectMetricSource.md) | object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object). | [optional] -**pods** | [**V2alpha1PodsMetricSource**](V2alpha1PodsMetricSource.md) | pods refers to a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value. | [optional] -**resource** | [**V2alpha1ResourceMetricSource**](V2alpha1ResourceMetricSource.md) | resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source. | [optional] -**type** | **String** | type is the type of metric source. It should match one of the fields below. | - - diff --git a/kubernetes/docs/V2alpha1MetricStatus.md b/kubernetes/docs/V2alpha1MetricStatus.md deleted file mode 100644 index db9f23c2e7..0000000000 --- a/kubernetes/docs/V2alpha1MetricStatus.md +++ /dev/null @@ -1,11 +0,0 @@ -# KubernetesJsClient.V2alpha1MetricStatus - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**_object** | [**V2alpha1ObjectMetricStatus**](V2alpha1ObjectMetricStatus.md) | object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object). | [optional] -**pods** | [**V2alpha1PodsMetricStatus**](V2alpha1PodsMetricStatus.md) | pods refers to a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value. | [optional] -**resource** | [**V2alpha1ResourceMetricStatus**](V2alpha1ResourceMetricStatus.md) | resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source. | [optional] -**type** | **String** | type is the type of metric source. It will match one of the fields below. | - - diff --git a/kubernetes/docs/V2alpha1ObjectMetricSource.md b/kubernetes/docs/V2alpha1ObjectMetricSource.md deleted file mode 100644 index df977ea53c..0000000000 --- a/kubernetes/docs/V2alpha1ObjectMetricSource.md +++ /dev/null @@ -1,10 +0,0 @@ -# KubernetesJsClient.V2alpha1ObjectMetricSource - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**metricName** | **String** | metricName is the name of the metric in question. | -**target** | [**V2alpha1CrossVersionObjectReference**](V2alpha1CrossVersionObjectReference.md) | target is the described Kubernetes object. | -**targetValue** | **String** | targetValue is the target value of the metric (as a quantity). | - - diff --git a/kubernetes/docs/V2alpha1ObjectMetricStatus.md b/kubernetes/docs/V2alpha1ObjectMetricStatus.md deleted file mode 100644 index c8124365f6..0000000000 --- a/kubernetes/docs/V2alpha1ObjectMetricStatus.md +++ /dev/null @@ -1,10 +0,0 @@ -# KubernetesJsClient.V2alpha1ObjectMetricStatus - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**currentValue** | **String** | currentValue is the current value of the metric (as a quantity). | -**metricName** | **String** | metricName is the name of the metric in question. | -**target** | [**V2alpha1CrossVersionObjectReference**](V2alpha1CrossVersionObjectReference.md) | target is the described Kubernetes object. | - - diff --git a/kubernetes/docs/V2alpha1PodsMetricSource.md b/kubernetes/docs/V2alpha1PodsMetricSource.md deleted file mode 100644 index 689891fdd9..0000000000 --- a/kubernetes/docs/V2alpha1PodsMetricSource.md +++ /dev/null @@ -1,9 +0,0 @@ -# KubernetesJsClient.V2alpha1PodsMetricSource - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**metricName** | **String** | metricName is the name of the metric in question | -**targetAverageValue** | **String** | targetAverageValue is the target value of the average of the metric across all relevant pods (as a quantity) | - - diff --git a/kubernetes/docs/V2alpha1PodsMetricStatus.md b/kubernetes/docs/V2alpha1PodsMetricStatus.md deleted file mode 100644 index 06041f7d08..0000000000 --- a/kubernetes/docs/V2alpha1PodsMetricStatus.md +++ /dev/null @@ -1,9 +0,0 @@ -# KubernetesJsClient.V2alpha1PodsMetricStatus - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**currentAverageValue** | **String** | currentAverageValue is the current value of the average of the metric across all relevant pods (as a quantity) | -**metricName** | **String** | metricName is the name of the metric in question | - - diff --git a/kubernetes/docs/V2alpha1ResourceMetricSource.md b/kubernetes/docs/V2alpha1ResourceMetricSource.md deleted file mode 100644 index 68d1bebd33..0000000000 --- a/kubernetes/docs/V2alpha1ResourceMetricSource.md +++ /dev/null @@ -1,10 +0,0 @@ -# KubernetesJsClient.V2alpha1ResourceMetricSource - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | name is the name of the resource in question. | -**targetAverageUtilization** | **Number** | targetAverageUtilization is the target value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. | [optional] -**targetAverageValue** | **String** | targetAverageValue is the the target value of the average of the resource metric across all relevant pods, as a raw value (instead of as a percentage of the request), similar to the \"pods\" metric source type. | [optional] - - diff --git a/kubernetes/docs/V2alpha1ResourceMetricStatus.md b/kubernetes/docs/V2alpha1ResourceMetricStatus.md deleted file mode 100644 index e701b11fa5..0000000000 --- a/kubernetes/docs/V2alpha1ResourceMetricStatus.md +++ /dev/null @@ -1,10 +0,0 @@ -# KubernetesJsClient.V2alpha1ResourceMetricStatus - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**currentAverageUtilization** | **Number** | currentAverageUtilization is the current value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. It will only be present if `targetAverageValue` was set in the corresponding metric specification. | [optional] -**currentAverageValue** | **String** | currentAverageValue is the the current value of the average of the resource metric across all relevant pods, as a raw value (instead of as a percentage of the request), similar to the \"pods\" metric source type. It will always be set, regardless of the corresponding metric specification. | -**name** | **String** | name is the name of the resource in question. | - - diff --git a/kubernetes/docs/VersionApi.md b/kubernetes/docs/VersionApi.md deleted file mode 100644 index d465ed248f..0000000000 --- a/kubernetes/docs/VersionApi.md +++ /dev/null @@ -1,56 +0,0 @@ -# KubernetesJsClient.VersionApi - -All URIs are relative to *https://localhost* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**getCode**](VersionApi.md#getCode) | **GET** /version/ | - - - -# **getCode** -> VersionInfo getCode() - - - -get the code version - -### Example -```javascript -var KubernetesJsClient = require('kubernetes-js-kubernetes.client'); -var defaultClient = KubernetesJsClient.ApiClient.default; - -// Configure API key authorization: BearerToken -var BearerToken = defaultClient.authentications['BearerToken']; -BearerToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.apiKeyPrefix = 'Token'; - -var apiInstance = new KubernetesJsClient.VersionApi(); - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.getCode(callback); -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -[**VersionInfo**](VersionInfo.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - diff --git a/kubernetes/docs/VersionInfo.md b/kubernetes/docs/VersionInfo.md deleted file mode 100644 index dfc525a09f..0000000000 --- a/kubernetes/docs/VersionInfo.md +++ /dev/null @@ -1,16 +0,0 @@ -# KubernetesJsClient.VersionInfo - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**buildDate** | **String** | | -**compiler** | **String** | | -**gitCommit** | **String** | | -**gitTreeState** | **String** | | -**gitVersion** | **String** | | -**goVersion** | **String** | | -**major** | **String** | | -**minor** | **String** | | -**platform** | **String** | | - - diff --git a/kubernetes/git_push.sh b/kubernetes/git_push.sh deleted file mode 100644 index 1be1b534db..0000000000 --- a/kubernetes/git_push.sh +++ /dev/null @@ -1,52 +0,0 @@ -#!/bin/sh -# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ -# -# Usage example: /bin/sh ./git_push.sh wing328 swagger-petstore-perl "minor update" - -git_user_id=$1 -git_repo_id=$2 -release_note=$3 - -if [ "$git_user_id" = "" ]; then - git_user_id="kubernetes-incubator" - echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" -fi - -if [ "$git_repo_id" = "" ]; then - git_repo_id="client-javascript" - echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id" -fi - -if [ "$release_note" = "" ]; then - release_note="Minor update" - echo "[INFO] No command line input provided. Set \$release_note to $release_note" -fi - -# Initialize the local directory as a Git repository -git init - -# Adds the files in the local repository and stages them for commit. -git add . - -# Commits the tracked changes and prepares them to be pushed to a remote repository. -git commit -m "$release_note" - -# Sets the new remote -git_remote=`git remote` -if [ "$git_remote" = "" ]; then # git remote not defined - - if [ "$GIT_TOKEN" = "" ]; then - echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the Git credential in your environment." - git remote add origin https://github.com/${git_user_id}/${git_repo_id}.git - else - git remote add origin https://${git_user_id}:${GIT_TOKEN}@github.com/${git_user_id}/${git_repo_id}.git - fi - -fi - -git pull origin master - -# Pushes (Forces) the changes in the local repository up to the remote repository -echo "Git pushing to https://github.com/${git_user_id}/${git_repo_id}.git" -git push origin master 2>&1 | grep -v 'To https' - diff --git a/kubernetes/mocha.opts b/kubernetes/mocha.opts deleted file mode 100644 index 907011807d..0000000000 --- a/kubernetes/mocha.opts +++ /dev/null @@ -1 +0,0 @@ ---timeout 10000 diff --git a/kubernetes/package.json b/kubernetes/package.json deleted file mode 100644 index 304ce248f2..0000000000 --- a/kubernetes/package.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "name": "kubernetes-js-client", - "version": "1.0.0-snapshot", - "description": "Javascript client for Kubernetes.", - "license": "Unlicense", - "main": "src/io.kubernetes.js/index.js", - "scripts": { - "test": "./node_modules/mocha/bin/mocha --recursive" - }, - "dependencies": { - "superagent": "1.7.1" - }, - "devDependencies": { - "mocha": "~2.3.4", - "sinon": "1.17.3", - "expect.js": "~0.3.1" - } -} diff --git a/kubernetes/src/io.kubernetes.js/ApiClient.js b/kubernetes/src/io.kubernetes.js/ApiClient.js deleted file mode 100644 index 382b9d74f3..0000000000 --- a/kubernetes/src/io.kubernetes.js/ApiClient.js +++ /dev/null @@ -1,518 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['superagent'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('superagent')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.ApiClient = factory(root.superagent); - } -}(this, function(superagent) { - 'use strict'; - - /** - * @module io.kubernetes.js/ApiClient - * @version 1.0.0-snapshot - */ - - /** - * Manages low level client-server communications, parameter marshalling, etc. There should not be any need for an - * application to use this class directly - the *Api and model classes provide the public API for the service. The - * contents of this file should be regarded as internal but are documented for completeness. - * @alias module:io.kubernetes.js/ApiClient - * @class - */ - var exports = function() { - /** - * The base URL against which to resolve every API call's (relative) path. - * @type {String} - * @default https://localhost - */ - this.basePath = 'https://localhost/'.replace(/\/+$/, ''); - - /** - * The authentication methods to be included for all API calls. - * @type {Array.} - */ - this.authentications = { - 'BearerToken': {type: 'apiKey', 'in': 'header', name: 'authorization'} - }; - /** - * The default HTTP headers to be included for all API calls. - * @type {Array.} - * @default {} - */ - this.defaultHeaders = {}; - - /** - * The default HTTP timeout for all API calls. - * @type {Number} - * @default 60000 - */ - this.timeout = 60000; - - /** - * If set to false an additional timestamp parameter is added to all API GET calls to - * prevent browser caching - * @type {Boolean} - * @default true - */ - this.cache = true; - }; - - /** - * Returns a string representation for an actual parameter. - * @param param The actual parameter. - * @returns {String} The string representation of param. - */ - exports.prototype.paramToString = function(param) { - if (param == undefined || param == null) { - return ''; - } - if (param instanceof Date) { - return param.toJSON(); - } - return param.toString(); - }; - - /** - * Builds full URL by appending the given path to the base URL and replacing path parameter place-holders with parameter values. - * NOTE: query parameters are not handled here. - * @param {String} path The path to append to the base URL. - * @param {Object} pathParams The parameter values to append. - * @returns {String} The encoded path with parameter values substituted. - */ - exports.prototype.buildUrl = function(path, pathParams) { - if (!path.match(/^\//)) { - path = '/' + path; - } - var url = this.basePath + path; - var _this = this; - url = url.replace(/\{([\w-]+)\}/g, function(fullMatch, key) { - var value; - if (pathParams.hasOwnProperty(key)) { - value = _this.paramToString(pathParams[key]); - } else { - value = fullMatch; - } - return encodeURIComponent(value); - }); - return url; - }; - - /** - * Checks whether the given content type represents JSON.
- * JSON content type examples:
- * - * @param {String} contentType The MIME content type to check. - * @returns {Boolean} true if contentType represents JSON, otherwise false. - */ - exports.prototype.isJsonMime = function(contentType) { - return Boolean(contentType != null && contentType.match(/^application\/json(;.*)?$/i)); - }; - - /** - * Chooses a content type from the given array, with JSON preferred; i.e. return JSON if included, otherwise return the first. - * @param {Array.} contentTypes - * @returns {String} The chosen content type, preferring JSON. - */ - exports.prototype.jsonPreferredMime = function(contentTypes) { - for (var i = 0; i < contentTypes.length; i++) { - if (this.isJsonMime(contentTypes[i])) { - return contentTypes[i]; - } - } - return contentTypes[0]; - }; - - /** - * Checks whether the given parameter value represents file-like content. - * @param param The parameter to check. - * @returns {Boolean} true if param represents a file. - */ - exports.prototype.isFileParam = function(param) { - // fs.ReadStream in Node.js (but not in runtime like browserify) - if (typeof window === 'undefined' && - typeof require === 'function' && - require('fs') && - param instanceof require('fs').ReadStream) { - return true; - } - // Buffer in Node.js - if (typeof Buffer === 'function' && param instanceof Buffer) { - return true; - } - // Blob in browser - if (typeof Blob === 'function' && param instanceof Blob) { - return true; - } - // File in browser (it seems File object is also instance of Blob, but keep this for safe) - if (typeof File === 'function' && param instanceof File) { - return true; - } - return false; - }; - - /** - * Normalizes parameter values: - *
    - *
  • remove nils
  • - *
  • keep files and arrays
  • - *
  • format to string with `paramToString` for other cases
  • - *
- * @param {Object.} params The parameters as object properties. - * @returns {Object.} normalized parameters. - */ - exports.prototype.normalizeParams = function(params) { - var newParams = {}; - for (var key in params) { - if (params.hasOwnProperty(key) && params[key] != undefined && params[key] != null) { - var value = params[key]; - if (this.isFileParam(value) || Array.isArray(value)) { - newParams[key] = value; - } else { - newParams[key] = this.paramToString(value); - } - } - } - return newParams; - }; - - /** - * Enumeration of collection format separator strategies. - * @enum {String} - * @readonly - */ - exports.CollectionFormatEnum = { - /** - * Comma-separated values. Value: csv - * @const - */ - CSV: ',', - /** - * Space-separated values. Value: ssv - * @const - */ - SSV: ' ', - /** - * Tab-separated values. Value: tsv - * @const - */ - TSV: '\t', - /** - * Pipe(|)-separated values. Value: pipes - * @const - */ - PIPES: '|', - /** - * Native array. Value: multi - * @const - */ - MULTI: 'multi' - }; - - /** - * Builds a string representation of an array-type actual parameter, according to the given collection format. - * @param {Array} param An array parameter. - * @param {module:io.kubernetes.js/ApiClient.CollectionFormatEnum} collectionFormat The array element separator strategy. - * @returns {String|Array} A string representation of the supplied collection, using the specified delimiter. Returns - * param as is if collectionFormat is multi. - */ - exports.prototype.buildCollectionParam = function buildCollectionParam(param, collectionFormat) { - if (param == null) { - return null; - } - switch (collectionFormat) { - case 'csv': - return param.map(this.paramToString).join(','); - case 'ssv': - return param.map(this.paramToString).join(' '); - case 'tsv': - return param.map(this.paramToString).join('\t'); - case 'pipes': - return param.map(this.paramToString).join('|'); - case 'multi': - // return the array directly as SuperAgent will handle it as expected - return param.map(this.paramToString); - default: - throw new Error('Unknown collection format: ' + collectionFormat); - } - }; - - /** - * Applies authentication headers to the request. - * @param {Object} request The request object created by a superagent() call. - * @param {Array.} authNames An array of authentication method names. - */ - exports.prototype.applyAuthToRequest = function(request, authNames) { - var _this = this; - authNames.forEach(function(authName) { - var auth = _this.authentications[authName]; - switch (auth.type) { - case 'basic': - if (auth.username || auth.password) { - request.auth(auth.username || '', auth.password || ''); - } - break; - case 'apiKey': - if (auth.apiKey) { - var data = {}; - if (auth.apiKeyPrefix) { - data[auth.name] = auth.apiKeyPrefix + ' ' + auth.apiKey; - } else { - data[auth.name] = auth.apiKey; - } - if (auth['in'] === 'header') { - request.set(data); - } else { - request.query(data); - } - } - break; - case 'oauth2': - if (auth.accessToken) { - request.set({'Authorization': 'Bearer ' + auth.accessToken}); - } - break; - default: - throw new Error('Unknown authentication type: ' + auth.type); - } - }); - }; - - /** - * Deserializes an HTTP response body into a value of the specified type. - * @param {Object} response A SuperAgent response object. - * @param {(String|Array.|Object.|Function)} returnType The type to return. Pass a string for simple types - * or the constructor function for a complex type. Pass an array containing the type name to return an array of that type. To - * return an object, pass an object with one property whose name is the key type and whose value is the corresponding value type: - * all properties on data will be converted to this type. - * @returns A value of the specified type. - */ - exports.prototype.deserialize = function deserialize(response, returnType) { - if (response == null || returnType == null) { - return null; - } - // Rely on SuperAgent for parsing response body. - // See http://visionmedia.github.io/superagent/#parsing-response-bodies - var data = response.body; - if (data == null || !Object.keys(data).length) { - // SuperAgent does not always produce a body; use the unparsed response as a fallback - data = response.text; - } - return exports.convertToType(data, returnType); - }; - - /** - * Callback function to receive the result of the operation. - * @callback module:io.kubernetes.js/ApiClient~callApiCallback - * @param {String} error Error message, if any. - * @param data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * Invokes the REST service using the supplied settings and parameters. - * @param {String} path The base URL to invoke. - * @param {String} httpMethod The HTTP method to use. - * @param {Object.} pathParams A map of path parameters and their values. - * @param {Object.} queryParams A map of query parameters and their values. - * @param {Object.} headerParams A map of header parameters and their values. - * @param {Object.} formParams A map of form parameters and their values. - * @param {Object} bodyParam The value to pass as the request body. - * @param {Array.} authNames An array of authentication type names. - * @param {Array.} contentTypes An array of request MIME types. - * @param {Array.} accepts An array of acceptable response MIME types. - * @param {(String|Array|ObjectFunction)} returnType The required type to return; can be a string for simple types or the - * constructor for a complex type. - * @param {module:io.kubernetes.js/ApiClient~callApiCallback} callback The callback function. - * @returns {Object} The SuperAgent request object. - */ - exports.prototype.callApi = function callApi(path, httpMethod, pathParams, - queryParams, headerParams, formParams, bodyParam, authNames, contentTypes, accepts, - returnType, callback) { - - var _this = this; - var url = this.buildUrl(path, pathParams); - var request = superagent(httpMethod, url); - - // apply authentications - this.applyAuthToRequest(request, authNames); - - // set query parameters - if (httpMethod.toUpperCase() === 'GET' && this.cache === false) { - queryParams['_'] = new Date().getTime(); - } - request.query(this.normalizeParams(queryParams)); - - // set header parameters - request.set(this.defaultHeaders).set(this.normalizeParams(headerParams)); - - // set request timeout - request.timeout(this.timeout); - - var contentType = this.jsonPreferredMime(contentTypes); - if (contentType) { - // Issue with superagent and multipart/form-data (https://github.com/visionmedia/superagent/issues/746) - if(contentType != 'multipart/form-data') { - request.type(contentType); - } - } else if (!request.header['Content-Type']) { - request.type('application/json'); - } - - if (contentType === 'application/x-www-form-urlencoded') { - request.send(this.normalizeParams(formParams)); - } else if (contentType == 'multipart/form-data') { - var _formParams = this.normalizeParams(formParams); - for (var key in _formParams) { - if (_formParams.hasOwnProperty(key)) { - if (this.isFileParam(_formParams[key])) { - // file field - request.attach(key, _formParams[key]); - } else { - request.field(key, _formParams[key]); - } - } - } - } else if (bodyParam) { - request.send(bodyParam); - } - - var accept = this.jsonPreferredMime(accepts); - if (accept) { - request.accept(accept); - } - - - request.end(function(error, response) { - if (callback) { - var data = null; - if (!error) { - data = _this.deserialize(response, returnType); - } - callback(error, data, response); - } - }); - - return request; - }; - - /** - * Parses an ISO-8601 string representation of a date value. - * @param {String} str The date value as a string. - * @returns {Date} The parsed date object. - */ - exports.parseDate = function(str) { - return new Date(str.replace(/T/i, ' ')); - }; - - /** - * Converts a value to the specified type. - * @param {(String|Object)} data The data to convert, as a string or object. - * @param {(String|Array.|Object.|Function)} type The type to return. Pass a string for simple types - * or the constructor function for a complex type. Pass an array containing the type name to return an array of that type. To - * return an object, pass an object with one property whose name is the key type and whose value is the corresponding value type: - * all properties on data will be converted to this type. - * @returns An instance of the specified type. - */ - exports.convertToType = function(data, type) { - switch (type) { - case 'Boolean': - return Boolean(data); - case 'Integer': - return parseInt(data, 10); - case 'Number': - return parseFloat(data); - case 'String': - return String(data); - case 'Date': - return this.parseDate(String(data)); - default: - if (type === Object) { - // generic object, return directly - return data; - } else if (typeof type === 'function') { - // for model type like: User - return type.constructFromObject(data); - } else if (Array.isArray(type)) { - // for array type like: ['String'] - var itemType = type[0]; - return data.map(function(item) { - return exports.convertToType(item, itemType); - }); - } else if (typeof type === 'object') { - // for plain object type like: {'String': 'Integer'} - var keyType, valueType; - for (var k in type) { - if (type.hasOwnProperty(k)) { - keyType = k; - valueType = type[k]; - break; - } - } - var result = {}; - for (var k in data) { - if (data.hasOwnProperty(k)) { - var key = exports.convertToType(k, keyType); - var value = exports.convertToType(data[k], valueType); - result[key] = value; - } - } - return result; - } else { - // for unknown type, return the data directly - return data; - } - } - }; - - /** - * Constructs a new map or array model from REST data. - * @param data {Object|Array} The REST data. - * @param obj {Object|Array} The target object or array. - */ - exports.constructFromObject = function(data, obj, itemType) { - if (Array.isArray(data)) { - for (var i = 0; i < data.length; i++) { - if (data.hasOwnProperty(i)) - obj[i] = exports.convertToType(data[i], itemType); - } - } else { - for (var k in data) { - if (data.hasOwnProperty(k)) - obj[k] = exports.convertToType(data[k], itemType); - } - } - }; - - /** - * The default API client implementation. - * @type {module:io.kubernetes.js/ApiClient} - */ - exports.instance = new exports(); - - return exports; -})); diff --git a/kubernetes/src/io.kubernetes.js/index.js b/kubernetes/src/io.kubernetes.js/index.js deleted file mode 100644 index a3808f8bcc..0000000000 --- a/kubernetes/src/io.kubernetes.js/index.js +++ /dev/null @@ -1,1855 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1Deployment', 'io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1DeploymentCondition', 'io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1DeploymentList', 'io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1DeploymentRollback', 'io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1DeploymentSpec', 'io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1DeploymentStatus', 'io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1DeploymentStrategy', 'io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1RollbackConfig', 'io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1RollingUpdateDeployment', 'io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1Scale', 'io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1ScaleSpec', 'io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1ScaleStatus', 'io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1Deployment', 'io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1DeploymentCondition', 'io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1DeploymentList', 'io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1DeploymentRollback', 'io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1DeploymentSpec', 'io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1DeploymentStatus', 'io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1DeploymentStrategy', 'io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1RollbackConfig', 'io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1RollingUpdateDeployment', 'io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1Scale', 'io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1ScaleSpec', 'io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1ScaleStatus', 'io.kubernetes.js/io.kubernetes.js.models/RuntimeRawExtension', 'io.kubernetes.js/io.kubernetes.js.models/V1APIGroup', 'io.kubernetes.js/io.kubernetes.js.models/V1APIGroupList', 'io.kubernetes.js/io.kubernetes.js.models/V1APIResource', 'io.kubernetes.js/io.kubernetes.js.models/V1APIResourceList', 'io.kubernetes.js/io.kubernetes.js.models/V1APIVersions', 'io.kubernetes.js/io.kubernetes.js.models/V1AWSElasticBlockStoreVolumeSource', 'io.kubernetes.js/io.kubernetes.js.models/V1Affinity', 'io.kubernetes.js/io.kubernetes.js.models/V1AttachedVolume', 'io.kubernetes.js/io.kubernetes.js.models/V1AzureDiskVolumeSource', 'io.kubernetes.js/io.kubernetes.js.models/V1AzureFileVolumeSource', 'io.kubernetes.js/io.kubernetes.js.models/V1Binding', 'io.kubernetes.js/io.kubernetes.js.models/V1Capabilities', 'io.kubernetes.js/io.kubernetes.js.models/V1CephFSVolumeSource', 'io.kubernetes.js/io.kubernetes.js.models/V1CinderVolumeSource', 'io.kubernetes.js/io.kubernetes.js.models/V1ComponentCondition', 'io.kubernetes.js/io.kubernetes.js.models/V1ComponentStatus', 'io.kubernetes.js/io.kubernetes.js.models/V1ComponentStatusList', 'io.kubernetes.js/io.kubernetes.js.models/V1ConfigMap', 'io.kubernetes.js/io.kubernetes.js.models/V1ConfigMapEnvSource', 'io.kubernetes.js/io.kubernetes.js.models/V1ConfigMapKeySelector', 'io.kubernetes.js/io.kubernetes.js.models/V1ConfigMapList', 'io.kubernetes.js/io.kubernetes.js.models/V1ConfigMapProjection', 'io.kubernetes.js/io.kubernetes.js.models/V1ConfigMapVolumeSource', 'io.kubernetes.js/io.kubernetes.js.models/V1Container', 'io.kubernetes.js/io.kubernetes.js.models/V1ContainerImage', 'io.kubernetes.js/io.kubernetes.js.models/V1ContainerPort', 'io.kubernetes.js/io.kubernetes.js.models/V1ContainerState', 'io.kubernetes.js/io.kubernetes.js.models/V1ContainerStateRunning', 'io.kubernetes.js/io.kubernetes.js.models/V1ContainerStateTerminated', 'io.kubernetes.js/io.kubernetes.js.models/V1ContainerStateWaiting', 'io.kubernetes.js/io.kubernetes.js.models/V1ContainerStatus', 'io.kubernetes.js/io.kubernetes.js.models/V1CrossVersionObjectReference', 'io.kubernetes.js/io.kubernetes.js.models/V1DaemonEndpoint', 'io.kubernetes.js/io.kubernetes.js.models/V1DeleteOptions', 'io.kubernetes.js/io.kubernetes.js.models/V1DownwardAPIProjection', 'io.kubernetes.js/io.kubernetes.js.models/V1DownwardAPIVolumeFile', 'io.kubernetes.js/io.kubernetes.js.models/V1DownwardAPIVolumeSource', 'io.kubernetes.js/io.kubernetes.js.models/V1EmptyDirVolumeSource', 'io.kubernetes.js/io.kubernetes.js.models/V1EndpointAddress', 'io.kubernetes.js/io.kubernetes.js.models/V1EndpointPort', 'io.kubernetes.js/io.kubernetes.js.models/V1EndpointSubset', 'io.kubernetes.js/io.kubernetes.js.models/V1Endpoints', 'io.kubernetes.js/io.kubernetes.js.models/V1EndpointsList', 'io.kubernetes.js/io.kubernetes.js.models/V1EnvFromSource', 'io.kubernetes.js/io.kubernetes.js.models/V1EnvVar', 'io.kubernetes.js/io.kubernetes.js.models/V1EnvVarSource', 'io.kubernetes.js/io.kubernetes.js.models/V1Event', 'io.kubernetes.js/io.kubernetes.js.models/V1EventList', 'io.kubernetes.js/io.kubernetes.js.models/V1EventSource', 'io.kubernetes.js/io.kubernetes.js.models/V1ExecAction', 'io.kubernetes.js/io.kubernetes.js.models/V1FCVolumeSource', 'io.kubernetes.js/io.kubernetes.js.models/V1FlexVolumeSource', 'io.kubernetes.js/io.kubernetes.js.models/V1FlockerVolumeSource', 'io.kubernetes.js/io.kubernetes.js.models/V1GCEPersistentDiskVolumeSource', 'io.kubernetes.js/io.kubernetes.js.models/V1GitRepoVolumeSource', 'io.kubernetes.js/io.kubernetes.js.models/V1GlusterfsVolumeSource', 'io.kubernetes.js/io.kubernetes.js.models/V1GroupVersionForDiscovery', 'io.kubernetes.js/io.kubernetes.js.models/V1HTTPGetAction', 'io.kubernetes.js/io.kubernetes.js.models/V1HTTPHeader', 'io.kubernetes.js/io.kubernetes.js.models/V1Handler', 'io.kubernetes.js/io.kubernetes.js.models/V1HorizontalPodAutoscaler', 'io.kubernetes.js/io.kubernetes.js.models/V1HorizontalPodAutoscalerList', 'io.kubernetes.js/io.kubernetes.js.models/V1HorizontalPodAutoscalerSpec', 'io.kubernetes.js/io.kubernetes.js.models/V1HorizontalPodAutoscalerStatus', 'io.kubernetes.js/io.kubernetes.js.models/V1HostPathVolumeSource', 'io.kubernetes.js/io.kubernetes.js.models/V1ISCSIVolumeSource', 'io.kubernetes.js/io.kubernetes.js.models/V1Job', 'io.kubernetes.js/io.kubernetes.js.models/V1JobCondition', 'io.kubernetes.js/io.kubernetes.js.models/V1JobList', 'io.kubernetes.js/io.kubernetes.js.models/V1JobSpec', 'io.kubernetes.js/io.kubernetes.js.models/V1JobStatus', 'io.kubernetes.js/io.kubernetes.js.models/V1KeyToPath', 'io.kubernetes.js/io.kubernetes.js.models/V1LabelSelector', 'io.kubernetes.js/io.kubernetes.js.models/V1LabelSelectorRequirement', 'io.kubernetes.js/io.kubernetes.js.models/V1Lifecycle', 'io.kubernetes.js/io.kubernetes.js.models/V1LimitRange', 'io.kubernetes.js/io.kubernetes.js.models/V1LimitRangeItem', 'io.kubernetes.js/io.kubernetes.js.models/V1LimitRangeList', 'io.kubernetes.js/io.kubernetes.js.models/V1LimitRangeSpec', 'io.kubernetes.js/io.kubernetes.js.models/V1ListMeta', 'io.kubernetes.js/io.kubernetes.js.models/V1LoadBalancerIngress', 'io.kubernetes.js/io.kubernetes.js.models/V1LoadBalancerStatus', 'io.kubernetes.js/io.kubernetes.js.models/V1LocalObjectReference', 'io.kubernetes.js/io.kubernetes.js.models/V1LocalSubjectAccessReview', 'io.kubernetes.js/io.kubernetes.js.models/V1NFSVolumeSource', 'io.kubernetes.js/io.kubernetes.js.models/V1Namespace', 'io.kubernetes.js/io.kubernetes.js.models/V1NamespaceList', 'io.kubernetes.js/io.kubernetes.js.models/V1NamespaceSpec', 'io.kubernetes.js/io.kubernetes.js.models/V1NamespaceStatus', 'io.kubernetes.js/io.kubernetes.js.models/V1Node', 'io.kubernetes.js/io.kubernetes.js.models/V1NodeAddress', 'io.kubernetes.js/io.kubernetes.js.models/V1NodeAffinity', 'io.kubernetes.js/io.kubernetes.js.models/V1NodeCondition', 'io.kubernetes.js/io.kubernetes.js.models/V1NodeDaemonEndpoints', 'io.kubernetes.js/io.kubernetes.js.models/V1NodeList', 'io.kubernetes.js/io.kubernetes.js.models/V1NodeSelector', 'io.kubernetes.js/io.kubernetes.js.models/V1NodeSelectorRequirement', 'io.kubernetes.js/io.kubernetes.js.models/V1NodeSelectorTerm', 'io.kubernetes.js/io.kubernetes.js.models/V1NodeSpec', 'io.kubernetes.js/io.kubernetes.js.models/V1NodeStatus', 'io.kubernetes.js/io.kubernetes.js.models/V1NodeSystemInfo', 'io.kubernetes.js/io.kubernetes.js.models/V1NonResourceAttributes', 'io.kubernetes.js/io.kubernetes.js.models/V1ObjectFieldSelector', 'io.kubernetes.js/io.kubernetes.js.models/V1ObjectMeta', 'io.kubernetes.js/io.kubernetes.js.models/V1ObjectReference', 'io.kubernetes.js/io.kubernetes.js.models/V1OwnerReference', 'io.kubernetes.js/io.kubernetes.js.models/V1PersistentVolume', 'io.kubernetes.js/io.kubernetes.js.models/V1PersistentVolumeClaim', 'io.kubernetes.js/io.kubernetes.js.models/V1PersistentVolumeClaimList', 'io.kubernetes.js/io.kubernetes.js.models/V1PersistentVolumeClaimSpec', 'io.kubernetes.js/io.kubernetes.js.models/V1PersistentVolumeClaimStatus', 'io.kubernetes.js/io.kubernetes.js.models/V1PersistentVolumeClaimVolumeSource', 'io.kubernetes.js/io.kubernetes.js.models/V1PersistentVolumeList', 'io.kubernetes.js/io.kubernetes.js.models/V1PersistentVolumeSpec', 'io.kubernetes.js/io.kubernetes.js.models/V1PersistentVolumeStatus', 'io.kubernetes.js/io.kubernetes.js.models/V1PhotonPersistentDiskVolumeSource', 'io.kubernetes.js/io.kubernetes.js.models/V1Pod', 'io.kubernetes.js/io.kubernetes.js.models/V1PodAffinity', 'io.kubernetes.js/io.kubernetes.js.models/V1PodAffinityTerm', 'io.kubernetes.js/io.kubernetes.js.models/V1PodAntiAffinity', 'io.kubernetes.js/io.kubernetes.js.models/V1PodCondition', 'io.kubernetes.js/io.kubernetes.js.models/V1PodList', 'io.kubernetes.js/io.kubernetes.js.models/V1PodSecurityContext', 'io.kubernetes.js/io.kubernetes.js.models/V1PodSpec', 'io.kubernetes.js/io.kubernetes.js.models/V1PodStatus', 'io.kubernetes.js/io.kubernetes.js.models/V1PodTemplate', 'io.kubernetes.js/io.kubernetes.js.models/V1PodTemplateList', 'io.kubernetes.js/io.kubernetes.js.models/V1PodTemplateSpec', 'io.kubernetes.js/io.kubernetes.js.models/V1PortworxVolumeSource', 'io.kubernetes.js/io.kubernetes.js.models/V1Preconditions', 'io.kubernetes.js/io.kubernetes.js.models/V1PreferredSchedulingTerm', 'io.kubernetes.js/io.kubernetes.js.models/V1Probe', 'io.kubernetes.js/io.kubernetes.js.models/V1ProjectedVolumeSource', 'io.kubernetes.js/io.kubernetes.js.models/V1QuobyteVolumeSource', 'io.kubernetes.js/io.kubernetes.js.models/V1RBDVolumeSource', 'io.kubernetes.js/io.kubernetes.js.models/V1ReplicationController', 'io.kubernetes.js/io.kubernetes.js.models/V1ReplicationControllerCondition', 'io.kubernetes.js/io.kubernetes.js.models/V1ReplicationControllerList', 'io.kubernetes.js/io.kubernetes.js.models/V1ReplicationControllerSpec', 'io.kubernetes.js/io.kubernetes.js.models/V1ReplicationControllerStatus', 'io.kubernetes.js/io.kubernetes.js.models/V1ResourceAttributes', 'io.kubernetes.js/io.kubernetes.js.models/V1ResourceFieldSelector', 'io.kubernetes.js/io.kubernetes.js.models/V1ResourceQuota', 'io.kubernetes.js/io.kubernetes.js.models/V1ResourceQuotaList', 'io.kubernetes.js/io.kubernetes.js.models/V1ResourceQuotaSpec', 'io.kubernetes.js/io.kubernetes.js.models/V1ResourceQuotaStatus', 'io.kubernetes.js/io.kubernetes.js.models/V1ResourceRequirements', 'io.kubernetes.js/io.kubernetes.js.models/V1SELinuxOptions', 'io.kubernetes.js/io.kubernetes.js.models/V1Scale', 'io.kubernetes.js/io.kubernetes.js.models/V1ScaleIOVolumeSource', 'io.kubernetes.js/io.kubernetes.js.models/V1ScaleSpec', 'io.kubernetes.js/io.kubernetes.js.models/V1ScaleStatus', 'io.kubernetes.js/io.kubernetes.js.models/V1Secret', 'io.kubernetes.js/io.kubernetes.js.models/V1SecretEnvSource', 'io.kubernetes.js/io.kubernetes.js.models/V1SecretKeySelector', 'io.kubernetes.js/io.kubernetes.js.models/V1SecretList', 'io.kubernetes.js/io.kubernetes.js.models/V1SecretProjection', 'io.kubernetes.js/io.kubernetes.js.models/V1SecretVolumeSource', 'io.kubernetes.js/io.kubernetes.js.models/V1SecurityContext', 'io.kubernetes.js/io.kubernetes.js.models/V1SelfSubjectAccessReview', 'io.kubernetes.js/io.kubernetes.js.models/V1SelfSubjectAccessReviewSpec', 'io.kubernetes.js/io.kubernetes.js.models/V1ServerAddressByClientCIDR', 'io.kubernetes.js/io.kubernetes.js.models/V1Service', 'io.kubernetes.js/io.kubernetes.js.models/V1ServiceAccount', 'io.kubernetes.js/io.kubernetes.js.models/V1ServiceAccountList', 'io.kubernetes.js/io.kubernetes.js.models/V1ServiceList', 'io.kubernetes.js/io.kubernetes.js.models/V1ServicePort', 'io.kubernetes.js/io.kubernetes.js.models/V1ServiceSpec', 'io.kubernetes.js/io.kubernetes.js.models/V1ServiceStatus', 'io.kubernetes.js/io.kubernetes.js.models/V1Status', 'io.kubernetes.js/io.kubernetes.js.models/V1StatusCause', 'io.kubernetes.js/io.kubernetes.js.models/V1StatusDetails', 'io.kubernetes.js/io.kubernetes.js.models/V1StorageClass', 'io.kubernetes.js/io.kubernetes.js.models/V1StorageClassList', 'io.kubernetes.js/io.kubernetes.js.models/V1SubjectAccessReview', 'io.kubernetes.js/io.kubernetes.js.models/V1SubjectAccessReviewSpec', 'io.kubernetes.js/io.kubernetes.js.models/V1SubjectAccessReviewStatus', 'io.kubernetes.js/io.kubernetes.js.models/V1TCPSocketAction', 'io.kubernetes.js/io.kubernetes.js.models/V1Taint', 'io.kubernetes.js/io.kubernetes.js.models/V1TokenReview', 'io.kubernetes.js/io.kubernetes.js.models/V1TokenReviewSpec', 'io.kubernetes.js/io.kubernetes.js.models/V1TokenReviewStatus', 'io.kubernetes.js/io.kubernetes.js.models/V1Toleration', 'io.kubernetes.js/io.kubernetes.js.models/V1UserInfo', 'io.kubernetes.js/io.kubernetes.js.models/V1Volume', 'io.kubernetes.js/io.kubernetes.js.models/V1VolumeMount', 'io.kubernetes.js/io.kubernetes.js.models/V1VolumeProjection', 'io.kubernetes.js/io.kubernetes.js.models/V1VsphereVirtualDiskVolumeSource', 'io.kubernetes.js/io.kubernetes.js.models/V1WatchEvent', 'io.kubernetes.js/io.kubernetes.js.models/V1WeightedPodAffinityTerm', 'io.kubernetes.js/io.kubernetes.js.models/V1alpha1ClusterRole', 'io.kubernetes.js/io.kubernetes.js.models/V1alpha1ClusterRoleBinding', 'io.kubernetes.js/io.kubernetes.js.models/V1alpha1ClusterRoleBindingList', 'io.kubernetes.js/io.kubernetes.js.models/V1alpha1ClusterRoleList', 'io.kubernetes.js/io.kubernetes.js.models/V1alpha1PodPreset', 'io.kubernetes.js/io.kubernetes.js.models/V1alpha1PodPresetList', 'io.kubernetes.js/io.kubernetes.js.models/V1alpha1PodPresetSpec', 'io.kubernetes.js/io.kubernetes.js.models/V1alpha1PolicyRule', 'io.kubernetes.js/io.kubernetes.js.models/V1alpha1Role', 'io.kubernetes.js/io.kubernetes.js.models/V1alpha1RoleBinding', 'io.kubernetes.js/io.kubernetes.js.models/V1alpha1RoleBindingList', 'io.kubernetes.js/io.kubernetes.js.models/V1alpha1RoleList', 'io.kubernetes.js/io.kubernetes.js.models/V1alpha1RoleRef', 'io.kubernetes.js/io.kubernetes.js.models/V1alpha1Subject', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1APIVersion', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1CertificateSigningRequest', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1CertificateSigningRequestCondition', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1CertificateSigningRequestList', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1CertificateSigningRequestSpec', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1CertificateSigningRequestStatus', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1ClusterRole', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1ClusterRoleBinding', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1ClusterRoleBindingList', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1ClusterRoleList', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1DaemonSet', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1DaemonSetList', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1DaemonSetSpec', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1DaemonSetStatus', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1DaemonSetUpdateStrategy', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1Eviction', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1FSGroupStrategyOptions', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1HTTPIngressPath', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1HTTPIngressRuleValue', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1HostPortRange', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1IDRange', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1Ingress', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1IngressBackend', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1IngressList', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1IngressRule', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1IngressSpec', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1IngressStatus', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1IngressTLS', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1LocalSubjectAccessReview', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1NetworkPolicy', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1NetworkPolicyIngressRule', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1NetworkPolicyList', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1NetworkPolicyPeer', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1NetworkPolicyPort', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1NetworkPolicySpec', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1NonResourceAttributes', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1PodDisruptionBudget', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1PodDisruptionBudgetList', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1PodDisruptionBudgetSpec', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1PodDisruptionBudgetStatus', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1PodSecurityPolicy', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1PodSecurityPolicyList', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1PodSecurityPolicySpec', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1PolicyRule', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1ReplicaSet', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1ReplicaSetCondition', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1ReplicaSetList', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1ReplicaSetSpec', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1ReplicaSetStatus', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1ResourceAttributes', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1Role', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1RoleBinding', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1RoleBindingList', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1RoleList', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1RoleRef', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1RollingUpdateDaemonSet', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1RunAsUserStrategyOptions', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1SELinuxStrategyOptions', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1SelfSubjectAccessReview', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1SelfSubjectAccessReviewSpec', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1StatefulSet', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1StatefulSetList', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1StatefulSetSpec', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1StatefulSetStatus', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1StorageClass', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1StorageClassList', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1Subject', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1SubjectAccessReview', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1SubjectAccessReviewSpec', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1SubjectAccessReviewStatus', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1SupplementalGroupsStrategyOptions', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1ThirdPartyResource', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1ThirdPartyResourceList', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1TokenReview', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1TokenReviewSpec', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1TokenReviewStatus', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1UserInfo', 'io.kubernetes.js/io.kubernetes.js.models/V2alpha1CronJob', 'io.kubernetes.js/io.kubernetes.js.models/V2alpha1CronJobList', 'io.kubernetes.js/io.kubernetes.js.models/V2alpha1CronJobSpec', 'io.kubernetes.js/io.kubernetes.js.models/V2alpha1CronJobStatus', 'io.kubernetes.js/io.kubernetes.js.models/V2alpha1CrossVersionObjectReference', 'io.kubernetes.js/io.kubernetes.js.models/V2alpha1HorizontalPodAutoscaler', 'io.kubernetes.js/io.kubernetes.js.models/V2alpha1HorizontalPodAutoscalerList', 'io.kubernetes.js/io.kubernetes.js.models/V2alpha1HorizontalPodAutoscalerSpec', 'io.kubernetes.js/io.kubernetes.js.models/V2alpha1HorizontalPodAutoscalerStatus', 'io.kubernetes.js/io.kubernetes.js.models/V2alpha1JobTemplateSpec', 'io.kubernetes.js/io.kubernetes.js.models/V2alpha1MetricSpec', 'io.kubernetes.js/io.kubernetes.js.models/V2alpha1MetricStatus', 'io.kubernetes.js/io.kubernetes.js.models/V2alpha1ObjectMetricSource', 'io.kubernetes.js/io.kubernetes.js.models/V2alpha1ObjectMetricStatus', 'io.kubernetes.js/io.kubernetes.js.models/V2alpha1PodsMetricSource', 'io.kubernetes.js/io.kubernetes.js.models/V2alpha1PodsMetricStatus', 'io.kubernetes.js/io.kubernetes.js.models/V2alpha1ResourceMetricSource', 'io.kubernetes.js/io.kubernetes.js.models/V2alpha1ResourceMetricStatus', 'io.kubernetes.js/io.kubernetes.js.models/VersionInfo', 'io.kubernetes.js/io.kubernetes.js.apis/ApisApi', 'io.kubernetes.js/io.kubernetes.js.apis/AppsApi', 'io.kubernetes.js/io.kubernetes.js.apis/Apps_v1beta1Api', 'io.kubernetes.js/io.kubernetes.js.apis/AuthenticationApi', 'io.kubernetes.js/io.kubernetes.js.apis/Authentication_v1Api', 'io.kubernetes.js/io.kubernetes.js.apis/Authentication_v1beta1Api', 'io.kubernetes.js/io.kubernetes.js.apis/AuthorizationApi', 'io.kubernetes.js/io.kubernetes.js.apis/Authorization_v1Api', 'io.kubernetes.js/io.kubernetes.js.apis/Authorization_v1beta1Api', 'io.kubernetes.js/io.kubernetes.js.apis/AutoscalingApi', 'io.kubernetes.js/io.kubernetes.js.apis/Autoscaling_v1Api', 'io.kubernetes.js/io.kubernetes.js.apis/Autoscaling_v2alpha1Api', 'io.kubernetes.js/io.kubernetes.js.apis/BatchApi', 'io.kubernetes.js/io.kubernetes.js.apis/Batch_v1Api', 'io.kubernetes.js/io.kubernetes.js.apis/Batch_v2alpha1Api', 'io.kubernetes.js/io.kubernetes.js.apis/CertificatesApi', 'io.kubernetes.js/io.kubernetes.js.apis/Certificates_v1beta1Api', 'io.kubernetes.js/io.kubernetes.js.apis/CoreApi', 'io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api', 'io.kubernetes.js/io.kubernetes.js.apis/ExtensionsApi', 'io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api', 'io.kubernetes.js/io.kubernetes.js.apis/LogsApi', 'io.kubernetes.js/io.kubernetes.js.apis/PolicyApi', 'io.kubernetes.js/io.kubernetes.js.apis/Policy_v1beta1Api', 'io.kubernetes.js/io.kubernetes.js.apis/RbacAuthorizationApi', 'io.kubernetes.js/io.kubernetes.js.apis/RbacAuthorization_v1alpha1Api', 'io.kubernetes.js/io.kubernetes.js.apis/RbacAuthorization_v1beta1Api', 'io.kubernetes.js/io.kubernetes.js.apis/SettingsApi', 'io.kubernetes.js/io.kubernetes.js.apis/Settings_v1alpha1Api', 'io.kubernetes.js/io.kubernetes.js.apis/StorageApi', 'io.kubernetes.js/io.kubernetes.js.apis/Storage_v1Api', 'io.kubernetes.js/io.kubernetes.js.apis/Storage_v1beta1Api', 'io.kubernetes.js/io.kubernetes.js.apis/VersionApi'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('./ApiClient'), require('./io.kubernetes.js.models/AppsV1beta1Deployment'), require('./io.kubernetes.js.models/AppsV1beta1DeploymentCondition'), require('./io.kubernetes.js.models/AppsV1beta1DeploymentList'), require('./io.kubernetes.js.models/AppsV1beta1DeploymentRollback'), require('./io.kubernetes.js.models/AppsV1beta1DeploymentSpec'), require('./io.kubernetes.js.models/AppsV1beta1DeploymentStatus'), require('./io.kubernetes.js.models/AppsV1beta1DeploymentStrategy'), require('./io.kubernetes.js.models/AppsV1beta1RollbackConfig'), require('./io.kubernetes.js.models/AppsV1beta1RollingUpdateDeployment'), require('./io.kubernetes.js.models/AppsV1beta1Scale'), require('./io.kubernetes.js.models/AppsV1beta1ScaleSpec'), require('./io.kubernetes.js.models/AppsV1beta1ScaleStatus'), require('./io.kubernetes.js.models/ExtensionsV1beta1Deployment'), require('./io.kubernetes.js.models/ExtensionsV1beta1DeploymentCondition'), require('./io.kubernetes.js.models/ExtensionsV1beta1DeploymentList'), require('./io.kubernetes.js.models/ExtensionsV1beta1DeploymentRollback'), require('./io.kubernetes.js.models/ExtensionsV1beta1DeploymentSpec'), require('./io.kubernetes.js.models/ExtensionsV1beta1DeploymentStatus'), require('./io.kubernetes.js.models/ExtensionsV1beta1DeploymentStrategy'), require('./io.kubernetes.js.models/ExtensionsV1beta1RollbackConfig'), require('./io.kubernetes.js.models/ExtensionsV1beta1RollingUpdateDeployment'), require('./io.kubernetes.js.models/ExtensionsV1beta1Scale'), require('./io.kubernetes.js.models/ExtensionsV1beta1ScaleSpec'), require('./io.kubernetes.js.models/ExtensionsV1beta1ScaleStatus'), require('./io.kubernetes.js.models/RuntimeRawExtension'), require('./io.kubernetes.js.models/V1APIGroup'), require('./io.kubernetes.js.models/V1APIGroupList'), require('./io.kubernetes.js.models/V1APIResource'), require('./io.kubernetes.js.models/V1APIResourceList'), require('./io.kubernetes.js.models/V1APIVersions'), require('./io.kubernetes.js.models/V1AWSElasticBlockStoreVolumeSource'), require('./io.kubernetes.js.models/V1Affinity'), require('./io.kubernetes.js.models/V1AttachedVolume'), require('./io.kubernetes.js.models/V1AzureDiskVolumeSource'), require('./io.kubernetes.js.models/V1AzureFileVolumeSource'), require('./io.kubernetes.js.models/V1Binding'), require('./io.kubernetes.js.models/V1Capabilities'), require('./io.kubernetes.js.models/V1CephFSVolumeSource'), require('./io.kubernetes.js.models/V1CinderVolumeSource'), require('./io.kubernetes.js.models/V1ComponentCondition'), require('./io.kubernetes.js.models/V1ComponentStatus'), require('./io.kubernetes.js.models/V1ComponentStatusList'), require('./io.kubernetes.js.models/V1ConfigMap'), require('./io.kubernetes.js.models/V1ConfigMapEnvSource'), require('./io.kubernetes.js.models/V1ConfigMapKeySelector'), require('./io.kubernetes.js.models/V1ConfigMapList'), require('./io.kubernetes.js.models/V1ConfigMapProjection'), require('./io.kubernetes.js.models/V1ConfigMapVolumeSource'), require('./io.kubernetes.js.models/V1Container'), require('./io.kubernetes.js.models/V1ContainerImage'), require('./io.kubernetes.js.models/V1ContainerPort'), require('./io.kubernetes.js.models/V1ContainerState'), require('./io.kubernetes.js.models/V1ContainerStateRunning'), require('./io.kubernetes.js.models/V1ContainerStateTerminated'), require('./io.kubernetes.js.models/V1ContainerStateWaiting'), require('./io.kubernetes.js.models/V1ContainerStatus'), require('./io.kubernetes.js.models/V1CrossVersionObjectReference'), require('./io.kubernetes.js.models/V1DaemonEndpoint'), require('./io.kubernetes.js.models/V1DeleteOptions'), require('./io.kubernetes.js.models/V1DownwardAPIProjection'), require('./io.kubernetes.js.models/V1DownwardAPIVolumeFile'), require('./io.kubernetes.js.models/V1DownwardAPIVolumeSource'), require('./io.kubernetes.js.models/V1EmptyDirVolumeSource'), require('./io.kubernetes.js.models/V1EndpointAddress'), require('./io.kubernetes.js.models/V1EndpointPort'), require('./io.kubernetes.js.models/V1EndpointSubset'), require('./io.kubernetes.js.models/V1Endpoints'), require('./io.kubernetes.js.models/V1EndpointsList'), require('./io.kubernetes.js.models/V1EnvFromSource'), require('./io.kubernetes.js.models/V1EnvVar'), require('./io.kubernetes.js.models/V1EnvVarSource'), require('./io.kubernetes.js.models/V1Event'), require('./io.kubernetes.js.models/V1EventList'), require('./io.kubernetes.js.models/V1EventSource'), require('./io.kubernetes.js.models/V1ExecAction'), require('./io.kubernetes.js.models/V1FCVolumeSource'), require('./io.kubernetes.js.models/V1FlexVolumeSource'), require('./io.kubernetes.js.models/V1FlockerVolumeSource'), require('./io.kubernetes.js.models/V1GCEPersistentDiskVolumeSource'), require('./io.kubernetes.js.models/V1GitRepoVolumeSource'), require('./io.kubernetes.js.models/V1GlusterfsVolumeSource'), require('./io.kubernetes.js.models/V1GroupVersionForDiscovery'), require('./io.kubernetes.js.models/V1HTTPGetAction'), require('./io.kubernetes.js.models/V1HTTPHeader'), require('./io.kubernetes.js.models/V1Handler'), require('./io.kubernetes.js.models/V1HorizontalPodAutoscaler'), require('./io.kubernetes.js.models/V1HorizontalPodAutoscalerList'), require('./io.kubernetes.js.models/V1HorizontalPodAutoscalerSpec'), require('./io.kubernetes.js.models/V1HorizontalPodAutoscalerStatus'), require('./io.kubernetes.js.models/V1HostPathVolumeSource'), require('./io.kubernetes.js.models/V1ISCSIVolumeSource'), require('./io.kubernetes.js.models/V1Job'), require('./io.kubernetes.js.models/V1JobCondition'), require('./io.kubernetes.js.models/V1JobList'), require('./io.kubernetes.js.models/V1JobSpec'), require('./io.kubernetes.js.models/V1JobStatus'), require('./io.kubernetes.js.models/V1KeyToPath'), require('./io.kubernetes.js.models/V1LabelSelector'), require('./io.kubernetes.js.models/V1LabelSelectorRequirement'), require('./io.kubernetes.js.models/V1Lifecycle'), require('./io.kubernetes.js.models/V1LimitRange'), require('./io.kubernetes.js.models/V1LimitRangeItem'), require('./io.kubernetes.js.models/V1LimitRangeList'), require('./io.kubernetes.js.models/V1LimitRangeSpec'), require('./io.kubernetes.js.models/V1ListMeta'), require('./io.kubernetes.js.models/V1LoadBalancerIngress'), require('./io.kubernetes.js.models/V1LoadBalancerStatus'), require('./io.kubernetes.js.models/V1LocalObjectReference'), require('./io.kubernetes.js.models/V1LocalSubjectAccessReview'), require('./io.kubernetes.js.models/V1NFSVolumeSource'), require('./io.kubernetes.js.models/V1Namespace'), require('./io.kubernetes.js.models/V1NamespaceList'), require('./io.kubernetes.js.models/V1NamespaceSpec'), require('./io.kubernetes.js.models/V1NamespaceStatus'), require('./io.kubernetes.js.models/V1Node'), require('./io.kubernetes.js.models/V1NodeAddress'), require('./io.kubernetes.js.models/V1NodeAffinity'), require('./io.kubernetes.js.models/V1NodeCondition'), require('./io.kubernetes.js.models/V1NodeDaemonEndpoints'), require('./io.kubernetes.js.models/V1NodeList'), require('./io.kubernetes.js.models/V1NodeSelector'), require('./io.kubernetes.js.models/V1NodeSelectorRequirement'), require('./io.kubernetes.js.models/V1NodeSelectorTerm'), require('./io.kubernetes.js.models/V1NodeSpec'), require('./io.kubernetes.js.models/V1NodeStatus'), require('./io.kubernetes.js.models/V1NodeSystemInfo'), require('./io.kubernetes.js.models/V1NonResourceAttributes'), require('./io.kubernetes.js.models/V1ObjectFieldSelector'), require('./io.kubernetes.js.models/V1ObjectMeta'), require('./io.kubernetes.js.models/V1ObjectReference'), require('./io.kubernetes.js.models/V1OwnerReference'), require('./io.kubernetes.js.models/V1PersistentVolume'), require('./io.kubernetes.js.models/V1PersistentVolumeClaim'), require('./io.kubernetes.js.models/V1PersistentVolumeClaimList'), require('./io.kubernetes.js.models/V1PersistentVolumeClaimSpec'), require('./io.kubernetes.js.models/V1PersistentVolumeClaimStatus'), require('./io.kubernetes.js.models/V1PersistentVolumeClaimVolumeSource'), require('./io.kubernetes.js.models/V1PersistentVolumeList'), require('./io.kubernetes.js.models/V1PersistentVolumeSpec'), require('./io.kubernetes.js.models/V1PersistentVolumeStatus'), require('./io.kubernetes.js.models/V1PhotonPersistentDiskVolumeSource'), require('./io.kubernetes.js.models/V1Pod'), require('./io.kubernetes.js.models/V1PodAffinity'), require('./io.kubernetes.js.models/V1PodAffinityTerm'), require('./io.kubernetes.js.models/V1PodAntiAffinity'), require('./io.kubernetes.js.models/V1PodCondition'), require('./io.kubernetes.js.models/V1PodList'), require('./io.kubernetes.js.models/V1PodSecurityContext'), require('./io.kubernetes.js.models/V1PodSpec'), require('./io.kubernetes.js.models/V1PodStatus'), require('./io.kubernetes.js.models/V1PodTemplate'), require('./io.kubernetes.js.models/V1PodTemplateList'), require('./io.kubernetes.js.models/V1PodTemplateSpec'), require('./io.kubernetes.js.models/V1PortworxVolumeSource'), require('./io.kubernetes.js.models/V1Preconditions'), require('./io.kubernetes.js.models/V1PreferredSchedulingTerm'), require('./io.kubernetes.js.models/V1Probe'), require('./io.kubernetes.js.models/V1ProjectedVolumeSource'), require('./io.kubernetes.js.models/V1QuobyteVolumeSource'), require('./io.kubernetes.js.models/V1RBDVolumeSource'), require('./io.kubernetes.js.models/V1ReplicationController'), require('./io.kubernetes.js.models/V1ReplicationControllerCondition'), require('./io.kubernetes.js.models/V1ReplicationControllerList'), require('./io.kubernetes.js.models/V1ReplicationControllerSpec'), require('./io.kubernetes.js.models/V1ReplicationControllerStatus'), require('./io.kubernetes.js.models/V1ResourceAttributes'), require('./io.kubernetes.js.models/V1ResourceFieldSelector'), require('./io.kubernetes.js.models/V1ResourceQuota'), require('./io.kubernetes.js.models/V1ResourceQuotaList'), require('./io.kubernetes.js.models/V1ResourceQuotaSpec'), require('./io.kubernetes.js.models/V1ResourceQuotaStatus'), require('./io.kubernetes.js.models/V1ResourceRequirements'), require('./io.kubernetes.js.models/V1SELinuxOptions'), require('./io.kubernetes.js.models/V1Scale'), require('./io.kubernetes.js.models/V1ScaleIOVolumeSource'), require('./io.kubernetes.js.models/V1ScaleSpec'), require('./io.kubernetes.js.models/V1ScaleStatus'), require('./io.kubernetes.js.models/V1Secret'), require('./io.kubernetes.js.models/V1SecretEnvSource'), require('./io.kubernetes.js.models/V1SecretKeySelector'), require('./io.kubernetes.js.models/V1SecretList'), require('./io.kubernetes.js.models/V1SecretProjection'), require('./io.kubernetes.js.models/V1SecretVolumeSource'), require('./io.kubernetes.js.models/V1SecurityContext'), require('./io.kubernetes.js.models/V1SelfSubjectAccessReview'), require('./io.kubernetes.js.models/V1SelfSubjectAccessReviewSpec'), require('./io.kubernetes.js.models/V1ServerAddressByClientCIDR'), require('./io.kubernetes.js.models/V1Service'), require('./io.kubernetes.js.models/V1ServiceAccount'), require('./io.kubernetes.js.models/V1ServiceAccountList'), require('./io.kubernetes.js.models/V1ServiceList'), require('./io.kubernetes.js.models/V1ServicePort'), require('./io.kubernetes.js.models/V1ServiceSpec'), require('./io.kubernetes.js.models/V1ServiceStatus'), require('./io.kubernetes.js.models/V1Status'), require('./io.kubernetes.js.models/V1StatusCause'), require('./io.kubernetes.js.models/V1StatusDetails'), require('./io.kubernetes.js.models/V1StorageClass'), require('./io.kubernetes.js.models/V1StorageClassList'), require('./io.kubernetes.js.models/V1SubjectAccessReview'), require('./io.kubernetes.js.models/V1SubjectAccessReviewSpec'), require('./io.kubernetes.js.models/V1SubjectAccessReviewStatus'), require('./io.kubernetes.js.models/V1TCPSocketAction'), require('./io.kubernetes.js.models/V1Taint'), require('./io.kubernetes.js.models/V1TokenReview'), require('./io.kubernetes.js.models/V1TokenReviewSpec'), require('./io.kubernetes.js.models/V1TokenReviewStatus'), require('./io.kubernetes.js.models/V1Toleration'), require('./io.kubernetes.js.models/V1UserInfo'), require('./io.kubernetes.js.models/V1Volume'), require('./io.kubernetes.js.models/V1VolumeMount'), require('./io.kubernetes.js.models/V1VolumeProjection'), require('./io.kubernetes.js.models/V1VsphereVirtualDiskVolumeSource'), require('./io.kubernetes.js.models/V1WatchEvent'), require('./io.kubernetes.js.models/V1WeightedPodAffinityTerm'), require('./io.kubernetes.js.models/V1alpha1ClusterRole'), require('./io.kubernetes.js.models/V1alpha1ClusterRoleBinding'), require('./io.kubernetes.js.models/V1alpha1ClusterRoleBindingList'), require('./io.kubernetes.js.models/V1alpha1ClusterRoleList'), require('./io.kubernetes.js.models/V1alpha1PodPreset'), require('./io.kubernetes.js.models/V1alpha1PodPresetList'), require('./io.kubernetes.js.models/V1alpha1PodPresetSpec'), require('./io.kubernetes.js.models/V1alpha1PolicyRule'), require('./io.kubernetes.js.models/V1alpha1Role'), require('./io.kubernetes.js.models/V1alpha1RoleBinding'), require('./io.kubernetes.js.models/V1alpha1RoleBindingList'), require('./io.kubernetes.js.models/V1alpha1RoleList'), require('./io.kubernetes.js.models/V1alpha1RoleRef'), require('./io.kubernetes.js.models/V1alpha1Subject'), require('./io.kubernetes.js.models/V1beta1APIVersion'), require('./io.kubernetes.js.models/V1beta1CertificateSigningRequest'), require('./io.kubernetes.js.models/V1beta1CertificateSigningRequestCondition'), require('./io.kubernetes.js.models/V1beta1CertificateSigningRequestList'), require('./io.kubernetes.js.models/V1beta1CertificateSigningRequestSpec'), require('./io.kubernetes.js.models/V1beta1CertificateSigningRequestStatus'), require('./io.kubernetes.js.models/V1beta1ClusterRole'), require('./io.kubernetes.js.models/V1beta1ClusterRoleBinding'), require('./io.kubernetes.js.models/V1beta1ClusterRoleBindingList'), require('./io.kubernetes.js.models/V1beta1ClusterRoleList'), require('./io.kubernetes.js.models/V1beta1DaemonSet'), require('./io.kubernetes.js.models/V1beta1DaemonSetList'), require('./io.kubernetes.js.models/V1beta1DaemonSetSpec'), require('./io.kubernetes.js.models/V1beta1DaemonSetStatus'), require('./io.kubernetes.js.models/V1beta1DaemonSetUpdateStrategy'), require('./io.kubernetes.js.models/V1beta1Eviction'), require('./io.kubernetes.js.models/V1beta1FSGroupStrategyOptions'), require('./io.kubernetes.js.models/V1beta1HTTPIngressPath'), require('./io.kubernetes.js.models/V1beta1HTTPIngressRuleValue'), require('./io.kubernetes.js.models/V1beta1HostPortRange'), require('./io.kubernetes.js.models/V1beta1IDRange'), require('./io.kubernetes.js.models/V1beta1Ingress'), require('./io.kubernetes.js.models/V1beta1IngressBackend'), require('./io.kubernetes.js.models/V1beta1IngressList'), require('./io.kubernetes.js.models/V1beta1IngressRule'), require('./io.kubernetes.js.models/V1beta1IngressSpec'), require('./io.kubernetes.js.models/V1beta1IngressStatus'), require('./io.kubernetes.js.models/V1beta1IngressTLS'), require('./io.kubernetes.js.models/V1beta1LocalSubjectAccessReview'), require('./io.kubernetes.js.models/V1beta1NetworkPolicy'), require('./io.kubernetes.js.models/V1beta1NetworkPolicyIngressRule'), require('./io.kubernetes.js.models/V1beta1NetworkPolicyList'), require('./io.kubernetes.js.models/V1beta1NetworkPolicyPeer'), require('./io.kubernetes.js.models/V1beta1NetworkPolicyPort'), require('./io.kubernetes.js.models/V1beta1NetworkPolicySpec'), require('./io.kubernetes.js.models/V1beta1NonResourceAttributes'), require('./io.kubernetes.js.models/V1beta1PodDisruptionBudget'), require('./io.kubernetes.js.models/V1beta1PodDisruptionBudgetList'), require('./io.kubernetes.js.models/V1beta1PodDisruptionBudgetSpec'), require('./io.kubernetes.js.models/V1beta1PodDisruptionBudgetStatus'), require('./io.kubernetes.js.models/V1beta1PodSecurityPolicy'), require('./io.kubernetes.js.models/V1beta1PodSecurityPolicyList'), require('./io.kubernetes.js.models/V1beta1PodSecurityPolicySpec'), require('./io.kubernetes.js.models/V1beta1PolicyRule'), require('./io.kubernetes.js.models/V1beta1ReplicaSet'), require('./io.kubernetes.js.models/V1beta1ReplicaSetCondition'), require('./io.kubernetes.js.models/V1beta1ReplicaSetList'), require('./io.kubernetes.js.models/V1beta1ReplicaSetSpec'), require('./io.kubernetes.js.models/V1beta1ReplicaSetStatus'), require('./io.kubernetes.js.models/V1beta1ResourceAttributes'), require('./io.kubernetes.js.models/V1beta1Role'), require('./io.kubernetes.js.models/V1beta1RoleBinding'), require('./io.kubernetes.js.models/V1beta1RoleBindingList'), require('./io.kubernetes.js.models/V1beta1RoleList'), require('./io.kubernetes.js.models/V1beta1RoleRef'), require('./io.kubernetes.js.models/V1beta1RollingUpdateDaemonSet'), require('./io.kubernetes.js.models/V1beta1RunAsUserStrategyOptions'), require('./io.kubernetes.js.models/V1beta1SELinuxStrategyOptions'), require('./io.kubernetes.js.models/V1beta1SelfSubjectAccessReview'), require('./io.kubernetes.js.models/V1beta1SelfSubjectAccessReviewSpec'), require('./io.kubernetes.js.models/V1beta1StatefulSet'), require('./io.kubernetes.js.models/V1beta1StatefulSetList'), require('./io.kubernetes.js.models/V1beta1StatefulSetSpec'), require('./io.kubernetes.js.models/V1beta1StatefulSetStatus'), require('./io.kubernetes.js.models/V1beta1StorageClass'), require('./io.kubernetes.js.models/V1beta1StorageClassList'), require('./io.kubernetes.js.models/V1beta1Subject'), require('./io.kubernetes.js.models/V1beta1SubjectAccessReview'), require('./io.kubernetes.js.models/V1beta1SubjectAccessReviewSpec'), require('./io.kubernetes.js.models/V1beta1SubjectAccessReviewStatus'), require('./io.kubernetes.js.models/V1beta1SupplementalGroupsStrategyOptions'), require('./io.kubernetes.js.models/V1beta1ThirdPartyResource'), require('./io.kubernetes.js.models/V1beta1ThirdPartyResourceList'), require('./io.kubernetes.js.models/V1beta1TokenReview'), require('./io.kubernetes.js.models/V1beta1TokenReviewSpec'), require('./io.kubernetes.js.models/V1beta1TokenReviewStatus'), require('./io.kubernetes.js.models/V1beta1UserInfo'), require('./io.kubernetes.js.models/V2alpha1CronJob'), require('./io.kubernetes.js.models/V2alpha1CronJobList'), require('./io.kubernetes.js.models/V2alpha1CronJobSpec'), require('./io.kubernetes.js.models/V2alpha1CronJobStatus'), require('./io.kubernetes.js.models/V2alpha1CrossVersionObjectReference'), require('./io.kubernetes.js.models/V2alpha1HorizontalPodAutoscaler'), require('./io.kubernetes.js.models/V2alpha1HorizontalPodAutoscalerList'), require('./io.kubernetes.js.models/V2alpha1HorizontalPodAutoscalerSpec'), require('./io.kubernetes.js.models/V2alpha1HorizontalPodAutoscalerStatus'), require('./io.kubernetes.js.models/V2alpha1JobTemplateSpec'), require('./io.kubernetes.js.models/V2alpha1MetricSpec'), require('./io.kubernetes.js.models/V2alpha1MetricStatus'), require('./io.kubernetes.js.models/V2alpha1ObjectMetricSource'), require('./io.kubernetes.js.models/V2alpha1ObjectMetricStatus'), require('./io.kubernetes.js.models/V2alpha1PodsMetricSource'), require('./io.kubernetes.js.models/V2alpha1PodsMetricStatus'), require('./io.kubernetes.js.models/V2alpha1ResourceMetricSource'), require('./io.kubernetes.js.models/V2alpha1ResourceMetricStatus'), require('./io.kubernetes.js.models/VersionInfo'), require('./io.kubernetes.js.apis/ApisApi'), require('./io.kubernetes.js.apis/AppsApi'), require('./io.kubernetes.js.apis/Apps_v1beta1Api'), require('./io.kubernetes.js.apis/AuthenticationApi'), require('./io.kubernetes.js.apis/Authentication_v1Api'), require('./io.kubernetes.js.apis/Authentication_v1beta1Api'), require('./io.kubernetes.js.apis/AuthorizationApi'), require('./io.kubernetes.js.apis/Authorization_v1Api'), require('./io.kubernetes.js.apis/Authorization_v1beta1Api'), require('./io.kubernetes.js.apis/AutoscalingApi'), require('./io.kubernetes.js.apis/Autoscaling_v1Api'), require('./io.kubernetes.js.apis/Autoscaling_v2alpha1Api'), require('./io.kubernetes.js.apis/BatchApi'), require('./io.kubernetes.js.apis/Batch_v1Api'), require('./io.kubernetes.js.apis/Batch_v2alpha1Api'), require('./io.kubernetes.js.apis/CertificatesApi'), require('./io.kubernetes.js.apis/Certificates_v1beta1Api'), require('./io.kubernetes.js.apis/CoreApi'), require('./io.kubernetes.js.apis/Core_v1Api'), require('./io.kubernetes.js.apis/ExtensionsApi'), require('./io.kubernetes.js.apis/Extensions_v1beta1Api'), require('./io.kubernetes.js.apis/LogsApi'), require('./io.kubernetes.js.apis/PolicyApi'), require('./io.kubernetes.js.apis/Policy_v1beta1Api'), require('./io.kubernetes.js.apis/RbacAuthorizationApi'), require('./io.kubernetes.js.apis/RbacAuthorization_v1alpha1Api'), require('./io.kubernetes.js.apis/RbacAuthorization_v1beta1Api'), require('./io.kubernetes.js.apis/SettingsApi'), require('./io.kubernetes.js.apis/Settings_v1alpha1Api'), require('./io.kubernetes.js.apis/StorageApi'), require('./io.kubernetes.js.apis/Storage_v1Api'), require('./io.kubernetes.js.apis/Storage_v1beta1Api'), require('./io.kubernetes.js.apis/VersionApi')); - } -}(function(ApiClient, AppsV1beta1Deployment, AppsV1beta1DeploymentCondition, AppsV1beta1DeploymentList, AppsV1beta1DeploymentRollback, AppsV1beta1DeploymentSpec, AppsV1beta1DeploymentStatus, AppsV1beta1DeploymentStrategy, AppsV1beta1RollbackConfig, AppsV1beta1RollingUpdateDeployment, AppsV1beta1Scale, AppsV1beta1ScaleSpec, AppsV1beta1ScaleStatus, ExtensionsV1beta1Deployment, ExtensionsV1beta1DeploymentCondition, ExtensionsV1beta1DeploymentList, ExtensionsV1beta1DeploymentRollback, ExtensionsV1beta1DeploymentSpec, ExtensionsV1beta1DeploymentStatus, ExtensionsV1beta1DeploymentStrategy, ExtensionsV1beta1RollbackConfig, ExtensionsV1beta1RollingUpdateDeployment, ExtensionsV1beta1Scale, ExtensionsV1beta1ScaleSpec, ExtensionsV1beta1ScaleStatus, RuntimeRawExtension, V1APIGroup, V1APIGroupList, V1APIResource, V1APIResourceList, V1APIVersions, V1AWSElasticBlockStoreVolumeSource, V1Affinity, V1AttachedVolume, V1AzureDiskVolumeSource, V1AzureFileVolumeSource, V1Binding, V1Capabilities, V1CephFSVolumeSource, V1CinderVolumeSource, V1ComponentCondition, V1ComponentStatus, V1ComponentStatusList, V1ConfigMap, V1ConfigMapEnvSource, V1ConfigMapKeySelector, V1ConfigMapList, V1ConfigMapProjection, V1ConfigMapVolumeSource, V1Container, V1ContainerImage, V1ContainerPort, V1ContainerState, V1ContainerStateRunning, V1ContainerStateTerminated, V1ContainerStateWaiting, V1ContainerStatus, V1CrossVersionObjectReference, V1DaemonEndpoint, V1DeleteOptions, V1DownwardAPIProjection, V1DownwardAPIVolumeFile, V1DownwardAPIVolumeSource, V1EmptyDirVolumeSource, V1EndpointAddress, V1EndpointPort, V1EndpointSubset, V1Endpoints, V1EndpointsList, V1EnvFromSource, V1EnvVar, V1EnvVarSource, V1Event, V1EventList, V1EventSource, V1ExecAction, V1FCVolumeSource, V1FlexVolumeSource, V1FlockerVolumeSource, V1GCEPersistentDiskVolumeSource, V1GitRepoVolumeSource, V1GlusterfsVolumeSource, V1GroupVersionForDiscovery, V1HTTPGetAction, V1HTTPHeader, V1Handler, V1HorizontalPodAutoscaler, V1HorizontalPodAutoscalerList, V1HorizontalPodAutoscalerSpec, V1HorizontalPodAutoscalerStatus, V1HostPathVolumeSource, V1ISCSIVolumeSource, V1Job, V1JobCondition, V1JobList, V1JobSpec, V1JobStatus, V1KeyToPath, V1LabelSelector, V1LabelSelectorRequirement, V1Lifecycle, V1LimitRange, V1LimitRangeItem, V1LimitRangeList, V1LimitRangeSpec, V1ListMeta, V1LoadBalancerIngress, V1LoadBalancerStatus, V1LocalObjectReference, V1LocalSubjectAccessReview, V1NFSVolumeSource, V1Namespace, V1NamespaceList, V1NamespaceSpec, V1NamespaceStatus, V1Node, V1NodeAddress, V1NodeAffinity, V1NodeCondition, V1NodeDaemonEndpoints, V1NodeList, V1NodeSelector, V1NodeSelectorRequirement, V1NodeSelectorTerm, V1NodeSpec, V1NodeStatus, V1NodeSystemInfo, V1NonResourceAttributes, V1ObjectFieldSelector, V1ObjectMeta, V1ObjectReference, V1OwnerReference, V1PersistentVolume, V1PersistentVolumeClaim, V1PersistentVolumeClaimList, V1PersistentVolumeClaimSpec, V1PersistentVolumeClaimStatus, V1PersistentVolumeClaimVolumeSource, V1PersistentVolumeList, V1PersistentVolumeSpec, V1PersistentVolumeStatus, V1PhotonPersistentDiskVolumeSource, V1Pod, V1PodAffinity, V1PodAffinityTerm, V1PodAntiAffinity, V1PodCondition, V1PodList, V1PodSecurityContext, V1PodSpec, V1PodStatus, V1PodTemplate, V1PodTemplateList, V1PodTemplateSpec, V1PortworxVolumeSource, V1Preconditions, V1PreferredSchedulingTerm, V1Probe, V1ProjectedVolumeSource, V1QuobyteVolumeSource, V1RBDVolumeSource, V1ReplicationController, V1ReplicationControllerCondition, V1ReplicationControllerList, V1ReplicationControllerSpec, V1ReplicationControllerStatus, V1ResourceAttributes, V1ResourceFieldSelector, V1ResourceQuota, V1ResourceQuotaList, V1ResourceQuotaSpec, V1ResourceQuotaStatus, V1ResourceRequirements, V1SELinuxOptions, V1Scale, V1ScaleIOVolumeSource, V1ScaleSpec, V1ScaleStatus, V1Secret, V1SecretEnvSource, V1SecretKeySelector, V1SecretList, V1SecretProjection, V1SecretVolumeSource, V1SecurityContext, V1SelfSubjectAccessReview, V1SelfSubjectAccessReviewSpec, V1ServerAddressByClientCIDR, V1Service, V1ServiceAccount, V1ServiceAccountList, V1ServiceList, V1ServicePort, V1ServiceSpec, V1ServiceStatus, V1Status, V1StatusCause, V1StatusDetails, V1StorageClass, V1StorageClassList, V1SubjectAccessReview, V1SubjectAccessReviewSpec, V1SubjectAccessReviewStatus, V1TCPSocketAction, V1Taint, V1TokenReview, V1TokenReviewSpec, V1TokenReviewStatus, V1Toleration, V1UserInfo, V1Volume, V1VolumeMount, V1VolumeProjection, V1VsphereVirtualDiskVolumeSource, V1WatchEvent, V1WeightedPodAffinityTerm, V1alpha1ClusterRole, V1alpha1ClusterRoleBinding, V1alpha1ClusterRoleBindingList, V1alpha1ClusterRoleList, V1alpha1PodPreset, V1alpha1PodPresetList, V1alpha1PodPresetSpec, V1alpha1PolicyRule, V1alpha1Role, V1alpha1RoleBinding, V1alpha1RoleBindingList, V1alpha1RoleList, V1alpha1RoleRef, V1alpha1Subject, V1beta1APIVersion, V1beta1CertificateSigningRequest, V1beta1CertificateSigningRequestCondition, V1beta1CertificateSigningRequestList, V1beta1CertificateSigningRequestSpec, V1beta1CertificateSigningRequestStatus, V1beta1ClusterRole, V1beta1ClusterRoleBinding, V1beta1ClusterRoleBindingList, V1beta1ClusterRoleList, V1beta1DaemonSet, V1beta1DaemonSetList, V1beta1DaemonSetSpec, V1beta1DaemonSetStatus, V1beta1DaemonSetUpdateStrategy, V1beta1Eviction, V1beta1FSGroupStrategyOptions, V1beta1HTTPIngressPath, V1beta1HTTPIngressRuleValue, V1beta1HostPortRange, V1beta1IDRange, V1beta1Ingress, V1beta1IngressBackend, V1beta1IngressList, V1beta1IngressRule, V1beta1IngressSpec, V1beta1IngressStatus, V1beta1IngressTLS, V1beta1LocalSubjectAccessReview, V1beta1NetworkPolicy, V1beta1NetworkPolicyIngressRule, V1beta1NetworkPolicyList, V1beta1NetworkPolicyPeer, V1beta1NetworkPolicyPort, V1beta1NetworkPolicySpec, V1beta1NonResourceAttributes, V1beta1PodDisruptionBudget, V1beta1PodDisruptionBudgetList, V1beta1PodDisruptionBudgetSpec, V1beta1PodDisruptionBudgetStatus, V1beta1PodSecurityPolicy, V1beta1PodSecurityPolicyList, V1beta1PodSecurityPolicySpec, V1beta1PolicyRule, V1beta1ReplicaSet, V1beta1ReplicaSetCondition, V1beta1ReplicaSetList, V1beta1ReplicaSetSpec, V1beta1ReplicaSetStatus, V1beta1ResourceAttributes, V1beta1Role, V1beta1RoleBinding, V1beta1RoleBindingList, V1beta1RoleList, V1beta1RoleRef, V1beta1RollingUpdateDaemonSet, V1beta1RunAsUserStrategyOptions, V1beta1SELinuxStrategyOptions, V1beta1SelfSubjectAccessReview, V1beta1SelfSubjectAccessReviewSpec, V1beta1StatefulSet, V1beta1StatefulSetList, V1beta1StatefulSetSpec, V1beta1StatefulSetStatus, V1beta1StorageClass, V1beta1StorageClassList, V1beta1Subject, V1beta1SubjectAccessReview, V1beta1SubjectAccessReviewSpec, V1beta1SubjectAccessReviewStatus, V1beta1SupplementalGroupsStrategyOptions, V1beta1ThirdPartyResource, V1beta1ThirdPartyResourceList, V1beta1TokenReview, V1beta1TokenReviewSpec, V1beta1TokenReviewStatus, V1beta1UserInfo, V2alpha1CronJob, V2alpha1CronJobList, V2alpha1CronJobSpec, V2alpha1CronJobStatus, V2alpha1CrossVersionObjectReference, V2alpha1HorizontalPodAutoscaler, V2alpha1HorizontalPodAutoscalerList, V2alpha1HorizontalPodAutoscalerSpec, V2alpha1HorizontalPodAutoscalerStatus, V2alpha1JobTemplateSpec, V2alpha1MetricSpec, V2alpha1MetricStatus, V2alpha1ObjectMetricSource, V2alpha1ObjectMetricStatus, V2alpha1PodsMetricSource, V2alpha1PodsMetricStatus, V2alpha1ResourceMetricSource, V2alpha1ResourceMetricStatus, VersionInfo, ApisApi, AppsApi, Apps_v1beta1Api, AuthenticationApi, Authentication_v1Api, Authentication_v1beta1Api, AuthorizationApi, Authorization_v1Api, Authorization_v1beta1Api, AutoscalingApi, Autoscaling_v1Api, Autoscaling_v2alpha1Api, BatchApi, Batch_v1Api, Batch_v2alpha1Api, CertificatesApi, Certificates_v1beta1Api, CoreApi, Core_v1Api, ExtensionsApi, Extensions_v1beta1Api, LogsApi, PolicyApi, Policy_v1beta1Api, RbacAuthorizationApi, RbacAuthorization_v1alpha1Api, RbacAuthorization_v1beta1Api, SettingsApi, Settings_v1alpha1Api, StorageApi, Storage_v1Api, Storage_v1beta1Api, VersionApi) { - 'use strict'; - - /** - * Javascript client for Kubernetes..
- * The index module provides access to constructors for all the classes which comprise the public API. - *

- * An AMD (recommended!) or CommonJS application will generally do something equivalent to the following: - *

-   * var KubernetesJsClient = require('io.kubernetes.js/index'); // See note below*.
-   * var xxxSvc = new KubernetesJsClient.XxxApi(); // Allocate the API class we're going to use.
-   * var yyyModel = new KubernetesJsClient.Yyy(); // Construct a model instance.
-   * yyyModel.someProperty = 'someValue';
-   * ...
-   * var zzz = xxxSvc.doSomething(yyyModel); // Invoke the service.
-   * ...
-   * 
- * *NOTE: For a top-level AMD script, use require(['io.kubernetes.js/index'], function(){...}) - * and put the application logic within the callback function. - *

- *

- * A non-AMD browser application (discouraged) might do something like this: - *

-   * var xxxSvc = new KubernetesJsClient.XxxApi(); // Allocate the API class we're going to use.
-   * var yyy = new KubernetesJsClient.Yyy(); // Construct a model instance.
-   * yyyModel.someProperty = 'someValue';
-   * ...
-   * var zzz = xxxSvc.doSomething(yyyModel); // Invoke the service.
-   * ...
-   * 
- *

- * @module io.kubernetes.js/index - * @version 1.0.0-snapshot - */ - var exports = { - /** - * The ApiClient constructor. - * @property {module:io.kubernetes.js/ApiClient} - */ - ApiClient: ApiClient, - /** - * The AppsV1beta1Deployment model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1Deployment} - */ - AppsV1beta1Deployment: AppsV1beta1Deployment, - /** - * The AppsV1beta1DeploymentCondition model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1DeploymentCondition} - */ - AppsV1beta1DeploymentCondition: AppsV1beta1DeploymentCondition, - /** - * The AppsV1beta1DeploymentList model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1DeploymentList} - */ - AppsV1beta1DeploymentList: AppsV1beta1DeploymentList, - /** - * The AppsV1beta1DeploymentRollback model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1DeploymentRollback} - */ - AppsV1beta1DeploymentRollback: AppsV1beta1DeploymentRollback, - /** - * The AppsV1beta1DeploymentSpec model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1DeploymentSpec} - */ - AppsV1beta1DeploymentSpec: AppsV1beta1DeploymentSpec, - /** - * The AppsV1beta1DeploymentStatus model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1DeploymentStatus} - */ - AppsV1beta1DeploymentStatus: AppsV1beta1DeploymentStatus, - /** - * The AppsV1beta1DeploymentStrategy model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1DeploymentStrategy} - */ - AppsV1beta1DeploymentStrategy: AppsV1beta1DeploymentStrategy, - /** - * The AppsV1beta1RollbackConfig model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1RollbackConfig} - */ - AppsV1beta1RollbackConfig: AppsV1beta1RollbackConfig, - /** - * The AppsV1beta1RollingUpdateDeployment model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1RollingUpdateDeployment} - */ - AppsV1beta1RollingUpdateDeployment: AppsV1beta1RollingUpdateDeployment, - /** - * The AppsV1beta1Scale model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1Scale} - */ - AppsV1beta1Scale: AppsV1beta1Scale, - /** - * The AppsV1beta1ScaleSpec model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1ScaleSpec} - */ - AppsV1beta1ScaleSpec: AppsV1beta1ScaleSpec, - /** - * The AppsV1beta1ScaleStatus model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1ScaleStatus} - */ - AppsV1beta1ScaleStatus: AppsV1beta1ScaleStatus, - /** - * The ExtensionsV1beta1Deployment model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1Deployment} - */ - ExtensionsV1beta1Deployment: ExtensionsV1beta1Deployment, - /** - * The ExtensionsV1beta1DeploymentCondition model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1DeploymentCondition} - */ - ExtensionsV1beta1DeploymentCondition: ExtensionsV1beta1DeploymentCondition, - /** - * The ExtensionsV1beta1DeploymentList model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1DeploymentList} - */ - ExtensionsV1beta1DeploymentList: ExtensionsV1beta1DeploymentList, - /** - * The ExtensionsV1beta1DeploymentRollback model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1DeploymentRollback} - */ - ExtensionsV1beta1DeploymentRollback: ExtensionsV1beta1DeploymentRollback, - /** - * The ExtensionsV1beta1DeploymentSpec model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1DeploymentSpec} - */ - ExtensionsV1beta1DeploymentSpec: ExtensionsV1beta1DeploymentSpec, - /** - * The ExtensionsV1beta1DeploymentStatus model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1DeploymentStatus} - */ - ExtensionsV1beta1DeploymentStatus: ExtensionsV1beta1DeploymentStatus, - /** - * The ExtensionsV1beta1DeploymentStrategy model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1DeploymentStrategy} - */ - ExtensionsV1beta1DeploymentStrategy: ExtensionsV1beta1DeploymentStrategy, - /** - * The ExtensionsV1beta1RollbackConfig model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1RollbackConfig} - */ - ExtensionsV1beta1RollbackConfig: ExtensionsV1beta1RollbackConfig, - /** - * The ExtensionsV1beta1RollingUpdateDeployment model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1RollingUpdateDeployment} - */ - ExtensionsV1beta1RollingUpdateDeployment: ExtensionsV1beta1RollingUpdateDeployment, - /** - * The ExtensionsV1beta1Scale model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1Scale} - */ - ExtensionsV1beta1Scale: ExtensionsV1beta1Scale, - /** - * The ExtensionsV1beta1ScaleSpec model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1ScaleSpec} - */ - ExtensionsV1beta1ScaleSpec: ExtensionsV1beta1ScaleSpec, - /** - * The ExtensionsV1beta1ScaleStatus model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1ScaleStatus} - */ - ExtensionsV1beta1ScaleStatus: ExtensionsV1beta1ScaleStatus, - /** - * The RuntimeRawExtension model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/RuntimeRawExtension} - */ - RuntimeRawExtension: RuntimeRawExtension, - /** - * The V1APIGroup model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1APIGroup} - */ - V1APIGroup: V1APIGroup, - /** - * The V1APIGroupList model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1APIGroupList} - */ - V1APIGroupList: V1APIGroupList, - /** - * The V1APIResource model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1APIResource} - */ - V1APIResource: V1APIResource, - /** - * The V1APIResourceList model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1APIResourceList} - */ - V1APIResourceList: V1APIResourceList, - /** - * The V1APIVersions model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1APIVersions} - */ - V1APIVersions: V1APIVersions, - /** - * The V1AWSElasticBlockStoreVolumeSource model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1AWSElasticBlockStoreVolumeSource} - */ - V1AWSElasticBlockStoreVolumeSource: V1AWSElasticBlockStoreVolumeSource, - /** - * The V1Affinity model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1Affinity} - */ - V1Affinity: V1Affinity, - /** - * The V1AttachedVolume model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1AttachedVolume} - */ - V1AttachedVolume: V1AttachedVolume, - /** - * The V1AzureDiskVolumeSource model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1AzureDiskVolumeSource} - */ - V1AzureDiskVolumeSource: V1AzureDiskVolumeSource, - /** - * The V1AzureFileVolumeSource model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1AzureFileVolumeSource} - */ - V1AzureFileVolumeSource: V1AzureFileVolumeSource, - /** - * The V1Binding model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1Binding} - */ - V1Binding: V1Binding, - /** - * The V1Capabilities model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1Capabilities} - */ - V1Capabilities: V1Capabilities, - /** - * The V1CephFSVolumeSource model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1CephFSVolumeSource} - */ - V1CephFSVolumeSource: V1CephFSVolumeSource, - /** - * The V1CinderVolumeSource model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1CinderVolumeSource} - */ - V1CinderVolumeSource: V1CinderVolumeSource, - /** - * The V1ComponentCondition model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1ComponentCondition} - */ - V1ComponentCondition: V1ComponentCondition, - /** - * The V1ComponentStatus model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1ComponentStatus} - */ - V1ComponentStatus: V1ComponentStatus, - /** - * The V1ComponentStatusList model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1ComponentStatusList} - */ - V1ComponentStatusList: V1ComponentStatusList, - /** - * The V1ConfigMap model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1ConfigMap} - */ - V1ConfigMap: V1ConfigMap, - /** - * The V1ConfigMapEnvSource model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1ConfigMapEnvSource} - */ - V1ConfigMapEnvSource: V1ConfigMapEnvSource, - /** - * The V1ConfigMapKeySelector model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1ConfigMapKeySelector} - */ - V1ConfigMapKeySelector: V1ConfigMapKeySelector, - /** - * The V1ConfigMapList model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1ConfigMapList} - */ - V1ConfigMapList: V1ConfigMapList, - /** - * The V1ConfigMapProjection model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1ConfigMapProjection} - */ - V1ConfigMapProjection: V1ConfigMapProjection, - /** - * The V1ConfigMapVolumeSource model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1ConfigMapVolumeSource} - */ - V1ConfigMapVolumeSource: V1ConfigMapVolumeSource, - /** - * The V1Container model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1Container} - */ - V1Container: V1Container, - /** - * The V1ContainerImage model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1ContainerImage} - */ - V1ContainerImage: V1ContainerImage, - /** - * The V1ContainerPort model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1ContainerPort} - */ - V1ContainerPort: V1ContainerPort, - /** - * The V1ContainerState model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1ContainerState} - */ - V1ContainerState: V1ContainerState, - /** - * The V1ContainerStateRunning model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1ContainerStateRunning} - */ - V1ContainerStateRunning: V1ContainerStateRunning, - /** - * The V1ContainerStateTerminated model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1ContainerStateTerminated} - */ - V1ContainerStateTerminated: V1ContainerStateTerminated, - /** - * The V1ContainerStateWaiting model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1ContainerStateWaiting} - */ - V1ContainerStateWaiting: V1ContainerStateWaiting, - /** - * The V1ContainerStatus model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1ContainerStatus} - */ - V1ContainerStatus: V1ContainerStatus, - /** - * The V1CrossVersionObjectReference model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1CrossVersionObjectReference} - */ - V1CrossVersionObjectReference: V1CrossVersionObjectReference, - /** - * The V1DaemonEndpoint model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1DaemonEndpoint} - */ - V1DaemonEndpoint: V1DaemonEndpoint, - /** - * The V1DeleteOptions model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1DeleteOptions} - */ - V1DeleteOptions: V1DeleteOptions, - /** - * The V1DownwardAPIProjection model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1DownwardAPIProjection} - */ - V1DownwardAPIProjection: V1DownwardAPIProjection, - /** - * The V1DownwardAPIVolumeFile model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1DownwardAPIVolumeFile} - */ - V1DownwardAPIVolumeFile: V1DownwardAPIVolumeFile, - /** - * The V1DownwardAPIVolumeSource model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1DownwardAPIVolumeSource} - */ - V1DownwardAPIVolumeSource: V1DownwardAPIVolumeSource, - /** - * The V1EmptyDirVolumeSource model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1EmptyDirVolumeSource} - */ - V1EmptyDirVolumeSource: V1EmptyDirVolumeSource, - /** - * The V1EndpointAddress model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1EndpointAddress} - */ - V1EndpointAddress: V1EndpointAddress, - /** - * The V1EndpointPort model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1EndpointPort} - */ - V1EndpointPort: V1EndpointPort, - /** - * The V1EndpointSubset model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1EndpointSubset} - */ - V1EndpointSubset: V1EndpointSubset, - /** - * The V1Endpoints model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1Endpoints} - */ - V1Endpoints: V1Endpoints, - /** - * The V1EndpointsList model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1EndpointsList} - */ - V1EndpointsList: V1EndpointsList, - /** - * The V1EnvFromSource model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1EnvFromSource} - */ - V1EnvFromSource: V1EnvFromSource, - /** - * The V1EnvVar model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1EnvVar} - */ - V1EnvVar: V1EnvVar, - /** - * The V1EnvVarSource model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1EnvVarSource} - */ - V1EnvVarSource: V1EnvVarSource, - /** - * The V1Event model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1Event} - */ - V1Event: V1Event, - /** - * The V1EventList model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1EventList} - */ - V1EventList: V1EventList, - /** - * The V1EventSource model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1EventSource} - */ - V1EventSource: V1EventSource, - /** - * The V1ExecAction model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1ExecAction} - */ - V1ExecAction: V1ExecAction, - /** - * The V1FCVolumeSource model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1FCVolumeSource} - */ - V1FCVolumeSource: V1FCVolumeSource, - /** - * The V1FlexVolumeSource model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1FlexVolumeSource} - */ - V1FlexVolumeSource: V1FlexVolumeSource, - /** - * The V1FlockerVolumeSource model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1FlockerVolumeSource} - */ - V1FlockerVolumeSource: V1FlockerVolumeSource, - /** - * The V1GCEPersistentDiskVolumeSource model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1GCEPersistentDiskVolumeSource} - */ - V1GCEPersistentDiskVolumeSource: V1GCEPersistentDiskVolumeSource, - /** - * The V1GitRepoVolumeSource model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1GitRepoVolumeSource} - */ - V1GitRepoVolumeSource: V1GitRepoVolumeSource, - /** - * The V1GlusterfsVolumeSource model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1GlusterfsVolumeSource} - */ - V1GlusterfsVolumeSource: V1GlusterfsVolumeSource, - /** - * The V1GroupVersionForDiscovery model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1GroupVersionForDiscovery} - */ - V1GroupVersionForDiscovery: V1GroupVersionForDiscovery, - /** - * The V1HTTPGetAction model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1HTTPGetAction} - */ - V1HTTPGetAction: V1HTTPGetAction, - /** - * The V1HTTPHeader model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1HTTPHeader} - */ - V1HTTPHeader: V1HTTPHeader, - /** - * The V1Handler model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1Handler} - */ - V1Handler: V1Handler, - /** - * The V1HorizontalPodAutoscaler model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1HorizontalPodAutoscaler} - */ - V1HorizontalPodAutoscaler: V1HorizontalPodAutoscaler, - /** - * The V1HorizontalPodAutoscalerList model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1HorizontalPodAutoscalerList} - */ - V1HorizontalPodAutoscalerList: V1HorizontalPodAutoscalerList, - /** - * The V1HorizontalPodAutoscalerSpec model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1HorizontalPodAutoscalerSpec} - */ - V1HorizontalPodAutoscalerSpec: V1HorizontalPodAutoscalerSpec, - /** - * The V1HorizontalPodAutoscalerStatus model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1HorizontalPodAutoscalerStatus} - */ - V1HorizontalPodAutoscalerStatus: V1HorizontalPodAutoscalerStatus, - /** - * The V1HostPathVolumeSource model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1HostPathVolumeSource} - */ - V1HostPathVolumeSource: V1HostPathVolumeSource, - /** - * The V1ISCSIVolumeSource model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1ISCSIVolumeSource} - */ - V1ISCSIVolumeSource: V1ISCSIVolumeSource, - /** - * The V1Job model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1Job} - */ - V1Job: V1Job, - /** - * The V1JobCondition model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1JobCondition} - */ - V1JobCondition: V1JobCondition, - /** - * The V1JobList model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1JobList} - */ - V1JobList: V1JobList, - /** - * The V1JobSpec model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1JobSpec} - */ - V1JobSpec: V1JobSpec, - /** - * The V1JobStatus model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1JobStatus} - */ - V1JobStatus: V1JobStatus, - /** - * The V1KeyToPath model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1KeyToPath} - */ - V1KeyToPath: V1KeyToPath, - /** - * The V1LabelSelector model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1LabelSelector} - */ - V1LabelSelector: V1LabelSelector, - /** - * The V1LabelSelectorRequirement model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1LabelSelectorRequirement} - */ - V1LabelSelectorRequirement: V1LabelSelectorRequirement, - /** - * The V1Lifecycle model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1Lifecycle} - */ - V1Lifecycle: V1Lifecycle, - /** - * The V1LimitRange model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1LimitRange} - */ - V1LimitRange: V1LimitRange, - /** - * The V1LimitRangeItem model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1LimitRangeItem} - */ - V1LimitRangeItem: V1LimitRangeItem, - /** - * The V1LimitRangeList model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1LimitRangeList} - */ - V1LimitRangeList: V1LimitRangeList, - /** - * The V1LimitRangeSpec model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1LimitRangeSpec} - */ - V1LimitRangeSpec: V1LimitRangeSpec, - /** - * The V1ListMeta model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1ListMeta} - */ - V1ListMeta: V1ListMeta, - /** - * The V1LoadBalancerIngress model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1LoadBalancerIngress} - */ - V1LoadBalancerIngress: V1LoadBalancerIngress, - /** - * The V1LoadBalancerStatus model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1LoadBalancerStatus} - */ - V1LoadBalancerStatus: V1LoadBalancerStatus, - /** - * The V1LocalObjectReference model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1LocalObjectReference} - */ - V1LocalObjectReference: V1LocalObjectReference, - /** - * The V1LocalSubjectAccessReview model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1LocalSubjectAccessReview} - */ - V1LocalSubjectAccessReview: V1LocalSubjectAccessReview, - /** - * The V1NFSVolumeSource model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1NFSVolumeSource} - */ - V1NFSVolumeSource: V1NFSVolumeSource, - /** - * The V1Namespace model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1Namespace} - */ - V1Namespace: V1Namespace, - /** - * The V1NamespaceList model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1NamespaceList} - */ - V1NamespaceList: V1NamespaceList, - /** - * The V1NamespaceSpec model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1NamespaceSpec} - */ - V1NamespaceSpec: V1NamespaceSpec, - /** - * The V1NamespaceStatus model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1NamespaceStatus} - */ - V1NamespaceStatus: V1NamespaceStatus, - /** - * The V1Node model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1Node} - */ - V1Node: V1Node, - /** - * The V1NodeAddress model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1NodeAddress} - */ - V1NodeAddress: V1NodeAddress, - /** - * The V1NodeAffinity model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1NodeAffinity} - */ - V1NodeAffinity: V1NodeAffinity, - /** - * The V1NodeCondition model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1NodeCondition} - */ - V1NodeCondition: V1NodeCondition, - /** - * The V1NodeDaemonEndpoints model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1NodeDaemonEndpoints} - */ - V1NodeDaemonEndpoints: V1NodeDaemonEndpoints, - /** - * The V1NodeList model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1NodeList} - */ - V1NodeList: V1NodeList, - /** - * The V1NodeSelector model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1NodeSelector} - */ - V1NodeSelector: V1NodeSelector, - /** - * The V1NodeSelectorRequirement model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1NodeSelectorRequirement} - */ - V1NodeSelectorRequirement: V1NodeSelectorRequirement, - /** - * The V1NodeSelectorTerm model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1NodeSelectorTerm} - */ - V1NodeSelectorTerm: V1NodeSelectorTerm, - /** - * The V1NodeSpec model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1NodeSpec} - */ - V1NodeSpec: V1NodeSpec, - /** - * The V1NodeStatus model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1NodeStatus} - */ - V1NodeStatus: V1NodeStatus, - /** - * The V1NodeSystemInfo model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1NodeSystemInfo} - */ - V1NodeSystemInfo: V1NodeSystemInfo, - /** - * The V1NonResourceAttributes model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1NonResourceAttributes} - */ - V1NonResourceAttributes: V1NonResourceAttributes, - /** - * The V1ObjectFieldSelector model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1ObjectFieldSelector} - */ - V1ObjectFieldSelector: V1ObjectFieldSelector, - /** - * The V1ObjectMeta model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1ObjectMeta} - */ - V1ObjectMeta: V1ObjectMeta, - /** - * The V1ObjectReference model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1ObjectReference} - */ - V1ObjectReference: V1ObjectReference, - /** - * The V1OwnerReference model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1OwnerReference} - */ - V1OwnerReference: V1OwnerReference, - /** - * The V1PersistentVolume model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1PersistentVolume} - */ - V1PersistentVolume: V1PersistentVolume, - /** - * The V1PersistentVolumeClaim model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1PersistentVolumeClaim} - */ - V1PersistentVolumeClaim: V1PersistentVolumeClaim, - /** - * The V1PersistentVolumeClaimList model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1PersistentVolumeClaimList} - */ - V1PersistentVolumeClaimList: V1PersistentVolumeClaimList, - /** - * The V1PersistentVolumeClaimSpec model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1PersistentVolumeClaimSpec} - */ - V1PersistentVolumeClaimSpec: V1PersistentVolumeClaimSpec, - /** - * The V1PersistentVolumeClaimStatus model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1PersistentVolumeClaimStatus} - */ - V1PersistentVolumeClaimStatus: V1PersistentVolumeClaimStatus, - /** - * The V1PersistentVolumeClaimVolumeSource model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1PersistentVolumeClaimVolumeSource} - */ - V1PersistentVolumeClaimVolumeSource: V1PersistentVolumeClaimVolumeSource, - /** - * The V1PersistentVolumeList model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1PersistentVolumeList} - */ - V1PersistentVolumeList: V1PersistentVolumeList, - /** - * The V1PersistentVolumeSpec model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1PersistentVolumeSpec} - */ - V1PersistentVolumeSpec: V1PersistentVolumeSpec, - /** - * The V1PersistentVolumeStatus model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1PersistentVolumeStatus} - */ - V1PersistentVolumeStatus: V1PersistentVolumeStatus, - /** - * The V1PhotonPersistentDiskVolumeSource model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1PhotonPersistentDiskVolumeSource} - */ - V1PhotonPersistentDiskVolumeSource: V1PhotonPersistentDiskVolumeSource, - /** - * The V1Pod model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1Pod} - */ - V1Pod: V1Pod, - /** - * The V1PodAffinity model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1PodAffinity} - */ - V1PodAffinity: V1PodAffinity, - /** - * The V1PodAffinityTerm model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1PodAffinityTerm} - */ - V1PodAffinityTerm: V1PodAffinityTerm, - /** - * The V1PodAntiAffinity model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1PodAntiAffinity} - */ - V1PodAntiAffinity: V1PodAntiAffinity, - /** - * The V1PodCondition model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1PodCondition} - */ - V1PodCondition: V1PodCondition, - /** - * The V1PodList model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1PodList} - */ - V1PodList: V1PodList, - /** - * The V1PodSecurityContext model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1PodSecurityContext} - */ - V1PodSecurityContext: V1PodSecurityContext, - /** - * The V1PodSpec model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1PodSpec} - */ - V1PodSpec: V1PodSpec, - /** - * The V1PodStatus model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1PodStatus} - */ - V1PodStatus: V1PodStatus, - /** - * The V1PodTemplate model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1PodTemplate} - */ - V1PodTemplate: V1PodTemplate, - /** - * The V1PodTemplateList model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1PodTemplateList} - */ - V1PodTemplateList: V1PodTemplateList, - /** - * The V1PodTemplateSpec model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1PodTemplateSpec} - */ - V1PodTemplateSpec: V1PodTemplateSpec, - /** - * The V1PortworxVolumeSource model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1PortworxVolumeSource} - */ - V1PortworxVolumeSource: V1PortworxVolumeSource, - /** - * The V1Preconditions model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1Preconditions} - */ - V1Preconditions: V1Preconditions, - /** - * The V1PreferredSchedulingTerm model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1PreferredSchedulingTerm} - */ - V1PreferredSchedulingTerm: V1PreferredSchedulingTerm, - /** - * The V1Probe model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1Probe} - */ - V1Probe: V1Probe, - /** - * The V1ProjectedVolumeSource model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1ProjectedVolumeSource} - */ - V1ProjectedVolumeSource: V1ProjectedVolumeSource, - /** - * The V1QuobyteVolumeSource model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1QuobyteVolumeSource} - */ - V1QuobyteVolumeSource: V1QuobyteVolumeSource, - /** - * The V1RBDVolumeSource model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1RBDVolumeSource} - */ - V1RBDVolumeSource: V1RBDVolumeSource, - /** - * The V1ReplicationController model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1ReplicationController} - */ - V1ReplicationController: V1ReplicationController, - /** - * The V1ReplicationControllerCondition model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1ReplicationControllerCondition} - */ - V1ReplicationControllerCondition: V1ReplicationControllerCondition, - /** - * The V1ReplicationControllerList model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1ReplicationControllerList} - */ - V1ReplicationControllerList: V1ReplicationControllerList, - /** - * The V1ReplicationControllerSpec model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1ReplicationControllerSpec} - */ - V1ReplicationControllerSpec: V1ReplicationControllerSpec, - /** - * The V1ReplicationControllerStatus model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1ReplicationControllerStatus} - */ - V1ReplicationControllerStatus: V1ReplicationControllerStatus, - /** - * The V1ResourceAttributes model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1ResourceAttributes} - */ - V1ResourceAttributes: V1ResourceAttributes, - /** - * The V1ResourceFieldSelector model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1ResourceFieldSelector} - */ - V1ResourceFieldSelector: V1ResourceFieldSelector, - /** - * The V1ResourceQuota model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1ResourceQuota} - */ - V1ResourceQuota: V1ResourceQuota, - /** - * The V1ResourceQuotaList model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1ResourceQuotaList} - */ - V1ResourceQuotaList: V1ResourceQuotaList, - /** - * The V1ResourceQuotaSpec model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1ResourceQuotaSpec} - */ - V1ResourceQuotaSpec: V1ResourceQuotaSpec, - /** - * The V1ResourceQuotaStatus model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1ResourceQuotaStatus} - */ - V1ResourceQuotaStatus: V1ResourceQuotaStatus, - /** - * The V1ResourceRequirements model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1ResourceRequirements} - */ - V1ResourceRequirements: V1ResourceRequirements, - /** - * The V1SELinuxOptions model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1SELinuxOptions} - */ - V1SELinuxOptions: V1SELinuxOptions, - /** - * The V1Scale model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1Scale} - */ - V1Scale: V1Scale, - /** - * The V1ScaleIOVolumeSource model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1ScaleIOVolumeSource} - */ - V1ScaleIOVolumeSource: V1ScaleIOVolumeSource, - /** - * The V1ScaleSpec model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1ScaleSpec} - */ - V1ScaleSpec: V1ScaleSpec, - /** - * The V1ScaleStatus model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1ScaleStatus} - */ - V1ScaleStatus: V1ScaleStatus, - /** - * The V1Secret model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1Secret} - */ - V1Secret: V1Secret, - /** - * The V1SecretEnvSource model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1SecretEnvSource} - */ - V1SecretEnvSource: V1SecretEnvSource, - /** - * The V1SecretKeySelector model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1SecretKeySelector} - */ - V1SecretKeySelector: V1SecretKeySelector, - /** - * The V1SecretList model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1SecretList} - */ - V1SecretList: V1SecretList, - /** - * The V1SecretProjection model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1SecretProjection} - */ - V1SecretProjection: V1SecretProjection, - /** - * The V1SecretVolumeSource model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1SecretVolumeSource} - */ - V1SecretVolumeSource: V1SecretVolumeSource, - /** - * The V1SecurityContext model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1SecurityContext} - */ - V1SecurityContext: V1SecurityContext, - /** - * The V1SelfSubjectAccessReview model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1SelfSubjectAccessReview} - */ - V1SelfSubjectAccessReview: V1SelfSubjectAccessReview, - /** - * The V1SelfSubjectAccessReviewSpec model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1SelfSubjectAccessReviewSpec} - */ - V1SelfSubjectAccessReviewSpec: V1SelfSubjectAccessReviewSpec, - /** - * The V1ServerAddressByClientCIDR model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1ServerAddressByClientCIDR} - */ - V1ServerAddressByClientCIDR: V1ServerAddressByClientCIDR, - /** - * The V1Service model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1Service} - */ - V1Service: V1Service, - /** - * The V1ServiceAccount model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1ServiceAccount} - */ - V1ServiceAccount: V1ServiceAccount, - /** - * The V1ServiceAccountList model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1ServiceAccountList} - */ - V1ServiceAccountList: V1ServiceAccountList, - /** - * The V1ServiceList model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1ServiceList} - */ - V1ServiceList: V1ServiceList, - /** - * The V1ServicePort model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1ServicePort} - */ - V1ServicePort: V1ServicePort, - /** - * The V1ServiceSpec model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1ServiceSpec} - */ - V1ServiceSpec: V1ServiceSpec, - /** - * The V1ServiceStatus model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1ServiceStatus} - */ - V1ServiceStatus: V1ServiceStatus, - /** - * The V1Status model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1Status} - */ - V1Status: V1Status, - /** - * The V1StatusCause model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1StatusCause} - */ - V1StatusCause: V1StatusCause, - /** - * The V1StatusDetails model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1StatusDetails} - */ - V1StatusDetails: V1StatusDetails, - /** - * The V1StorageClass model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1StorageClass} - */ - V1StorageClass: V1StorageClass, - /** - * The V1StorageClassList model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1StorageClassList} - */ - V1StorageClassList: V1StorageClassList, - /** - * The V1SubjectAccessReview model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1SubjectAccessReview} - */ - V1SubjectAccessReview: V1SubjectAccessReview, - /** - * The V1SubjectAccessReviewSpec model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1SubjectAccessReviewSpec} - */ - V1SubjectAccessReviewSpec: V1SubjectAccessReviewSpec, - /** - * The V1SubjectAccessReviewStatus model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1SubjectAccessReviewStatus} - */ - V1SubjectAccessReviewStatus: V1SubjectAccessReviewStatus, - /** - * The V1TCPSocketAction model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1TCPSocketAction} - */ - V1TCPSocketAction: V1TCPSocketAction, - /** - * The V1Taint model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1Taint} - */ - V1Taint: V1Taint, - /** - * The V1TokenReview model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1TokenReview} - */ - V1TokenReview: V1TokenReview, - /** - * The V1TokenReviewSpec model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1TokenReviewSpec} - */ - V1TokenReviewSpec: V1TokenReviewSpec, - /** - * The V1TokenReviewStatus model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1TokenReviewStatus} - */ - V1TokenReviewStatus: V1TokenReviewStatus, - /** - * The V1Toleration model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1Toleration} - */ - V1Toleration: V1Toleration, - /** - * The V1UserInfo model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1UserInfo} - */ - V1UserInfo: V1UserInfo, - /** - * The V1Volume model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1Volume} - */ - V1Volume: V1Volume, - /** - * The V1VolumeMount model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1VolumeMount} - */ - V1VolumeMount: V1VolumeMount, - /** - * The V1VolumeProjection model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1VolumeProjection} - */ - V1VolumeProjection: V1VolumeProjection, - /** - * The V1VsphereVirtualDiskVolumeSource model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1VsphereVirtualDiskVolumeSource} - */ - V1VsphereVirtualDiskVolumeSource: V1VsphereVirtualDiskVolumeSource, - /** - * The V1WatchEvent model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1WatchEvent} - */ - V1WatchEvent: V1WatchEvent, - /** - * The V1WeightedPodAffinityTerm model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1WeightedPodAffinityTerm} - */ - V1WeightedPodAffinityTerm: V1WeightedPodAffinityTerm, - /** - * The V1alpha1ClusterRole model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1alpha1ClusterRole} - */ - V1alpha1ClusterRole: V1alpha1ClusterRole, - /** - * The V1alpha1ClusterRoleBinding model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1alpha1ClusterRoleBinding} - */ - V1alpha1ClusterRoleBinding: V1alpha1ClusterRoleBinding, - /** - * The V1alpha1ClusterRoleBindingList model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1alpha1ClusterRoleBindingList} - */ - V1alpha1ClusterRoleBindingList: V1alpha1ClusterRoleBindingList, - /** - * The V1alpha1ClusterRoleList model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1alpha1ClusterRoleList} - */ - V1alpha1ClusterRoleList: V1alpha1ClusterRoleList, - /** - * The V1alpha1PodPreset model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1alpha1PodPreset} - */ - V1alpha1PodPreset: V1alpha1PodPreset, - /** - * The V1alpha1PodPresetList model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1alpha1PodPresetList} - */ - V1alpha1PodPresetList: V1alpha1PodPresetList, - /** - * The V1alpha1PodPresetSpec model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1alpha1PodPresetSpec} - */ - V1alpha1PodPresetSpec: V1alpha1PodPresetSpec, - /** - * The V1alpha1PolicyRule model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1alpha1PolicyRule} - */ - V1alpha1PolicyRule: V1alpha1PolicyRule, - /** - * The V1alpha1Role model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1alpha1Role} - */ - V1alpha1Role: V1alpha1Role, - /** - * The V1alpha1RoleBinding model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1alpha1RoleBinding} - */ - V1alpha1RoleBinding: V1alpha1RoleBinding, - /** - * The V1alpha1RoleBindingList model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1alpha1RoleBindingList} - */ - V1alpha1RoleBindingList: V1alpha1RoleBindingList, - /** - * The V1alpha1RoleList model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1alpha1RoleList} - */ - V1alpha1RoleList: V1alpha1RoleList, - /** - * The V1alpha1RoleRef model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1alpha1RoleRef} - */ - V1alpha1RoleRef: V1alpha1RoleRef, - /** - * The V1alpha1Subject model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1alpha1Subject} - */ - V1alpha1Subject: V1alpha1Subject, - /** - * The V1beta1APIVersion model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1APIVersion} - */ - V1beta1APIVersion: V1beta1APIVersion, - /** - * The V1beta1CertificateSigningRequest model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1CertificateSigningRequest} - */ - V1beta1CertificateSigningRequest: V1beta1CertificateSigningRequest, - /** - * The V1beta1CertificateSigningRequestCondition model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1CertificateSigningRequestCondition} - */ - V1beta1CertificateSigningRequestCondition: V1beta1CertificateSigningRequestCondition, - /** - * The V1beta1CertificateSigningRequestList model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1CertificateSigningRequestList} - */ - V1beta1CertificateSigningRequestList: V1beta1CertificateSigningRequestList, - /** - * The V1beta1CertificateSigningRequestSpec model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1CertificateSigningRequestSpec} - */ - V1beta1CertificateSigningRequestSpec: V1beta1CertificateSigningRequestSpec, - /** - * The V1beta1CertificateSigningRequestStatus model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1CertificateSigningRequestStatus} - */ - V1beta1CertificateSigningRequestStatus: V1beta1CertificateSigningRequestStatus, - /** - * The V1beta1ClusterRole model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1ClusterRole} - */ - V1beta1ClusterRole: V1beta1ClusterRole, - /** - * The V1beta1ClusterRoleBinding model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1ClusterRoleBinding} - */ - V1beta1ClusterRoleBinding: V1beta1ClusterRoleBinding, - /** - * The V1beta1ClusterRoleBindingList model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1ClusterRoleBindingList} - */ - V1beta1ClusterRoleBindingList: V1beta1ClusterRoleBindingList, - /** - * The V1beta1ClusterRoleList model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1ClusterRoleList} - */ - V1beta1ClusterRoleList: V1beta1ClusterRoleList, - /** - * The V1beta1DaemonSet model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1DaemonSet} - */ - V1beta1DaemonSet: V1beta1DaemonSet, - /** - * The V1beta1DaemonSetList model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1DaemonSetList} - */ - V1beta1DaemonSetList: V1beta1DaemonSetList, - /** - * The V1beta1DaemonSetSpec model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1DaemonSetSpec} - */ - V1beta1DaemonSetSpec: V1beta1DaemonSetSpec, - /** - * The V1beta1DaemonSetStatus model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1DaemonSetStatus} - */ - V1beta1DaemonSetStatus: V1beta1DaemonSetStatus, - /** - * The V1beta1DaemonSetUpdateStrategy model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1DaemonSetUpdateStrategy} - */ - V1beta1DaemonSetUpdateStrategy: V1beta1DaemonSetUpdateStrategy, - /** - * The V1beta1Eviction model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1Eviction} - */ - V1beta1Eviction: V1beta1Eviction, - /** - * The V1beta1FSGroupStrategyOptions model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1FSGroupStrategyOptions} - */ - V1beta1FSGroupStrategyOptions: V1beta1FSGroupStrategyOptions, - /** - * The V1beta1HTTPIngressPath model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1HTTPIngressPath} - */ - V1beta1HTTPIngressPath: V1beta1HTTPIngressPath, - /** - * The V1beta1HTTPIngressRuleValue model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1HTTPIngressRuleValue} - */ - V1beta1HTTPIngressRuleValue: V1beta1HTTPIngressRuleValue, - /** - * The V1beta1HostPortRange model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1HostPortRange} - */ - V1beta1HostPortRange: V1beta1HostPortRange, - /** - * The V1beta1IDRange model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1IDRange} - */ - V1beta1IDRange: V1beta1IDRange, - /** - * The V1beta1Ingress model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1Ingress} - */ - V1beta1Ingress: V1beta1Ingress, - /** - * The V1beta1IngressBackend model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1IngressBackend} - */ - V1beta1IngressBackend: V1beta1IngressBackend, - /** - * The V1beta1IngressList model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1IngressList} - */ - V1beta1IngressList: V1beta1IngressList, - /** - * The V1beta1IngressRule model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1IngressRule} - */ - V1beta1IngressRule: V1beta1IngressRule, - /** - * The V1beta1IngressSpec model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1IngressSpec} - */ - V1beta1IngressSpec: V1beta1IngressSpec, - /** - * The V1beta1IngressStatus model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1IngressStatus} - */ - V1beta1IngressStatus: V1beta1IngressStatus, - /** - * The V1beta1IngressTLS model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1IngressTLS} - */ - V1beta1IngressTLS: V1beta1IngressTLS, - /** - * The V1beta1LocalSubjectAccessReview model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1LocalSubjectAccessReview} - */ - V1beta1LocalSubjectAccessReview: V1beta1LocalSubjectAccessReview, - /** - * The V1beta1NetworkPolicy model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1NetworkPolicy} - */ - V1beta1NetworkPolicy: V1beta1NetworkPolicy, - /** - * The V1beta1NetworkPolicyIngressRule model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1NetworkPolicyIngressRule} - */ - V1beta1NetworkPolicyIngressRule: V1beta1NetworkPolicyIngressRule, - /** - * The V1beta1NetworkPolicyList model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1NetworkPolicyList} - */ - V1beta1NetworkPolicyList: V1beta1NetworkPolicyList, - /** - * The V1beta1NetworkPolicyPeer model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1NetworkPolicyPeer} - */ - V1beta1NetworkPolicyPeer: V1beta1NetworkPolicyPeer, - /** - * The V1beta1NetworkPolicyPort model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1NetworkPolicyPort} - */ - V1beta1NetworkPolicyPort: V1beta1NetworkPolicyPort, - /** - * The V1beta1NetworkPolicySpec model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1NetworkPolicySpec} - */ - V1beta1NetworkPolicySpec: V1beta1NetworkPolicySpec, - /** - * The V1beta1NonResourceAttributes model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1NonResourceAttributes} - */ - V1beta1NonResourceAttributes: V1beta1NonResourceAttributes, - /** - * The V1beta1PodDisruptionBudget model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1PodDisruptionBudget} - */ - V1beta1PodDisruptionBudget: V1beta1PodDisruptionBudget, - /** - * The V1beta1PodDisruptionBudgetList model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1PodDisruptionBudgetList} - */ - V1beta1PodDisruptionBudgetList: V1beta1PodDisruptionBudgetList, - /** - * The V1beta1PodDisruptionBudgetSpec model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1PodDisruptionBudgetSpec} - */ - V1beta1PodDisruptionBudgetSpec: V1beta1PodDisruptionBudgetSpec, - /** - * The V1beta1PodDisruptionBudgetStatus model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1PodDisruptionBudgetStatus} - */ - V1beta1PodDisruptionBudgetStatus: V1beta1PodDisruptionBudgetStatus, - /** - * The V1beta1PodSecurityPolicy model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1PodSecurityPolicy} - */ - V1beta1PodSecurityPolicy: V1beta1PodSecurityPolicy, - /** - * The V1beta1PodSecurityPolicyList model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1PodSecurityPolicyList} - */ - V1beta1PodSecurityPolicyList: V1beta1PodSecurityPolicyList, - /** - * The V1beta1PodSecurityPolicySpec model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1PodSecurityPolicySpec} - */ - V1beta1PodSecurityPolicySpec: V1beta1PodSecurityPolicySpec, - /** - * The V1beta1PolicyRule model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1PolicyRule} - */ - V1beta1PolicyRule: V1beta1PolicyRule, - /** - * The V1beta1ReplicaSet model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1ReplicaSet} - */ - V1beta1ReplicaSet: V1beta1ReplicaSet, - /** - * The V1beta1ReplicaSetCondition model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1ReplicaSetCondition} - */ - V1beta1ReplicaSetCondition: V1beta1ReplicaSetCondition, - /** - * The V1beta1ReplicaSetList model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1ReplicaSetList} - */ - V1beta1ReplicaSetList: V1beta1ReplicaSetList, - /** - * The V1beta1ReplicaSetSpec model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1ReplicaSetSpec} - */ - V1beta1ReplicaSetSpec: V1beta1ReplicaSetSpec, - /** - * The V1beta1ReplicaSetStatus model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1ReplicaSetStatus} - */ - V1beta1ReplicaSetStatus: V1beta1ReplicaSetStatus, - /** - * The V1beta1ResourceAttributes model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1ResourceAttributes} - */ - V1beta1ResourceAttributes: V1beta1ResourceAttributes, - /** - * The V1beta1Role model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1Role} - */ - V1beta1Role: V1beta1Role, - /** - * The V1beta1RoleBinding model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1RoleBinding} - */ - V1beta1RoleBinding: V1beta1RoleBinding, - /** - * The V1beta1RoleBindingList model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1RoleBindingList} - */ - V1beta1RoleBindingList: V1beta1RoleBindingList, - /** - * The V1beta1RoleList model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1RoleList} - */ - V1beta1RoleList: V1beta1RoleList, - /** - * The V1beta1RoleRef model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1RoleRef} - */ - V1beta1RoleRef: V1beta1RoleRef, - /** - * The V1beta1RollingUpdateDaemonSet model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1RollingUpdateDaemonSet} - */ - V1beta1RollingUpdateDaemonSet: V1beta1RollingUpdateDaemonSet, - /** - * The V1beta1RunAsUserStrategyOptions model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1RunAsUserStrategyOptions} - */ - V1beta1RunAsUserStrategyOptions: V1beta1RunAsUserStrategyOptions, - /** - * The V1beta1SELinuxStrategyOptions model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1SELinuxStrategyOptions} - */ - V1beta1SELinuxStrategyOptions: V1beta1SELinuxStrategyOptions, - /** - * The V1beta1SelfSubjectAccessReview model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1SelfSubjectAccessReview} - */ - V1beta1SelfSubjectAccessReview: V1beta1SelfSubjectAccessReview, - /** - * The V1beta1SelfSubjectAccessReviewSpec model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1SelfSubjectAccessReviewSpec} - */ - V1beta1SelfSubjectAccessReviewSpec: V1beta1SelfSubjectAccessReviewSpec, - /** - * The V1beta1StatefulSet model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1StatefulSet} - */ - V1beta1StatefulSet: V1beta1StatefulSet, - /** - * The V1beta1StatefulSetList model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1StatefulSetList} - */ - V1beta1StatefulSetList: V1beta1StatefulSetList, - /** - * The V1beta1StatefulSetSpec model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1StatefulSetSpec} - */ - V1beta1StatefulSetSpec: V1beta1StatefulSetSpec, - /** - * The V1beta1StatefulSetStatus model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1StatefulSetStatus} - */ - V1beta1StatefulSetStatus: V1beta1StatefulSetStatus, - /** - * The V1beta1StorageClass model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1StorageClass} - */ - V1beta1StorageClass: V1beta1StorageClass, - /** - * The V1beta1StorageClassList model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1StorageClassList} - */ - V1beta1StorageClassList: V1beta1StorageClassList, - /** - * The V1beta1Subject model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1Subject} - */ - V1beta1Subject: V1beta1Subject, - /** - * The V1beta1SubjectAccessReview model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1SubjectAccessReview} - */ - V1beta1SubjectAccessReview: V1beta1SubjectAccessReview, - /** - * The V1beta1SubjectAccessReviewSpec model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1SubjectAccessReviewSpec} - */ - V1beta1SubjectAccessReviewSpec: V1beta1SubjectAccessReviewSpec, - /** - * The V1beta1SubjectAccessReviewStatus model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1SubjectAccessReviewStatus} - */ - V1beta1SubjectAccessReviewStatus: V1beta1SubjectAccessReviewStatus, - /** - * The V1beta1SupplementalGroupsStrategyOptions model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1SupplementalGroupsStrategyOptions} - */ - V1beta1SupplementalGroupsStrategyOptions: V1beta1SupplementalGroupsStrategyOptions, - /** - * The V1beta1ThirdPartyResource model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1ThirdPartyResource} - */ - V1beta1ThirdPartyResource: V1beta1ThirdPartyResource, - /** - * The V1beta1ThirdPartyResourceList model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1ThirdPartyResourceList} - */ - V1beta1ThirdPartyResourceList: V1beta1ThirdPartyResourceList, - /** - * The V1beta1TokenReview model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1TokenReview} - */ - V1beta1TokenReview: V1beta1TokenReview, - /** - * The V1beta1TokenReviewSpec model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1TokenReviewSpec} - */ - V1beta1TokenReviewSpec: V1beta1TokenReviewSpec, - /** - * The V1beta1TokenReviewStatus model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1TokenReviewStatus} - */ - V1beta1TokenReviewStatus: V1beta1TokenReviewStatus, - /** - * The V1beta1UserInfo model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1UserInfo} - */ - V1beta1UserInfo: V1beta1UserInfo, - /** - * The V2alpha1CronJob model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V2alpha1CronJob} - */ - V2alpha1CronJob: V2alpha1CronJob, - /** - * The V2alpha1CronJobList model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V2alpha1CronJobList} - */ - V2alpha1CronJobList: V2alpha1CronJobList, - /** - * The V2alpha1CronJobSpec model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V2alpha1CronJobSpec} - */ - V2alpha1CronJobSpec: V2alpha1CronJobSpec, - /** - * The V2alpha1CronJobStatus model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V2alpha1CronJobStatus} - */ - V2alpha1CronJobStatus: V2alpha1CronJobStatus, - /** - * The V2alpha1CrossVersionObjectReference model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V2alpha1CrossVersionObjectReference} - */ - V2alpha1CrossVersionObjectReference: V2alpha1CrossVersionObjectReference, - /** - * The V2alpha1HorizontalPodAutoscaler model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V2alpha1HorizontalPodAutoscaler} - */ - V2alpha1HorizontalPodAutoscaler: V2alpha1HorizontalPodAutoscaler, - /** - * The V2alpha1HorizontalPodAutoscalerList model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V2alpha1HorizontalPodAutoscalerList} - */ - V2alpha1HorizontalPodAutoscalerList: V2alpha1HorizontalPodAutoscalerList, - /** - * The V2alpha1HorizontalPodAutoscalerSpec model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V2alpha1HorizontalPodAutoscalerSpec} - */ - V2alpha1HorizontalPodAutoscalerSpec: V2alpha1HorizontalPodAutoscalerSpec, - /** - * The V2alpha1HorizontalPodAutoscalerStatus model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V2alpha1HorizontalPodAutoscalerStatus} - */ - V2alpha1HorizontalPodAutoscalerStatus: V2alpha1HorizontalPodAutoscalerStatus, - /** - * The V2alpha1JobTemplateSpec model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V2alpha1JobTemplateSpec} - */ - V2alpha1JobTemplateSpec: V2alpha1JobTemplateSpec, - /** - * The V2alpha1MetricSpec model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V2alpha1MetricSpec} - */ - V2alpha1MetricSpec: V2alpha1MetricSpec, - /** - * The V2alpha1MetricStatus model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V2alpha1MetricStatus} - */ - V2alpha1MetricStatus: V2alpha1MetricStatus, - /** - * The V2alpha1ObjectMetricSource model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V2alpha1ObjectMetricSource} - */ - V2alpha1ObjectMetricSource: V2alpha1ObjectMetricSource, - /** - * The V2alpha1ObjectMetricStatus model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V2alpha1ObjectMetricStatus} - */ - V2alpha1ObjectMetricStatus: V2alpha1ObjectMetricStatus, - /** - * The V2alpha1PodsMetricSource model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V2alpha1PodsMetricSource} - */ - V2alpha1PodsMetricSource: V2alpha1PodsMetricSource, - /** - * The V2alpha1PodsMetricStatus model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V2alpha1PodsMetricStatus} - */ - V2alpha1PodsMetricStatus: V2alpha1PodsMetricStatus, - /** - * The V2alpha1ResourceMetricSource model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V2alpha1ResourceMetricSource} - */ - V2alpha1ResourceMetricSource: V2alpha1ResourceMetricSource, - /** - * The V2alpha1ResourceMetricStatus model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/V2alpha1ResourceMetricStatus} - */ - V2alpha1ResourceMetricStatus: V2alpha1ResourceMetricStatus, - /** - * The VersionInfo model constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.models/VersionInfo} - */ - VersionInfo: VersionInfo, - /** - * The ApisApi service constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.apis/ApisApi} - */ - ApisApi: ApisApi, - /** - * The AppsApi service constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.apis/AppsApi} - */ - AppsApi: AppsApi, - /** - * The Apps_v1beta1Api service constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.apis/Apps_v1beta1Api} - */ - Apps_v1beta1Api: Apps_v1beta1Api, - /** - * The AuthenticationApi service constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.apis/AuthenticationApi} - */ - AuthenticationApi: AuthenticationApi, - /** - * The Authentication_v1Api service constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.apis/Authentication_v1Api} - */ - Authentication_v1Api: Authentication_v1Api, - /** - * The Authentication_v1beta1Api service constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.apis/Authentication_v1beta1Api} - */ - Authentication_v1beta1Api: Authentication_v1beta1Api, - /** - * The AuthorizationApi service constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.apis/AuthorizationApi} - */ - AuthorizationApi: AuthorizationApi, - /** - * The Authorization_v1Api service constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.apis/Authorization_v1Api} - */ - Authorization_v1Api: Authorization_v1Api, - /** - * The Authorization_v1beta1Api service constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.apis/Authorization_v1beta1Api} - */ - Authorization_v1beta1Api: Authorization_v1beta1Api, - /** - * The AutoscalingApi service constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.apis/AutoscalingApi} - */ - AutoscalingApi: AutoscalingApi, - /** - * The Autoscaling_v1Api service constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.apis/Autoscaling_v1Api} - */ - Autoscaling_v1Api: Autoscaling_v1Api, - /** - * The Autoscaling_v2alpha1Api service constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.apis/Autoscaling_v2alpha1Api} - */ - Autoscaling_v2alpha1Api: Autoscaling_v2alpha1Api, - /** - * The BatchApi service constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.apis/BatchApi} - */ - BatchApi: BatchApi, - /** - * The Batch_v1Api service constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.apis/Batch_v1Api} - */ - Batch_v1Api: Batch_v1Api, - /** - * The Batch_v2alpha1Api service constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.apis/Batch_v2alpha1Api} - */ - Batch_v2alpha1Api: Batch_v2alpha1Api, - /** - * The CertificatesApi service constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.apis/CertificatesApi} - */ - CertificatesApi: CertificatesApi, - /** - * The Certificates_v1beta1Api service constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.apis/Certificates_v1beta1Api} - */ - Certificates_v1beta1Api: Certificates_v1beta1Api, - /** - * The CoreApi service constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.apis/CoreApi} - */ - CoreApi: CoreApi, - /** - * The Core_v1Api service constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api} - */ - Core_v1Api: Core_v1Api, - /** - * The ExtensionsApi service constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.apis/ExtensionsApi} - */ - ExtensionsApi: ExtensionsApi, - /** - * The Extensions_v1beta1Api service constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api} - */ - Extensions_v1beta1Api: Extensions_v1beta1Api, - /** - * The LogsApi service constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.apis/LogsApi} - */ - LogsApi: LogsApi, - /** - * The PolicyApi service constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.apis/PolicyApi} - */ - PolicyApi: PolicyApi, - /** - * The Policy_v1beta1Api service constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.apis/Policy_v1beta1Api} - */ - Policy_v1beta1Api: Policy_v1beta1Api, - /** - * The RbacAuthorizationApi service constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.apis/RbacAuthorizationApi} - */ - RbacAuthorizationApi: RbacAuthorizationApi, - /** - * The RbacAuthorization_v1alpha1Api service constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.apis/RbacAuthorization_v1alpha1Api} - */ - RbacAuthorization_v1alpha1Api: RbacAuthorization_v1alpha1Api, - /** - * The RbacAuthorization_v1beta1Api service constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.apis/RbacAuthorization_v1beta1Api} - */ - RbacAuthorization_v1beta1Api: RbacAuthorization_v1beta1Api, - /** - * The SettingsApi service constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.apis/SettingsApi} - */ - SettingsApi: SettingsApi, - /** - * The Settings_v1alpha1Api service constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.apis/Settings_v1alpha1Api} - */ - Settings_v1alpha1Api: Settings_v1alpha1Api, - /** - * The StorageApi service constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.apis/StorageApi} - */ - StorageApi: StorageApi, - /** - * The Storage_v1Api service constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.apis/Storage_v1Api} - */ - Storage_v1Api: Storage_v1Api, - /** - * The Storage_v1beta1Api service constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.apis/Storage_v1beta1Api} - */ - Storage_v1beta1Api: Storage_v1beta1Api, - /** - * The VersionApi service constructor. - * @property {module:io.kubernetes.js/io.kubernetes.js.apis/VersionApi} - */ - VersionApi: VersionApi - }; - - return exports; -})); diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.apis/ApisApi.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.apis/ApisApi.js deleted file mode 100644 index f112cbe5bb..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.apis/ApisApi.js +++ /dev/null @@ -1,88 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1APIGroupList'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('../io.kubernetes.js.models/V1APIGroupList')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.ApisApi = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1APIGroupList); - } -}(this, function(ApiClient, V1APIGroupList) { - 'use strict'; - - /** - * Apis service. - * @module io.kubernetes.js/io.kubernetes.js.apis/ApisApi - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new ApisApi. - * @alias module:io.kubernetes.js/io.kubernetes.js.apis/ApisApi - * @class - * @param {module:io.kubernetes.js/ApiClient} apiClient Optional API client implementation to use, - * default to {@link module:io.kubernetes.js/ApiClient#instance} if unspecified. - */ - var exports = function(apiClient) { - this.apiClient = apiClient || ApiClient.instance; - - - /** - * Callback function to receive the result of the getAPIVersions operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/ApisApi~getAPIVersionsCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1APIGroupList} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * get available API versions - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/ApisApi~getAPIVersionsCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1APIGroupList} - */ - this.getAPIVersions = function(callback) { - var postBody = null; - - - var pathParams = { - }; - var queryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1APIGroupList; - - return this.apiClient.callApi( - '/apis/', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - }; - - return exports; -})); diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.apis/AppsApi.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.apis/AppsApi.js deleted file mode 100644 index 5e8cf2cdd5..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.apis/AppsApi.js +++ /dev/null @@ -1,88 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1APIGroup'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('../io.kubernetes.js.models/V1APIGroup')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.AppsApi = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1APIGroup); - } -}(this, function(ApiClient, V1APIGroup) { - 'use strict'; - - /** - * Apps service. - * @module io.kubernetes.js/io.kubernetes.js.apis/AppsApi - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new AppsApi. - * @alias module:io.kubernetes.js/io.kubernetes.js.apis/AppsApi - * @class - * @param {module:io.kubernetes.js/ApiClient} apiClient Optional API client implementation to use, - * default to {@link module:io.kubernetes.js/ApiClient#instance} if unspecified. - */ - var exports = function(apiClient) { - this.apiClient = apiClient || ApiClient.instance; - - - /** - * Callback function to receive the result of the getAPIGroup operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/AppsApi~getAPIGroupCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1APIGroup} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * get information of a group - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/AppsApi~getAPIGroupCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1APIGroup} - */ - this.getAPIGroup = function(callback) { - var postBody = null; - - - var pathParams = { - }; - var queryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1APIGroup; - - return this.apiClient.callApi( - '/apis/apps/', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - }; - - return exports; -})); diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.apis/Apps_v1beta1Api.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.apis/Apps_v1beta1Api.js deleted file mode 100644 index 18fc3e8726..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.apis/Apps_v1beta1Api.js +++ /dev/null @@ -1,1644 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1Deployment', 'io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1DeploymentList', 'io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1DeploymentRollback', 'io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1Scale', 'io.kubernetes.js/io.kubernetes.js.models/V1APIResourceList', 'io.kubernetes.js/io.kubernetes.js.models/V1DeleteOptions', 'io.kubernetes.js/io.kubernetes.js.models/V1Status', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1StatefulSet', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1StatefulSetList'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('../io.kubernetes.js.models/AppsV1beta1Deployment'), require('../io.kubernetes.js.models/AppsV1beta1DeploymentList'), require('../io.kubernetes.js.models/AppsV1beta1DeploymentRollback'), require('../io.kubernetes.js.models/AppsV1beta1Scale'), require('../io.kubernetes.js.models/V1APIResourceList'), require('../io.kubernetes.js.models/V1DeleteOptions'), require('../io.kubernetes.js.models/V1Status'), require('../io.kubernetes.js.models/V1beta1StatefulSet'), require('../io.kubernetes.js.models/V1beta1StatefulSetList')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.Apps_v1beta1Api = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.AppsV1beta1Deployment, root.KubernetesJsClient.AppsV1beta1DeploymentList, root.KubernetesJsClient.AppsV1beta1DeploymentRollback, root.KubernetesJsClient.AppsV1beta1Scale, root.KubernetesJsClient.V1APIResourceList, root.KubernetesJsClient.V1DeleteOptions, root.KubernetesJsClient.V1Status, root.KubernetesJsClient.V1beta1StatefulSet, root.KubernetesJsClient.V1beta1StatefulSetList); - } -}(this, function(ApiClient, AppsV1beta1Deployment, AppsV1beta1DeploymentList, AppsV1beta1DeploymentRollback, AppsV1beta1Scale, V1APIResourceList, V1DeleteOptions, V1Status, V1beta1StatefulSet, V1beta1StatefulSetList) { - 'use strict'; - - /** - * Apps_v1beta1 service. - * @module io.kubernetes.js/io.kubernetes.js.apis/Apps_v1beta1Api - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new Apps_v1beta1Api. - * @alias module:io.kubernetes.js/io.kubernetes.js.apis/Apps_v1beta1Api - * @class - * @param {module:io.kubernetes.js/ApiClient} apiClient Optional API client implementation to use, - * default to {@link module:io.kubernetes.js/ApiClient#instance} if unspecified. - */ - var exports = function(apiClient) { - this.apiClient = apiClient || ApiClient.instance; - - - /** - * Callback function to receive the result of the createNamespacedDeployment operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Apps_v1beta1Api~createNamespacedDeploymentCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1Deployment} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * create a Deployment - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {module:io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1Deployment} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Apps_v1beta1Api~createNamespacedDeploymentCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1Deployment} - */ - this.createNamespacedDeployment = function(namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling createNamespacedDeployment"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling createNamespacedDeployment"); - } - - - var pathParams = { - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = AppsV1beta1Deployment; - - return this.apiClient.callApi( - '/apis/apps/v1beta1/namespaces/{namespace}/deployments', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the createNamespacedDeploymentRollbackRollback operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Apps_v1beta1Api~createNamespacedDeploymentRollbackRollbackCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1DeploymentRollback} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * create rollback of a DeploymentRollback - * @param {String} name name of the DeploymentRollback - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {module:io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1DeploymentRollback} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Apps_v1beta1Api~createNamespacedDeploymentRollbackRollbackCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1DeploymentRollback} - */ - this.createNamespacedDeploymentRollbackRollback = function(name, namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling createNamespacedDeploymentRollbackRollback"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling createNamespacedDeploymentRollbackRollback"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling createNamespacedDeploymentRollbackRollback"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = AppsV1beta1DeploymentRollback; - - return this.apiClient.callApi( - '/apis/apps/v1beta1/namespaces/{namespace}/deployments/{name}/rollback', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the createNamespacedStatefulSet operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Apps_v1beta1Api~createNamespacedStatefulSetCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1StatefulSet} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * create a StatefulSet - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1StatefulSet} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Apps_v1beta1Api~createNamespacedStatefulSetCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1beta1StatefulSet} - */ - this.createNamespacedStatefulSet = function(namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling createNamespacedStatefulSet"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling createNamespacedStatefulSet"); - } - - - var pathParams = { - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1beta1StatefulSet; - - return this.apiClient.callApi( - '/apis/apps/v1beta1/namespaces/{namespace}/statefulsets', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the deleteCollectionNamespacedDeployment operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Apps_v1beta1Api~deleteCollectionNamespacedDeploymentCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Status} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * delete collection of Deployment - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {String} opts.fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. - * @param {String} opts.labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. - * @param {String} opts.resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - * @param {Number} opts.timeoutSeconds Timeout for the list/watch call. - * @param {Boolean} opts.watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Apps_v1beta1Api~deleteCollectionNamespacedDeploymentCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1Status} - */ - this.deleteCollectionNamespacedDeployment = function(namespace, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedDeployment"); - } - - - var pathParams = { - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'], - 'fieldSelector': opts['fieldSelector'], - 'labelSelector': opts['labelSelector'], - 'resourceVersion': opts['resourceVersion'], - 'timeoutSeconds': opts['timeoutSeconds'], - 'watch': opts['watch'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1Status; - - return this.apiClient.callApi( - '/apis/apps/v1beta1/namespaces/{namespace}/deployments', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the deleteCollectionNamespacedStatefulSet operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Apps_v1beta1Api~deleteCollectionNamespacedStatefulSetCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Status} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * delete collection of StatefulSet - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {String} opts.fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. - * @param {String} opts.labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. - * @param {String} opts.resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - * @param {Number} opts.timeoutSeconds Timeout for the list/watch call. - * @param {Boolean} opts.watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Apps_v1beta1Api~deleteCollectionNamespacedStatefulSetCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1Status} - */ - this.deleteCollectionNamespacedStatefulSet = function(namespace, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedStatefulSet"); - } - - - var pathParams = { - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'], - 'fieldSelector': opts['fieldSelector'], - 'labelSelector': opts['labelSelector'], - 'resourceVersion': opts['resourceVersion'], - 'timeoutSeconds': opts['timeoutSeconds'], - 'watch': opts['watch'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1Status; - - return this.apiClient.callApi( - '/apis/apps/v1beta1/namespaces/{namespace}/statefulsets', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the deleteNamespacedDeployment operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Apps_v1beta1Api~deleteNamespacedDeploymentCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Status} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * delete a Deployment - * @param {String} name name of the Deployment - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1DeleteOptions} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {Number} opts.gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - * @param {Boolean} opts.orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - * @param {String} opts.propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Apps_v1beta1Api~deleteNamespacedDeploymentCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1Status} - */ - this.deleteNamespacedDeployment = function(name, namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling deleteNamespacedDeployment"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling deleteNamespacedDeployment"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling deleteNamespacedDeployment"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'], - 'gracePeriodSeconds': opts['gracePeriodSeconds'], - 'orphanDependents': opts['orphanDependents'], - 'propagationPolicy': opts['propagationPolicy'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1Status; - - return this.apiClient.callApi( - '/apis/apps/v1beta1/namespaces/{namespace}/deployments/{name}', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the deleteNamespacedStatefulSet operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Apps_v1beta1Api~deleteNamespacedStatefulSetCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Status} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * delete a StatefulSet - * @param {String} name name of the StatefulSet - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1DeleteOptions} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {Number} opts.gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - * @param {Boolean} opts.orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - * @param {String} opts.propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Apps_v1beta1Api~deleteNamespacedStatefulSetCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1Status} - */ - this.deleteNamespacedStatefulSet = function(name, namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling deleteNamespacedStatefulSet"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling deleteNamespacedStatefulSet"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling deleteNamespacedStatefulSet"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'], - 'gracePeriodSeconds': opts['gracePeriodSeconds'], - 'orphanDependents': opts['orphanDependents'], - 'propagationPolicy': opts['propagationPolicy'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1Status; - - return this.apiClient.callApi( - '/apis/apps/v1beta1/namespaces/{namespace}/statefulsets/{name}', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the getAPIResources operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Apps_v1beta1Api~getAPIResourcesCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1APIResourceList} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * get available resources - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Apps_v1beta1Api~getAPIResourcesCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1APIResourceList} - */ - this.getAPIResources = function(callback) { - var postBody = null; - - - var pathParams = { - }; - var queryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1APIResourceList; - - return this.apiClient.callApi( - '/apis/apps/v1beta1/', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the listDeploymentForAllNamespaces operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Apps_v1beta1Api~listDeploymentForAllNamespacesCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1DeploymentList} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * list or watch objects of kind Deployment - * @param {Object} opts Optional parameters - * @param {String} opts.fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. - * @param {String} opts.labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {String} opts.resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - * @param {Number} opts.timeoutSeconds Timeout for the list/watch call. - * @param {Boolean} opts.watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Apps_v1beta1Api~listDeploymentForAllNamespacesCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1DeploymentList} - */ - this.listDeploymentForAllNamespaces = function(opts, callback) { - opts = opts || {}; - var postBody = null; - - - var pathParams = { - }; - var queryParams = { - 'fieldSelector': opts['fieldSelector'], - 'labelSelector': opts['labelSelector'], - 'pretty': opts['pretty'], - 'resourceVersion': opts['resourceVersion'], - 'timeoutSeconds': opts['timeoutSeconds'], - 'watch': opts['watch'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']; - var returnType = AppsV1beta1DeploymentList; - - return this.apiClient.callApi( - '/apis/apps/v1beta1/deployments', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the listNamespacedDeployment operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Apps_v1beta1Api~listNamespacedDeploymentCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1DeploymentList} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * list or watch objects of kind Deployment - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {String} opts.fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. - * @param {String} opts.labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. - * @param {String} opts.resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - * @param {Number} opts.timeoutSeconds Timeout for the list/watch call. - * @param {Boolean} opts.watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Apps_v1beta1Api~listNamespacedDeploymentCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1DeploymentList} - */ - this.listNamespacedDeployment = function(namespace, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling listNamespacedDeployment"); - } - - - var pathParams = { - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'], - 'fieldSelector': opts['fieldSelector'], - 'labelSelector': opts['labelSelector'], - 'resourceVersion': opts['resourceVersion'], - 'timeoutSeconds': opts['timeoutSeconds'], - 'watch': opts['watch'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']; - var returnType = AppsV1beta1DeploymentList; - - return this.apiClient.callApi( - '/apis/apps/v1beta1/namespaces/{namespace}/deployments', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the listNamespacedStatefulSet operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Apps_v1beta1Api~listNamespacedStatefulSetCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1StatefulSetList} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * list or watch objects of kind StatefulSet - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {String} opts.fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. - * @param {String} opts.labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. - * @param {String} opts.resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - * @param {Number} opts.timeoutSeconds Timeout for the list/watch call. - * @param {Boolean} opts.watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Apps_v1beta1Api~listNamespacedStatefulSetCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1beta1StatefulSetList} - */ - this.listNamespacedStatefulSet = function(namespace, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling listNamespacedStatefulSet"); - } - - - var pathParams = { - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'], - 'fieldSelector': opts['fieldSelector'], - 'labelSelector': opts['labelSelector'], - 'resourceVersion': opts['resourceVersion'], - 'timeoutSeconds': opts['timeoutSeconds'], - 'watch': opts['watch'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']; - var returnType = V1beta1StatefulSetList; - - return this.apiClient.callApi( - '/apis/apps/v1beta1/namespaces/{namespace}/statefulsets', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the listStatefulSetForAllNamespaces operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Apps_v1beta1Api~listStatefulSetForAllNamespacesCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1StatefulSetList} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * list or watch objects of kind StatefulSet - * @param {Object} opts Optional parameters - * @param {String} opts.fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. - * @param {String} opts.labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {String} opts.resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - * @param {Number} opts.timeoutSeconds Timeout for the list/watch call. - * @param {Boolean} opts.watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Apps_v1beta1Api~listStatefulSetForAllNamespacesCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1beta1StatefulSetList} - */ - this.listStatefulSetForAllNamespaces = function(opts, callback) { - opts = opts || {}; - var postBody = null; - - - var pathParams = { - }; - var queryParams = { - 'fieldSelector': opts['fieldSelector'], - 'labelSelector': opts['labelSelector'], - 'pretty': opts['pretty'], - 'resourceVersion': opts['resourceVersion'], - 'timeoutSeconds': opts['timeoutSeconds'], - 'watch': opts['watch'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']; - var returnType = V1beta1StatefulSetList; - - return this.apiClient.callApi( - '/apis/apps/v1beta1/statefulsets', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the patchNamespacedDeployment operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Apps_v1beta1Api~patchNamespacedDeploymentCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1Deployment} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * partially update the specified Deployment - * @param {String} name name of the Deployment - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Apps_v1beta1Api~patchNamespacedDeploymentCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1Deployment} - */ - this.patchNamespacedDeployment = function(name, namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling patchNamespacedDeployment"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling patchNamespacedDeployment"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling patchNamespacedDeployment"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = AppsV1beta1Deployment; - - return this.apiClient.callApi( - '/apis/apps/v1beta1/namespaces/{namespace}/deployments/{name}', 'PATCH', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the patchNamespacedDeploymentStatus operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Apps_v1beta1Api~patchNamespacedDeploymentStatusCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1Deployment} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * partially update status of the specified Deployment - * @param {String} name name of the Deployment - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Apps_v1beta1Api~patchNamespacedDeploymentStatusCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1Deployment} - */ - this.patchNamespacedDeploymentStatus = function(name, namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling patchNamespacedDeploymentStatus"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling patchNamespacedDeploymentStatus"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling patchNamespacedDeploymentStatus"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = AppsV1beta1Deployment; - - return this.apiClient.callApi( - '/apis/apps/v1beta1/namespaces/{namespace}/deployments/{name}/status', 'PATCH', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the patchNamespacedScaleScale operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Apps_v1beta1Api~patchNamespacedScaleScaleCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1Scale} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * partially update scale of the specified Scale - * @param {String} name name of the Scale - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Apps_v1beta1Api~patchNamespacedScaleScaleCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1Scale} - */ - this.patchNamespacedScaleScale = function(name, namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling patchNamespacedScaleScale"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling patchNamespacedScaleScale"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling patchNamespacedScaleScale"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = AppsV1beta1Scale; - - return this.apiClient.callApi( - '/apis/apps/v1beta1/namespaces/{namespace}/deployments/{name}/scale', 'PATCH', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the patchNamespacedStatefulSet operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Apps_v1beta1Api~patchNamespacedStatefulSetCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1StatefulSet} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * partially update the specified StatefulSet - * @param {String} name name of the StatefulSet - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Apps_v1beta1Api~patchNamespacedStatefulSetCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1beta1StatefulSet} - */ - this.patchNamespacedStatefulSet = function(name, namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling patchNamespacedStatefulSet"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling patchNamespacedStatefulSet"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling patchNamespacedStatefulSet"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1beta1StatefulSet; - - return this.apiClient.callApi( - '/apis/apps/v1beta1/namespaces/{namespace}/statefulsets/{name}', 'PATCH', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the patchNamespacedStatefulSetStatus operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Apps_v1beta1Api~patchNamespacedStatefulSetStatusCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1StatefulSet} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * partially update status of the specified StatefulSet - * @param {String} name name of the StatefulSet - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Apps_v1beta1Api~patchNamespacedStatefulSetStatusCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1beta1StatefulSet} - */ - this.patchNamespacedStatefulSetStatus = function(name, namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling patchNamespacedStatefulSetStatus"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling patchNamespacedStatefulSetStatus"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling patchNamespacedStatefulSetStatus"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1beta1StatefulSet; - - return this.apiClient.callApi( - '/apis/apps/v1beta1/namespaces/{namespace}/statefulsets/{name}/status', 'PATCH', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the readNamespacedDeployment operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Apps_v1beta1Api~readNamespacedDeploymentCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1Deployment} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * read the specified Deployment - * @param {String} name name of the Deployment - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {Boolean} opts.exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. - * @param {Boolean} opts._export Should this value be exported. Export strips fields that a user can not specify. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Apps_v1beta1Api~readNamespacedDeploymentCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1Deployment} - */ - this.readNamespacedDeployment = function(name, namespace, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling readNamespacedDeployment"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling readNamespacedDeployment"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'], - 'exact': opts['exact'], - 'export': opts['_export'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = AppsV1beta1Deployment; - - return this.apiClient.callApi( - '/apis/apps/v1beta1/namespaces/{namespace}/deployments/{name}', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the readNamespacedDeploymentStatus operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Apps_v1beta1Api~readNamespacedDeploymentStatusCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1Deployment} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * read status of the specified Deployment - * @param {String} name name of the Deployment - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Apps_v1beta1Api~readNamespacedDeploymentStatusCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1Deployment} - */ - this.readNamespacedDeploymentStatus = function(name, namespace, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling readNamespacedDeploymentStatus"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling readNamespacedDeploymentStatus"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = AppsV1beta1Deployment; - - return this.apiClient.callApi( - '/apis/apps/v1beta1/namespaces/{namespace}/deployments/{name}/status', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the readNamespacedScaleScale operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Apps_v1beta1Api~readNamespacedScaleScaleCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1Scale} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * read scale of the specified Scale - * @param {String} name name of the Scale - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Apps_v1beta1Api~readNamespacedScaleScaleCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1Scale} - */ - this.readNamespacedScaleScale = function(name, namespace, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling readNamespacedScaleScale"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling readNamespacedScaleScale"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = AppsV1beta1Scale; - - return this.apiClient.callApi( - '/apis/apps/v1beta1/namespaces/{namespace}/deployments/{name}/scale', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the readNamespacedStatefulSet operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Apps_v1beta1Api~readNamespacedStatefulSetCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1StatefulSet} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * read the specified StatefulSet - * @param {String} name name of the StatefulSet - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {Boolean} opts.exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. - * @param {Boolean} opts._export Should this value be exported. Export strips fields that a user can not specify. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Apps_v1beta1Api~readNamespacedStatefulSetCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1beta1StatefulSet} - */ - this.readNamespacedStatefulSet = function(name, namespace, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling readNamespacedStatefulSet"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling readNamespacedStatefulSet"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'], - 'exact': opts['exact'], - 'export': opts['_export'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1beta1StatefulSet; - - return this.apiClient.callApi( - '/apis/apps/v1beta1/namespaces/{namespace}/statefulsets/{name}', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the readNamespacedStatefulSetStatus operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Apps_v1beta1Api~readNamespacedStatefulSetStatusCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1StatefulSet} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * read status of the specified StatefulSet - * @param {String} name name of the StatefulSet - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Apps_v1beta1Api~readNamespacedStatefulSetStatusCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1beta1StatefulSet} - */ - this.readNamespacedStatefulSetStatus = function(name, namespace, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling readNamespacedStatefulSetStatus"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling readNamespacedStatefulSetStatus"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1beta1StatefulSet; - - return this.apiClient.callApi( - '/apis/apps/v1beta1/namespaces/{namespace}/statefulsets/{name}/status', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the replaceNamespacedDeployment operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Apps_v1beta1Api~replaceNamespacedDeploymentCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1Deployment} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * replace the specified Deployment - * @param {String} name name of the Deployment - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {module:io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1Deployment} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Apps_v1beta1Api~replaceNamespacedDeploymentCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1Deployment} - */ - this.replaceNamespacedDeployment = function(name, namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling replaceNamespacedDeployment"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling replaceNamespacedDeployment"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling replaceNamespacedDeployment"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = AppsV1beta1Deployment; - - return this.apiClient.callApi( - '/apis/apps/v1beta1/namespaces/{namespace}/deployments/{name}', 'PUT', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the replaceNamespacedDeploymentStatus operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Apps_v1beta1Api~replaceNamespacedDeploymentStatusCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1Deployment} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * replace status of the specified Deployment - * @param {String} name name of the Deployment - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {module:io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1Deployment} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Apps_v1beta1Api~replaceNamespacedDeploymentStatusCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1Deployment} - */ - this.replaceNamespacedDeploymentStatus = function(name, namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling replaceNamespacedDeploymentStatus"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling replaceNamespacedDeploymentStatus"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling replaceNamespacedDeploymentStatus"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = AppsV1beta1Deployment; - - return this.apiClient.callApi( - '/apis/apps/v1beta1/namespaces/{namespace}/deployments/{name}/status', 'PUT', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the replaceNamespacedScaleScale operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Apps_v1beta1Api~replaceNamespacedScaleScaleCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1Scale} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * replace scale of the specified Scale - * @param {String} name name of the Scale - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {module:io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1Scale} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Apps_v1beta1Api~replaceNamespacedScaleScaleCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1Scale} - */ - this.replaceNamespacedScaleScale = function(name, namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling replaceNamespacedScaleScale"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling replaceNamespacedScaleScale"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling replaceNamespacedScaleScale"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = AppsV1beta1Scale; - - return this.apiClient.callApi( - '/apis/apps/v1beta1/namespaces/{namespace}/deployments/{name}/scale', 'PUT', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the replaceNamespacedStatefulSet operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Apps_v1beta1Api~replaceNamespacedStatefulSetCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1StatefulSet} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * replace the specified StatefulSet - * @param {String} name name of the StatefulSet - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1StatefulSet} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Apps_v1beta1Api~replaceNamespacedStatefulSetCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1beta1StatefulSet} - */ - this.replaceNamespacedStatefulSet = function(name, namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling replaceNamespacedStatefulSet"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling replaceNamespacedStatefulSet"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling replaceNamespacedStatefulSet"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1beta1StatefulSet; - - return this.apiClient.callApi( - '/apis/apps/v1beta1/namespaces/{namespace}/statefulsets/{name}', 'PUT', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the replaceNamespacedStatefulSetStatus operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Apps_v1beta1Api~replaceNamespacedStatefulSetStatusCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1StatefulSet} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * replace status of the specified StatefulSet - * @param {String} name name of the StatefulSet - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1StatefulSet} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Apps_v1beta1Api~replaceNamespacedStatefulSetStatusCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1beta1StatefulSet} - */ - this.replaceNamespacedStatefulSetStatus = function(name, namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling replaceNamespacedStatefulSetStatus"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling replaceNamespacedStatefulSetStatus"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling replaceNamespacedStatefulSetStatus"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1beta1StatefulSet; - - return this.apiClient.callApi( - '/apis/apps/v1beta1/namespaces/{namespace}/statefulsets/{name}/status', 'PUT', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - }; - - return exports; -})); diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.apis/AuthenticationApi.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.apis/AuthenticationApi.js deleted file mode 100644 index 6481e7a4af..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.apis/AuthenticationApi.js +++ /dev/null @@ -1,88 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1APIGroup'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('../io.kubernetes.js.models/V1APIGroup')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.AuthenticationApi = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1APIGroup); - } -}(this, function(ApiClient, V1APIGroup) { - 'use strict'; - - /** - * Authentication service. - * @module io.kubernetes.js/io.kubernetes.js.apis/AuthenticationApi - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new AuthenticationApi. - * @alias module:io.kubernetes.js/io.kubernetes.js.apis/AuthenticationApi - * @class - * @param {module:io.kubernetes.js/ApiClient} apiClient Optional API client implementation to use, - * default to {@link module:io.kubernetes.js/ApiClient#instance} if unspecified. - */ - var exports = function(apiClient) { - this.apiClient = apiClient || ApiClient.instance; - - - /** - * Callback function to receive the result of the getAPIGroup operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/AuthenticationApi~getAPIGroupCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1APIGroup} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * get information of a group - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/AuthenticationApi~getAPIGroupCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1APIGroup} - */ - this.getAPIGroup = function(callback) { - var postBody = null; - - - var pathParams = { - }; - var queryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1APIGroup; - - return this.apiClient.callApi( - '/apis/authentication.k8s.io/', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - }; - - return exports; -})); diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.apis/Authentication_v1Api.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.apis/Authentication_v1Api.js deleted file mode 100644 index e571836d29..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.apis/Authentication_v1Api.js +++ /dev/null @@ -1,136 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1APIResourceList', 'io.kubernetes.js/io.kubernetes.js.models/V1TokenReview'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('../io.kubernetes.js.models/V1APIResourceList'), require('../io.kubernetes.js.models/V1TokenReview')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.Authentication_v1Api = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1APIResourceList, root.KubernetesJsClient.V1TokenReview); - } -}(this, function(ApiClient, V1APIResourceList, V1TokenReview) { - 'use strict'; - - /** - * Authentication_v1 service. - * @module io.kubernetes.js/io.kubernetes.js.apis/Authentication_v1Api - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new Authentication_v1Api. - * @alias module:io.kubernetes.js/io.kubernetes.js.apis/Authentication_v1Api - * @class - * @param {module:io.kubernetes.js/ApiClient} apiClient Optional API client implementation to use, - * default to {@link module:io.kubernetes.js/ApiClient#instance} if unspecified. - */ - var exports = function(apiClient) { - this.apiClient = apiClient || ApiClient.instance; - - - /** - * Callback function to receive the result of the createTokenReview operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Authentication_v1Api~createTokenReviewCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1TokenReview} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * create a TokenReview - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1TokenReview} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Authentication_v1Api~createTokenReviewCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1TokenReview} - */ - this.createTokenReview = function(body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling createTokenReview"); - } - - - var pathParams = { - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1TokenReview; - - return this.apiClient.callApi( - '/apis/authentication.k8s.io/v1/tokenreviews', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the getAPIResources operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Authentication_v1Api~getAPIResourcesCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1APIResourceList} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * get available resources - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Authentication_v1Api~getAPIResourcesCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1APIResourceList} - */ - this.getAPIResources = function(callback) { - var postBody = null; - - - var pathParams = { - }; - var queryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1APIResourceList; - - return this.apiClient.callApi( - '/apis/authentication.k8s.io/v1/', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - }; - - return exports; -})); diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.apis/Authentication_v1beta1Api.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.apis/Authentication_v1beta1Api.js deleted file mode 100644 index 95c4be43bf..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.apis/Authentication_v1beta1Api.js +++ /dev/null @@ -1,136 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1APIResourceList', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1TokenReview'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('../io.kubernetes.js.models/V1APIResourceList'), require('../io.kubernetes.js.models/V1beta1TokenReview')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.Authentication_v1beta1Api = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1APIResourceList, root.KubernetesJsClient.V1beta1TokenReview); - } -}(this, function(ApiClient, V1APIResourceList, V1beta1TokenReview) { - 'use strict'; - - /** - * Authentication_v1beta1 service. - * @module io.kubernetes.js/io.kubernetes.js.apis/Authentication_v1beta1Api - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new Authentication_v1beta1Api. - * @alias module:io.kubernetes.js/io.kubernetes.js.apis/Authentication_v1beta1Api - * @class - * @param {module:io.kubernetes.js/ApiClient} apiClient Optional API client implementation to use, - * default to {@link module:io.kubernetes.js/ApiClient#instance} if unspecified. - */ - var exports = function(apiClient) { - this.apiClient = apiClient || ApiClient.instance; - - - /** - * Callback function to receive the result of the createTokenReview operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Authentication_v1beta1Api~createTokenReviewCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1TokenReview} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * create a TokenReview - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1TokenReview} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Authentication_v1beta1Api~createTokenReviewCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1beta1TokenReview} - */ - this.createTokenReview = function(body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling createTokenReview"); - } - - - var pathParams = { - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1beta1TokenReview; - - return this.apiClient.callApi( - '/apis/authentication.k8s.io/v1beta1/tokenreviews', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the getAPIResources operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Authentication_v1beta1Api~getAPIResourcesCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1APIResourceList} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * get available resources - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Authentication_v1beta1Api~getAPIResourcesCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1APIResourceList} - */ - this.getAPIResources = function(callback) { - var postBody = null; - - - var pathParams = { - }; - var queryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1APIResourceList; - - return this.apiClient.callApi( - '/apis/authentication.k8s.io/v1beta1/', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - }; - - return exports; -})); diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.apis/AuthorizationApi.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.apis/AuthorizationApi.js deleted file mode 100644 index 403520f166..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.apis/AuthorizationApi.js +++ /dev/null @@ -1,88 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1APIGroup'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('../io.kubernetes.js.models/V1APIGroup')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.AuthorizationApi = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1APIGroup); - } -}(this, function(ApiClient, V1APIGroup) { - 'use strict'; - - /** - * Authorization service. - * @module io.kubernetes.js/io.kubernetes.js.apis/AuthorizationApi - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new AuthorizationApi. - * @alias module:io.kubernetes.js/io.kubernetes.js.apis/AuthorizationApi - * @class - * @param {module:io.kubernetes.js/ApiClient} apiClient Optional API client implementation to use, - * default to {@link module:io.kubernetes.js/ApiClient#instance} if unspecified. - */ - var exports = function(apiClient) { - this.apiClient = apiClient || ApiClient.instance; - - - /** - * Callback function to receive the result of the getAPIGroup operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/AuthorizationApi~getAPIGroupCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1APIGroup} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * get information of a group - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/AuthorizationApi~getAPIGroupCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1APIGroup} - */ - this.getAPIGroup = function(callback) { - var postBody = null; - - - var pathParams = { - }; - var queryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1APIGroup; - - return this.apiClient.callApi( - '/apis/authorization.k8s.io/', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - }; - - return exports; -})); diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.apis/Authorization_v1Api.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.apis/Authorization_v1Api.js deleted file mode 100644 index e6644c3500..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.apis/Authorization_v1Api.js +++ /dev/null @@ -1,239 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1APIResourceList', 'io.kubernetes.js/io.kubernetes.js.models/V1LocalSubjectAccessReview', 'io.kubernetes.js/io.kubernetes.js.models/V1SelfSubjectAccessReview', 'io.kubernetes.js/io.kubernetes.js.models/V1SubjectAccessReview'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('../io.kubernetes.js.models/V1APIResourceList'), require('../io.kubernetes.js.models/V1LocalSubjectAccessReview'), require('../io.kubernetes.js.models/V1SelfSubjectAccessReview'), require('../io.kubernetes.js.models/V1SubjectAccessReview')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.Authorization_v1Api = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1APIResourceList, root.KubernetesJsClient.V1LocalSubjectAccessReview, root.KubernetesJsClient.V1SelfSubjectAccessReview, root.KubernetesJsClient.V1SubjectAccessReview); - } -}(this, function(ApiClient, V1APIResourceList, V1LocalSubjectAccessReview, V1SelfSubjectAccessReview, V1SubjectAccessReview) { - 'use strict'; - - /** - * Authorization_v1 service. - * @module io.kubernetes.js/io.kubernetes.js.apis/Authorization_v1Api - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new Authorization_v1Api. - * @alias module:io.kubernetes.js/io.kubernetes.js.apis/Authorization_v1Api - * @class - * @param {module:io.kubernetes.js/ApiClient} apiClient Optional API client implementation to use, - * default to {@link module:io.kubernetes.js/ApiClient#instance} if unspecified. - */ - var exports = function(apiClient) { - this.apiClient = apiClient || ApiClient.instance; - - - /** - * Callback function to receive the result of the createNamespacedLocalSubjectAccessReview operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Authorization_v1Api~createNamespacedLocalSubjectAccessReviewCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1LocalSubjectAccessReview} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * create a LocalSubjectAccessReview - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1LocalSubjectAccessReview} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Authorization_v1Api~createNamespacedLocalSubjectAccessReviewCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1LocalSubjectAccessReview} - */ - this.createNamespacedLocalSubjectAccessReview = function(namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling createNamespacedLocalSubjectAccessReview"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling createNamespacedLocalSubjectAccessReview"); - } - - - var pathParams = { - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1LocalSubjectAccessReview; - - return this.apiClient.callApi( - '/apis/authorization.k8s.io/v1/namespaces/{namespace}/localsubjectaccessreviews', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the createSelfSubjectAccessReview operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Authorization_v1Api~createSelfSubjectAccessReviewCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1SelfSubjectAccessReview} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * create a SelfSubjectAccessReview - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1SelfSubjectAccessReview} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Authorization_v1Api~createSelfSubjectAccessReviewCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1SelfSubjectAccessReview} - */ - this.createSelfSubjectAccessReview = function(body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling createSelfSubjectAccessReview"); - } - - - var pathParams = { - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1SelfSubjectAccessReview; - - return this.apiClient.callApi( - '/apis/authorization.k8s.io/v1/selfsubjectaccessreviews', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the createSubjectAccessReview operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Authorization_v1Api~createSubjectAccessReviewCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1SubjectAccessReview} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * create a SubjectAccessReview - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1SubjectAccessReview} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Authorization_v1Api~createSubjectAccessReviewCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1SubjectAccessReview} - */ - this.createSubjectAccessReview = function(body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling createSubjectAccessReview"); - } - - - var pathParams = { - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1SubjectAccessReview; - - return this.apiClient.callApi( - '/apis/authorization.k8s.io/v1/subjectaccessreviews', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the getAPIResources operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Authorization_v1Api~getAPIResourcesCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1APIResourceList} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * get available resources - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Authorization_v1Api~getAPIResourcesCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1APIResourceList} - */ - this.getAPIResources = function(callback) { - var postBody = null; - - - var pathParams = { - }; - var queryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1APIResourceList; - - return this.apiClient.callApi( - '/apis/authorization.k8s.io/v1/', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - }; - - return exports; -})); diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.apis/Authorization_v1beta1Api.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.apis/Authorization_v1beta1Api.js deleted file mode 100644 index 4697dd2910..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.apis/Authorization_v1beta1Api.js +++ /dev/null @@ -1,239 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1APIResourceList', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1LocalSubjectAccessReview', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1SelfSubjectAccessReview', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1SubjectAccessReview'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('../io.kubernetes.js.models/V1APIResourceList'), require('../io.kubernetes.js.models/V1beta1LocalSubjectAccessReview'), require('../io.kubernetes.js.models/V1beta1SelfSubjectAccessReview'), require('../io.kubernetes.js.models/V1beta1SubjectAccessReview')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.Authorization_v1beta1Api = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1APIResourceList, root.KubernetesJsClient.V1beta1LocalSubjectAccessReview, root.KubernetesJsClient.V1beta1SelfSubjectAccessReview, root.KubernetesJsClient.V1beta1SubjectAccessReview); - } -}(this, function(ApiClient, V1APIResourceList, V1beta1LocalSubjectAccessReview, V1beta1SelfSubjectAccessReview, V1beta1SubjectAccessReview) { - 'use strict'; - - /** - * Authorization_v1beta1 service. - * @module io.kubernetes.js/io.kubernetes.js.apis/Authorization_v1beta1Api - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new Authorization_v1beta1Api. - * @alias module:io.kubernetes.js/io.kubernetes.js.apis/Authorization_v1beta1Api - * @class - * @param {module:io.kubernetes.js/ApiClient} apiClient Optional API client implementation to use, - * default to {@link module:io.kubernetes.js/ApiClient#instance} if unspecified. - */ - var exports = function(apiClient) { - this.apiClient = apiClient || ApiClient.instance; - - - /** - * Callback function to receive the result of the createNamespacedLocalSubjectAccessReview operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Authorization_v1beta1Api~createNamespacedLocalSubjectAccessReviewCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1LocalSubjectAccessReview} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * create a LocalSubjectAccessReview - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1LocalSubjectAccessReview} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Authorization_v1beta1Api~createNamespacedLocalSubjectAccessReviewCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1beta1LocalSubjectAccessReview} - */ - this.createNamespacedLocalSubjectAccessReview = function(namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling createNamespacedLocalSubjectAccessReview"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling createNamespacedLocalSubjectAccessReview"); - } - - - var pathParams = { - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1beta1LocalSubjectAccessReview; - - return this.apiClient.callApi( - '/apis/authorization.k8s.io/v1beta1/namespaces/{namespace}/localsubjectaccessreviews', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the createSelfSubjectAccessReview operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Authorization_v1beta1Api~createSelfSubjectAccessReviewCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1SelfSubjectAccessReview} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * create a SelfSubjectAccessReview - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1SelfSubjectAccessReview} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Authorization_v1beta1Api~createSelfSubjectAccessReviewCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1beta1SelfSubjectAccessReview} - */ - this.createSelfSubjectAccessReview = function(body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling createSelfSubjectAccessReview"); - } - - - var pathParams = { - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1beta1SelfSubjectAccessReview; - - return this.apiClient.callApi( - '/apis/authorization.k8s.io/v1beta1/selfsubjectaccessreviews', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the createSubjectAccessReview operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Authorization_v1beta1Api~createSubjectAccessReviewCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1SubjectAccessReview} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * create a SubjectAccessReview - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1SubjectAccessReview} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Authorization_v1beta1Api~createSubjectAccessReviewCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1beta1SubjectAccessReview} - */ - this.createSubjectAccessReview = function(body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling createSubjectAccessReview"); - } - - - var pathParams = { - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1beta1SubjectAccessReview; - - return this.apiClient.callApi( - '/apis/authorization.k8s.io/v1beta1/subjectaccessreviews', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the getAPIResources operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Authorization_v1beta1Api~getAPIResourcesCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1APIResourceList} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * get available resources - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Authorization_v1beta1Api~getAPIResourcesCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1APIResourceList} - */ - this.getAPIResources = function(callback) { - var postBody = null; - - - var pathParams = { - }; - var queryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1APIResourceList; - - return this.apiClient.callApi( - '/apis/authorization.k8s.io/v1beta1/', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - }; - - return exports; -})); diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.apis/AutoscalingApi.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.apis/AutoscalingApi.js deleted file mode 100644 index 247f84cdc5..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.apis/AutoscalingApi.js +++ /dev/null @@ -1,88 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1APIGroup'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('../io.kubernetes.js.models/V1APIGroup')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.AutoscalingApi = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1APIGroup); - } -}(this, function(ApiClient, V1APIGroup) { - 'use strict'; - - /** - * Autoscaling service. - * @module io.kubernetes.js/io.kubernetes.js.apis/AutoscalingApi - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new AutoscalingApi. - * @alias module:io.kubernetes.js/io.kubernetes.js.apis/AutoscalingApi - * @class - * @param {module:io.kubernetes.js/ApiClient} apiClient Optional API client implementation to use, - * default to {@link module:io.kubernetes.js/ApiClient#instance} if unspecified. - */ - var exports = function(apiClient) { - this.apiClient = apiClient || ApiClient.instance; - - - /** - * Callback function to receive the result of the getAPIGroup operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/AutoscalingApi~getAPIGroupCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1APIGroup} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * get information of a group - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/AutoscalingApi~getAPIGroupCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1APIGroup} - */ - this.getAPIGroup = function(callback) { - var postBody = null; - - - var pathParams = { - }; - var queryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1APIGroup; - - return this.apiClient.callApi( - '/apis/autoscaling/', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - }; - - return exports; -})); diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.apis/Autoscaling_v1Api.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.apis/Autoscaling_v1Api.js deleted file mode 100644 index 9c3ba506b2..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.apis/Autoscaling_v1Api.js +++ /dev/null @@ -1,745 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1APIResourceList', 'io.kubernetes.js/io.kubernetes.js.models/V1DeleteOptions', 'io.kubernetes.js/io.kubernetes.js.models/V1HorizontalPodAutoscaler', 'io.kubernetes.js/io.kubernetes.js.models/V1HorizontalPodAutoscalerList', 'io.kubernetes.js/io.kubernetes.js.models/V1Status'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('../io.kubernetes.js.models/V1APIResourceList'), require('../io.kubernetes.js.models/V1DeleteOptions'), require('../io.kubernetes.js.models/V1HorizontalPodAutoscaler'), require('../io.kubernetes.js.models/V1HorizontalPodAutoscalerList'), require('../io.kubernetes.js.models/V1Status')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.Autoscaling_v1Api = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1APIResourceList, root.KubernetesJsClient.V1DeleteOptions, root.KubernetesJsClient.V1HorizontalPodAutoscaler, root.KubernetesJsClient.V1HorizontalPodAutoscalerList, root.KubernetesJsClient.V1Status); - } -}(this, function(ApiClient, V1APIResourceList, V1DeleteOptions, V1HorizontalPodAutoscaler, V1HorizontalPodAutoscalerList, V1Status) { - 'use strict'; - - /** - * Autoscaling_v1 service. - * @module io.kubernetes.js/io.kubernetes.js.apis/Autoscaling_v1Api - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new Autoscaling_v1Api. - * @alias module:io.kubernetes.js/io.kubernetes.js.apis/Autoscaling_v1Api - * @class - * @param {module:io.kubernetes.js/ApiClient} apiClient Optional API client implementation to use, - * default to {@link module:io.kubernetes.js/ApiClient#instance} if unspecified. - */ - var exports = function(apiClient) { - this.apiClient = apiClient || ApiClient.instance; - - - /** - * Callback function to receive the result of the createNamespacedHorizontalPodAutoscaler operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Autoscaling_v1Api~createNamespacedHorizontalPodAutoscalerCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1HorizontalPodAutoscaler} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * create a HorizontalPodAutoscaler - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1HorizontalPodAutoscaler} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Autoscaling_v1Api~createNamespacedHorizontalPodAutoscalerCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1HorizontalPodAutoscaler} - */ - this.createNamespacedHorizontalPodAutoscaler = function(namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling createNamespacedHorizontalPodAutoscaler"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling createNamespacedHorizontalPodAutoscaler"); - } - - - var pathParams = { - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1HorizontalPodAutoscaler; - - return this.apiClient.callApi( - '/apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the deleteCollectionNamespacedHorizontalPodAutoscaler operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Autoscaling_v1Api~deleteCollectionNamespacedHorizontalPodAutoscalerCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Status} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * delete collection of HorizontalPodAutoscaler - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {String} opts.fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. - * @param {String} opts.labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. - * @param {String} opts.resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - * @param {Number} opts.timeoutSeconds Timeout for the list/watch call. - * @param {Boolean} opts.watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Autoscaling_v1Api~deleteCollectionNamespacedHorizontalPodAutoscalerCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1Status} - */ - this.deleteCollectionNamespacedHorizontalPodAutoscaler = function(namespace, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedHorizontalPodAutoscaler"); - } - - - var pathParams = { - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'], - 'fieldSelector': opts['fieldSelector'], - 'labelSelector': opts['labelSelector'], - 'resourceVersion': opts['resourceVersion'], - 'timeoutSeconds': opts['timeoutSeconds'], - 'watch': opts['watch'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1Status; - - return this.apiClient.callApi( - '/apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the deleteNamespacedHorizontalPodAutoscaler operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Autoscaling_v1Api~deleteNamespacedHorizontalPodAutoscalerCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Status} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * delete a HorizontalPodAutoscaler - * @param {String} name name of the HorizontalPodAutoscaler - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1DeleteOptions} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {Number} opts.gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - * @param {Boolean} opts.orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - * @param {String} opts.propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Autoscaling_v1Api~deleteNamespacedHorizontalPodAutoscalerCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1Status} - */ - this.deleteNamespacedHorizontalPodAutoscaler = function(name, namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling deleteNamespacedHorizontalPodAutoscaler"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling deleteNamespacedHorizontalPodAutoscaler"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling deleteNamespacedHorizontalPodAutoscaler"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'], - 'gracePeriodSeconds': opts['gracePeriodSeconds'], - 'orphanDependents': opts['orphanDependents'], - 'propagationPolicy': opts['propagationPolicy'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1Status; - - return this.apiClient.callApi( - '/apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name}', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the getAPIResources operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Autoscaling_v1Api~getAPIResourcesCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1APIResourceList} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * get available resources - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Autoscaling_v1Api~getAPIResourcesCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1APIResourceList} - */ - this.getAPIResources = function(callback) { - var postBody = null; - - - var pathParams = { - }; - var queryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1APIResourceList; - - return this.apiClient.callApi( - '/apis/autoscaling/v1/', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the listHorizontalPodAutoscalerForAllNamespaces operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Autoscaling_v1Api~listHorizontalPodAutoscalerForAllNamespacesCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1HorizontalPodAutoscalerList} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * list or watch objects of kind HorizontalPodAutoscaler - * @param {Object} opts Optional parameters - * @param {String} opts.fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. - * @param {String} opts.labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {String} opts.resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - * @param {Number} opts.timeoutSeconds Timeout for the list/watch call. - * @param {Boolean} opts.watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Autoscaling_v1Api~listHorizontalPodAutoscalerForAllNamespacesCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1HorizontalPodAutoscalerList} - */ - this.listHorizontalPodAutoscalerForAllNamespaces = function(opts, callback) { - opts = opts || {}; - var postBody = null; - - - var pathParams = { - }; - var queryParams = { - 'fieldSelector': opts['fieldSelector'], - 'labelSelector': opts['labelSelector'], - 'pretty': opts['pretty'], - 'resourceVersion': opts['resourceVersion'], - 'timeoutSeconds': opts['timeoutSeconds'], - 'watch': opts['watch'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']; - var returnType = V1HorizontalPodAutoscalerList; - - return this.apiClient.callApi( - '/apis/autoscaling/v1/horizontalpodautoscalers', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the listNamespacedHorizontalPodAutoscaler operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Autoscaling_v1Api~listNamespacedHorizontalPodAutoscalerCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1HorizontalPodAutoscalerList} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * list or watch objects of kind HorizontalPodAutoscaler - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {String} opts.fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. - * @param {String} opts.labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. - * @param {String} opts.resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - * @param {Number} opts.timeoutSeconds Timeout for the list/watch call. - * @param {Boolean} opts.watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Autoscaling_v1Api~listNamespacedHorizontalPodAutoscalerCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1HorizontalPodAutoscalerList} - */ - this.listNamespacedHorizontalPodAutoscaler = function(namespace, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling listNamespacedHorizontalPodAutoscaler"); - } - - - var pathParams = { - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'], - 'fieldSelector': opts['fieldSelector'], - 'labelSelector': opts['labelSelector'], - 'resourceVersion': opts['resourceVersion'], - 'timeoutSeconds': opts['timeoutSeconds'], - 'watch': opts['watch'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']; - var returnType = V1HorizontalPodAutoscalerList; - - return this.apiClient.callApi( - '/apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the patchNamespacedHorizontalPodAutoscaler operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Autoscaling_v1Api~patchNamespacedHorizontalPodAutoscalerCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1HorizontalPodAutoscaler} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * partially update the specified HorizontalPodAutoscaler - * @param {String} name name of the HorizontalPodAutoscaler - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Autoscaling_v1Api~patchNamespacedHorizontalPodAutoscalerCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1HorizontalPodAutoscaler} - */ - this.patchNamespacedHorizontalPodAutoscaler = function(name, namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling patchNamespacedHorizontalPodAutoscaler"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling patchNamespacedHorizontalPodAutoscaler"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling patchNamespacedHorizontalPodAutoscaler"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1HorizontalPodAutoscaler; - - return this.apiClient.callApi( - '/apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name}', 'PATCH', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the patchNamespacedHorizontalPodAutoscalerStatus operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Autoscaling_v1Api~patchNamespacedHorizontalPodAutoscalerStatusCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1HorizontalPodAutoscaler} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * partially update status of the specified HorizontalPodAutoscaler - * @param {String} name name of the HorizontalPodAutoscaler - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Autoscaling_v1Api~patchNamespacedHorizontalPodAutoscalerStatusCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1HorizontalPodAutoscaler} - */ - this.patchNamespacedHorizontalPodAutoscalerStatus = function(name, namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling patchNamespacedHorizontalPodAutoscalerStatus"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling patchNamespacedHorizontalPodAutoscalerStatus"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling patchNamespacedHorizontalPodAutoscalerStatus"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1HorizontalPodAutoscaler; - - return this.apiClient.callApi( - '/apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status', 'PATCH', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the readNamespacedHorizontalPodAutoscaler operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Autoscaling_v1Api~readNamespacedHorizontalPodAutoscalerCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1HorizontalPodAutoscaler} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * read the specified HorizontalPodAutoscaler - * @param {String} name name of the HorizontalPodAutoscaler - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {Boolean} opts.exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. - * @param {Boolean} opts._export Should this value be exported. Export strips fields that a user can not specify. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Autoscaling_v1Api~readNamespacedHorizontalPodAutoscalerCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1HorizontalPodAutoscaler} - */ - this.readNamespacedHorizontalPodAutoscaler = function(name, namespace, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling readNamespacedHorizontalPodAutoscaler"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling readNamespacedHorizontalPodAutoscaler"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'], - 'exact': opts['exact'], - 'export': opts['_export'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1HorizontalPodAutoscaler; - - return this.apiClient.callApi( - '/apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name}', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the readNamespacedHorizontalPodAutoscalerStatus operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Autoscaling_v1Api~readNamespacedHorizontalPodAutoscalerStatusCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1HorizontalPodAutoscaler} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * read status of the specified HorizontalPodAutoscaler - * @param {String} name name of the HorizontalPodAutoscaler - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Autoscaling_v1Api~readNamespacedHorizontalPodAutoscalerStatusCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1HorizontalPodAutoscaler} - */ - this.readNamespacedHorizontalPodAutoscalerStatus = function(name, namespace, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling readNamespacedHorizontalPodAutoscalerStatus"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling readNamespacedHorizontalPodAutoscalerStatus"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1HorizontalPodAutoscaler; - - return this.apiClient.callApi( - '/apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the replaceNamespacedHorizontalPodAutoscaler operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Autoscaling_v1Api~replaceNamespacedHorizontalPodAutoscalerCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1HorizontalPodAutoscaler} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * replace the specified HorizontalPodAutoscaler - * @param {String} name name of the HorizontalPodAutoscaler - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1HorizontalPodAutoscaler} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Autoscaling_v1Api~replaceNamespacedHorizontalPodAutoscalerCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1HorizontalPodAutoscaler} - */ - this.replaceNamespacedHorizontalPodAutoscaler = function(name, namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling replaceNamespacedHorizontalPodAutoscaler"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling replaceNamespacedHorizontalPodAutoscaler"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling replaceNamespacedHorizontalPodAutoscaler"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1HorizontalPodAutoscaler; - - return this.apiClient.callApi( - '/apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name}', 'PUT', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the replaceNamespacedHorizontalPodAutoscalerStatus operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Autoscaling_v1Api~replaceNamespacedHorizontalPodAutoscalerStatusCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1HorizontalPodAutoscaler} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * replace status of the specified HorizontalPodAutoscaler - * @param {String} name name of the HorizontalPodAutoscaler - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1HorizontalPodAutoscaler} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Autoscaling_v1Api~replaceNamespacedHorizontalPodAutoscalerStatusCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1HorizontalPodAutoscaler} - */ - this.replaceNamespacedHorizontalPodAutoscalerStatus = function(name, namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling replaceNamespacedHorizontalPodAutoscalerStatus"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling replaceNamespacedHorizontalPodAutoscalerStatus"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling replaceNamespacedHorizontalPodAutoscalerStatus"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1HorizontalPodAutoscaler; - - return this.apiClient.callApi( - '/apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status', 'PUT', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - }; - - return exports; -})); diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.apis/Autoscaling_v2alpha1Api.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.apis/Autoscaling_v2alpha1Api.js deleted file mode 100644 index ae3efb4c1b..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.apis/Autoscaling_v2alpha1Api.js +++ /dev/null @@ -1,745 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1APIResourceList', 'io.kubernetes.js/io.kubernetes.js.models/V1DeleteOptions', 'io.kubernetes.js/io.kubernetes.js.models/V1Status', 'io.kubernetes.js/io.kubernetes.js.models/V2alpha1HorizontalPodAutoscaler', 'io.kubernetes.js/io.kubernetes.js.models/V2alpha1HorizontalPodAutoscalerList'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('../io.kubernetes.js.models/V1APIResourceList'), require('../io.kubernetes.js.models/V1DeleteOptions'), require('../io.kubernetes.js.models/V1Status'), require('../io.kubernetes.js.models/V2alpha1HorizontalPodAutoscaler'), require('../io.kubernetes.js.models/V2alpha1HorizontalPodAutoscalerList')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.Autoscaling_v2alpha1Api = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1APIResourceList, root.KubernetesJsClient.V1DeleteOptions, root.KubernetesJsClient.V1Status, root.KubernetesJsClient.V2alpha1HorizontalPodAutoscaler, root.KubernetesJsClient.V2alpha1HorizontalPodAutoscalerList); - } -}(this, function(ApiClient, V1APIResourceList, V1DeleteOptions, V1Status, V2alpha1HorizontalPodAutoscaler, V2alpha1HorizontalPodAutoscalerList) { - 'use strict'; - - /** - * Autoscaling_v2alpha1 service. - * @module io.kubernetes.js/io.kubernetes.js.apis/Autoscaling_v2alpha1Api - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new Autoscaling_v2alpha1Api. - * @alias module:io.kubernetes.js/io.kubernetes.js.apis/Autoscaling_v2alpha1Api - * @class - * @param {module:io.kubernetes.js/ApiClient} apiClient Optional API client implementation to use, - * default to {@link module:io.kubernetes.js/ApiClient#instance} if unspecified. - */ - var exports = function(apiClient) { - this.apiClient = apiClient || ApiClient.instance; - - - /** - * Callback function to receive the result of the createNamespacedHorizontalPodAutoscaler operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Autoscaling_v2alpha1Api~createNamespacedHorizontalPodAutoscalerCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V2alpha1HorizontalPodAutoscaler} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * create a HorizontalPodAutoscaler - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V2alpha1HorizontalPodAutoscaler} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Autoscaling_v2alpha1Api~createNamespacedHorizontalPodAutoscalerCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V2alpha1HorizontalPodAutoscaler} - */ - this.createNamespacedHorizontalPodAutoscaler = function(namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling createNamespacedHorizontalPodAutoscaler"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling createNamespacedHorizontalPodAutoscaler"); - } - - - var pathParams = { - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V2alpha1HorizontalPodAutoscaler; - - return this.apiClient.callApi( - '/apis/autoscaling/v2alpha1/namespaces/{namespace}/horizontalpodautoscalers', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the deleteCollectionNamespacedHorizontalPodAutoscaler operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Autoscaling_v2alpha1Api~deleteCollectionNamespacedHorizontalPodAutoscalerCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Status} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * delete collection of HorizontalPodAutoscaler - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {String} opts.fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. - * @param {String} opts.labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. - * @param {String} opts.resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - * @param {Number} opts.timeoutSeconds Timeout for the list/watch call. - * @param {Boolean} opts.watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Autoscaling_v2alpha1Api~deleteCollectionNamespacedHorizontalPodAutoscalerCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1Status} - */ - this.deleteCollectionNamespacedHorizontalPodAutoscaler = function(namespace, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedHorizontalPodAutoscaler"); - } - - - var pathParams = { - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'], - 'fieldSelector': opts['fieldSelector'], - 'labelSelector': opts['labelSelector'], - 'resourceVersion': opts['resourceVersion'], - 'timeoutSeconds': opts['timeoutSeconds'], - 'watch': opts['watch'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1Status; - - return this.apiClient.callApi( - '/apis/autoscaling/v2alpha1/namespaces/{namespace}/horizontalpodautoscalers', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the deleteNamespacedHorizontalPodAutoscaler operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Autoscaling_v2alpha1Api~deleteNamespacedHorizontalPodAutoscalerCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Status} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * delete a HorizontalPodAutoscaler - * @param {String} name name of the HorizontalPodAutoscaler - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1DeleteOptions} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {Number} opts.gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - * @param {Boolean} opts.orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - * @param {String} opts.propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Autoscaling_v2alpha1Api~deleteNamespacedHorizontalPodAutoscalerCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1Status} - */ - this.deleteNamespacedHorizontalPodAutoscaler = function(name, namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling deleteNamespacedHorizontalPodAutoscaler"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling deleteNamespacedHorizontalPodAutoscaler"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling deleteNamespacedHorizontalPodAutoscaler"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'], - 'gracePeriodSeconds': opts['gracePeriodSeconds'], - 'orphanDependents': opts['orphanDependents'], - 'propagationPolicy': opts['propagationPolicy'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1Status; - - return this.apiClient.callApi( - '/apis/autoscaling/v2alpha1/namespaces/{namespace}/horizontalpodautoscalers/{name}', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the getAPIResources operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Autoscaling_v2alpha1Api~getAPIResourcesCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1APIResourceList} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * get available resources - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Autoscaling_v2alpha1Api~getAPIResourcesCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1APIResourceList} - */ - this.getAPIResources = function(callback) { - var postBody = null; - - - var pathParams = { - }; - var queryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1APIResourceList; - - return this.apiClient.callApi( - '/apis/autoscaling/v2alpha1/', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the listHorizontalPodAutoscalerForAllNamespaces operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Autoscaling_v2alpha1Api~listHorizontalPodAutoscalerForAllNamespacesCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V2alpha1HorizontalPodAutoscalerList} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * list or watch objects of kind HorizontalPodAutoscaler - * @param {Object} opts Optional parameters - * @param {String} opts.fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. - * @param {String} opts.labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {String} opts.resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - * @param {Number} opts.timeoutSeconds Timeout for the list/watch call. - * @param {Boolean} opts.watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Autoscaling_v2alpha1Api~listHorizontalPodAutoscalerForAllNamespacesCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V2alpha1HorizontalPodAutoscalerList} - */ - this.listHorizontalPodAutoscalerForAllNamespaces = function(opts, callback) { - opts = opts || {}; - var postBody = null; - - - var pathParams = { - }; - var queryParams = { - 'fieldSelector': opts['fieldSelector'], - 'labelSelector': opts['labelSelector'], - 'pretty': opts['pretty'], - 'resourceVersion': opts['resourceVersion'], - 'timeoutSeconds': opts['timeoutSeconds'], - 'watch': opts['watch'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']; - var returnType = V2alpha1HorizontalPodAutoscalerList; - - return this.apiClient.callApi( - '/apis/autoscaling/v2alpha1/horizontalpodautoscalers', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the listNamespacedHorizontalPodAutoscaler operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Autoscaling_v2alpha1Api~listNamespacedHorizontalPodAutoscalerCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V2alpha1HorizontalPodAutoscalerList} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * list or watch objects of kind HorizontalPodAutoscaler - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {String} opts.fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. - * @param {String} opts.labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. - * @param {String} opts.resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - * @param {Number} opts.timeoutSeconds Timeout for the list/watch call. - * @param {Boolean} opts.watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Autoscaling_v2alpha1Api~listNamespacedHorizontalPodAutoscalerCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V2alpha1HorizontalPodAutoscalerList} - */ - this.listNamespacedHorizontalPodAutoscaler = function(namespace, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling listNamespacedHorizontalPodAutoscaler"); - } - - - var pathParams = { - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'], - 'fieldSelector': opts['fieldSelector'], - 'labelSelector': opts['labelSelector'], - 'resourceVersion': opts['resourceVersion'], - 'timeoutSeconds': opts['timeoutSeconds'], - 'watch': opts['watch'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']; - var returnType = V2alpha1HorizontalPodAutoscalerList; - - return this.apiClient.callApi( - '/apis/autoscaling/v2alpha1/namespaces/{namespace}/horizontalpodautoscalers', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the patchNamespacedHorizontalPodAutoscaler operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Autoscaling_v2alpha1Api~patchNamespacedHorizontalPodAutoscalerCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V2alpha1HorizontalPodAutoscaler} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * partially update the specified HorizontalPodAutoscaler - * @param {String} name name of the HorizontalPodAutoscaler - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Autoscaling_v2alpha1Api~patchNamespacedHorizontalPodAutoscalerCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V2alpha1HorizontalPodAutoscaler} - */ - this.patchNamespacedHorizontalPodAutoscaler = function(name, namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling patchNamespacedHorizontalPodAutoscaler"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling patchNamespacedHorizontalPodAutoscaler"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling patchNamespacedHorizontalPodAutoscaler"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V2alpha1HorizontalPodAutoscaler; - - return this.apiClient.callApi( - '/apis/autoscaling/v2alpha1/namespaces/{namespace}/horizontalpodautoscalers/{name}', 'PATCH', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the patchNamespacedHorizontalPodAutoscalerStatus operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Autoscaling_v2alpha1Api~patchNamespacedHorizontalPodAutoscalerStatusCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V2alpha1HorizontalPodAutoscaler} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * partially update status of the specified HorizontalPodAutoscaler - * @param {String} name name of the HorizontalPodAutoscaler - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Autoscaling_v2alpha1Api~patchNamespacedHorizontalPodAutoscalerStatusCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V2alpha1HorizontalPodAutoscaler} - */ - this.patchNamespacedHorizontalPodAutoscalerStatus = function(name, namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling patchNamespacedHorizontalPodAutoscalerStatus"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling patchNamespacedHorizontalPodAutoscalerStatus"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling patchNamespacedHorizontalPodAutoscalerStatus"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V2alpha1HorizontalPodAutoscaler; - - return this.apiClient.callApi( - '/apis/autoscaling/v2alpha1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status', 'PATCH', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the readNamespacedHorizontalPodAutoscaler operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Autoscaling_v2alpha1Api~readNamespacedHorizontalPodAutoscalerCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V2alpha1HorizontalPodAutoscaler} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * read the specified HorizontalPodAutoscaler - * @param {String} name name of the HorizontalPodAutoscaler - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {Boolean} opts.exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. - * @param {Boolean} opts._export Should this value be exported. Export strips fields that a user can not specify. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Autoscaling_v2alpha1Api~readNamespacedHorizontalPodAutoscalerCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V2alpha1HorizontalPodAutoscaler} - */ - this.readNamespacedHorizontalPodAutoscaler = function(name, namespace, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling readNamespacedHorizontalPodAutoscaler"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling readNamespacedHorizontalPodAutoscaler"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'], - 'exact': opts['exact'], - 'export': opts['_export'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V2alpha1HorizontalPodAutoscaler; - - return this.apiClient.callApi( - '/apis/autoscaling/v2alpha1/namespaces/{namespace}/horizontalpodautoscalers/{name}', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the readNamespacedHorizontalPodAutoscalerStatus operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Autoscaling_v2alpha1Api~readNamespacedHorizontalPodAutoscalerStatusCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V2alpha1HorizontalPodAutoscaler} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * read status of the specified HorizontalPodAutoscaler - * @param {String} name name of the HorizontalPodAutoscaler - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Autoscaling_v2alpha1Api~readNamespacedHorizontalPodAutoscalerStatusCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V2alpha1HorizontalPodAutoscaler} - */ - this.readNamespacedHorizontalPodAutoscalerStatus = function(name, namespace, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling readNamespacedHorizontalPodAutoscalerStatus"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling readNamespacedHorizontalPodAutoscalerStatus"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V2alpha1HorizontalPodAutoscaler; - - return this.apiClient.callApi( - '/apis/autoscaling/v2alpha1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the replaceNamespacedHorizontalPodAutoscaler operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Autoscaling_v2alpha1Api~replaceNamespacedHorizontalPodAutoscalerCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V2alpha1HorizontalPodAutoscaler} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * replace the specified HorizontalPodAutoscaler - * @param {String} name name of the HorizontalPodAutoscaler - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V2alpha1HorizontalPodAutoscaler} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Autoscaling_v2alpha1Api~replaceNamespacedHorizontalPodAutoscalerCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V2alpha1HorizontalPodAutoscaler} - */ - this.replaceNamespacedHorizontalPodAutoscaler = function(name, namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling replaceNamespacedHorizontalPodAutoscaler"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling replaceNamespacedHorizontalPodAutoscaler"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling replaceNamespacedHorizontalPodAutoscaler"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V2alpha1HorizontalPodAutoscaler; - - return this.apiClient.callApi( - '/apis/autoscaling/v2alpha1/namespaces/{namespace}/horizontalpodautoscalers/{name}', 'PUT', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the replaceNamespacedHorizontalPodAutoscalerStatus operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Autoscaling_v2alpha1Api~replaceNamespacedHorizontalPodAutoscalerStatusCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V2alpha1HorizontalPodAutoscaler} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * replace status of the specified HorizontalPodAutoscaler - * @param {String} name name of the HorizontalPodAutoscaler - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V2alpha1HorizontalPodAutoscaler} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Autoscaling_v2alpha1Api~replaceNamespacedHorizontalPodAutoscalerStatusCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V2alpha1HorizontalPodAutoscaler} - */ - this.replaceNamespacedHorizontalPodAutoscalerStatus = function(name, namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling replaceNamespacedHorizontalPodAutoscalerStatus"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling replaceNamespacedHorizontalPodAutoscalerStatus"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling replaceNamespacedHorizontalPodAutoscalerStatus"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V2alpha1HorizontalPodAutoscaler; - - return this.apiClient.callApi( - '/apis/autoscaling/v2alpha1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status', 'PUT', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - }; - - return exports; -})); diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.apis/BatchApi.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.apis/BatchApi.js deleted file mode 100644 index 43d0e323da..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.apis/BatchApi.js +++ /dev/null @@ -1,88 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1APIGroup'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('../io.kubernetes.js.models/V1APIGroup')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.BatchApi = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1APIGroup); - } -}(this, function(ApiClient, V1APIGroup) { - 'use strict'; - - /** - * Batch service. - * @module io.kubernetes.js/io.kubernetes.js.apis/BatchApi - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new BatchApi. - * @alias module:io.kubernetes.js/io.kubernetes.js.apis/BatchApi - * @class - * @param {module:io.kubernetes.js/ApiClient} apiClient Optional API client implementation to use, - * default to {@link module:io.kubernetes.js/ApiClient#instance} if unspecified. - */ - var exports = function(apiClient) { - this.apiClient = apiClient || ApiClient.instance; - - - /** - * Callback function to receive the result of the getAPIGroup operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/BatchApi~getAPIGroupCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1APIGroup} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * get information of a group - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/BatchApi~getAPIGroupCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1APIGroup} - */ - this.getAPIGroup = function(callback) { - var postBody = null; - - - var pathParams = { - }; - var queryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1APIGroup; - - return this.apiClient.callApi( - '/apis/batch/', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - }; - - return exports; -})); diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.apis/Batch_v1Api.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.apis/Batch_v1Api.js deleted file mode 100644 index ad279aa778..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.apis/Batch_v1Api.js +++ /dev/null @@ -1,745 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1APIResourceList', 'io.kubernetes.js/io.kubernetes.js.models/V1DeleteOptions', 'io.kubernetes.js/io.kubernetes.js.models/V1Job', 'io.kubernetes.js/io.kubernetes.js.models/V1JobList', 'io.kubernetes.js/io.kubernetes.js.models/V1Status'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('../io.kubernetes.js.models/V1APIResourceList'), require('../io.kubernetes.js.models/V1DeleteOptions'), require('../io.kubernetes.js.models/V1Job'), require('../io.kubernetes.js.models/V1JobList'), require('../io.kubernetes.js.models/V1Status')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.Batch_v1Api = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1APIResourceList, root.KubernetesJsClient.V1DeleteOptions, root.KubernetesJsClient.V1Job, root.KubernetesJsClient.V1JobList, root.KubernetesJsClient.V1Status); - } -}(this, function(ApiClient, V1APIResourceList, V1DeleteOptions, V1Job, V1JobList, V1Status) { - 'use strict'; - - /** - * Batch_v1 service. - * @module io.kubernetes.js/io.kubernetes.js.apis/Batch_v1Api - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new Batch_v1Api. - * @alias module:io.kubernetes.js/io.kubernetes.js.apis/Batch_v1Api - * @class - * @param {module:io.kubernetes.js/ApiClient} apiClient Optional API client implementation to use, - * default to {@link module:io.kubernetes.js/ApiClient#instance} if unspecified. - */ - var exports = function(apiClient) { - this.apiClient = apiClient || ApiClient.instance; - - - /** - * Callback function to receive the result of the createNamespacedJob operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Batch_v1Api~createNamespacedJobCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Job} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * create a Job - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Job} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Batch_v1Api~createNamespacedJobCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1Job} - */ - this.createNamespacedJob = function(namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling createNamespacedJob"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling createNamespacedJob"); - } - - - var pathParams = { - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1Job; - - return this.apiClient.callApi( - '/apis/batch/v1/namespaces/{namespace}/jobs', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the deleteCollectionNamespacedJob operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Batch_v1Api~deleteCollectionNamespacedJobCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Status} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * delete collection of Job - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {String} opts.fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. - * @param {String} opts.labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. - * @param {String} opts.resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - * @param {Number} opts.timeoutSeconds Timeout for the list/watch call. - * @param {Boolean} opts.watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Batch_v1Api~deleteCollectionNamespacedJobCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1Status} - */ - this.deleteCollectionNamespacedJob = function(namespace, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedJob"); - } - - - var pathParams = { - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'], - 'fieldSelector': opts['fieldSelector'], - 'labelSelector': opts['labelSelector'], - 'resourceVersion': opts['resourceVersion'], - 'timeoutSeconds': opts['timeoutSeconds'], - 'watch': opts['watch'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1Status; - - return this.apiClient.callApi( - '/apis/batch/v1/namespaces/{namespace}/jobs', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the deleteNamespacedJob operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Batch_v1Api~deleteNamespacedJobCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Status} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * delete a Job - * @param {String} name name of the Job - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1DeleteOptions} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {Number} opts.gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - * @param {Boolean} opts.orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - * @param {String} opts.propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Batch_v1Api~deleteNamespacedJobCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1Status} - */ - this.deleteNamespacedJob = function(name, namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling deleteNamespacedJob"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling deleteNamespacedJob"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling deleteNamespacedJob"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'], - 'gracePeriodSeconds': opts['gracePeriodSeconds'], - 'orphanDependents': opts['orphanDependents'], - 'propagationPolicy': opts['propagationPolicy'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1Status; - - return this.apiClient.callApi( - '/apis/batch/v1/namespaces/{namespace}/jobs/{name}', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the getAPIResources operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Batch_v1Api~getAPIResourcesCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1APIResourceList} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * get available resources - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Batch_v1Api~getAPIResourcesCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1APIResourceList} - */ - this.getAPIResources = function(callback) { - var postBody = null; - - - var pathParams = { - }; - var queryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1APIResourceList; - - return this.apiClient.callApi( - '/apis/batch/v1/', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the listJobForAllNamespaces operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Batch_v1Api~listJobForAllNamespacesCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1JobList} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * list or watch objects of kind Job - * @param {Object} opts Optional parameters - * @param {String} opts.fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. - * @param {String} opts.labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {String} opts.resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - * @param {Number} opts.timeoutSeconds Timeout for the list/watch call. - * @param {Boolean} opts.watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Batch_v1Api~listJobForAllNamespacesCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1JobList} - */ - this.listJobForAllNamespaces = function(opts, callback) { - opts = opts || {}; - var postBody = null; - - - var pathParams = { - }; - var queryParams = { - 'fieldSelector': opts['fieldSelector'], - 'labelSelector': opts['labelSelector'], - 'pretty': opts['pretty'], - 'resourceVersion': opts['resourceVersion'], - 'timeoutSeconds': opts['timeoutSeconds'], - 'watch': opts['watch'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']; - var returnType = V1JobList; - - return this.apiClient.callApi( - '/apis/batch/v1/jobs', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the listNamespacedJob operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Batch_v1Api~listNamespacedJobCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1JobList} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * list or watch objects of kind Job - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {String} opts.fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. - * @param {String} opts.labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. - * @param {String} opts.resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - * @param {Number} opts.timeoutSeconds Timeout for the list/watch call. - * @param {Boolean} opts.watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Batch_v1Api~listNamespacedJobCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1JobList} - */ - this.listNamespacedJob = function(namespace, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling listNamespacedJob"); - } - - - var pathParams = { - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'], - 'fieldSelector': opts['fieldSelector'], - 'labelSelector': opts['labelSelector'], - 'resourceVersion': opts['resourceVersion'], - 'timeoutSeconds': opts['timeoutSeconds'], - 'watch': opts['watch'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']; - var returnType = V1JobList; - - return this.apiClient.callApi( - '/apis/batch/v1/namespaces/{namespace}/jobs', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the patchNamespacedJob operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Batch_v1Api~patchNamespacedJobCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Job} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * partially update the specified Job - * @param {String} name name of the Job - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Batch_v1Api~patchNamespacedJobCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1Job} - */ - this.patchNamespacedJob = function(name, namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling patchNamespacedJob"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling patchNamespacedJob"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling patchNamespacedJob"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1Job; - - return this.apiClient.callApi( - '/apis/batch/v1/namespaces/{namespace}/jobs/{name}', 'PATCH', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the patchNamespacedJobStatus operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Batch_v1Api~patchNamespacedJobStatusCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Job} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * partially update status of the specified Job - * @param {String} name name of the Job - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Batch_v1Api~patchNamespacedJobStatusCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1Job} - */ - this.patchNamespacedJobStatus = function(name, namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling patchNamespacedJobStatus"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling patchNamespacedJobStatus"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling patchNamespacedJobStatus"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1Job; - - return this.apiClient.callApi( - '/apis/batch/v1/namespaces/{namespace}/jobs/{name}/status', 'PATCH', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the readNamespacedJob operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Batch_v1Api~readNamespacedJobCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Job} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * read the specified Job - * @param {String} name name of the Job - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {Boolean} opts.exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. - * @param {Boolean} opts._export Should this value be exported. Export strips fields that a user can not specify. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Batch_v1Api~readNamespacedJobCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1Job} - */ - this.readNamespacedJob = function(name, namespace, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling readNamespacedJob"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling readNamespacedJob"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'], - 'exact': opts['exact'], - 'export': opts['_export'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1Job; - - return this.apiClient.callApi( - '/apis/batch/v1/namespaces/{namespace}/jobs/{name}', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the readNamespacedJobStatus operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Batch_v1Api~readNamespacedJobStatusCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Job} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * read status of the specified Job - * @param {String} name name of the Job - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Batch_v1Api~readNamespacedJobStatusCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1Job} - */ - this.readNamespacedJobStatus = function(name, namespace, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling readNamespacedJobStatus"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling readNamespacedJobStatus"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1Job; - - return this.apiClient.callApi( - '/apis/batch/v1/namespaces/{namespace}/jobs/{name}/status', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the replaceNamespacedJob operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Batch_v1Api~replaceNamespacedJobCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Job} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * replace the specified Job - * @param {String} name name of the Job - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Job} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Batch_v1Api~replaceNamespacedJobCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1Job} - */ - this.replaceNamespacedJob = function(name, namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling replaceNamespacedJob"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling replaceNamespacedJob"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling replaceNamespacedJob"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1Job; - - return this.apiClient.callApi( - '/apis/batch/v1/namespaces/{namespace}/jobs/{name}', 'PUT', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the replaceNamespacedJobStatus operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Batch_v1Api~replaceNamespacedJobStatusCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Job} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * replace status of the specified Job - * @param {String} name name of the Job - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Job} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Batch_v1Api~replaceNamespacedJobStatusCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1Job} - */ - this.replaceNamespacedJobStatus = function(name, namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling replaceNamespacedJobStatus"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling replaceNamespacedJobStatus"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling replaceNamespacedJobStatus"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1Job; - - return this.apiClient.callApi( - '/apis/batch/v1/namespaces/{namespace}/jobs/{name}/status', 'PUT', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - }; - - return exports; -})); diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.apis/Batch_v2alpha1Api.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.apis/Batch_v2alpha1Api.js deleted file mode 100644 index de594fa5c0..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.apis/Batch_v2alpha1Api.js +++ /dev/null @@ -1,1402 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1APIResourceList', 'io.kubernetes.js/io.kubernetes.js.models/V1DeleteOptions', 'io.kubernetes.js/io.kubernetes.js.models/V1Status', 'io.kubernetes.js/io.kubernetes.js.models/V2alpha1CronJob', 'io.kubernetes.js/io.kubernetes.js.models/V2alpha1CronJobList'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('../io.kubernetes.js.models/V1APIResourceList'), require('../io.kubernetes.js.models/V1DeleteOptions'), require('../io.kubernetes.js.models/V1Status'), require('../io.kubernetes.js.models/V2alpha1CronJob'), require('../io.kubernetes.js.models/V2alpha1CronJobList')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.Batch_v2alpha1Api = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1APIResourceList, root.KubernetesJsClient.V1DeleteOptions, root.KubernetesJsClient.V1Status, root.KubernetesJsClient.V2alpha1CronJob, root.KubernetesJsClient.V2alpha1CronJobList); - } -}(this, function(ApiClient, V1APIResourceList, V1DeleteOptions, V1Status, V2alpha1CronJob, V2alpha1CronJobList) { - 'use strict'; - - /** - * Batch_v2alpha1 service. - * @module io.kubernetes.js/io.kubernetes.js.apis/Batch_v2alpha1Api - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new Batch_v2alpha1Api. - * @alias module:io.kubernetes.js/io.kubernetes.js.apis/Batch_v2alpha1Api - * @class - * @param {module:io.kubernetes.js/ApiClient} apiClient Optional API client implementation to use, - * default to {@link module:io.kubernetes.js/ApiClient#instance} if unspecified. - */ - var exports = function(apiClient) { - this.apiClient = apiClient || ApiClient.instance; - - - /** - * Callback function to receive the result of the createNamespacedCronJob operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Batch_v2alpha1Api~createNamespacedCronJobCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V2alpha1CronJob} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * create a CronJob - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V2alpha1CronJob} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Batch_v2alpha1Api~createNamespacedCronJobCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V2alpha1CronJob} - */ - this.createNamespacedCronJob = function(namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling createNamespacedCronJob"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling createNamespacedCronJob"); - } - - - var pathParams = { - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V2alpha1CronJob; - - return this.apiClient.callApi( - '/apis/batch/v2alpha1/namespaces/{namespace}/cronjobs', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the createNamespacedScheduledJob operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Batch_v2alpha1Api~createNamespacedScheduledJobCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V2alpha1CronJob} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * create a ScheduledJob - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V2alpha1CronJob} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Batch_v2alpha1Api~createNamespacedScheduledJobCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V2alpha1CronJob} - */ - this.createNamespacedScheduledJob = function(namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling createNamespacedScheduledJob"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling createNamespacedScheduledJob"); - } - - - var pathParams = { - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V2alpha1CronJob; - - return this.apiClient.callApi( - '/apis/batch/v2alpha1/namespaces/{namespace}/scheduledjobs', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the deleteCollectionNamespacedCronJob operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Batch_v2alpha1Api~deleteCollectionNamespacedCronJobCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Status} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * delete collection of CronJob - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {String} opts.fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. - * @param {String} opts.labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. - * @param {String} opts.resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - * @param {Number} opts.timeoutSeconds Timeout for the list/watch call. - * @param {Boolean} opts.watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Batch_v2alpha1Api~deleteCollectionNamespacedCronJobCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1Status} - */ - this.deleteCollectionNamespacedCronJob = function(namespace, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedCronJob"); - } - - - var pathParams = { - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'], - 'fieldSelector': opts['fieldSelector'], - 'labelSelector': opts['labelSelector'], - 'resourceVersion': opts['resourceVersion'], - 'timeoutSeconds': opts['timeoutSeconds'], - 'watch': opts['watch'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1Status; - - return this.apiClient.callApi( - '/apis/batch/v2alpha1/namespaces/{namespace}/cronjobs', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the deleteCollectionNamespacedScheduledJob operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Batch_v2alpha1Api~deleteCollectionNamespacedScheduledJobCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Status} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * delete collection of ScheduledJob - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {String} opts.fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. - * @param {String} opts.labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. - * @param {String} opts.resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - * @param {Number} opts.timeoutSeconds Timeout for the list/watch call. - * @param {Boolean} opts.watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Batch_v2alpha1Api~deleteCollectionNamespacedScheduledJobCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1Status} - */ - this.deleteCollectionNamespacedScheduledJob = function(namespace, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedScheduledJob"); - } - - - var pathParams = { - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'], - 'fieldSelector': opts['fieldSelector'], - 'labelSelector': opts['labelSelector'], - 'resourceVersion': opts['resourceVersion'], - 'timeoutSeconds': opts['timeoutSeconds'], - 'watch': opts['watch'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1Status; - - return this.apiClient.callApi( - '/apis/batch/v2alpha1/namespaces/{namespace}/scheduledjobs', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the deleteNamespacedCronJob operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Batch_v2alpha1Api~deleteNamespacedCronJobCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Status} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * delete a CronJob - * @param {String} name name of the CronJob - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1DeleteOptions} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {Number} opts.gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - * @param {Boolean} opts.orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - * @param {String} opts.propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Batch_v2alpha1Api~deleteNamespacedCronJobCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1Status} - */ - this.deleteNamespacedCronJob = function(name, namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling deleteNamespacedCronJob"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling deleteNamespacedCronJob"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling deleteNamespacedCronJob"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'], - 'gracePeriodSeconds': opts['gracePeriodSeconds'], - 'orphanDependents': opts['orphanDependents'], - 'propagationPolicy': opts['propagationPolicy'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1Status; - - return this.apiClient.callApi( - '/apis/batch/v2alpha1/namespaces/{namespace}/cronjobs/{name}', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the deleteNamespacedScheduledJob operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Batch_v2alpha1Api~deleteNamespacedScheduledJobCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Status} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * delete a ScheduledJob - * @param {String} name name of the ScheduledJob - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1DeleteOptions} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {Number} opts.gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - * @param {Boolean} opts.orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - * @param {String} opts.propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Batch_v2alpha1Api~deleteNamespacedScheduledJobCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1Status} - */ - this.deleteNamespacedScheduledJob = function(name, namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling deleteNamespacedScheduledJob"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling deleteNamespacedScheduledJob"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling deleteNamespacedScheduledJob"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'], - 'gracePeriodSeconds': opts['gracePeriodSeconds'], - 'orphanDependents': opts['orphanDependents'], - 'propagationPolicy': opts['propagationPolicy'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1Status; - - return this.apiClient.callApi( - '/apis/batch/v2alpha1/namespaces/{namespace}/scheduledjobs/{name}', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the getAPIResources operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Batch_v2alpha1Api~getAPIResourcesCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1APIResourceList} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * get available resources - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Batch_v2alpha1Api~getAPIResourcesCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1APIResourceList} - */ - this.getAPIResources = function(callback) { - var postBody = null; - - - var pathParams = { - }; - var queryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1APIResourceList; - - return this.apiClient.callApi( - '/apis/batch/v2alpha1/', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the listCronJobForAllNamespaces operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Batch_v2alpha1Api~listCronJobForAllNamespacesCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V2alpha1CronJobList} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * list or watch objects of kind CronJob - * @param {Object} opts Optional parameters - * @param {String} opts.fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. - * @param {String} opts.labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {String} opts.resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - * @param {Number} opts.timeoutSeconds Timeout for the list/watch call. - * @param {Boolean} opts.watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Batch_v2alpha1Api~listCronJobForAllNamespacesCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V2alpha1CronJobList} - */ - this.listCronJobForAllNamespaces = function(opts, callback) { - opts = opts || {}; - var postBody = null; - - - var pathParams = { - }; - var queryParams = { - 'fieldSelector': opts['fieldSelector'], - 'labelSelector': opts['labelSelector'], - 'pretty': opts['pretty'], - 'resourceVersion': opts['resourceVersion'], - 'timeoutSeconds': opts['timeoutSeconds'], - 'watch': opts['watch'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']; - var returnType = V2alpha1CronJobList; - - return this.apiClient.callApi( - '/apis/batch/v2alpha1/cronjobs', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the listNamespacedCronJob operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Batch_v2alpha1Api~listNamespacedCronJobCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V2alpha1CronJobList} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * list or watch objects of kind CronJob - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {String} opts.fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. - * @param {String} opts.labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. - * @param {String} opts.resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - * @param {Number} opts.timeoutSeconds Timeout for the list/watch call. - * @param {Boolean} opts.watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Batch_v2alpha1Api~listNamespacedCronJobCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V2alpha1CronJobList} - */ - this.listNamespacedCronJob = function(namespace, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling listNamespacedCronJob"); - } - - - var pathParams = { - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'], - 'fieldSelector': opts['fieldSelector'], - 'labelSelector': opts['labelSelector'], - 'resourceVersion': opts['resourceVersion'], - 'timeoutSeconds': opts['timeoutSeconds'], - 'watch': opts['watch'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']; - var returnType = V2alpha1CronJobList; - - return this.apiClient.callApi( - '/apis/batch/v2alpha1/namespaces/{namespace}/cronjobs', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the listNamespacedScheduledJob operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Batch_v2alpha1Api~listNamespacedScheduledJobCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V2alpha1CronJobList} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * list or watch objects of kind ScheduledJob - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {String} opts.fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. - * @param {String} opts.labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. - * @param {String} opts.resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - * @param {Number} opts.timeoutSeconds Timeout for the list/watch call. - * @param {Boolean} opts.watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Batch_v2alpha1Api~listNamespacedScheduledJobCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V2alpha1CronJobList} - */ - this.listNamespacedScheduledJob = function(namespace, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling listNamespacedScheduledJob"); - } - - - var pathParams = { - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'], - 'fieldSelector': opts['fieldSelector'], - 'labelSelector': opts['labelSelector'], - 'resourceVersion': opts['resourceVersion'], - 'timeoutSeconds': opts['timeoutSeconds'], - 'watch': opts['watch'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']; - var returnType = V2alpha1CronJobList; - - return this.apiClient.callApi( - '/apis/batch/v2alpha1/namespaces/{namespace}/scheduledjobs', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the listScheduledJobForAllNamespaces operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Batch_v2alpha1Api~listScheduledJobForAllNamespacesCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V2alpha1CronJobList} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * list or watch objects of kind ScheduledJob - * @param {Object} opts Optional parameters - * @param {String} opts.fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. - * @param {String} opts.labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {String} opts.resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - * @param {Number} opts.timeoutSeconds Timeout for the list/watch call. - * @param {Boolean} opts.watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Batch_v2alpha1Api~listScheduledJobForAllNamespacesCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V2alpha1CronJobList} - */ - this.listScheduledJobForAllNamespaces = function(opts, callback) { - opts = opts || {}; - var postBody = null; - - - var pathParams = { - }; - var queryParams = { - 'fieldSelector': opts['fieldSelector'], - 'labelSelector': opts['labelSelector'], - 'pretty': opts['pretty'], - 'resourceVersion': opts['resourceVersion'], - 'timeoutSeconds': opts['timeoutSeconds'], - 'watch': opts['watch'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']; - var returnType = V2alpha1CronJobList; - - return this.apiClient.callApi( - '/apis/batch/v2alpha1/scheduledjobs', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the patchNamespacedCronJob operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Batch_v2alpha1Api~patchNamespacedCronJobCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V2alpha1CronJob} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * partially update the specified CronJob - * @param {String} name name of the CronJob - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Batch_v2alpha1Api~patchNamespacedCronJobCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V2alpha1CronJob} - */ - this.patchNamespacedCronJob = function(name, namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling patchNamespacedCronJob"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling patchNamespacedCronJob"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling patchNamespacedCronJob"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V2alpha1CronJob; - - return this.apiClient.callApi( - '/apis/batch/v2alpha1/namespaces/{namespace}/cronjobs/{name}', 'PATCH', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the patchNamespacedCronJobStatus operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Batch_v2alpha1Api~patchNamespacedCronJobStatusCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V2alpha1CronJob} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * partially update status of the specified CronJob - * @param {String} name name of the CronJob - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Batch_v2alpha1Api~patchNamespacedCronJobStatusCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V2alpha1CronJob} - */ - this.patchNamespacedCronJobStatus = function(name, namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling patchNamespacedCronJobStatus"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling patchNamespacedCronJobStatus"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling patchNamespacedCronJobStatus"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V2alpha1CronJob; - - return this.apiClient.callApi( - '/apis/batch/v2alpha1/namespaces/{namespace}/cronjobs/{name}/status', 'PATCH', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the patchNamespacedScheduledJob operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Batch_v2alpha1Api~patchNamespacedScheduledJobCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V2alpha1CronJob} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * partially update the specified ScheduledJob - * @param {String} name name of the ScheduledJob - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Batch_v2alpha1Api~patchNamespacedScheduledJobCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V2alpha1CronJob} - */ - this.patchNamespacedScheduledJob = function(name, namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling patchNamespacedScheduledJob"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling patchNamespacedScheduledJob"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling patchNamespacedScheduledJob"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V2alpha1CronJob; - - return this.apiClient.callApi( - '/apis/batch/v2alpha1/namespaces/{namespace}/scheduledjobs/{name}', 'PATCH', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the patchNamespacedScheduledJobStatus operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Batch_v2alpha1Api~patchNamespacedScheduledJobStatusCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V2alpha1CronJob} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * partially update status of the specified ScheduledJob - * @param {String} name name of the ScheduledJob - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Batch_v2alpha1Api~patchNamespacedScheduledJobStatusCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V2alpha1CronJob} - */ - this.patchNamespacedScheduledJobStatus = function(name, namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling patchNamespacedScheduledJobStatus"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling patchNamespacedScheduledJobStatus"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling patchNamespacedScheduledJobStatus"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V2alpha1CronJob; - - return this.apiClient.callApi( - '/apis/batch/v2alpha1/namespaces/{namespace}/scheduledjobs/{name}/status', 'PATCH', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the readNamespacedCronJob operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Batch_v2alpha1Api~readNamespacedCronJobCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V2alpha1CronJob} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * read the specified CronJob - * @param {String} name name of the CronJob - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {Boolean} opts.exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. - * @param {Boolean} opts._export Should this value be exported. Export strips fields that a user can not specify. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Batch_v2alpha1Api~readNamespacedCronJobCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V2alpha1CronJob} - */ - this.readNamespacedCronJob = function(name, namespace, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling readNamespacedCronJob"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling readNamespacedCronJob"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'], - 'exact': opts['exact'], - 'export': opts['_export'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V2alpha1CronJob; - - return this.apiClient.callApi( - '/apis/batch/v2alpha1/namespaces/{namespace}/cronjobs/{name}', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the readNamespacedCronJobStatus operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Batch_v2alpha1Api~readNamespacedCronJobStatusCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V2alpha1CronJob} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * read status of the specified CronJob - * @param {String} name name of the CronJob - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Batch_v2alpha1Api~readNamespacedCronJobStatusCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V2alpha1CronJob} - */ - this.readNamespacedCronJobStatus = function(name, namespace, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling readNamespacedCronJobStatus"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling readNamespacedCronJobStatus"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V2alpha1CronJob; - - return this.apiClient.callApi( - '/apis/batch/v2alpha1/namespaces/{namespace}/cronjobs/{name}/status', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the readNamespacedScheduledJob operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Batch_v2alpha1Api~readNamespacedScheduledJobCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V2alpha1CronJob} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * read the specified ScheduledJob - * @param {String} name name of the ScheduledJob - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {Boolean} opts.exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. - * @param {Boolean} opts._export Should this value be exported. Export strips fields that a user can not specify. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Batch_v2alpha1Api~readNamespacedScheduledJobCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V2alpha1CronJob} - */ - this.readNamespacedScheduledJob = function(name, namespace, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling readNamespacedScheduledJob"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling readNamespacedScheduledJob"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'], - 'exact': opts['exact'], - 'export': opts['_export'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V2alpha1CronJob; - - return this.apiClient.callApi( - '/apis/batch/v2alpha1/namespaces/{namespace}/scheduledjobs/{name}', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the readNamespacedScheduledJobStatus operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Batch_v2alpha1Api~readNamespacedScheduledJobStatusCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V2alpha1CronJob} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * read status of the specified ScheduledJob - * @param {String} name name of the ScheduledJob - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Batch_v2alpha1Api~readNamespacedScheduledJobStatusCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V2alpha1CronJob} - */ - this.readNamespacedScheduledJobStatus = function(name, namespace, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling readNamespacedScheduledJobStatus"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling readNamespacedScheduledJobStatus"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V2alpha1CronJob; - - return this.apiClient.callApi( - '/apis/batch/v2alpha1/namespaces/{namespace}/scheduledjobs/{name}/status', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the replaceNamespacedCronJob operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Batch_v2alpha1Api~replaceNamespacedCronJobCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V2alpha1CronJob} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * replace the specified CronJob - * @param {String} name name of the CronJob - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V2alpha1CronJob} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Batch_v2alpha1Api~replaceNamespacedCronJobCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V2alpha1CronJob} - */ - this.replaceNamespacedCronJob = function(name, namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling replaceNamespacedCronJob"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling replaceNamespacedCronJob"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling replaceNamespacedCronJob"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V2alpha1CronJob; - - return this.apiClient.callApi( - '/apis/batch/v2alpha1/namespaces/{namespace}/cronjobs/{name}', 'PUT', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the replaceNamespacedCronJobStatus operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Batch_v2alpha1Api~replaceNamespacedCronJobStatusCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V2alpha1CronJob} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * replace status of the specified CronJob - * @param {String} name name of the CronJob - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V2alpha1CronJob} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Batch_v2alpha1Api~replaceNamespacedCronJobStatusCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V2alpha1CronJob} - */ - this.replaceNamespacedCronJobStatus = function(name, namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling replaceNamespacedCronJobStatus"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling replaceNamespacedCronJobStatus"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling replaceNamespacedCronJobStatus"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V2alpha1CronJob; - - return this.apiClient.callApi( - '/apis/batch/v2alpha1/namespaces/{namespace}/cronjobs/{name}/status', 'PUT', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the replaceNamespacedScheduledJob operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Batch_v2alpha1Api~replaceNamespacedScheduledJobCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V2alpha1CronJob} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * replace the specified ScheduledJob - * @param {String} name name of the ScheduledJob - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V2alpha1CronJob} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Batch_v2alpha1Api~replaceNamespacedScheduledJobCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V2alpha1CronJob} - */ - this.replaceNamespacedScheduledJob = function(name, namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling replaceNamespacedScheduledJob"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling replaceNamespacedScheduledJob"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling replaceNamespacedScheduledJob"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V2alpha1CronJob; - - return this.apiClient.callApi( - '/apis/batch/v2alpha1/namespaces/{namespace}/scheduledjobs/{name}', 'PUT', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the replaceNamespacedScheduledJobStatus operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Batch_v2alpha1Api~replaceNamespacedScheduledJobStatusCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V2alpha1CronJob} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * replace status of the specified ScheduledJob - * @param {String} name name of the ScheduledJob - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V2alpha1CronJob} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Batch_v2alpha1Api~replaceNamespacedScheduledJobStatusCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V2alpha1CronJob} - */ - this.replaceNamespacedScheduledJobStatus = function(name, namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling replaceNamespacedScheduledJobStatus"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling replaceNamespacedScheduledJobStatus"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling replaceNamespacedScheduledJobStatus"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V2alpha1CronJob; - - return this.apiClient.callApi( - '/apis/batch/v2alpha1/namespaces/{namespace}/scheduledjobs/{name}/status', 'PUT', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - }; - - return exports; -})); diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.apis/CertificatesApi.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.apis/CertificatesApi.js deleted file mode 100644 index 2edd240b5d..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.apis/CertificatesApi.js +++ /dev/null @@ -1,88 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1APIGroup'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('../io.kubernetes.js.models/V1APIGroup')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.CertificatesApi = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1APIGroup); - } -}(this, function(ApiClient, V1APIGroup) { - 'use strict'; - - /** - * Certificates service. - * @module io.kubernetes.js/io.kubernetes.js.apis/CertificatesApi - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new CertificatesApi. - * @alias module:io.kubernetes.js/io.kubernetes.js.apis/CertificatesApi - * @class - * @param {module:io.kubernetes.js/ApiClient} apiClient Optional API client implementation to use, - * default to {@link module:io.kubernetes.js/ApiClient#instance} if unspecified. - */ - var exports = function(apiClient) { - this.apiClient = apiClient || ApiClient.instance; - - - /** - * Callback function to receive the result of the getAPIGroup operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/CertificatesApi~getAPIGroupCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1APIGroup} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * get information of a group - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/CertificatesApi~getAPIGroupCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1APIGroup} - */ - this.getAPIGroup = function(callback) { - var postBody = null; - - - var pathParams = { - }; - var queryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1APIGroup; - - return this.apiClient.callApi( - '/apis/certificates.k8s.io/', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - }; - - return exports; -})); diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.apis/Certificates_v1beta1Api.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.apis/Certificates_v1beta1Api.js deleted file mode 100644 index 785ca80e00..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.apis/Certificates_v1beta1Api.js +++ /dev/null @@ -1,574 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1APIResourceList', 'io.kubernetes.js/io.kubernetes.js.models/V1DeleteOptions', 'io.kubernetes.js/io.kubernetes.js.models/V1Status', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1CertificateSigningRequest', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1CertificateSigningRequestList'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('../io.kubernetes.js.models/V1APIResourceList'), require('../io.kubernetes.js.models/V1DeleteOptions'), require('../io.kubernetes.js.models/V1Status'), require('../io.kubernetes.js.models/V1beta1CertificateSigningRequest'), require('../io.kubernetes.js.models/V1beta1CertificateSigningRequestList')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.Certificates_v1beta1Api = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1APIResourceList, root.KubernetesJsClient.V1DeleteOptions, root.KubernetesJsClient.V1Status, root.KubernetesJsClient.V1beta1CertificateSigningRequest, root.KubernetesJsClient.V1beta1CertificateSigningRequestList); - } -}(this, function(ApiClient, V1APIResourceList, V1DeleteOptions, V1Status, V1beta1CertificateSigningRequest, V1beta1CertificateSigningRequestList) { - 'use strict'; - - /** - * Certificates_v1beta1 service. - * @module io.kubernetes.js/io.kubernetes.js.apis/Certificates_v1beta1Api - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new Certificates_v1beta1Api. - * @alias module:io.kubernetes.js/io.kubernetes.js.apis/Certificates_v1beta1Api - * @class - * @param {module:io.kubernetes.js/ApiClient} apiClient Optional API client implementation to use, - * default to {@link module:io.kubernetes.js/ApiClient#instance} if unspecified. - */ - var exports = function(apiClient) { - this.apiClient = apiClient || ApiClient.instance; - - - /** - * Callback function to receive the result of the createCertificateSigningRequest operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Certificates_v1beta1Api~createCertificateSigningRequestCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1CertificateSigningRequest} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * create a CertificateSigningRequest - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1CertificateSigningRequest} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Certificates_v1beta1Api~createCertificateSigningRequestCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1beta1CertificateSigningRequest} - */ - this.createCertificateSigningRequest = function(body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling createCertificateSigningRequest"); - } - - - var pathParams = { - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1beta1CertificateSigningRequest; - - return this.apiClient.callApi( - '/apis/certificates.k8s.io/v1beta1/certificatesigningrequests', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the deleteCertificateSigningRequest operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Certificates_v1beta1Api~deleteCertificateSigningRequestCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Status} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * delete a CertificateSigningRequest - * @param {String} name name of the CertificateSigningRequest - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1DeleteOptions} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {Number} opts.gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - * @param {Boolean} opts.orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - * @param {String} opts.propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Certificates_v1beta1Api~deleteCertificateSigningRequestCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1Status} - */ - this.deleteCertificateSigningRequest = function(name, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling deleteCertificateSigningRequest"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling deleteCertificateSigningRequest"); - } - - - var pathParams = { - 'name': name - }; - var queryParams = { - 'pretty': opts['pretty'], - 'gracePeriodSeconds': opts['gracePeriodSeconds'], - 'orphanDependents': opts['orphanDependents'], - 'propagationPolicy': opts['propagationPolicy'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1Status; - - return this.apiClient.callApi( - '/apis/certificates.k8s.io/v1beta1/certificatesigningrequests/{name}', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the deleteCollectionCertificateSigningRequest operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Certificates_v1beta1Api~deleteCollectionCertificateSigningRequestCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Status} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * delete collection of CertificateSigningRequest - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {String} opts.fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. - * @param {String} opts.labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. - * @param {String} opts.resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - * @param {Number} opts.timeoutSeconds Timeout for the list/watch call. - * @param {Boolean} opts.watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Certificates_v1beta1Api~deleteCollectionCertificateSigningRequestCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1Status} - */ - this.deleteCollectionCertificateSigningRequest = function(opts, callback) { - opts = opts || {}; - var postBody = null; - - - var pathParams = { - }; - var queryParams = { - 'pretty': opts['pretty'], - 'fieldSelector': opts['fieldSelector'], - 'labelSelector': opts['labelSelector'], - 'resourceVersion': opts['resourceVersion'], - 'timeoutSeconds': opts['timeoutSeconds'], - 'watch': opts['watch'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1Status; - - return this.apiClient.callApi( - '/apis/certificates.k8s.io/v1beta1/certificatesigningrequests', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the getAPIResources operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Certificates_v1beta1Api~getAPIResourcesCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1APIResourceList} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * get available resources - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Certificates_v1beta1Api~getAPIResourcesCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1APIResourceList} - */ - this.getAPIResources = function(callback) { - var postBody = null; - - - var pathParams = { - }; - var queryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1APIResourceList; - - return this.apiClient.callApi( - '/apis/certificates.k8s.io/v1beta1/', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the listCertificateSigningRequest operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Certificates_v1beta1Api~listCertificateSigningRequestCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1CertificateSigningRequestList} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * list or watch objects of kind CertificateSigningRequest - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {String} opts.fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. - * @param {String} opts.labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. - * @param {String} opts.resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - * @param {Number} opts.timeoutSeconds Timeout for the list/watch call. - * @param {Boolean} opts.watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Certificates_v1beta1Api~listCertificateSigningRequestCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1beta1CertificateSigningRequestList} - */ - this.listCertificateSigningRequest = function(opts, callback) { - opts = opts || {}; - var postBody = null; - - - var pathParams = { - }; - var queryParams = { - 'pretty': opts['pretty'], - 'fieldSelector': opts['fieldSelector'], - 'labelSelector': opts['labelSelector'], - 'resourceVersion': opts['resourceVersion'], - 'timeoutSeconds': opts['timeoutSeconds'], - 'watch': opts['watch'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']; - var returnType = V1beta1CertificateSigningRequestList; - - return this.apiClient.callApi( - '/apis/certificates.k8s.io/v1beta1/certificatesigningrequests', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the patchCertificateSigningRequest operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Certificates_v1beta1Api~patchCertificateSigningRequestCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1CertificateSigningRequest} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * partially update the specified CertificateSigningRequest - * @param {String} name name of the CertificateSigningRequest - * @param {Object} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Certificates_v1beta1Api~patchCertificateSigningRequestCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1beta1CertificateSigningRequest} - */ - this.patchCertificateSigningRequest = function(name, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling patchCertificateSigningRequest"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling patchCertificateSigningRequest"); - } - - - var pathParams = { - 'name': name - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1beta1CertificateSigningRequest; - - return this.apiClient.callApi( - '/apis/certificates.k8s.io/v1beta1/certificatesigningrequests/{name}', 'PATCH', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the readCertificateSigningRequest operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Certificates_v1beta1Api~readCertificateSigningRequestCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1CertificateSigningRequest} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * read the specified CertificateSigningRequest - * @param {String} name name of the CertificateSigningRequest - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {Boolean} opts.exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. - * @param {Boolean} opts._export Should this value be exported. Export strips fields that a user can not specify. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Certificates_v1beta1Api~readCertificateSigningRequestCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1beta1CertificateSigningRequest} - */ - this.readCertificateSigningRequest = function(name, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling readCertificateSigningRequest"); - } - - - var pathParams = { - 'name': name - }; - var queryParams = { - 'pretty': opts['pretty'], - 'exact': opts['exact'], - 'export': opts['_export'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1beta1CertificateSigningRequest; - - return this.apiClient.callApi( - '/apis/certificates.k8s.io/v1beta1/certificatesigningrequests/{name}', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the replaceCertificateSigningRequest operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Certificates_v1beta1Api~replaceCertificateSigningRequestCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1CertificateSigningRequest} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * replace the specified CertificateSigningRequest - * @param {String} name name of the CertificateSigningRequest - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1CertificateSigningRequest} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Certificates_v1beta1Api~replaceCertificateSigningRequestCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1beta1CertificateSigningRequest} - */ - this.replaceCertificateSigningRequest = function(name, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling replaceCertificateSigningRequest"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling replaceCertificateSigningRequest"); - } - - - var pathParams = { - 'name': name - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1beta1CertificateSigningRequest; - - return this.apiClient.callApi( - '/apis/certificates.k8s.io/v1beta1/certificatesigningrequests/{name}', 'PUT', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the replaceCertificateSigningRequestApproval operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Certificates_v1beta1Api~replaceCertificateSigningRequestApprovalCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1CertificateSigningRequest} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * replace approval of the specified CertificateSigningRequest - * @param {String} name name of the CertificateSigningRequest - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1CertificateSigningRequest} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Certificates_v1beta1Api~replaceCertificateSigningRequestApprovalCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1beta1CertificateSigningRequest} - */ - this.replaceCertificateSigningRequestApproval = function(name, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling replaceCertificateSigningRequestApproval"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling replaceCertificateSigningRequestApproval"); - } - - - var pathParams = { - 'name': name - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1beta1CertificateSigningRequest; - - return this.apiClient.callApi( - '/apis/certificates.k8s.io/v1beta1/certificatesigningrequests/{name}/approval', 'PUT', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the replaceCertificateSigningRequestStatus operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Certificates_v1beta1Api~replaceCertificateSigningRequestStatusCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1CertificateSigningRequest} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * replace status of the specified CertificateSigningRequest - * @param {String} name name of the CertificateSigningRequest - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1CertificateSigningRequest} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Certificates_v1beta1Api~replaceCertificateSigningRequestStatusCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1beta1CertificateSigningRequest} - */ - this.replaceCertificateSigningRequestStatus = function(name, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling replaceCertificateSigningRequestStatus"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling replaceCertificateSigningRequestStatus"); - } - - - var pathParams = { - 'name': name - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1beta1CertificateSigningRequest; - - return this.apiClient.callApi( - '/apis/certificates.k8s.io/v1beta1/certificatesigningrequests/{name}/status', 'PUT', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - }; - - return exports; -})); diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.apis/CoreApi.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.apis/CoreApi.js deleted file mode 100644 index d92dd452dc..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.apis/CoreApi.js +++ /dev/null @@ -1,88 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1APIVersions'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('../io.kubernetes.js.models/V1APIVersions')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.CoreApi = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1APIVersions); - } -}(this, function(ApiClient, V1APIVersions) { - 'use strict'; - - /** - * Core service. - * @module io.kubernetes.js/io.kubernetes.js.apis/CoreApi - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new CoreApi. - * @alias module:io.kubernetes.js/io.kubernetes.js.apis/CoreApi - * @class - * @param {module:io.kubernetes.js/ApiClient} apiClient Optional API client implementation to use, - * default to {@link module:io.kubernetes.js/ApiClient#instance} if unspecified. - */ - var exports = function(apiClient) { - this.apiClient = apiClient || ApiClient.instance; - - - /** - * Callback function to receive the result of the getAPIVersions operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/CoreApi~getAPIVersionsCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1APIVersions} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * get available API versions - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/CoreApi~getAPIVersionsCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1APIVersions} - */ - this.getAPIVersions = function(callback) { - var postBody = null; - - - var pathParams = { - }; - var queryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1APIVersions; - - return this.apiClient.callApi( - '/api/', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - }; - - return exports; -})); diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api.js deleted file mode 100644 index 0449582bc3..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api.js +++ /dev/null @@ -1,13494 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1APIResourceList', 'io.kubernetes.js/io.kubernetes.js.models/V1Binding', 'io.kubernetes.js/io.kubernetes.js.models/V1ComponentStatus', 'io.kubernetes.js/io.kubernetes.js.models/V1ComponentStatusList', 'io.kubernetes.js/io.kubernetes.js.models/V1ConfigMap', 'io.kubernetes.js/io.kubernetes.js.models/V1ConfigMapList', 'io.kubernetes.js/io.kubernetes.js.models/V1DeleteOptions', 'io.kubernetes.js/io.kubernetes.js.models/V1Endpoints', 'io.kubernetes.js/io.kubernetes.js.models/V1EndpointsList', 'io.kubernetes.js/io.kubernetes.js.models/V1Event', 'io.kubernetes.js/io.kubernetes.js.models/V1EventList', 'io.kubernetes.js/io.kubernetes.js.models/V1LimitRange', 'io.kubernetes.js/io.kubernetes.js.models/V1LimitRangeList', 'io.kubernetes.js/io.kubernetes.js.models/V1Namespace', 'io.kubernetes.js/io.kubernetes.js.models/V1NamespaceList', 'io.kubernetes.js/io.kubernetes.js.models/V1Node', 'io.kubernetes.js/io.kubernetes.js.models/V1NodeList', 'io.kubernetes.js/io.kubernetes.js.models/V1PersistentVolume', 'io.kubernetes.js/io.kubernetes.js.models/V1PersistentVolumeClaim', 'io.kubernetes.js/io.kubernetes.js.models/V1PersistentVolumeClaimList', 'io.kubernetes.js/io.kubernetes.js.models/V1PersistentVolumeList', 'io.kubernetes.js/io.kubernetes.js.models/V1Pod', 'io.kubernetes.js/io.kubernetes.js.models/V1PodList', 'io.kubernetes.js/io.kubernetes.js.models/V1PodTemplate', 'io.kubernetes.js/io.kubernetes.js.models/V1PodTemplateList', 'io.kubernetes.js/io.kubernetes.js.models/V1ReplicationController', 'io.kubernetes.js/io.kubernetes.js.models/V1ReplicationControllerList', 'io.kubernetes.js/io.kubernetes.js.models/V1ResourceQuota', 'io.kubernetes.js/io.kubernetes.js.models/V1ResourceQuotaList', 'io.kubernetes.js/io.kubernetes.js.models/V1Scale', 'io.kubernetes.js/io.kubernetes.js.models/V1Secret', 'io.kubernetes.js/io.kubernetes.js.models/V1SecretList', 'io.kubernetes.js/io.kubernetes.js.models/V1Service', 'io.kubernetes.js/io.kubernetes.js.models/V1ServiceAccount', 'io.kubernetes.js/io.kubernetes.js.models/V1ServiceAccountList', 'io.kubernetes.js/io.kubernetes.js.models/V1ServiceList', 'io.kubernetes.js/io.kubernetes.js.models/V1Status', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1Eviction'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('../io.kubernetes.js.models/V1APIResourceList'), require('../io.kubernetes.js.models/V1Binding'), require('../io.kubernetes.js.models/V1ComponentStatus'), require('../io.kubernetes.js.models/V1ComponentStatusList'), require('../io.kubernetes.js.models/V1ConfigMap'), require('../io.kubernetes.js.models/V1ConfigMapList'), require('../io.kubernetes.js.models/V1DeleteOptions'), require('../io.kubernetes.js.models/V1Endpoints'), require('../io.kubernetes.js.models/V1EndpointsList'), require('../io.kubernetes.js.models/V1Event'), require('../io.kubernetes.js.models/V1EventList'), require('../io.kubernetes.js.models/V1LimitRange'), require('../io.kubernetes.js.models/V1LimitRangeList'), require('../io.kubernetes.js.models/V1Namespace'), require('../io.kubernetes.js.models/V1NamespaceList'), require('../io.kubernetes.js.models/V1Node'), require('../io.kubernetes.js.models/V1NodeList'), require('../io.kubernetes.js.models/V1PersistentVolume'), require('../io.kubernetes.js.models/V1PersistentVolumeClaim'), require('../io.kubernetes.js.models/V1PersistentVolumeClaimList'), require('../io.kubernetes.js.models/V1PersistentVolumeList'), require('../io.kubernetes.js.models/V1Pod'), require('../io.kubernetes.js.models/V1PodList'), require('../io.kubernetes.js.models/V1PodTemplate'), require('../io.kubernetes.js.models/V1PodTemplateList'), require('../io.kubernetes.js.models/V1ReplicationController'), require('../io.kubernetes.js.models/V1ReplicationControllerList'), require('../io.kubernetes.js.models/V1ResourceQuota'), require('../io.kubernetes.js.models/V1ResourceQuotaList'), require('../io.kubernetes.js.models/V1Scale'), require('../io.kubernetes.js.models/V1Secret'), require('../io.kubernetes.js.models/V1SecretList'), require('../io.kubernetes.js.models/V1Service'), require('../io.kubernetes.js.models/V1ServiceAccount'), require('../io.kubernetes.js.models/V1ServiceAccountList'), require('../io.kubernetes.js.models/V1ServiceList'), require('../io.kubernetes.js.models/V1Status'), require('../io.kubernetes.js.models/V1beta1Eviction')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.Core_v1Api = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1APIResourceList, root.KubernetesJsClient.V1Binding, root.KubernetesJsClient.V1ComponentStatus, root.KubernetesJsClient.V1ComponentStatusList, root.KubernetesJsClient.V1ConfigMap, root.KubernetesJsClient.V1ConfigMapList, root.KubernetesJsClient.V1DeleteOptions, root.KubernetesJsClient.V1Endpoints, root.KubernetesJsClient.V1EndpointsList, root.KubernetesJsClient.V1Event, root.KubernetesJsClient.V1EventList, root.KubernetesJsClient.V1LimitRange, root.KubernetesJsClient.V1LimitRangeList, root.KubernetesJsClient.V1Namespace, root.KubernetesJsClient.V1NamespaceList, root.KubernetesJsClient.V1Node, root.KubernetesJsClient.V1NodeList, root.KubernetesJsClient.V1PersistentVolume, root.KubernetesJsClient.V1PersistentVolumeClaim, root.KubernetesJsClient.V1PersistentVolumeClaimList, root.KubernetesJsClient.V1PersistentVolumeList, root.KubernetesJsClient.V1Pod, root.KubernetesJsClient.V1PodList, root.KubernetesJsClient.V1PodTemplate, root.KubernetesJsClient.V1PodTemplateList, root.KubernetesJsClient.V1ReplicationController, root.KubernetesJsClient.V1ReplicationControllerList, root.KubernetesJsClient.V1ResourceQuota, root.KubernetesJsClient.V1ResourceQuotaList, root.KubernetesJsClient.V1Scale, root.KubernetesJsClient.V1Secret, root.KubernetesJsClient.V1SecretList, root.KubernetesJsClient.V1Service, root.KubernetesJsClient.V1ServiceAccount, root.KubernetesJsClient.V1ServiceAccountList, root.KubernetesJsClient.V1ServiceList, root.KubernetesJsClient.V1Status, root.KubernetesJsClient.V1beta1Eviction); - } -}(this, function(ApiClient, V1APIResourceList, V1Binding, V1ComponentStatus, V1ComponentStatusList, V1ConfigMap, V1ConfigMapList, V1DeleteOptions, V1Endpoints, V1EndpointsList, V1Event, V1EventList, V1LimitRange, V1LimitRangeList, V1Namespace, V1NamespaceList, V1Node, V1NodeList, V1PersistentVolume, V1PersistentVolumeClaim, V1PersistentVolumeClaimList, V1PersistentVolumeList, V1Pod, V1PodList, V1PodTemplate, V1PodTemplateList, V1ReplicationController, V1ReplicationControllerList, V1ResourceQuota, V1ResourceQuotaList, V1Scale, V1Secret, V1SecretList, V1Service, V1ServiceAccount, V1ServiceAccountList, V1ServiceList, V1Status, V1beta1Eviction) { - 'use strict'; - - /** - * Core_v1 service. - * @module io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new Core_v1Api. - * @alias module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api - * @class - * @param {module:io.kubernetes.js/ApiClient} apiClient Optional API client implementation to use, - * default to {@link module:io.kubernetes.js/ApiClient#instance} if unspecified. - */ - var exports = function(apiClient) { - this.apiClient = apiClient || ApiClient.instance; - - - /** - * Callback function to receive the result of the connectDeleteNamespacedPodProxy operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~connectDeleteNamespacedPodProxyCallback - * @param {String} error Error message, if any. - * @param {'String'} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * connect DELETE requests to proxy of Pod - * @param {String} name name of the Pod - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} opts Optional parameters - * @param {String} opts.path Path is the URL path to use for the current proxy request to pod. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~connectDeleteNamespacedPodProxyCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link 'String'} - */ - this.connectDeleteNamespacedPodProxy = function(name, namespace, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling connectDeleteNamespacedPodProxy"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling connectDeleteNamespacedPodProxy"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'path': opts['path'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['*/*']; - var returnType = 'String'; - - return this.apiClient.callApi( - '/api/v1/namespaces/{namespace}/pods/{name}/proxy', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the connectDeleteNamespacedPodProxyWithPath operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~connectDeleteNamespacedPodProxyWithPathCallback - * @param {String} error Error message, if any. - * @param {'String'} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * connect DELETE requests to proxy of Pod - * @param {String} name name of the Pod - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {String} path path to the resource - * @param {Object} opts Optional parameters - * @param {String} opts.path2 Path is the URL path to use for the current proxy request to pod. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~connectDeleteNamespacedPodProxyWithPathCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link 'String'} - */ - this.connectDeleteNamespacedPodProxyWithPath = function(name, namespace, path, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling connectDeleteNamespacedPodProxyWithPath"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling connectDeleteNamespacedPodProxyWithPath"); - } - - // verify the required parameter 'path' is set - if (path == undefined || path == null) { - throw new Error("Missing the required parameter 'path' when calling connectDeleteNamespacedPodProxyWithPath"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace, - 'path': path - }; - var queryParams = { - 'path': opts['path2'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['*/*']; - var returnType = 'String'; - - return this.apiClient.callApi( - '/api/v1/namespaces/{namespace}/pods/{name}/proxy/{path}', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the connectDeleteNamespacedServiceProxy operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~connectDeleteNamespacedServiceProxyCallback - * @param {String} error Error message, if any. - * @param {'String'} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * connect DELETE requests to proxy of Service - * @param {String} name name of the Service - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} opts Optional parameters - * @param {String} opts.path Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~connectDeleteNamespacedServiceProxyCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link 'String'} - */ - this.connectDeleteNamespacedServiceProxy = function(name, namespace, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling connectDeleteNamespacedServiceProxy"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling connectDeleteNamespacedServiceProxy"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'path': opts['path'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['*/*']; - var returnType = 'String'; - - return this.apiClient.callApi( - '/api/v1/namespaces/{namespace}/services/{name}/proxy', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the connectDeleteNamespacedServiceProxyWithPath operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~connectDeleteNamespacedServiceProxyWithPathCallback - * @param {String} error Error message, if any. - * @param {'String'} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * connect DELETE requests to proxy of Service - * @param {String} name name of the Service - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {String} path path to the resource - * @param {Object} opts Optional parameters - * @param {String} opts.path2 Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~connectDeleteNamespacedServiceProxyWithPathCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link 'String'} - */ - this.connectDeleteNamespacedServiceProxyWithPath = function(name, namespace, path, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling connectDeleteNamespacedServiceProxyWithPath"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling connectDeleteNamespacedServiceProxyWithPath"); - } - - // verify the required parameter 'path' is set - if (path == undefined || path == null) { - throw new Error("Missing the required parameter 'path' when calling connectDeleteNamespacedServiceProxyWithPath"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace, - 'path': path - }; - var queryParams = { - 'path': opts['path2'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['*/*']; - var returnType = 'String'; - - return this.apiClient.callApi( - '/api/v1/namespaces/{namespace}/services/{name}/proxy/{path}', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the connectDeleteNodeProxy operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~connectDeleteNodeProxyCallback - * @param {String} error Error message, if any. - * @param {'String'} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * connect DELETE requests to proxy of Node - * @param {String} name name of the Node - * @param {Object} opts Optional parameters - * @param {String} opts.path Path is the URL path to use for the current proxy request to node. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~connectDeleteNodeProxyCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link 'String'} - */ - this.connectDeleteNodeProxy = function(name, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling connectDeleteNodeProxy"); - } - - - var pathParams = { - 'name': name - }; - var queryParams = { - 'path': opts['path'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['*/*']; - var returnType = 'String'; - - return this.apiClient.callApi( - '/api/v1/nodes/{name}/proxy', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the connectDeleteNodeProxyWithPath operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~connectDeleteNodeProxyWithPathCallback - * @param {String} error Error message, if any. - * @param {'String'} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * connect DELETE requests to proxy of Node - * @param {String} name name of the Node - * @param {String} path path to the resource - * @param {Object} opts Optional parameters - * @param {String} opts.path2 Path is the URL path to use for the current proxy request to node. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~connectDeleteNodeProxyWithPathCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link 'String'} - */ - this.connectDeleteNodeProxyWithPath = function(name, path, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling connectDeleteNodeProxyWithPath"); - } - - // verify the required parameter 'path' is set - if (path == undefined || path == null) { - throw new Error("Missing the required parameter 'path' when calling connectDeleteNodeProxyWithPath"); - } - - - var pathParams = { - 'name': name, - 'path': path - }; - var queryParams = { - 'path': opts['path2'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['*/*']; - var returnType = 'String'; - - return this.apiClient.callApi( - '/api/v1/nodes/{name}/proxy/{path}', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the connectGetNamespacedPodAttach operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~connectGetNamespacedPodAttachCallback - * @param {String} error Error message, if any. - * @param {'String'} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * connect GET requests to attach of Pod - * @param {String} name name of the Pod - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} opts Optional parameters - * @param {String} opts.container The container in which to execute the command. Defaults to only container if there is only one container in the pod. - * @param {Boolean} opts.stderr Stderr if true indicates that stderr is to be redirected for the attach call. Defaults to true. - * @param {Boolean} opts.stdin Stdin if true, redirects the standard input stream of the pod for this call. Defaults to false. - * @param {Boolean} opts.stdout Stdout if true indicates that stdout is to be redirected for the attach call. Defaults to true. - * @param {Boolean} opts.tty TTY if true indicates that a tty will be allocated for the attach call. This is passed through the container runtime so the tty is allocated on the worker node by the container runtime. Defaults to false. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~connectGetNamespacedPodAttachCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link 'String'} - */ - this.connectGetNamespacedPodAttach = function(name, namespace, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling connectGetNamespacedPodAttach"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling connectGetNamespacedPodAttach"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'container': opts['container'], - 'stderr': opts['stderr'], - 'stdin': opts['stdin'], - 'stdout': opts['stdout'], - 'tty': opts['tty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['*/*']; - var returnType = 'String'; - - return this.apiClient.callApi( - '/api/v1/namespaces/{namespace}/pods/{name}/attach', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the connectGetNamespacedPodExec operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~connectGetNamespacedPodExecCallback - * @param {String} error Error message, if any. - * @param {'String'} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * connect GET requests to exec of Pod - * @param {String} name name of the Pod - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} opts Optional parameters - * @param {String} opts.command Command is the remote command to execute. argv array. Not executed within a shell. - * @param {String} opts.container Container in which to execute the command. Defaults to only container if there is only one container in the pod. - * @param {Boolean} opts.stderr Redirect the standard error stream of the pod for this call. Defaults to true. - * @param {Boolean} opts.stdin Redirect the standard input stream of the pod for this call. Defaults to false. - * @param {Boolean} opts.stdout Redirect the standard output stream of the pod for this call. Defaults to true. - * @param {Boolean} opts.tty TTY if true indicates that a tty will be allocated for the exec call. Defaults to false. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~connectGetNamespacedPodExecCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link 'String'} - */ - this.connectGetNamespacedPodExec = function(name, namespace, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling connectGetNamespacedPodExec"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling connectGetNamespacedPodExec"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'command': opts['command'], - 'container': opts['container'], - 'stderr': opts['stderr'], - 'stdin': opts['stdin'], - 'stdout': opts['stdout'], - 'tty': opts['tty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['*/*']; - var returnType = 'String'; - - return this.apiClient.callApi( - '/api/v1/namespaces/{namespace}/pods/{name}/exec', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the connectGetNamespacedPodPortforward operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~connectGetNamespacedPodPortforwardCallback - * @param {String} error Error message, if any. - * @param {'String'} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * connect GET requests to portforward of Pod - * @param {String} name name of the Pod - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} opts Optional parameters - * @param {Number} opts.ports List of ports to forward Required when using WebSockets - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~connectGetNamespacedPodPortforwardCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link 'String'} - */ - this.connectGetNamespacedPodPortforward = function(name, namespace, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling connectGetNamespacedPodPortforward"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling connectGetNamespacedPodPortforward"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'ports': opts['ports'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['*/*']; - var returnType = 'String'; - - return this.apiClient.callApi( - '/api/v1/namespaces/{namespace}/pods/{name}/portforward', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the connectGetNamespacedPodProxy operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~connectGetNamespacedPodProxyCallback - * @param {String} error Error message, if any. - * @param {'String'} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * connect GET requests to proxy of Pod - * @param {String} name name of the Pod - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} opts Optional parameters - * @param {String} opts.path Path is the URL path to use for the current proxy request to pod. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~connectGetNamespacedPodProxyCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link 'String'} - */ - this.connectGetNamespacedPodProxy = function(name, namespace, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling connectGetNamespacedPodProxy"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling connectGetNamespacedPodProxy"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'path': opts['path'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['*/*']; - var returnType = 'String'; - - return this.apiClient.callApi( - '/api/v1/namespaces/{namespace}/pods/{name}/proxy', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the connectGetNamespacedPodProxyWithPath operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~connectGetNamespacedPodProxyWithPathCallback - * @param {String} error Error message, if any. - * @param {'String'} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * connect GET requests to proxy of Pod - * @param {String} name name of the Pod - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {String} path path to the resource - * @param {Object} opts Optional parameters - * @param {String} opts.path2 Path is the URL path to use for the current proxy request to pod. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~connectGetNamespacedPodProxyWithPathCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link 'String'} - */ - this.connectGetNamespacedPodProxyWithPath = function(name, namespace, path, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling connectGetNamespacedPodProxyWithPath"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling connectGetNamespacedPodProxyWithPath"); - } - - // verify the required parameter 'path' is set - if (path == undefined || path == null) { - throw new Error("Missing the required parameter 'path' when calling connectGetNamespacedPodProxyWithPath"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace, - 'path': path - }; - var queryParams = { - 'path': opts['path2'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['*/*']; - var returnType = 'String'; - - return this.apiClient.callApi( - '/api/v1/namespaces/{namespace}/pods/{name}/proxy/{path}', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the connectGetNamespacedServiceProxy operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~connectGetNamespacedServiceProxyCallback - * @param {String} error Error message, if any. - * @param {'String'} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * connect GET requests to proxy of Service - * @param {String} name name of the Service - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} opts Optional parameters - * @param {String} opts.path Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~connectGetNamespacedServiceProxyCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link 'String'} - */ - this.connectGetNamespacedServiceProxy = function(name, namespace, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling connectGetNamespacedServiceProxy"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling connectGetNamespacedServiceProxy"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'path': opts['path'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['*/*']; - var returnType = 'String'; - - return this.apiClient.callApi( - '/api/v1/namespaces/{namespace}/services/{name}/proxy', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the connectGetNamespacedServiceProxyWithPath operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~connectGetNamespacedServiceProxyWithPathCallback - * @param {String} error Error message, if any. - * @param {'String'} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * connect GET requests to proxy of Service - * @param {String} name name of the Service - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {String} path path to the resource - * @param {Object} opts Optional parameters - * @param {String} opts.path2 Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~connectGetNamespacedServiceProxyWithPathCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link 'String'} - */ - this.connectGetNamespacedServiceProxyWithPath = function(name, namespace, path, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling connectGetNamespacedServiceProxyWithPath"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling connectGetNamespacedServiceProxyWithPath"); - } - - // verify the required parameter 'path' is set - if (path == undefined || path == null) { - throw new Error("Missing the required parameter 'path' when calling connectGetNamespacedServiceProxyWithPath"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace, - 'path': path - }; - var queryParams = { - 'path': opts['path2'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['*/*']; - var returnType = 'String'; - - return this.apiClient.callApi( - '/api/v1/namespaces/{namespace}/services/{name}/proxy/{path}', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the connectGetNodeProxy operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~connectGetNodeProxyCallback - * @param {String} error Error message, if any. - * @param {'String'} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * connect GET requests to proxy of Node - * @param {String} name name of the Node - * @param {Object} opts Optional parameters - * @param {String} opts.path Path is the URL path to use for the current proxy request to node. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~connectGetNodeProxyCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link 'String'} - */ - this.connectGetNodeProxy = function(name, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling connectGetNodeProxy"); - } - - - var pathParams = { - 'name': name - }; - var queryParams = { - 'path': opts['path'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['*/*']; - var returnType = 'String'; - - return this.apiClient.callApi( - '/api/v1/nodes/{name}/proxy', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the connectGetNodeProxyWithPath operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~connectGetNodeProxyWithPathCallback - * @param {String} error Error message, if any. - * @param {'String'} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * connect GET requests to proxy of Node - * @param {String} name name of the Node - * @param {String} path path to the resource - * @param {Object} opts Optional parameters - * @param {String} opts.path2 Path is the URL path to use for the current proxy request to node. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~connectGetNodeProxyWithPathCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link 'String'} - */ - this.connectGetNodeProxyWithPath = function(name, path, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling connectGetNodeProxyWithPath"); - } - - // verify the required parameter 'path' is set - if (path == undefined || path == null) { - throw new Error("Missing the required parameter 'path' when calling connectGetNodeProxyWithPath"); - } - - - var pathParams = { - 'name': name, - 'path': path - }; - var queryParams = { - 'path': opts['path2'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['*/*']; - var returnType = 'String'; - - return this.apiClient.callApi( - '/api/v1/nodes/{name}/proxy/{path}', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the connectHeadNamespacedPodProxy operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~connectHeadNamespacedPodProxyCallback - * @param {String} error Error message, if any. - * @param {'String'} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * connect HEAD requests to proxy of Pod - * @param {String} name name of the Pod - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} opts Optional parameters - * @param {String} opts.path Path is the URL path to use for the current proxy request to pod. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~connectHeadNamespacedPodProxyCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link 'String'} - */ - this.connectHeadNamespacedPodProxy = function(name, namespace, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling connectHeadNamespacedPodProxy"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling connectHeadNamespacedPodProxy"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'path': opts['path'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['*/*']; - var returnType = 'String'; - - return this.apiClient.callApi( - '/api/v1/namespaces/{namespace}/pods/{name}/proxy', 'HEAD', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the connectHeadNamespacedPodProxyWithPath operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~connectHeadNamespacedPodProxyWithPathCallback - * @param {String} error Error message, if any. - * @param {'String'} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * connect HEAD requests to proxy of Pod - * @param {String} name name of the Pod - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {String} path path to the resource - * @param {Object} opts Optional parameters - * @param {String} opts.path2 Path is the URL path to use for the current proxy request to pod. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~connectHeadNamespacedPodProxyWithPathCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link 'String'} - */ - this.connectHeadNamespacedPodProxyWithPath = function(name, namespace, path, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling connectHeadNamespacedPodProxyWithPath"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling connectHeadNamespacedPodProxyWithPath"); - } - - // verify the required parameter 'path' is set - if (path == undefined || path == null) { - throw new Error("Missing the required parameter 'path' when calling connectHeadNamespacedPodProxyWithPath"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace, - 'path': path - }; - var queryParams = { - 'path': opts['path2'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['*/*']; - var returnType = 'String'; - - return this.apiClient.callApi( - '/api/v1/namespaces/{namespace}/pods/{name}/proxy/{path}', 'HEAD', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the connectHeadNamespacedServiceProxy operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~connectHeadNamespacedServiceProxyCallback - * @param {String} error Error message, if any. - * @param {'String'} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * connect HEAD requests to proxy of Service - * @param {String} name name of the Service - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} opts Optional parameters - * @param {String} opts.path Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~connectHeadNamespacedServiceProxyCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link 'String'} - */ - this.connectHeadNamespacedServiceProxy = function(name, namespace, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling connectHeadNamespacedServiceProxy"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling connectHeadNamespacedServiceProxy"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'path': opts['path'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['*/*']; - var returnType = 'String'; - - return this.apiClient.callApi( - '/api/v1/namespaces/{namespace}/services/{name}/proxy', 'HEAD', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the connectHeadNamespacedServiceProxyWithPath operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~connectHeadNamespacedServiceProxyWithPathCallback - * @param {String} error Error message, if any. - * @param {'String'} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * connect HEAD requests to proxy of Service - * @param {String} name name of the Service - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {String} path path to the resource - * @param {Object} opts Optional parameters - * @param {String} opts.path2 Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~connectHeadNamespacedServiceProxyWithPathCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link 'String'} - */ - this.connectHeadNamespacedServiceProxyWithPath = function(name, namespace, path, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling connectHeadNamespacedServiceProxyWithPath"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling connectHeadNamespacedServiceProxyWithPath"); - } - - // verify the required parameter 'path' is set - if (path == undefined || path == null) { - throw new Error("Missing the required parameter 'path' when calling connectHeadNamespacedServiceProxyWithPath"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace, - 'path': path - }; - var queryParams = { - 'path': opts['path2'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['*/*']; - var returnType = 'String'; - - return this.apiClient.callApi( - '/api/v1/namespaces/{namespace}/services/{name}/proxy/{path}', 'HEAD', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the connectHeadNodeProxy operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~connectHeadNodeProxyCallback - * @param {String} error Error message, if any. - * @param {'String'} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * connect HEAD requests to proxy of Node - * @param {String} name name of the Node - * @param {Object} opts Optional parameters - * @param {String} opts.path Path is the URL path to use for the current proxy request to node. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~connectHeadNodeProxyCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link 'String'} - */ - this.connectHeadNodeProxy = function(name, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling connectHeadNodeProxy"); - } - - - var pathParams = { - 'name': name - }; - var queryParams = { - 'path': opts['path'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['*/*']; - var returnType = 'String'; - - return this.apiClient.callApi( - '/api/v1/nodes/{name}/proxy', 'HEAD', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the connectHeadNodeProxyWithPath operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~connectHeadNodeProxyWithPathCallback - * @param {String} error Error message, if any. - * @param {'String'} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * connect HEAD requests to proxy of Node - * @param {String} name name of the Node - * @param {String} path path to the resource - * @param {Object} opts Optional parameters - * @param {String} opts.path2 Path is the URL path to use for the current proxy request to node. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~connectHeadNodeProxyWithPathCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link 'String'} - */ - this.connectHeadNodeProxyWithPath = function(name, path, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling connectHeadNodeProxyWithPath"); - } - - // verify the required parameter 'path' is set - if (path == undefined || path == null) { - throw new Error("Missing the required parameter 'path' when calling connectHeadNodeProxyWithPath"); - } - - - var pathParams = { - 'name': name, - 'path': path - }; - var queryParams = { - 'path': opts['path2'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['*/*']; - var returnType = 'String'; - - return this.apiClient.callApi( - '/api/v1/nodes/{name}/proxy/{path}', 'HEAD', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the connectOptionsNamespacedPodProxy operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~connectOptionsNamespacedPodProxyCallback - * @param {String} error Error message, if any. - * @param {'String'} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * connect OPTIONS requests to proxy of Pod - * @param {String} name name of the Pod - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} opts Optional parameters - * @param {String} opts.path Path is the URL path to use for the current proxy request to pod. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~connectOptionsNamespacedPodProxyCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link 'String'} - */ - this.connectOptionsNamespacedPodProxy = function(name, namespace, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling connectOptionsNamespacedPodProxy"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling connectOptionsNamespacedPodProxy"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'path': opts['path'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['*/*']; - var returnType = 'String'; - - return this.apiClient.callApi( - '/api/v1/namespaces/{namespace}/pods/{name}/proxy', 'OPTIONS', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the connectOptionsNamespacedPodProxyWithPath operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~connectOptionsNamespacedPodProxyWithPathCallback - * @param {String} error Error message, if any. - * @param {'String'} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * connect OPTIONS requests to proxy of Pod - * @param {String} name name of the Pod - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {String} path path to the resource - * @param {Object} opts Optional parameters - * @param {String} opts.path2 Path is the URL path to use for the current proxy request to pod. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~connectOptionsNamespacedPodProxyWithPathCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link 'String'} - */ - this.connectOptionsNamespacedPodProxyWithPath = function(name, namespace, path, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling connectOptionsNamespacedPodProxyWithPath"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling connectOptionsNamespacedPodProxyWithPath"); - } - - // verify the required parameter 'path' is set - if (path == undefined || path == null) { - throw new Error("Missing the required parameter 'path' when calling connectOptionsNamespacedPodProxyWithPath"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace, - 'path': path - }; - var queryParams = { - 'path': opts['path2'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['*/*']; - var returnType = 'String'; - - return this.apiClient.callApi( - '/api/v1/namespaces/{namespace}/pods/{name}/proxy/{path}', 'OPTIONS', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the connectOptionsNamespacedServiceProxy operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~connectOptionsNamespacedServiceProxyCallback - * @param {String} error Error message, if any. - * @param {'String'} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * connect OPTIONS requests to proxy of Service - * @param {String} name name of the Service - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} opts Optional parameters - * @param {String} opts.path Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~connectOptionsNamespacedServiceProxyCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link 'String'} - */ - this.connectOptionsNamespacedServiceProxy = function(name, namespace, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling connectOptionsNamespacedServiceProxy"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling connectOptionsNamespacedServiceProxy"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'path': opts['path'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['*/*']; - var returnType = 'String'; - - return this.apiClient.callApi( - '/api/v1/namespaces/{namespace}/services/{name}/proxy', 'OPTIONS', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the connectOptionsNamespacedServiceProxyWithPath operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~connectOptionsNamespacedServiceProxyWithPathCallback - * @param {String} error Error message, if any. - * @param {'String'} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * connect OPTIONS requests to proxy of Service - * @param {String} name name of the Service - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {String} path path to the resource - * @param {Object} opts Optional parameters - * @param {String} opts.path2 Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~connectOptionsNamespacedServiceProxyWithPathCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link 'String'} - */ - this.connectOptionsNamespacedServiceProxyWithPath = function(name, namespace, path, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling connectOptionsNamespacedServiceProxyWithPath"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling connectOptionsNamespacedServiceProxyWithPath"); - } - - // verify the required parameter 'path' is set - if (path == undefined || path == null) { - throw new Error("Missing the required parameter 'path' when calling connectOptionsNamespacedServiceProxyWithPath"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace, - 'path': path - }; - var queryParams = { - 'path': opts['path2'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['*/*']; - var returnType = 'String'; - - return this.apiClient.callApi( - '/api/v1/namespaces/{namespace}/services/{name}/proxy/{path}', 'OPTIONS', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the connectOptionsNodeProxy operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~connectOptionsNodeProxyCallback - * @param {String} error Error message, if any. - * @param {'String'} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * connect OPTIONS requests to proxy of Node - * @param {String} name name of the Node - * @param {Object} opts Optional parameters - * @param {String} opts.path Path is the URL path to use for the current proxy request to node. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~connectOptionsNodeProxyCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link 'String'} - */ - this.connectOptionsNodeProxy = function(name, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling connectOptionsNodeProxy"); - } - - - var pathParams = { - 'name': name - }; - var queryParams = { - 'path': opts['path'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['*/*']; - var returnType = 'String'; - - return this.apiClient.callApi( - '/api/v1/nodes/{name}/proxy', 'OPTIONS', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the connectOptionsNodeProxyWithPath operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~connectOptionsNodeProxyWithPathCallback - * @param {String} error Error message, if any. - * @param {'String'} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * connect OPTIONS requests to proxy of Node - * @param {String} name name of the Node - * @param {String} path path to the resource - * @param {Object} opts Optional parameters - * @param {String} opts.path2 Path is the URL path to use for the current proxy request to node. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~connectOptionsNodeProxyWithPathCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link 'String'} - */ - this.connectOptionsNodeProxyWithPath = function(name, path, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling connectOptionsNodeProxyWithPath"); - } - - // verify the required parameter 'path' is set - if (path == undefined || path == null) { - throw new Error("Missing the required parameter 'path' when calling connectOptionsNodeProxyWithPath"); - } - - - var pathParams = { - 'name': name, - 'path': path - }; - var queryParams = { - 'path': opts['path2'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['*/*']; - var returnType = 'String'; - - return this.apiClient.callApi( - '/api/v1/nodes/{name}/proxy/{path}', 'OPTIONS', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the connectPostNamespacedPodAttach operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~connectPostNamespacedPodAttachCallback - * @param {String} error Error message, if any. - * @param {'String'} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * connect POST requests to attach of Pod - * @param {String} name name of the Pod - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} opts Optional parameters - * @param {String} opts.container The container in which to execute the command. Defaults to only container if there is only one container in the pod. - * @param {Boolean} opts.stderr Stderr if true indicates that stderr is to be redirected for the attach call. Defaults to true. - * @param {Boolean} opts.stdin Stdin if true, redirects the standard input stream of the pod for this call. Defaults to false. - * @param {Boolean} opts.stdout Stdout if true indicates that stdout is to be redirected for the attach call. Defaults to true. - * @param {Boolean} opts.tty TTY if true indicates that a tty will be allocated for the attach call. This is passed through the container runtime so the tty is allocated on the worker node by the container runtime. Defaults to false. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~connectPostNamespacedPodAttachCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link 'String'} - */ - this.connectPostNamespacedPodAttach = function(name, namespace, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling connectPostNamespacedPodAttach"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling connectPostNamespacedPodAttach"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'container': opts['container'], - 'stderr': opts['stderr'], - 'stdin': opts['stdin'], - 'stdout': opts['stdout'], - 'tty': opts['tty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['*/*']; - var returnType = 'String'; - - return this.apiClient.callApi( - '/api/v1/namespaces/{namespace}/pods/{name}/attach', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the connectPostNamespacedPodExec operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~connectPostNamespacedPodExecCallback - * @param {String} error Error message, if any. - * @param {'String'} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * connect POST requests to exec of Pod - * @param {String} name name of the Pod - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} opts Optional parameters - * @param {String} opts.command Command is the remote command to execute. argv array. Not executed within a shell. - * @param {String} opts.container Container in which to execute the command. Defaults to only container if there is only one container in the pod. - * @param {Boolean} opts.stderr Redirect the standard error stream of the pod for this call. Defaults to true. - * @param {Boolean} opts.stdin Redirect the standard input stream of the pod for this call. Defaults to false. - * @param {Boolean} opts.stdout Redirect the standard output stream of the pod for this call. Defaults to true. - * @param {Boolean} opts.tty TTY if true indicates that a tty will be allocated for the exec call. Defaults to false. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~connectPostNamespacedPodExecCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link 'String'} - */ - this.connectPostNamespacedPodExec = function(name, namespace, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling connectPostNamespacedPodExec"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling connectPostNamespacedPodExec"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'command': opts['command'], - 'container': opts['container'], - 'stderr': opts['stderr'], - 'stdin': opts['stdin'], - 'stdout': opts['stdout'], - 'tty': opts['tty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['*/*']; - var returnType = 'String'; - - return this.apiClient.callApi( - '/api/v1/namespaces/{namespace}/pods/{name}/exec', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the connectPostNamespacedPodPortforward operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~connectPostNamespacedPodPortforwardCallback - * @param {String} error Error message, if any. - * @param {'String'} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * connect POST requests to portforward of Pod - * @param {String} name name of the Pod - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} opts Optional parameters - * @param {Number} opts.ports List of ports to forward Required when using WebSockets - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~connectPostNamespacedPodPortforwardCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link 'String'} - */ - this.connectPostNamespacedPodPortforward = function(name, namespace, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling connectPostNamespacedPodPortforward"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling connectPostNamespacedPodPortforward"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'ports': opts['ports'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['*/*']; - var returnType = 'String'; - - return this.apiClient.callApi( - '/api/v1/namespaces/{namespace}/pods/{name}/portforward', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the connectPostNamespacedPodProxy operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~connectPostNamespacedPodProxyCallback - * @param {String} error Error message, if any. - * @param {'String'} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * connect POST requests to proxy of Pod - * @param {String} name name of the Pod - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} opts Optional parameters - * @param {String} opts.path Path is the URL path to use for the current proxy request to pod. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~connectPostNamespacedPodProxyCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link 'String'} - */ - this.connectPostNamespacedPodProxy = function(name, namespace, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling connectPostNamespacedPodProxy"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling connectPostNamespacedPodProxy"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'path': opts['path'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['*/*']; - var returnType = 'String'; - - return this.apiClient.callApi( - '/api/v1/namespaces/{namespace}/pods/{name}/proxy', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the connectPostNamespacedPodProxyWithPath operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~connectPostNamespacedPodProxyWithPathCallback - * @param {String} error Error message, if any. - * @param {'String'} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * connect POST requests to proxy of Pod - * @param {String} name name of the Pod - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {String} path path to the resource - * @param {Object} opts Optional parameters - * @param {String} opts.path2 Path is the URL path to use for the current proxy request to pod. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~connectPostNamespacedPodProxyWithPathCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link 'String'} - */ - this.connectPostNamespacedPodProxyWithPath = function(name, namespace, path, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling connectPostNamespacedPodProxyWithPath"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling connectPostNamespacedPodProxyWithPath"); - } - - // verify the required parameter 'path' is set - if (path == undefined || path == null) { - throw new Error("Missing the required parameter 'path' when calling connectPostNamespacedPodProxyWithPath"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace, - 'path': path - }; - var queryParams = { - 'path': opts['path2'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['*/*']; - var returnType = 'String'; - - return this.apiClient.callApi( - '/api/v1/namespaces/{namespace}/pods/{name}/proxy/{path}', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the connectPostNamespacedServiceProxy operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~connectPostNamespacedServiceProxyCallback - * @param {String} error Error message, if any. - * @param {'String'} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * connect POST requests to proxy of Service - * @param {String} name name of the Service - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} opts Optional parameters - * @param {String} opts.path Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~connectPostNamespacedServiceProxyCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link 'String'} - */ - this.connectPostNamespacedServiceProxy = function(name, namespace, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling connectPostNamespacedServiceProxy"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling connectPostNamespacedServiceProxy"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'path': opts['path'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['*/*']; - var returnType = 'String'; - - return this.apiClient.callApi( - '/api/v1/namespaces/{namespace}/services/{name}/proxy', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the connectPostNamespacedServiceProxyWithPath operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~connectPostNamespacedServiceProxyWithPathCallback - * @param {String} error Error message, if any. - * @param {'String'} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * connect POST requests to proxy of Service - * @param {String} name name of the Service - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {String} path path to the resource - * @param {Object} opts Optional parameters - * @param {String} opts.path2 Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~connectPostNamespacedServiceProxyWithPathCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link 'String'} - */ - this.connectPostNamespacedServiceProxyWithPath = function(name, namespace, path, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling connectPostNamespacedServiceProxyWithPath"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling connectPostNamespacedServiceProxyWithPath"); - } - - // verify the required parameter 'path' is set - if (path == undefined || path == null) { - throw new Error("Missing the required parameter 'path' when calling connectPostNamespacedServiceProxyWithPath"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace, - 'path': path - }; - var queryParams = { - 'path': opts['path2'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['*/*']; - var returnType = 'String'; - - return this.apiClient.callApi( - '/api/v1/namespaces/{namespace}/services/{name}/proxy/{path}', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the connectPostNodeProxy operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~connectPostNodeProxyCallback - * @param {String} error Error message, if any. - * @param {'String'} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * connect POST requests to proxy of Node - * @param {String} name name of the Node - * @param {Object} opts Optional parameters - * @param {String} opts.path Path is the URL path to use for the current proxy request to node. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~connectPostNodeProxyCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link 'String'} - */ - this.connectPostNodeProxy = function(name, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling connectPostNodeProxy"); - } - - - var pathParams = { - 'name': name - }; - var queryParams = { - 'path': opts['path'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['*/*']; - var returnType = 'String'; - - return this.apiClient.callApi( - '/api/v1/nodes/{name}/proxy', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the connectPostNodeProxyWithPath operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~connectPostNodeProxyWithPathCallback - * @param {String} error Error message, if any. - * @param {'String'} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * connect POST requests to proxy of Node - * @param {String} name name of the Node - * @param {String} path path to the resource - * @param {Object} opts Optional parameters - * @param {String} opts.path2 Path is the URL path to use for the current proxy request to node. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~connectPostNodeProxyWithPathCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link 'String'} - */ - this.connectPostNodeProxyWithPath = function(name, path, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling connectPostNodeProxyWithPath"); - } - - // verify the required parameter 'path' is set - if (path == undefined || path == null) { - throw new Error("Missing the required parameter 'path' when calling connectPostNodeProxyWithPath"); - } - - - var pathParams = { - 'name': name, - 'path': path - }; - var queryParams = { - 'path': opts['path2'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['*/*']; - var returnType = 'String'; - - return this.apiClient.callApi( - '/api/v1/nodes/{name}/proxy/{path}', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the connectPutNamespacedPodProxy operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~connectPutNamespacedPodProxyCallback - * @param {String} error Error message, if any. - * @param {'String'} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * connect PUT requests to proxy of Pod - * @param {String} name name of the Pod - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} opts Optional parameters - * @param {String} opts.path Path is the URL path to use for the current proxy request to pod. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~connectPutNamespacedPodProxyCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link 'String'} - */ - this.connectPutNamespacedPodProxy = function(name, namespace, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling connectPutNamespacedPodProxy"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling connectPutNamespacedPodProxy"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'path': opts['path'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['*/*']; - var returnType = 'String'; - - return this.apiClient.callApi( - '/api/v1/namespaces/{namespace}/pods/{name}/proxy', 'PUT', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the connectPutNamespacedPodProxyWithPath operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~connectPutNamespacedPodProxyWithPathCallback - * @param {String} error Error message, if any. - * @param {'String'} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * connect PUT requests to proxy of Pod - * @param {String} name name of the Pod - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {String} path path to the resource - * @param {Object} opts Optional parameters - * @param {String} opts.path2 Path is the URL path to use for the current proxy request to pod. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~connectPutNamespacedPodProxyWithPathCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link 'String'} - */ - this.connectPutNamespacedPodProxyWithPath = function(name, namespace, path, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling connectPutNamespacedPodProxyWithPath"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling connectPutNamespacedPodProxyWithPath"); - } - - // verify the required parameter 'path' is set - if (path == undefined || path == null) { - throw new Error("Missing the required parameter 'path' when calling connectPutNamespacedPodProxyWithPath"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace, - 'path': path - }; - var queryParams = { - 'path': opts['path2'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['*/*']; - var returnType = 'String'; - - return this.apiClient.callApi( - '/api/v1/namespaces/{namespace}/pods/{name}/proxy/{path}', 'PUT', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the connectPutNamespacedServiceProxy operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~connectPutNamespacedServiceProxyCallback - * @param {String} error Error message, if any. - * @param {'String'} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * connect PUT requests to proxy of Service - * @param {String} name name of the Service - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} opts Optional parameters - * @param {String} opts.path Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~connectPutNamespacedServiceProxyCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link 'String'} - */ - this.connectPutNamespacedServiceProxy = function(name, namespace, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling connectPutNamespacedServiceProxy"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling connectPutNamespacedServiceProxy"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'path': opts['path'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['*/*']; - var returnType = 'String'; - - return this.apiClient.callApi( - '/api/v1/namespaces/{namespace}/services/{name}/proxy', 'PUT', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the connectPutNamespacedServiceProxyWithPath operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~connectPutNamespacedServiceProxyWithPathCallback - * @param {String} error Error message, if any. - * @param {'String'} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * connect PUT requests to proxy of Service - * @param {String} name name of the Service - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {String} path path to the resource - * @param {Object} opts Optional parameters - * @param {String} opts.path2 Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~connectPutNamespacedServiceProxyWithPathCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link 'String'} - */ - this.connectPutNamespacedServiceProxyWithPath = function(name, namespace, path, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling connectPutNamespacedServiceProxyWithPath"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling connectPutNamespacedServiceProxyWithPath"); - } - - // verify the required parameter 'path' is set - if (path == undefined || path == null) { - throw new Error("Missing the required parameter 'path' when calling connectPutNamespacedServiceProxyWithPath"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace, - 'path': path - }; - var queryParams = { - 'path': opts['path2'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['*/*']; - var returnType = 'String'; - - return this.apiClient.callApi( - '/api/v1/namespaces/{namespace}/services/{name}/proxy/{path}', 'PUT', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the connectPutNodeProxy operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~connectPutNodeProxyCallback - * @param {String} error Error message, if any. - * @param {'String'} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * connect PUT requests to proxy of Node - * @param {String} name name of the Node - * @param {Object} opts Optional parameters - * @param {String} opts.path Path is the URL path to use for the current proxy request to node. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~connectPutNodeProxyCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link 'String'} - */ - this.connectPutNodeProxy = function(name, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling connectPutNodeProxy"); - } - - - var pathParams = { - 'name': name - }; - var queryParams = { - 'path': opts['path'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['*/*']; - var returnType = 'String'; - - return this.apiClient.callApi( - '/api/v1/nodes/{name}/proxy', 'PUT', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the connectPutNodeProxyWithPath operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~connectPutNodeProxyWithPathCallback - * @param {String} error Error message, if any. - * @param {'String'} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * connect PUT requests to proxy of Node - * @param {String} name name of the Node - * @param {String} path path to the resource - * @param {Object} opts Optional parameters - * @param {String} opts.path2 Path is the URL path to use for the current proxy request to node. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~connectPutNodeProxyWithPathCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link 'String'} - */ - this.connectPutNodeProxyWithPath = function(name, path, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling connectPutNodeProxyWithPath"); - } - - // verify the required parameter 'path' is set - if (path == undefined || path == null) { - throw new Error("Missing the required parameter 'path' when calling connectPutNodeProxyWithPath"); - } - - - var pathParams = { - 'name': name, - 'path': path - }; - var queryParams = { - 'path': opts['path2'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['*/*']; - var returnType = 'String'; - - return this.apiClient.callApi( - '/api/v1/nodes/{name}/proxy/{path}', 'PUT', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the createNamespace operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~createNamespaceCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Namespace} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * create a Namespace - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Namespace} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~createNamespaceCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1Namespace} - */ - this.createNamespace = function(body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling createNamespace"); - } - - - var pathParams = { - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1Namespace; - - return this.apiClient.callApi( - '/api/v1/namespaces', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the createNamespacedBinding operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~createNamespacedBindingCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Binding} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * create a Binding - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Binding} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~createNamespacedBindingCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1Binding} - */ - this.createNamespacedBinding = function(namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling createNamespacedBinding"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling createNamespacedBinding"); - } - - - var pathParams = { - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1Binding; - - return this.apiClient.callApi( - '/api/v1/namespaces/{namespace}/bindings', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the createNamespacedBindingBinding operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~createNamespacedBindingBindingCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Binding} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * create binding of a Binding - * @param {String} name name of the Binding - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Binding} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~createNamespacedBindingBindingCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1Binding} - */ - this.createNamespacedBindingBinding = function(name, namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling createNamespacedBindingBinding"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling createNamespacedBindingBinding"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling createNamespacedBindingBinding"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1Binding; - - return this.apiClient.callApi( - '/api/v1/namespaces/{namespace}/pods/{name}/binding', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the createNamespacedConfigMap operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~createNamespacedConfigMapCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1ConfigMap} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * create a ConfigMap - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1ConfigMap} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~createNamespacedConfigMapCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1ConfigMap} - */ - this.createNamespacedConfigMap = function(namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling createNamespacedConfigMap"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling createNamespacedConfigMap"); - } - - - var pathParams = { - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1ConfigMap; - - return this.apiClient.callApi( - '/api/v1/namespaces/{namespace}/configmaps', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the createNamespacedEndpoints operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~createNamespacedEndpointsCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Endpoints} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * create Endpoints - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Endpoints} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~createNamespacedEndpointsCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1Endpoints} - */ - this.createNamespacedEndpoints = function(namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling createNamespacedEndpoints"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling createNamespacedEndpoints"); - } - - - var pathParams = { - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1Endpoints; - - return this.apiClient.callApi( - '/api/v1/namespaces/{namespace}/endpoints', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the createNamespacedEvent operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~createNamespacedEventCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Event} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * create an Event - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Event} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~createNamespacedEventCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1Event} - */ - this.createNamespacedEvent = function(namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling createNamespacedEvent"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling createNamespacedEvent"); - } - - - var pathParams = { - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1Event; - - return this.apiClient.callApi( - '/api/v1/namespaces/{namespace}/events', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the createNamespacedEvictionEviction operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~createNamespacedEvictionEvictionCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1Eviction} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * create eviction of an Eviction - * @param {String} name name of the Eviction - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1Eviction} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~createNamespacedEvictionEvictionCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1beta1Eviction} - */ - this.createNamespacedEvictionEviction = function(name, namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling createNamespacedEvictionEviction"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling createNamespacedEvictionEviction"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling createNamespacedEvictionEviction"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1beta1Eviction; - - return this.apiClient.callApi( - '/api/v1/namespaces/{namespace}/pods/{name}/eviction', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the createNamespacedLimitRange operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~createNamespacedLimitRangeCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1LimitRange} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * create a LimitRange - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1LimitRange} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~createNamespacedLimitRangeCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1LimitRange} - */ - this.createNamespacedLimitRange = function(namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling createNamespacedLimitRange"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling createNamespacedLimitRange"); - } - - - var pathParams = { - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1LimitRange; - - return this.apiClient.callApi( - '/api/v1/namespaces/{namespace}/limitranges', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the createNamespacedPersistentVolumeClaim operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~createNamespacedPersistentVolumeClaimCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1PersistentVolumeClaim} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * create a PersistentVolumeClaim - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1PersistentVolumeClaim} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~createNamespacedPersistentVolumeClaimCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1PersistentVolumeClaim} - */ - this.createNamespacedPersistentVolumeClaim = function(namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling createNamespacedPersistentVolumeClaim"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling createNamespacedPersistentVolumeClaim"); - } - - - var pathParams = { - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1PersistentVolumeClaim; - - return this.apiClient.callApi( - '/api/v1/namespaces/{namespace}/persistentvolumeclaims', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the createNamespacedPod operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~createNamespacedPodCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Pod} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * create a Pod - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Pod} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~createNamespacedPodCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1Pod} - */ - this.createNamespacedPod = function(namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling createNamespacedPod"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling createNamespacedPod"); - } - - - var pathParams = { - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1Pod; - - return this.apiClient.callApi( - '/api/v1/namespaces/{namespace}/pods', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the createNamespacedPodTemplate operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~createNamespacedPodTemplateCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1PodTemplate} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * create a PodTemplate - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1PodTemplate} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~createNamespacedPodTemplateCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1PodTemplate} - */ - this.createNamespacedPodTemplate = function(namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling createNamespacedPodTemplate"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling createNamespacedPodTemplate"); - } - - - var pathParams = { - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1PodTemplate; - - return this.apiClient.callApi( - '/api/v1/namespaces/{namespace}/podtemplates', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the createNamespacedReplicationController operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~createNamespacedReplicationControllerCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1ReplicationController} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * create a ReplicationController - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1ReplicationController} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~createNamespacedReplicationControllerCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1ReplicationController} - */ - this.createNamespacedReplicationController = function(namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling createNamespacedReplicationController"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling createNamespacedReplicationController"); - } - - - var pathParams = { - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1ReplicationController; - - return this.apiClient.callApi( - '/api/v1/namespaces/{namespace}/replicationcontrollers', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the createNamespacedResourceQuota operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~createNamespacedResourceQuotaCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1ResourceQuota} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * create a ResourceQuota - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1ResourceQuota} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~createNamespacedResourceQuotaCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1ResourceQuota} - */ - this.createNamespacedResourceQuota = function(namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling createNamespacedResourceQuota"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling createNamespacedResourceQuota"); - } - - - var pathParams = { - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1ResourceQuota; - - return this.apiClient.callApi( - '/api/v1/namespaces/{namespace}/resourcequotas', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the createNamespacedSecret operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~createNamespacedSecretCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Secret} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * create a Secret - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Secret} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~createNamespacedSecretCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1Secret} - */ - this.createNamespacedSecret = function(namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling createNamespacedSecret"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling createNamespacedSecret"); - } - - - var pathParams = { - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1Secret; - - return this.apiClient.callApi( - '/api/v1/namespaces/{namespace}/secrets', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the createNamespacedService operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~createNamespacedServiceCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Service} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * create a Service - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Service} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~createNamespacedServiceCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1Service} - */ - this.createNamespacedService = function(namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling createNamespacedService"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling createNamespacedService"); - } - - - var pathParams = { - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1Service; - - return this.apiClient.callApi( - '/api/v1/namespaces/{namespace}/services', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the createNamespacedServiceAccount operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~createNamespacedServiceAccountCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1ServiceAccount} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * create a ServiceAccount - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1ServiceAccount} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~createNamespacedServiceAccountCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1ServiceAccount} - */ - this.createNamespacedServiceAccount = function(namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling createNamespacedServiceAccount"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling createNamespacedServiceAccount"); - } - - - var pathParams = { - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1ServiceAccount; - - return this.apiClient.callApi( - '/api/v1/namespaces/{namespace}/serviceaccounts', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the createNode operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~createNodeCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Node} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * create a Node - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Node} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~createNodeCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1Node} - */ - this.createNode = function(body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling createNode"); - } - - - var pathParams = { - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1Node; - - return this.apiClient.callApi( - '/api/v1/nodes', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the createPersistentVolume operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~createPersistentVolumeCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1PersistentVolume} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * create a PersistentVolume - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1PersistentVolume} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~createPersistentVolumeCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1PersistentVolume} - */ - this.createPersistentVolume = function(body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling createPersistentVolume"); - } - - - var pathParams = { - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1PersistentVolume; - - return this.apiClient.callApi( - '/api/v1/persistentvolumes', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the deleteCollectionNamespace operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~deleteCollectionNamespaceCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Status} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * delete collection of Namespace - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {String} opts.fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. - * @param {String} opts.labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. - * @param {String} opts.resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - * @param {Number} opts.timeoutSeconds Timeout for the list/watch call. - * @param {Boolean} opts.watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~deleteCollectionNamespaceCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1Status} - */ - this.deleteCollectionNamespace = function(opts, callback) { - opts = opts || {}; - var postBody = null; - - - var pathParams = { - }; - var queryParams = { - 'pretty': opts['pretty'], - 'fieldSelector': opts['fieldSelector'], - 'labelSelector': opts['labelSelector'], - 'resourceVersion': opts['resourceVersion'], - 'timeoutSeconds': opts['timeoutSeconds'], - 'watch': opts['watch'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1Status; - - return this.apiClient.callApi( - '/api/v1/namespaces', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the deleteCollectionNamespacedConfigMap operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~deleteCollectionNamespacedConfigMapCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Status} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * delete collection of ConfigMap - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {String} opts.fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. - * @param {String} opts.labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. - * @param {String} opts.resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - * @param {Number} opts.timeoutSeconds Timeout for the list/watch call. - * @param {Boolean} opts.watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~deleteCollectionNamespacedConfigMapCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1Status} - */ - this.deleteCollectionNamespacedConfigMap = function(namespace, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedConfigMap"); - } - - - var pathParams = { - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'], - 'fieldSelector': opts['fieldSelector'], - 'labelSelector': opts['labelSelector'], - 'resourceVersion': opts['resourceVersion'], - 'timeoutSeconds': opts['timeoutSeconds'], - 'watch': opts['watch'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1Status; - - return this.apiClient.callApi( - '/api/v1/namespaces/{namespace}/configmaps', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the deleteCollectionNamespacedEndpoints operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~deleteCollectionNamespacedEndpointsCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Status} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * delete collection of Endpoints - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {String} opts.fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. - * @param {String} opts.labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. - * @param {String} opts.resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - * @param {Number} opts.timeoutSeconds Timeout for the list/watch call. - * @param {Boolean} opts.watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~deleteCollectionNamespacedEndpointsCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1Status} - */ - this.deleteCollectionNamespacedEndpoints = function(namespace, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedEndpoints"); - } - - - var pathParams = { - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'], - 'fieldSelector': opts['fieldSelector'], - 'labelSelector': opts['labelSelector'], - 'resourceVersion': opts['resourceVersion'], - 'timeoutSeconds': opts['timeoutSeconds'], - 'watch': opts['watch'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1Status; - - return this.apiClient.callApi( - '/api/v1/namespaces/{namespace}/endpoints', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the deleteCollectionNamespacedEvent operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~deleteCollectionNamespacedEventCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Status} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * delete collection of Event - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {String} opts.fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. - * @param {String} opts.labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. - * @param {String} opts.resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - * @param {Number} opts.timeoutSeconds Timeout for the list/watch call. - * @param {Boolean} opts.watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~deleteCollectionNamespacedEventCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1Status} - */ - this.deleteCollectionNamespacedEvent = function(namespace, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedEvent"); - } - - - var pathParams = { - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'], - 'fieldSelector': opts['fieldSelector'], - 'labelSelector': opts['labelSelector'], - 'resourceVersion': opts['resourceVersion'], - 'timeoutSeconds': opts['timeoutSeconds'], - 'watch': opts['watch'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1Status; - - return this.apiClient.callApi( - '/api/v1/namespaces/{namespace}/events', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the deleteCollectionNamespacedLimitRange operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~deleteCollectionNamespacedLimitRangeCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Status} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * delete collection of LimitRange - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {String} opts.fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. - * @param {String} opts.labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. - * @param {String} opts.resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - * @param {Number} opts.timeoutSeconds Timeout for the list/watch call. - * @param {Boolean} opts.watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~deleteCollectionNamespacedLimitRangeCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1Status} - */ - this.deleteCollectionNamespacedLimitRange = function(namespace, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedLimitRange"); - } - - - var pathParams = { - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'], - 'fieldSelector': opts['fieldSelector'], - 'labelSelector': opts['labelSelector'], - 'resourceVersion': opts['resourceVersion'], - 'timeoutSeconds': opts['timeoutSeconds'], - 'watch': opts['watch'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1Status; - - return this.apiClient.callApi( - '/api/v1/namespaces/{namespace}/limitranges', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the deleteCollectionNamespacedPersistentVolumeClaim operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~deleteCollectionNamespacedPersistentVolumeClaimCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Status} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * delete collection of PersistentVolumeClaim - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {String} opts.fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. - * @param {String} opts.labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. - * @param {String} opts.resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - * @param {Number} opts.timeoutSeconds Timeout for the list/watch call. - * @param {Boolean} opts.watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~deleteCollectionNamespacedPersistentVolumeClaimCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1Status} - */ - this.deleteCollectionNamespacedPersistentVolumeClaim = function(namespace, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedPersistentVolumeClaim"); - } - - - var pathParams = { - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'], - 'fieldSelector': opts['fieldSelector'], - 'labelSelector': opts['labelSelector'], - 'resourceVersion': opts['resourceVersion'], - 'timeoutSeconds': opts['timeoutSeconds'], - 'watch': opts['watch'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1Status; - - return this.apiClient.callApi( - '/api/v1/namespaces/{namespace}/persistentvolumeclaims', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the deleteCollectionNamespacedPod operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~deleteCollectionNamespacedPodCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Status} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * delete collection of Pod - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {String} opts.fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. - * @param {String} opts.labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. - * @param {String} opts.resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - * @param {Number} opts.timeoutSeconds Timeout for the list/watch call. - * @param {Boolean} opts.watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~deleteCollectionNamespacedPodCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1Status} - */ - this.deleteCollectionNamespacedPod = function(namespace, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedPod"); - } - - - var pathParams = { - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'], - 'fieldSelector': opts['fieldSelector'], - 'labelSelector': opts['labelSelector'], - 'resourceVersion': opts['resourceVersion'], - 'timeoutSeconds': opts['timeoutSeconds'], - 'watch': opts['watch'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1Status; - - return this.apiClient.callApi( - '/api/v1/namespaces/{namespace}/pods', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the deleteCollectionNamespacedPodTemplate operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~deleteCollectionNamespacedPodTemplateCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Status} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * delete collection of PodTemplate - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {String} opts.fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. - * @param {String} opts.labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. - * @param {String} opts.resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - * @param {Number} opts.timeoutSeconds Timeout for the list/watch call. - * @param {Boolean} opts.watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~deleteCollectionNamespacedPodTemplateCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1Status} - */ - this.deleteCollectionNamespacedPodTemplate = function(namespace, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedPodTemplate"); - } - - - var pathParams = { - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'], - 'fieldSelector': opts['fieldSelector'], - 'labelSelector': opts['labelSelector'], - 'resourceVersion': opts['resourceVersion'], - 'timeoutSeconds': opts['timeoutSeconds'], - 'watch': opts['watch'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1Status; - - return this.apiClient.callApi( - '/api/v1/namespaces/{namespace}/podtemplates', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the deleteCollectionNamespacedReplicationController operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~deleteCollectionNamespacedReplicationControllerCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Status} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * delete collection of ReplicationController - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {String} opts.fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. - * @param {String} opts.labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. - * @param {String} opts.resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - * @param {Number} opts.timeoutSeconds Timeout for the list/watch call. - * @param {Boolean} opts.watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~deleteCollectionNamespacedReplicationControllerCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1Status} - */ - this.deleteCollectionNamespacedReplicationController = function(namespace, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedReplicationController"); - } - - - var pathParams = { - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'], - 'fieldSelector': opts['fieldSelector'], - 'labelSelector': opts['labelSelector'], - 'resourceVersion': opts['resourceVersion'], - 'timeoutSeconds': opts['timeoutSeconds'], - 'watch': opts['watch'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1Status; - - return this.apiClient.callApi( - '/api/v1/namespaces/{namespace}/replicationcontrollers', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the deleteCollectionNamespacedResourceQuota operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~deleteCollectionNamespacedResourceQuotaCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Status} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * delete collection of ResourceQuota - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {String} opts.fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. - * @param {String} opts.labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. - * @param {String} opts.resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - * @param {Number} opts.timeoutSeconds Timeout for the list/watch call. - * @param {Boolean} opts.watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~deleteCollectionNamespacedResourceQuotaCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1Status} - */ - this.deleteCollectionNamespacedResourceQuota = function(namespace, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedResourceQuota"); - } - - - var pathParams = { - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'], - 'fieldSelector': opts['fieldSelector'], - 'labelSelector': opts['labelSelector'], - 'resourceVersion': opts['resourceVersion'], - 'timeoutSeconds': opts['timeoutSeconds'], - 'watch': opts['watch'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1Status; - - return this.apiClient.callApi( - '/api/v1/namespaces/{namespace}/resourcequotas', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the deleteCollectionNamespacedSecret operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~deleteCollectionNamespacedSecretCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Status} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * delete collection of Secret - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {String} opts.fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. - * @param {String} opts.labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. - * @param {String} opts.resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - * @param {Number} opts.timeoutSeconds Timeout for the list/watch call. - * @param {Boolean} opts.watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~deleteCollectionNamespacedSecretCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1Status} - */ - this.deleteCollectionNamespacedSecret = function(namespace, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedSecret"); - } - - - var pathParams = { - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'], - 'fieldSelector': opts['fieldSelector'], - 'labelSelector': opts['labelSelector'], - 'resourceVersion': opts['resourceVersion'], - 'timeoutSeconds': opts['timeoutSeconds'], - 'watch': opts['watch'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1Status; - - return this.apiClient.callApi( - '/api/v1/namespaces/{namespace}/secrets', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the deleteCollectionNamespacedServiceAccount operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~deleteCollectionNamespacedServiceAccountCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Status} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * delete collection of ServiceAccount - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {String} opts.fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. - * @param {String} opts.labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. - * @param {String} opts.resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - * @param {Number} opts.timeoutSeconds Timeout for the list/watch call. - * @param {Boolean} opts.watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~deleteCollectionNamespacedServiceAccountCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1Status} - */ - this.deleteCollectionNamespacedServiceAccount = function(namespace, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedServiceAccount"); - } - - - var pathParams = { - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'], - 'fieldSelector': opts['fieldSelector'], - 'labelSelector': opts['labelSelector'], - 'resourceVersion': opts['resourceVersion'], - 'timeoutSeconds': opts['timeoutSeconds'], - 'watch': opts['watch'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1Status; - - return this.apiClient.callApi( - '/api/v1/namespaces/{namespace}/serviceaccounts', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the deleteCollectionNode operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~deleteCollectionNodeCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Status} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * delete collection of Node - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {String} opts.fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. - * @param {String} opts.labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. - * @param {String} opts.resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - * @param {Number} opts.timeoutSeconds Timeout for the list/watch call. - * @param {Boolean} opts.watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~deleteCollectionNodeCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1Status} - */ - this.deleteCollectionNode = function(opts, callback) { - opts = opts || {}; - var postBody = null; - - - var pathParams = { - }; - var queryParams = { - 'pretty': opts['pretty'], - 'fieldSelector': opts['fieldSelector'], - 'labelSelector': opts['labelSelector'], - 'resourceVersion': opts['resourceVersion'], - 'timeoutSeconds': opts['timeoutSeconds'], - 'watch': opts['watch'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1Status; - - return this.apiClient.callApi( - '/api/v1/nodes', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the deleteCollectionPersistentVolume operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~deleteCollectionPersistentVolumeCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Status} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * delete collection of PersistentVolume - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {String} opts.fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. - * @param {String} opts.labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. - * @param {String} opts.resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - * @param {Number} opts.timeoutSeconds Timeout for the list/watch call. - * @param {Boolean} opts.watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~deleteCollectionPersistentVolumeCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1Status} - */ - this.deleteCollectionPersistentVolume = function(opts, callback) { - opts = opts || {}; - var postBody = null; - - - var pathParams = { - }; - var queryParams = { - 'pretty': opts['pretty'], - 'fieldSelector': opts['fieldSelector'], - 'labelSelector': opts['labelSelector'], - 'resourceVersion': opts['resourceVersion'], - 'timeoutSeconds': opts['timeoutSeconds'], - 'watch': opts['watch'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1Status; - - return this.apiClient.callApi( - '/api/v1/persistentvolumes', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the deleteNamespace operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~deleteNamespaceCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Status} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * delete a Namespace - * @param {String} name name of the Namespace - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1DeleteOptions} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {Number} opts.gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - * @param {Boolean} opts.orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - * @param {String} opts.propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~deleteNamespaceCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1Status} - */ - this.deleteNamespace = function(name, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling deleteNamespace"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling deleteNamespace"); - } - - - var pathParams = { - 'name': name - }; - var queryParams = { - 'pretty': opts['pretty'], - 'gracePeriodSeconds': opts['gracePeriodSeconds'], - 'orphanDependents': opts['orphanDependents'], - 'propagationPolicy': opts['propagationPolicy'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1Status; - - return this.apiClient.callApi( - '/api/v1/namespaces/{name}', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the deleteNamespacedConfigMap operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~deleteNamespacedConfigMapCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Status} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * delete a ConfigMap - * @param {String} name name of the ConfigMap - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1DeleteOptions} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {Number} opts.gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - * @param {Boolean} opts.orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - * @param {String} opts.propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~deleteNamespacedConfigMapCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1Status} - */ - this.deleteNamespacedConfigMap = function(name, namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling deleteNamespacedConfigMap"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling deleteNamespacedConfigMap"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling deleteNamespacedConfigMap"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'], - 'gracePeriodSeconds': opts['gracePeriodSeconds'], - 'orphanDependents': opts['orphanDependents'], - 'propagationPolicy': opts['propagationPolicy'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1Status; - - return this.apiClient.callApi( - '/api/v1/namespaces/{namespace}/configmaps/{name}', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the deleteNamespacedEndpoints operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~deleteNamespacedEndpointsCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Status} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * delete Endpoints - * @param {String} name name of the Endpoints - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1DeleteOptions} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {Number} opts.gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - * @param {Boolean} opts.orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - * @param {String} opts.propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~deleteNamespacedEndpointsCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1Status} - */ - this.deleteNamespacedEndpoints = function(name, namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling deleteNamespacedEndpoints"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling deleteNamespacedEndpoints"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling deleteNamespacedEndpoints"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'], - 'gracePeriodSeconds': opts['gracePeriodSeconds'], - 'orphanDependents': opts['orphanDependents'], - 'propagationPolicy': opts['propagationPolicy'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1Status; - - return this.apiClient.callApi( - '/api/v1/namespaces/{namespace}/endpoints/{name}', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the deleteNamespacedEvent operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~deleteNamespacedEventCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Status} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * delete an Event - * @param {String} name name of the Event - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1DeleteOptions} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {Number} opts.gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - * @param {Boolean} opts.orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - * @param {String} opts.propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~deleteNamespacedEventCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1Status} - */ - this.deleteNamespacedEvent = function(name, namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling deleteNamespacedEvent"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling deleteNamespacedEvent"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling deleteNamespacedEvent"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'], - 'gracePeriodSeconds': opts['gracePeriodSeconds'], - 'orphanDependents': opts['orphanDependents'], - 'propagationPolicy': opts['propagationPolicy'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1Status; - - return this.apiClient.callApi( - '/api/v1/namespaces/{namespace}/events/{name}', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the deleteNamespacedLimitRange operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~deleteNamespacedLimitRangeCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Status} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * delete a LimitRange - * @param {String} name name of the LimitRange - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1DeleteOptions} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {Number} opts.gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - * @param {Boolean} opts.orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - * @param {String} opts.propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~deleteNamespacedLimitRangeCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1Status} - */ - this.deleteNamespacedLimitRange = function(name, namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling deleteNamespacedLimitRange"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling deleteNamespacedLimitRange"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling deleteNamespacedLimitRange"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'], - 'gracePeriodSeconds': opts['gracePeriodSeconds'], - 'orphanDependents': opts['orphanDependents'], - 'propagationPolicy': opts['propagationPolicy'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1Status; - - return this.apiClient.callApi( - '/api/v1/namespaces/{namespace}/limitranges/{name}', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the deleteNamespacedPersistentVolumeClaim operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~deleteNamespacedPersistentVolumeClaimCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Status} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * delete a PersistentVolumeClaim - * @param {String} name name of the PersistentVolumeClaim - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1DeleteOptions} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {Number} opts.gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - * @param {Boolean} opts.orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - * @param {String} opts.propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~deleteNamespacedPersistentVolumeClaimCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1Status} - */ - this.deleteNamespacedPersistentVolumeClaim = function(name, namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling deleteNamespacedPersistentVolumeClaim"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling deleteNamespacedPersistentVolumeClaim"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling deleteNamespacedPersistentVolumeClaim"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'], - 'gracePeriodSeconds': opts['gracePeriodSeconds'], - 'orphanDependents': opts['orphanDependents'], - 'propagationPolicy': opts['propagationPolicy'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1Status; - - return this.apiClient.callApi( - '/api/v1/namespaces/{namespace}/persistentvolumeclaims/{name}', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the deleteNamespacedPod operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~deleteNamespacedPodCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Status} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * delete a Pod - * @param {String} name name of the Pod - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1DeleteOptions} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {Number} opts.gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - * @param {Boolean} opts.orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - * @param {String} opts.propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~deleteNamespacedPodCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1Status} - */ - this.deleteNamespacedPod = function(name, namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling deleteNamespacedPod"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling deleteNamespacedPod"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling deleteNamespacedPod"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'], - 'gracePeriodSeconds': opts['gracePeriodSeconds'], - 'orphanDependents': opts['orphanDependents'], - 'propagationPolicy': opts['propagationPolicy'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1Status; - - return this.apiClient.callApi( - '/api/v1/namespaces/{namespace}/pods/{name}', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the deleteNamespacedPodTemplate operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~deleteNamespacedPodTemplateCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Status} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * delete a PodTemplate - * @param {String} name name of the PodTemplate - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1DeleteOptions} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {Number} opts.gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - * @param {Boolean} opts.orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - * @param {String} opts.propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~deleteNamespacedPodTemplateCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1Status} - */ - this.deleteNamespacedPodTemplate = function(name, namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling deleteNamespacedPodTemplate"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling deleteNamespacedPodTemplate"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling deleteNamespacedPodTemplate"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'], - 'gracePeriodSeconds': opts['gracePeriodSeconds'], - 'orphanDependents': opts['orphanDependents'], - 'propagationPolicy': opts['propagationPolicy'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1Status; - - return this.apiClient.callApi( - '/api/v1/namespaces/{namespace}/podtemplates/{name}', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the deleteNamespacedReplicationController operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~deleteNamespacedReplicationControllerCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Status} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * delete a ReplicationController - * @param {String} name name of the ReplicationController - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1DeleteOptions} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {Number} opts.gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - * @param {Boolean} opts.orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - * @param {String} opts.propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~deleteNamespacedReplicationControllerCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1Status} - */ - this.deleteNamespacedReplicationController = function(name, namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling deleteNamespacedReplicationController"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling deleteNamespacedReplicationController"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling deleteNamespacedReplicationController"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'], - 'gracePeriodSeconds': opts['gracePeriodSeconds'], - 'orphanDependents': opts['orphanDependents'], - 'propagationPolicy': opts['propagationPolicy'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1Status; - - return this.apiClient.callApi( - '/api/v1/namespaces/{namespace}/replicationcontrollers/{name}', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the deleteNamespacedResourceQuota operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~deleteNamespacedResourceQuotaCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Status} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * delete a ResourceQuota - * @param {String} name name of the ResourceQuota - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1DeleteOptions} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {Number} opts.gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - * @param {Boolean} opts.orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - * @param {String} opts.propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~deleteNamespacedResourceQuotaCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1Status} - */ - this.deleteNamespacedResourceQuota = function(name, namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling deleteNamespacedResourceQuota"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling deleteNamespacedResourceQuota"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling deleteNamespacedResourceQuota"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'], - 'gracePeriodSeconds': opts['gracePeriodSeconds'], - 'orphanDependents': opts['orphanDependents'], - 'propagationPolicy': opts['propagationPolicy'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1Status; - - return this.apiClient.callApi( - '/api/v1/namespaces/{namespace}/resourcequotas/{name}', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the deleteNamespacedSecret operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~deleteNamespacedSecretCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Status} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * delete a Secret - * @param {String} name name of the Secret - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1DeleteOptions} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {Number} opts.gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - * @param {Boolean} opts.orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - * @param {String} opts.propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~deleteNamespacedSecretCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1Status} - */ - this.deleteNamespacedSecret = function(name, namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling deleteNamespacedSecret"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling deleteNamespacedSecret"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling deleteNamespacedSecret"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'], - 'gracePeriodSeconds': opts['gracePeriodSeconds'], - 'orphanDependents': opts['orphanDependents'], - 'propagationPolicy': opts['propagationPolicy'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1Status; - - return this.apiClient.callApi( - '/api/v1/namespaces/{namespace}/secrets/{name}', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the deleteNamespacedService operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~deleteNamespacedServiceCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Status} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * delete a Service - * @param {String} name name of the Service - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~deleteNamespacedServiceCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1Status} - */ - this.deleteNamespacedService = function(name, namespace, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling deleteNamespacedService"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling deleteNamespacedService"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1Status; - - return this.apiClient.callApi( - '/api/v1/namespaces/{namespace}/services/{name}', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the deleteNamespacedServiceAccount operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~deleteNamespacedServiceAccountCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Status} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * delete a ServiceAccount - * @param {String} name name of the ServiceAccount - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1DeleteOptions} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {Number} opts.gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - * @param {Boolean} opts.orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - * @param {String} opts.propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~deleteNamespacedServiceAccountCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1Status} - */ - this.deleteNamespacedServiceAccount = function(name, namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling deleteNamespacedServiceAccount"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling deleteNamespacedServiceAccount"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling deleteNamespacedServiceAccount"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'], - 'gracePeriodSeconds': opts['gracePeriodSeconds'], - 'orphanDependents': opts['orphanDependents'], - 'propagationPolicy': opts['propagationPolicy'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1Status; - - return this.apiClient.callApi( - '/api/v1/namespaces/{namespace}/serviceaccounts/{name}', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the deleteNode operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~deleteNodeCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Status} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * delete a Node - * @param {String} name name of the Node - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1DeleteOptions} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {Number} opts.gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - * @param {Boolean} opts.orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - * @param {String} opts.propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~deleteNodeCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1Status} - */ - this.deleteNode = function(name, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling deleteNode"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling deleteNode"); - } - - - var pathParams = { - 'name': name - }; - var queryParams = { - 'pretty': opts['pretty'], - 'gracePeriodSeconds': opts['gracePeriodSeconds'], - 'orphanDependents': opts['orphanDependents'], - 'propagationPolicy': opts['propagationPolicy'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1Status; - - return this.apiClient.callApi( - '/api/v1/nodes/{name}', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the deletePersistentVolume operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~deletePersistentVolumeCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Status} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * delete a PersistentVolume - * @param {String} name name of the PersistentVolume - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1DeleteOptions} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {Number} opts.gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - * @param {Boolean} opts.orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - * @param {String} opts.propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~deletePersistentVolumeCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1Status} - */ - this.deletePersistentVolume = function(name, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling deletePersistentVolume"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling deletePersistentVolume"); - } - - - var pathParams = { - 'name': name - }; - var queryParams = { - 'pretty': opts['pretty'], - 'gracePeriodSeconds': opts['gracePeriodSeconds'], - 'orphanDependents': opts['orphanDependents'], - 'propagationPolicy': opts['propagationPolicy'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1Status; - - return this.apiClient.callApi( - '/api/v1/persistentvolumes/{name}', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the getAPIResources operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~getAPIResourcesCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1APIResourceList} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * get available resources - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~getAPIResourcesCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1APIResourceList} - */ - this.getAPIResources = function(callback) { - var postBody = null; - - - var pathParams = { - }; - var queryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1APIResourceList; - - return this.apiClient.callApi( - '/api/v1/', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the listComponentStatus operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~listComponentStatusCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1ComponentStatusList} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * list objects of kind ComponentStatus - * @param {Object} opts Optional parameters - * @param {String} opts.fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. - * @param {String} opts.labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {String} opts.resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - * @param {Number} opts.timeoutSeconds Timeout for the list/watch call. - * @param {Boolean} opts.watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~listComponentStatusCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1ComponentStatusList} - */ - this.listComponentStatus = function(opts, callback) { - opts = opts || {}; - var postBody = null; - - - var pathParams = { - }; - var queryParams = { - 'fieldSelector': opts['fieldSelector'], - 'labelSelector': opts['labelSelector'], - 'pretty': opts['pretty'], - 'resourceVersion': opts['resourceVersion'], - 'timeoutSeconds': opts['timeoutSeconds'], - 'watch': opts['watch'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']; - var returnType = V1ComponentStatusList; - - return this.apiClient.callApi( - '/api/v1/componentstatuses', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the listConfigMapForAllNamespaces operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~listConfigMapForAllNamespacesCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1ConfigMapList} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * list or watch objects of kind ConfigMap - * @param {Object} opts Optional parameters - * @param {String} opts.fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. - * @param {String} opts.labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {String} opts.resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - * @param {Number} opts.timeoutSeconds Timeout for the list/watch call. - * @param {Boolean} opts.watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~listConfigMapForAllNamespacesCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1ConfigMapList} - */ - this.listConfigMapForAllNamespaces = function(opts, callback) { - opts = opts || {}; - var postBody = null; - - - var pathParams = { - }; - var queryParams = { - 'fieldSelector': opts['fieldSelector'], - 'labelSelector': opts['labelSelector'], - 'pretty': opts['pretty'], - 'resourceVersion': opts['resourceVersion'], - 'timeoutSeconds': opts['timeoutSeconds'], - 'watch': opts['watch'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']; - var returnType = V1ConfigMapList; - - return this.apiClient.callApi( - '/api/v1/configmaps', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the listEndpointsForAllNamespaces operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~listEndpointsForAllNamespacesCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1EndpointsList} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * list or watch objects of kind Endpoints - * @param {Object} opts Optional parameters - * @param {String} opts.fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. - * @param {String} opts.labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {String} opts.resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - * @param {Number} opts.timeoutSeconds Timeout for the list/watch call. - * @param {Boolean} opts.watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~listEndpointsForAllNamespacesCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1EndpointsList} - */ - this.listEndpointsForAllNamespaces = function(opts, callback) { - opts = opts || {}; - var postBody = null; - - - var pathParams = { - }; - var queryParams = { - 'fieldSelector': opts['fieldSelector'], - 'labelSelector': opts['labelSelector'], - 'pretty': opts['pretty'], - 'resourceVersion': opts['resourceVersion'], - 'timeoutSeconds': opts['timeoutSeconds'], - 'watch': opts['watch'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']; - var returnType = V1EndpointsList; - - return this.apiClient.callApi( - '/api/v1/endpoints', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the listEventForAllNamespaces operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~listEventForAllNamespacesCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1EventList} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * list or watch objects of kind Event - * @param {Object} opts Optional parameters - * @param {String} opts.fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. - * @param {String} opts.labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {String} opts.resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - * @param {Number} opts.timeoutSeconds Timeout for the list/watch call. - * @param {Boolean} opts.watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~listEventForAllNamespacesCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1EventList} - */ - this.listEventForAllNamespaces = function(opts, callback) { - opts = opts || {}; - var postBody = null; - - - var pathParams = { - }; - var queryParams = { - 'fieldSelector': opts['fieldSelector'], - 'labelSelector': opts['labelSelector'], - 'pretty': opts['pretty'], - 'resourceVersion': opts['resourceVersion'], - 'timeoutSeconds': opts['timeoutSeconds'], - 'watch': opts['watch'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']; - var returnType = V1EventList; - - return this.apiClient.callApi( - '/api/v1/events', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the listLimitRangeForAllNamespaces operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~listLimitRangeForAllNamespacesCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1LimitRangeList} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * list or watch objects of kind LimitRange - * @param {Object} opts Optional parameters - * @param {String} opts.fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. - * @param {String} opts.labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {String} opts.resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - * @param {Number} opts.timeoutSeconds Timeout for the list/watch call. - * @param {Boolean} opts.watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~listLimitRangeForAllNamespacesCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1LimitRangeList} - */ - this.listLimitRangeForAllNamespaces = function(opts, callback) { - opts = opts || {}; - var postBody = null; - - - var pathParams = { - }; - var queryParams = { - 'fieldSelector': opts['fieldSelector'], - 'labelSelector': opts['labelSelector'], - 'pretty': opts['pretty'], - 'resourceVersion': opts['resourceVersion'], - 'timeoutSeconds': opts['timeoutSeconds'], - 'watch': opts['watch'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']; - var returnType = V1LimitRangeList; - - return this.apiClient.callApi( - '/api/v1/limitranges', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the listNamespace operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~listNamespaceCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1NamespaceList} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * list or watch objects of kind Namespace - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {String} opts.fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. - * @param {String} opts.labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. - * @param {String} opts.resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - * @param {Number} opts.timeoutSeconds Timeout for the list/watch call. - * @param {Boolean} opts.watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~listNamespaceCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1NamespaceList} - */ - this.listNamespace = function(opts, callback) { - opts = opts || {}; - var postBody = null; - - - var pathParams = { - }; - var queryParams = { - 'pretty': opts['pretty'], - 'fieldSelector': opts['fieldSelector'], - 'labelSelector': opts['labelSelector'], - 'resourceVersion': opts['resourceVersion'], - 'timeoutSeconds': opts['timeoutSeconds'], - 'watch': opts['watch'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']; - var returnType = V1NamespaceList; - - return this.apiClient.callApi( - '/api/v1/namespaces', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the listNamespacedConfigMap operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~listNamespacedConfigMapCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1ConfigMapList} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * list or watch objects of kind ConfigMap - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {String} opts.fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. - * @param {String} opts.labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. - * @param {String} opts.resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - * @param {Number} opts.timeoutSeconds Timeout for the list/watch call. - * @param {Boolean} opts.watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~listNamespacedConfigMapCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1ConfigMapList} - */ - this.listNamespacedConfigMap = function(namespace, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling listNamespacedConfigMap"); - } - - - var pathParams = { - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'], - 'fieldSelector': opts['fieldSelector'], - 'labelSelector': opts['labelSelector'], - 'resourceVersion': opts['resourceVersion'], - 'timeoutSeconds': opts['timeoutSeconds'], - 'watch': opts['watch'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']; - var returnType = V1ConfigMapList; - - return this.apiClient.callApi( - '/api/v1/namespaces/{namespace}/configmaps', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the listNamespacedEndpoints operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~listNamespacedEndpointsCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1EndpointsList} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * list or watch objects of kind Endpoints - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {String} opts.fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. - * @param {String} opts.labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. - * @param {String} opts.resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - * @param {Number} opts.timeoutSeconds Timeout for the list/watch call. - * @param {Boolean} opts.watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~listNamespacedEndpointsCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1EndpointsList} - */ - this.listNamespacedEndpoints = function(namespace, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling listNamespacedEndpoints"); - } - - - var pathParams = { - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'], - 'fieldSelector': opts['fieldSelector'], - 'labelSelector': opts['labelSelector'], - 'resourceVersion': opts['resourceVersion'], - 'timeoutSeconds': opts['timeoutSeconds'], - 'watch': opts['watch'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']; - var returnType = V1EndpointsList; - - return this.apiClient.callApi( - '/api/v1/namespaces/{namespace}/endpoints', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the listNamespacedEvent operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~listNamespacedEventCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1EventList} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * list or watch objects of kind Event - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {String} opts.fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. - * @param {String} opts.labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. - * @param {String} opts.resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - * @param {Number} opts.timeoutSeconds Timeout for the list/watch call. - * @param {Boolean} opts.watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~listNamespacedEventCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1EventList} - */ - this.listNamespacedEvent = function(namespace, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling listNamespacedEvent"); - } - - - var pathParams = { - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'], - 'fieldSelector': opts['fieldSelector'], - 'labelSelector': opts['labelSelector'], - 'resourceVersion': opts['resourceVersion'], - 'timeoutSeconds': opts['timeoutSeconds'], - 'watch': opts['watch'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']; - var returnType = V1EventList; - - return this.apiClient.callApi( - '/api/v1/namespaces/{namespace}/events', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the listNamespacedLimitRange operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~listNamespacedLimitRangeCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1LimitRangeList} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * list or watch objects of kind LimitRange - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {String} opts.fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. - * @param {String} opts.labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. - * @param {String} opts.resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - * @param {Number} opts.timeoutSeconds Timeout for the list/watch call. - * @param {Boolean} opts.watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~listNamespacedLimitRangeCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1LimitRangeList} - */ - this.listNamespacedLimitRange = function(namespace, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling listNamespacedLimitRange"); - } - - - var pathParams = { - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'], - 'fieldSelector': opts['fieldSelector'], - 'labelSelector': opts['labelSelector'], - 'resourceVersion': opts['resourceVersion'], - 'timeoutSeconds': opts['timeoutSeconds'], - 'watch': opts['watch'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']; - var returnType = V1LimitRangeList; - - return this.apiClient.callApi( - '/api/v1/namespaces/{namespace}/limitranges', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the listNamespacedPersistentVolumeClaim operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~listNamespacedPersistentVolumeClaimCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1PersistentVolumeClaimList} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * list or watch objects of kind PersistentVolumeClaim - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {String} opts.fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. - * @param {String} opts.labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. - * @param {String} opts.resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - * @param {Number} opts.timeoutSeconds Timeout for the list/watch call. - * @param {Boolean} opts.watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~listNamespacedPersistentVolumeClaimCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1PersistentVolumeClaimList} - */ - this.listNamespacedPersistentVolumeClaim = function(namespace, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling listNamespacedPersistentVolumeClaim"); - } - - - var pathParams = { - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'], - 'fieldSelector': opts['fieldSelector'], - 'labelSelector': opts['labelSelector'], - 'resourceVersion': opts['resourceVersion'], - 'timeoutSeconds': opts['timeoutSeconds'], - 'watch': opts['watch'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']; - var returnType = V1PersistentVolumeClaimList; - - return this.apiClient.callApi( - '/api/v1/namespaces/{namespace}/persistentvolumeclaims', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the listNamespacedPod operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~listNamespacedPodCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1PodList} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * list or watch objects of kind Pod - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {String} opts.fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. - * @param {String} opts.labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. - * @param {String} opts.resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - * @param {Number} opts.timeoutSeconds Timeout for the list/watch call. - * @param {Boolean} opts.watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~listNamespacedPodCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1PodList} - */ - this.listNamespacedPod = function(namespace, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling listNamespacedPod"); - } - - - var pathParams = { - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'], - 'fieldSelector': opts['fieldSelector'], - 'labelSelector': opts['labelSelector'], - 'resourceVersion': opts['resourceVersion'], - 'timeoutSeconds': opts['timeoutSeconds'], - 'watch': opts['watch'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']; - var returnType = V1PodList; - - return this.apiClient.callApi( - '/api/v1/namespaces/{namespace}/pods', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the listNamespacedPodTemplate operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~listNamespacedPodTemplateCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1PodTemplateList} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * list or watch objects of kind PodTemplate - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {String} opts.fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. - * @param {String} opts.labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. - * @param {String} opts.resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - * @param {Number} opts.timeoutSeconds Timeout for the list/watch call. - * @param {Boolean} opts.watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~listNamespacedPodTemplateCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1PodTemplateList} - */ - this.listNamespacedPodTemplate = function(namespace, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling listNamespacedPodTemplate"); - } - - - var pathParams = { - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'], - 'fieldSelector': opts['fieldSelector'], - 'labelSelector': opts['labelSelector'], - 'resourceVersion': opts['resourceVersion'], - 'timeoutSeconds': opts['timeoutSeconds'], - 'watch': opts['watch'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']; - var returnType = V1PodTemplateList; - - return this.apiClient.callApi( - '/api/v1/namespaces/{namespace}/podtemplates', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the listNamespacedReplicationController operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~listNamespacedReplicationControllerCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1ReplicationControllerList} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * list or watch objects of kind ReplicationController - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {String} opts.fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. - * @param {String} opts.labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. - * @param {String} opts.resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - * @param {Number} opts.timeoutSeconds Timeout for the list/watch call. - * @param {Boolean} opts.watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~listNamespacedReplicationControllerCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1ReplicationControllerList} - */ - this.listNamespacedReplicationController = function(namespace, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling listNamespacedReplicationController"); - } - - - var pathParams = { - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'], - 'fieldSelector': opts['fieldSelector'], - 'labelSelector': opts['labelSelector'], - 'resourceVersion': opts['resourceVersion'], - 'timeoutSeconds': opts['timeoutSeconds'], - 'watch': opts['watch'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']; - var returnType = V1ReplicationControllerList; - - return this.apiClient.callApi( - '/api/v1/namespaces/{namespace}/replicationcontrollers', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the listNamespacedResourceQuota operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~listNamespacedResourceQuotaCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1ResourceQuotaList} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * list or watch objects of kind ResourceQuota - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {String} opts.fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. - * @param {String} opts.labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. - * @param {String} opts.resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - * @param {Number} opts.timeoutSeconds Timeout for the list/watch call. - * @param {Boolean} opts.watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~listNamespacedResourceQuotaCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1ResourceQuotaList} - */ - this.listNamespacedResourceQuota = function(namespace, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling listNamespacedResourceQuota"); - } - - - var pathParams = { - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'], - 'fieldSelector': opts['fieldSelector'], - 'labelSelector': opts['labelSelector'], - 'resourceVersion': opts['resourceVersion'], - 'timeoutSeconds': opts['timeoutSeconds'], - 'watch': opts['watch'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']; - var returnType = V1ResourceQuotaList; - - return this.apiClient.callApi( - '/api/v1/namespaces/{namespace}/resourcequotas', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the listNamespacedSecret operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~listNamespacedSecretCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1SecretList} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * list or watch objects of kind Secret - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {String} opts.fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. - * @param {String} opts.labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. - * @param {String} opts.resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - * @param {Number} opts.timeoutSeconds Timeout for the list/watch call. - * @param {Boolean} opts.watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~listNamespacedSecretCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1SecretList} - */ - this.listNamespacedSecret = function(namespace, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling listNamespacedSecret"); - } - - - var pathParams = { - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'], - 'fieldSelector': opts['fieldSelector'], - 'labelSelector': opts['labelSelector'], - 'resourceVersion': opts['resourceVersion'], - 'timeoutSeconds': opts['timeoutSeconds'], - 'watch': opts['watch'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']; - var returnType = V1SecretList; - - return this.apiClient.callApi( - '/api/v1/namespaces/{namespace}/secrets', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the listNamespacedService operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~listNamespacedServiceCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1ServiceList} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * list or watch objects of kind Service - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {String} opts.fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. - * @param {String} opts.labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. - * @param {String} opts.resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - * @param {Number} opts.timeoutSeconds Timeout for the list/watch call. - * @param {Boolean} opts.watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~listNamespacedServiceCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1ServiceList} - */ - this.listNamespacedService = function(namespace, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling listNamespacedService"); - } - - - var pathParams = { - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'], - 'fieldSelector': opts['fieldSelector'], - 'labelSelector': opts['labelSelector'], - 'resourceVersion': opts['resourceVersion'], - 'timeoutSeconds': opts['timeoutSeconds'], - 'watch': opts['watch'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']; - var returnType = V1ServiceList; - - return this.apiClient.callApi( - '/api/v1/namespaces/{namespace}/services', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the listNamespacedServiceAccount operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~listNamespacedServiceAccountCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1ServiceAccountList} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * list or watch objects of kind ServiceAccount - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {String} opts.fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. - * @param {String} opts.labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. - * @param {String} opts.resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - * @param {Number} opts.timeoutSeconds Timeout for the list/watch call. - * @param {Boolean} opts.watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~listNamespacedServiceAccountCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1ServiceAccountList} - */ - this.listNamespacedServiceAccount = function(namespace, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling listNamespacedServiceAccount"); - } - - - var pathParams = { - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'], - 'fieldSelector': opts['fieldSelector'], - 'labelSelector': opts['labelSelector'], - 'resourceVersion': opts['resourceVersion'], - 'timeoutSeconds': opts['timeoutSeconds'], - 'watch': opts['watch'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']; - var returnType = V1ServiceAccountList; - - return this.apiClient.callApi( - '/api/v1/namespaces/{namespace}/serviceaccounts', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the listNode operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~listNodeCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1NodeList} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * list or watch objects of kind Node - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {String} opts.fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. - * @param {String} opts.labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. - * @param {String} opts.resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - * @param {Number} opts.timeoutSeconds Timeout for the list/watch call. - * @param {Boolean} opts.watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~listNodeCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1NodeList} - */ - this.listNode = function(opts, callback) { - opts = opts || {}; - var postBody = null; - - - var pathParams = { - }; - var queryParams = { - 'pretty': opts['pretty'], - 'fieldSelector': opts['fieldSelector'], - 'labelSelector': opts['labelSelector'], - 'resourceVersion': opts['resourceVersion'], - 'timeoutSeconds': opts['timeoutSeconds'], - 'watch': opts['watch'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']; - var returnType = V1NodeList; - - return this.apiClient.callApi( - '/api/v1/nodes', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the listPersistentVolume operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~listPersistentVolumeCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1PersistentVolumeList} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * list or watch objects of kind PersistentVolume - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {String} opts.fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. - * @param {String} opts.labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. - * @param {String} opts.resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - * @param {Number} opts.timeoutSeconds Timeout for the list/watch call. - * @param {Boolean} opts.watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~listPersistentVolumeCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1PersistentVolumeList} - */ - this.listPersistentVolume = function(opts, callback) { - opts = opts || {}; - var postBody = null; - - - var pathParams = { - }; - var queryParams = { - 'pretty': opts['pretty'], - 'fieldSelector': opts['fieldSelector'], - 'labelSelector': opts['labelSelector'], - 'resourceVersion': opts['resourceVersion'], - 'timeoutSeconds': opts['timeoutSeconds'], - 'watch': opts['watch'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']; - var returnType = V1PersistentVolumeList; - - return this.apiClient.callApi( - '/api/v1/persistentvolumes', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the listPersistentVolumeClaimForAllNamespaces operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~listPersistentVolumeClaimForAllNamespacesCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1PersistentVolumeClaimList} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * list or watch objects of kind PersistentVolumeClaim - * @param {Object} opts Optional parameters - * @param {String} opts.fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. - * @param {String} opts.labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {String} opts.resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - * @param {Number} opts.timeoutSeconds Timeout for the list/watch call. - * @param {Boolean} opts.watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~listPersistentVolumeClaimForAllNamespacesCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1PersistentVolumeClaimList} - */ - this.listPersistentVolumeClaimForAllNamespaces = function(opts, callback) { - opts = opts || {}; - var postBody = null; - - - var pathParams = { - }; - var queryParams = { - 'fieldSelector': opts['fieldSelector'], - 'labelSelector': opts['labelSelector'], - 'pretty': opts['pretty'], - 'resourceVersion': opts['resourceVersion'], - 'timeoutSeconds': opts['timeoutSeconds'], - 'watch': opts['watch'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']; - var returnType = V1PersistentVolumeClaimList; - - return this.apiClient.callApi( - '/api/v1/persistentvolumeclaims', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the listPodForAllNamespaces operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~listPodForAllNamespacesCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1PodList} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * list or watch objects of kind Pod - * @param {Object} opts Optional parameters - * @param {String} opts.fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. - * @param {String} opts.labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {String} opts.resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - * @param {Number} opts.timeoutSeconds Timeout for the list/watch call. - * @param {Boolean} opts.watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~listPodForAllNamespacesCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1PodList} - */ - this.listPodForAllNamespaces = function(opts, callback) { - opts = opts || {}; - var postBody = null; - - - var pathParams = { - }; - var queryParams = { - 'fieldSelector': opts['fieldSelector'], - 'labelSelector': opts['labelSelector'], - 'pretty': opts['pretty'], - 'resourceVersion': opts['resourceVersion'], - 'timeoutSeconds': opts['timeoutSeconds'], - 'watch': opts['watch'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']; - var returnType = V1PodList; - - return this.apiClient.callApi( - '/api/v1/pods', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the listPodTemplateForAllNamespaces operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~listPodTemplateForAllNamespacesCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1PodTemplateList} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * list or watch objects of kind PodTemplate - * @param {Object} opts Optional parameters - * @param {String} opts.fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. - * @param {String} opts.labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {String} opts.resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - * @param {Number} opts.timeoutSeconds Timeout for the list/watch call. - * @param {Boolean} opts.watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~listPodTemplateForAllNamespacesCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1PodTemplateList} - */ - this.listPodTemplateForAllNamespaces = function(opts, callback) { - opts = opts || {}; - var postBody = null; - - - var pathParams = { - }; - var queryParams = { - 'fieldSelector': opts['fieldSelector'], - 'labelSelector': opts['labelSelector'], - 'pretty': opts['pretty'], - 'resourceVersion': opts['resourceVersion'], - 'timeoutSeconds': opts['timeoutSeconds'], - 'watch': opts['watch'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']; - var returnType = V1PodTemplateList; - - return this.apiClient.callApi( - '/api/v1/podtemplates', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the listReplicationControllerForAllNamespaces operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~listReplicationControllerForAllNamespacesCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1ReplicationControllerList} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * list or watch objects of kind ReplicationController - * @param {Object} opts Optional parameters - * @param {String} opts.fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. - * @param {String} opts.labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {String} opts.resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - * @param {Number} opts.timeoutSeconds Timeout for the list/watch call. - * @param {Boolean} opts.watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~listReplicationControllerForAllNamespacesCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1ReplicationControllerList} - */ - this.listReplicationControllerForAllNamespaces = function(opts, callback) { - opts = opts || {}; - var postBody = null; - - - var pathParams = { - }; - var queryParams = { - 'fieldSelector': opts['fieldSelector'], - 'labelSelector': opts['labelSelector'], - 'pretty': opts['pretty'], - 'resourceVersion': opts['resourceVersion'], - 'timeoutSeconds': opts['timeoutSeconds'], - 'watch': opts['watch'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']; - var returnType = V1ReplicationControllerList; - - return this.apiClient.callApi( - '/api/v1/replicationcontrollers', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the listResourceQuotaForAllNamespaces operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~listResourceQuotaForAllNamespacesCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1ResourceQuotaList} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * list or watch objects of kind ResourceQuota - * @param {Object} opts Optional parameters - * @param {String} opts.fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. - * @param {String} opts.labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {String} opts.resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - * @param {Number} opts.timeoutSeconds Timeout for the list/watch call. - * @param {Boolean} opts.watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~listResourceQuotaForAllNamespacesCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1ResourceQuotaList} - */ - this.listResourceQuotaForAllNamespaces = function(opts, callback) { - opts = opts || {}; - var postBody = null; - - - var pathParams = { - }; - var queryParams = { - 'fieldSelector': opts['fieldSelector'], - 'labelSelector': opts['labelSelector'], - 'pretty': opts['pretty'], - 'resourceVersion': opts['resourceVersion'], - 'timeoutSeconds': opts['timeoutSeconds'], - 'watch': opts['watch'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']; - var returnType = V1ResourceQuotaList; - - return this.apiClient.callApi( - '/api/v1/resourcequotas', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the listSecretForAllNamespaces operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~listSecretForAllNamespacesCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1SecretList} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * list or watch objects of kind Secret - * @param {Object} opts Optional parameters - * @param {String} opts.fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. - * @param {String} opts.labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {String} opts.resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - * @param {Number} opts.timeoutSeconds Timeout for the list/watch call. - * @param {Boolean} opts.watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~listSecretForAllNamespacesCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1SecretList} - */ - this.listSecretForAllNamespaces = function(opts, callback) { - opts = opts || {}; - var postBody = null; - - - var pathParams = { - }; - var queryParams = { - 'fieldSelector': opts['fieldSelector'], - 'labelSelector': opts['labelSelector'], - 'pretty': opts['pretty'], - 'resourceVersion': opts['resourceVersion'], - 'timeoutSeconds': opts['timeoutSeconds'], - 'watch': opts['watch'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']; - var returnType = V1SecretList; - - return this.apiClient.callApi( - '/api/v1/secrets', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the listServiceAccountForAllNamespaces operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~listServiceAccountForAllNamespacesCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1ServiceAccountList} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * list or watch objects of kind ServiceAccount - * @param {Object} opts Optional parameters - * @param {String} opts.fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. - * @param {String} opts.labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {String} opts.resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - * @param {Number} opts.timeoutSeconds Timeout for the list/watch call. - * @param {Boolean} opts.watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~listServiceAccountForAllNamespacesCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1ServiceAccountList} - */ - this.listServiceAccountForAllNamespaces = function(opts, callback) { - opts = opts || {}; - var postBody = null; - - - var pathParams = { - }; - var queryParams = { - 'fieldSelector': opts['fieldSelector'], - 'labelSelector': opts['labelSelector'], - 'pretty': opts['pretty'], - 'resourceVersion': opts['resourceVersion'], - 'timeoutSeconds': opts['timeoutSeconds'], - 'watch': opts['watch'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']; - var returnType = V1ServiceAccountList; - - return this.apiClient.callApi( - '/api/v1/serviceaccounts', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the listServiceForAllNamespaces operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~listServiceForAllNamespacesCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1ServiceList} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * list or watch objects of kind Service - * @param {Object} opts Optional parameters - * @param {String} opts.fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. - * @param {String} opts.labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {String} opts.resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - * @param {Number} opts.timeoutSeconds Timeout for the list/watch call. - * @param {Boolean} opts.watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~listServiceForAllNamespacesCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1ServiceList} - */ - this.listServiceForAllNamespaces = function(opts, callback) { - opts = opts || {}; - var postBody = null; - - - var pathParams = { - }; - var queryParams = { - 'fieldSelector': opts['fieldSelector'], - 'labelSelector': opts['labelSelector'], - 'pretty': opts['pretty'], - 'resourceVersion': opts['resourceVersion'], - 'timeoutSeconds': opts['timeoutSeconds'], - 'watch': opts['watch'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']; - var returnType = V1ServiceList; - - return this.apiClient.callApi( - '/api/v1/services', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the patchNamespace operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~patchNamespaceCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Namespace} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * partially update the specified Namespace - * @param {String} name name of the Namespace - * @param {Object} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~patchNamespaceCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1Namespace} - */ - this.patchNamespace = function(name, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling patchNamespace"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling patchNamespace"); - } - - - var pathParams = { - 'name': name - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1Namespace; - - return this.apiClient.callApi( - '/api/v1/namespaces/{name}', 'PATCH', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the patchNamespaceStatus operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~patchNamespaceStatusCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Namespace} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * partially update status of the specified Namespace - * @param {String} name name of the Namespace - * @param {Object} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~patchNamespaceStatusCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1Namespace} - */ - this.patchNamespaceStatus = function(name, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling patchNamespaceStatus"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling patchNamespaceStatus"); - } - - - var pathParams = { - 'name': name - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1Namespace; - - return this.apiClient.callApi( - '/api/v1/namespaces/{name}/status', 'PATCH', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the patchNamespacedConfigMap operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~patchNamespacedConfigMapCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1ConfigMap} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * partially update the specified ConfigMap - * @param {String} name name of the ConfigMap - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~patchNamespacedConfigMapCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1ConfigMap} - */ - this.patchNamespacedConfigMap = function(name, namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling patchNamespacedConfigMap"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling patchNamespacedConfigMap"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling patchNamespacedConfigMap"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1ConfigMap; - - return this.apiClient.callApi( - '/api/v1/namespaces/{namespace}/configmaps/{name}', 'PATCH', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the patchNamespacedEndpoints operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~patchNamespacedEndpointsCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Endpoints} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * partially update the specified Endpoints - * @param {String} name name of the Endpoints - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~patchNamespacedEndpointsCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1Endpoints} - */ - this.patchNamespacedEndpoints = function(name, namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling patchNamespacedEndpoints"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling patchNamespacedEndpoints"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling patchNamespacedEndpoints"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1Endpoints; - - return this.apiClient.callApi( - '/api/v1/namespaces/{namespace}/endpoints/{name}', 'PATCH', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the patchNamespacedEvent operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~patchNamespacedEventCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Event} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * partially update the specified Event - * @param {String} name name of the Event - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~patchNamespacedEventCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1Event} - */ - this.patchNamespacedEvent = function(name, namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling patchNamespacedEvent"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling patchNamespacedEvent"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling patchNamespacedEvent"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1Event; - - return this.apiClient.callApi( - '/api/v1/namespaces/{namespace}/events/{name}', 'PATCH', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the patchNamespacedLimitRange operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~patchNamespacedLimitRangeCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1LimitRange} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * partially update the specified LimitRange - * @param {String} name name of the LimitRange - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~patchNamespacedLimitRangeCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1LimitRange} - */ - this.patchNamespacedLimitRange = function(name, namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling patchNamespacedLimitRange"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling patchNamespacedLimitRange"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling patchNamespacedLimitRange"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1LimitRange; - - return this.apiClient.callApi( - '/api/v1/namespaces/{namespace}/limitranges/{name}', 'PATCH', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the patchNamespacedPersistentVolumeClaim operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~patchNamespacedPersistentVolumeClaimCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1PersistentVolumeClaim} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * partially update the specified PersistentVolumeClaim - * @param {String} name name of the PersistentVolumeClaim - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~patchNamespacedPersistentVolumeClaimCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1PersistentVolumeClaim} - */ - this.patchNamespacedPersistentVolumeClaim = function(name, namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling patchNamespacedPersistentVolumeClaim"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling patchNamespacedPersistentVolumeClaim"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling patchNamespacedPersistentVolumeClaim"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1PersistentVolumeClaim; - - return this.apiClient.callApi( - '/api/v1/namespaces/{namespace}/persistentvolumeclaims/{name}', 'PATCH', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the patchNamespacedPersistentVolumeClaimStatus operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~patchNamespacedPersistentVolumeClaimStatusCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1PersistentVolumeClaim} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * partially update status of the specified PersistentVolumeClaim - * @param {String} name name of the PersistentVolumeClaim - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~patchNamespacedPersistentVolumeClaimStatusCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1PersistentVolumeClaim} - */ - this.patchNamespacedPersistentVolumeClaimStatus = function(name, namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling patchNamespacedPersistentVolumeClaimStatus"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling patchNamespacedPersistentVolumeClaimStatus"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling patchNamespacedPersistentVolumeClaimStatus"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1PersistentVolumeClaim; - - return this.apiClient.callApi( - '/api/v1/namespaces/{namespace}/persistentvolumeclaims/{name}/status', 'PATCH', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the patchNamespacedPod operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~patchNamespacedPodCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Pod} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * partially update the specified Pod - * @param {String} name name of the Pod - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~patchNamespacedPodCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1Pod} - */ - this.patchNamespacedPod = function(name, namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling patchNamespacedPod"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling patchNamespacedPod"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling patchNamespacedPod"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1Pod; - - return this.apiClient.callApi( - '/api/v1/namespaces/{namespace}/pods/{name}', 'PATCH', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the patchNamespacedPodStatus operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~patchNamespacedPodStatusCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Pod} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * partially update status of the specified Pod - * @param {String} name name of the Pod - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~patchNamespacedPodStatusCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1Pod} - */ - this.patchNamespacedPodStatus = function(name, namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling patchNamespacedPodStatus"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling patchNamespacedPodStatus"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling patchNamespacedPodStatus"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1Pod; - - return this.apiClient.callApi( - '/api/v1/namespaces/{namespace}/pods/{name}/status', 'PATCH', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the patchNamespacedPodTemplate operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~patchNamespacedPodTemplateCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1PodTemplate} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * partially update the specified PodTemplate - * @param {String} name name of the PodTemplate - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~patchNamespacedPodTemplateCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1PodTemplate} - */ - this.patchNamespacedPodTemplate = function(name, namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling patchNamespacedPodTemplate"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling patchNamespacedPodTemplate"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling patchNamespacedPodTemplate"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1PodTemplate; - - return this.apiClient.callApi( - '/api/v1/namespaces/{namespace}/podtemplates/{name}', 'PATCH', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the patchNamespacedReplicationController operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~patchNamespacedReplicationControllerCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1ReplicationController} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * partially update the specified ReplicationController - * @param {String} name name of the ReplicationController - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~patchNamespacedReplicationControllerCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1ReplicationController} - */ - this.patchNamespacedReplicationController = function(name, namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling patchNamespacedReplicationController"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling patchNamespacedReplicationController"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling patchNamespacedReplicationController"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1ReplicationController; - - return this.apiClient.callApi( - '/api/v1/namespaces/{namespace}/replicationcontrollers/{name}', 'PATCH', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the patchNamespacedReplicationControllerStatus operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~patchNamespacedReplicationControllerStatusCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1ReplicationController} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * partially update status of the specified ReplicationController - * @param {String} name name of the ReplicationController - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~patchNamespacedReplicationControllerStatusCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1ReplicationController} - */ - this.patchNamespacedReplicationControllerStatus = function(name, namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling patchNamespacedReplicationControllerStatus"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling patchNamespacedReplicationControllerStatus"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling patchNamespacedReplicationControllerStatus"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1ReplicationController; - - return this.apiClient.callApi( - '/api/v1/namespaces/{namespace}/replicationcontrollers/{name}/status', 'PATCH', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the patchNamespacedResourceQuota operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~patchNamespacedResourceQuotaCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1ResourceQuota} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * partially update the specified ResourceQuota - * @param {String} name name of the ResourceQuota - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~patchNamespacedResourceQuotaCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1ResourceQuota} - */ - this.patchNamespacedResourceQuota = function(name, namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling patchNamespacedResourceQuota"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling patchNamespacedResourceQuota"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling patchNamespacedResourceQuota"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1ResourceQuota; - - return this.apiClient.callApi( - '/api/v1/namespaces/{namespace}/resourcequotas/{name}', 'PATCH', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the patchNamespacedResourceQuotaStatus operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~patchNamespacedResourceQuotaStatusCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1ResourceQuota} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * partially update status of the specified ResourceQuota - * @param {String} name name of the ResourceQuota - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~patchNamespacedResourceQuotaStatusCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1ResourceQuota} - */ - this.patchNamespacedResourceQuotaStatus = function(name, namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling patchNamespacedResourceQuotaStatus"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling patchNamespacedResourceQuotaStatus"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling patchNamespacedResourceQuotaStatus"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1ResourceQuota; - - return this.apiClient.callApi( - '/api/v1/namespaces/{namespace}/resourcequotas/{name}/status', 'PATCH', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the patchNamespacedScaleScale operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~patchNamespacedScaleScaleCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Scale} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * partially update scale of the specified Scale - * @param {String} name name of the Scale - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~patchNamespacedScaleScaleCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1Scale} - */ - this.patchNamespacedScaleScale = function(name, namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling patchNamespacedScaleScale"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling patchNamespacedScaleScale"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling patchNamespacedScaleScale"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1Scale; - - return this.apiClient.callApi( - '/api/v1/namespaces/{namespace}/replicationcontrollers/{name}/scale', 'PATCH', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the patchNamespacedSecret operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~patchNamespacedSecretCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Secret} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * partially update the specified Secret - * @param {String} name name of the Secret - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~patchNamespacedSecretCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1Secret} - */ - this.patchNamespacedSecret = function(name, namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling patchNamespacedSecret"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling patchNamespacedSecret"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling patchNamespacedSecret"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1Secret; - - return this.apiClient.callApi( - '/api/v1/namespaces/{namespace}/secrets/{name}', 'PATCH', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the patchNamespacedService operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~patchNamespacedServiceCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Service} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * partially update the specified Service - * @param {String} name name of the Service - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~patchNamespacedServiceCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1Service} - */ - this.patchNamespacedService = function(name, namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling patchNamespacedService"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling patchNamespacedService"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling patchNamespacedService"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1Service; - - return this.apiClient.callApi( - '/api/v1/namespaces/{namespace}/services/{name}', 'PATCH', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the patchNamespacedServiceAccount operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~patchNamespacedServiceAccountCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1ServiceAccount} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * partially update the specified ServiceAccount - * @param {String} name name of the ServiceAccount - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~patchNamespacedServiceAccountCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1ServiceAccount} - */ - this.patchNamespacedServiceAccount = function(name, namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling patchNamespacedServiceAccount"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling patchNamespacedServiceAccount"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling patchNamespacedServiceAccount"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1ServiceAccount; - - return this.apiClient.callApi( - '/api/v1/namespaces/{namespace}/serviceaccounts/{name}', 'PATCH', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the patchNamespacedServiceStatus operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~patchNamespacedServiceStatusCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Service} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * partially update status of the specified Service - * @param {String} name name of the Service - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~patchNamespacedServiceStatusCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1Service} - */ - this.patchNamespacedServiceStatus = function(name, namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling patchNamespacedServiceStatus"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling patchNamespacedServiceStatus"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling patchNamespacedServiceStatus"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1Service; - - return this.apiClient.callApi( - '/api/v1/namespaces/{namespace}/services/{name}/status', 'PATCH', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the patchNode operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~patchNodeCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Node} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * partially update the specified Node - * @param {String} name name of the Node - * @param {Object} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~patchNodeCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1Node} - */ - this.patchNode = function(name, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling patchNode"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling patchNode"); - } - - - var pathParams = { - 'name': name - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1Node; - - return this.apiClient.callApi( - '/api/v1/nodes/{name}', 'PATCH', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the patchNodeStatus operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~patchNodeStatusCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Node} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * partially update status of the specified Node - * @param {String} name name of the Node - * @param {Object} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~patchNodeStatusCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1Node} - */ - this.patchNodeStatus = function(name, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling patchNodeStatus"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling patchNodeStatus"); - } - - - var pathParams = { - 'name': name - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1Node; - - return this.apiClient.callApi( - '/api/v1/nodes/{name}/status', 'PATCH', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the patchPersistentVolume operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~patchPersistentVolumeCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1PersistentVolume} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * partially update the specified PersistentVolume - * @param {String} name name of the PersistentVolume - * @param {Object} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~patchPersistentVolumeCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1PersistentVolume} - */ - this.patchPersistentVolume = function(name, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling patchPersistentVolume"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling patchPersistentVolume"); - } - - - var pathParams = { - 'name': name - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1PersistentVolume; - - return this.apiClient.callApi( - '/api/v1/persistentvolumes/{name}', 'PATCH', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the patchPersistentVolumeStatus operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~patchPersistentVolumeStatusCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1PersistentVolume} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * partially update status of the specified PersistentVolume - * @param {String} name name of the PersistentVolume - * @param {Object} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~patchPersistentVolumeStatusCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1PersistentVolume} - */ - this.patchPersistentVolumeStatus = function(name, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling patchPersistentVolumeStatus"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling patchPersistentVolumeStatus"); - } - - - var pathParams = { - 'name': name - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1PersistentVolume; - - return this.apiClient.callApi( - '/api/v1/persistentvolumes/{name}/status', 'PATCH', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the proxyDELETENamespacedPod operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~proxyDELETENamespacedPodCallback - * @param {String} error Error message, if any. - * @param {'String'} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * proxy DELETE requests to Pod - * @param {String} name name of the Pod - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~proxyDELETENamespacedPodCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link 'String'} - */ - this.proxyDELETENamespacedPod = function(name, namespace, callback) { - var postBody = null; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling proxyDELETENamespacedPod"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling proxyDELETENamespacedPod"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['*/*']; - var returnType = 'String'; - - return this.apiClient.callApi( - '/api/v1/proxy/namespaces/{namespace}/pods/{name}', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the proxyDELETENamespacedPodWithPath operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~proxyDELETENamespacedPodWithPathCallback - * @param {String} error Error message, if any. - * @param {'String'} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * proxy DELETE requests to Pod - * @param {String} name name of the Pod - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {String} path path to the resource - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~proxyDELETENamespacedPodWithPathCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link 'String'} - */ - this.proxyDELETENamespacedPodWithPath = function(name, namespace, path, callback) { - var postBody = null; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling proxyDELETENamespacedPodWithPath"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling proxyDELETENamespacedPodWithPath"); - } - - // verify the required parameter 'path' is set - if (path == undefined || path == null) { - throw new Error("Missing the required parameter 'path' when calling proxyDELETENamespacedPodWithPath"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace, - 'path': path - }; - var queryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['*/*']; - var returnType = 'String'; - - return this.apiClient.callApi( - '/api/v1/proxy/namespaces/{namespace}/pods/{name}/{path}', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the proxyDELETENamespacedService operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~proxyDELETENamespacedServiceCallback - * @param {String} error Error message, if any. - * @param {'String'} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * proxy DELETE requests to Service - * @param {String} name name of the Service - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~proxyDELETENamespacedServiceCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link 'String'} - */ - this.proxyDELETENamespacedService = function(name, namespace, callback) { - var postBody = null; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling proxyDELETENamespacedService"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling proxyDELETENamespacedService"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['*/*']; - var returnType = 'String'; - - return this.apiClient.callApi( - '/api/v1/proxy/namespaces/{namespace}/services/{name}', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the proxyDELETENamespacedServiceWithPath operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~proxyDELETENamespacedServiceWithPathCallback - * @param {String} error Error message, if any. - * @param {'String'} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * proxy DELETE requests to Service - * @param {String} name name of the Service - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {String} path path to the resource - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~proxyDELETENamespacedServiceWithPathCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link 'String'} - */ - this.proxyDELETENamespacedServiceWithPath = function(name, namespace, path, callback) { - var postBody = null; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling proxyDELETENamespacedServiceWithPath"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling proxyDELETENamespacedServiceWithPath"); - } - - // verify the required parameter 'path' is set - if (path == undefined || path == null) { - throw new Error("Missing the required parameter 'path' when calling proxyDELETENamespacedServiceWithPath"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace, - 'path': path - }; - var queryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['*/*']; - var returnType = 'String'; - - return this.apiClient.callApi( - '/api/v1/proxy/namespaces/{namespace}/services/{name}/{path}', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the proxyDELETENode operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~proxyDELETENodeCallback - * @param {String} error Error message, if any. - * @param {'String'} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * proxy DELETE requests to Node - * @param {String} name name of the Node - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~proxyDELETENodeCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link 'String'} - */ - this.proxyDELETENode = function(name, callback) { - var postBody = null; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling proxyDELETENode"); - } - - - var pathParams = { - 'name': name - }; - var queryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['*/*']; - var returnType = 'String'; - - return this.apiClient.callApi( - '/api/v1/proxy/nodes/{name}', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the proxyDELETENodeWithPath operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~proxyDELETENodeWithPathCallback - * @param {String} error Error message, if any. - * @param {'String'} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * proxy DELETE requests to Node - * @param {String} name name of the Node - * @param {String} path path to the resource - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~proxyDELETENodeWithPathCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link 'String'} - */ - this.proxyDELETENodeWithPath = function(name, path, callback) { - var postBody = null; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling proxyDELETENodeWithPath"); - } - - // verify the required parameter 'path' is set - if (path == undefined || path == null) { - throw new Error("Missing the required parameter 'path' when calling proxyDELETENodeWithPath"); - } - - - var pathParams = { - 'name': name, - 'path': path - }; - var queryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['*/*']; - var returnType = 'String'; - - return this.apiClient.callApi( - '/api/v1/proxy/nodes/{name}/{path}', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the proxyGETNamespacedPod operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~proxyGETNamespacedPodCallback - * @param {String} error Error message, if any. - * @param {'String'} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * proxy GET requests to Pod - * @param {String} name name of the Pod - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~proxyGETNamespacedPodCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link 'String'} - */ - this.proxyGETNamespacedPod = function(name, namespace, callback) { - var postBody = null; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling proxyGETNamespacedPod"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling proxyGETNamespacedPod"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['*/*']; - var returnType = 'String'; - - return this.apiClient.callApi( - '/api/v1/proxy/namespaces/{namespace}/pods/{name}', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the proxyGETNamespacedPodWithPath operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~proxyGETNamespacedPodWithPathCallback - * @param {String} error Error message, if any. - * @param {'String'} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * proxy GET requests to Pod - * @param {String} name name of the Pod - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {String} path path to the resource - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~proxyGETNamespacedPodWithPathCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link 'String'} - */ - this.proxyGETNamespacedPodWithPath = function(name, namespace, path, callback) { - var postBody = null; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling proxyGETNamespacedPodWithPath"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling proxyGETNamespacedPodWithPath"); - } - - // verify the required parameter 'path' is set - if (path == undefined || path == null) { - throw new Error("Missing the required parameter 'path' when calling proxyGETNamespacedPodWithPath"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace, - 'path': path - }; - var queryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['*/*']; - var returnType = 'String'; - - return this.apiClient.callApi( - '/api/v1/proxy/namespaces/{namespace}/pods/{name}/{path}', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the proxyGETNamespacedService operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~proxyGETNamespacedServiceCallback - * @param {String} error Error message, if any. - * @param {'String'} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * proxy GET requests to Service - * @param {String} name name of the Service - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~proxyGETNamespacedServiceCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link 'String'} - */ - this.proxyGETNamespacedService = function(name, namespace, callback) { - var postBody = null; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling proxyGETNamespacedService"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling proxyGETNamespacedService"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['*/*']; - var returnType = 'String'; - - return this.apiClient.callApi( - '/api/v1/proxy/namespaces/{namespace}/services/{name}', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the proxyGETNamespacedServiceWithPath operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~proxyGETNamespacedServiceWithPathCallback - * @param {String} error Error message, if any. - * @param {'String'} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * proxy GET requests to Service - * @param {String} name name of the Service - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {String} path path to the resource - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~proxyGETNamespacedServiceWithPathCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link 'String'} - */ - this.proxyGETNamespacedServiceWithPath = function(name, namespace, path, callback) { - var postBody = null; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling proxyGETNamespacedServiceWithPath"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling proxyGETNamespacedServiceWithPath"); - } - - // verify the required parameter 'path' is set - if (path == undefined || path == null) { - throw new Error("Missing the required parameter 'path' when calling proxyGETNamespacedServiceWithPath"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace, - 'path': path - }; - var queryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['*/*']; - var returnType = 'String'; - - return this.apiClient.callApi( - '/api/v1/proxy/namespaces/{namespace}/services/{name}/{path}', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the proxyGETNode operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~proxyGETNodeCallback - * @param {String} error Error message, if any. - * @param {'String'} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * proxy GET requests to Node - * @param {String} name name of the Node - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~proxyGETNodeCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link 'String'} - */ - this.proxyGETNode = function(name, callback) { - var postBody = null; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling proxyGETNode"); - } - - - var pathParams = { - 'name': name - }; - var queryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['*/*']; - var returnType = 'String'; - - return this.apiClient.callApi( - '/api/v1/proxy/nodes/{name}', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the proxyGETNodeWithPath operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~proxyGETNodeWithPathCallback - * @param {String} error Error message, if any. - * @param {'String'} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * proxy GET requests to Node - * @param {String} name name of the Node - * @param {String} path path to the resource - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~proxyGETNodeWithPathCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link 'String'} - */ - this.proxyGETNodeWithPath = function(name, path, callback) { - var postBody = null; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling proxyGETNodeWithPath"); - } - - // verify the required parameter 'path' is set - if (path == undefined || path == null) { - throw new Error("Missing the required parameter 'path' when calling proxyGETNodeWithPath"); - } - - - var pathParams = { - 'name': name, - 'path': path - }; - var queryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['*/*']; - var returnType = 'String'; - - return this.apiClient.callApi( - '/api/v1/proxy/nodes/{name}/{path}', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the proxyHEADNamespacedPod operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~proxyHEADNamespacedPodCallback - * @param {String} error Error message, if any. - * @param {'String'} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * proxy HEAD requests to Pod - * @param {String} name name of the Pod - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~proxyHEADNamespacedPodCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link 'String'} - */ - this.proxyHEADNamespacedPod = function(name, namespace, callback) { - var postBody = null; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling proxyHEADNamespacedPod"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling proxyHEADNamespacedPod"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['*/*']; - var returnType = 'String'; - - return this.apiClient.callApi( - '/api/v1/proxy/namespaces/{namespace}/pods/{name}', 'HEAD', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the proxyHEADNamespacedPodWithPath operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~proxyHEADNamespacedPodWithPathCallback - * @param {String} error Error message, if any. - * @param {'String'} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * proxy HEAD requests to Pod - * @param {String} name name of the Pod - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {String} path path to the resource - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~proxyHEADNamespacedPodWithPathCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link 'String'} - */ - this.proxyHEADNamespacedPodWithPath = function(name, namespace, path, callback) { - var postBody = null; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling proxyHEADNamespacedPodWithPath"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling proxyHEADNamespacedPodWithPath"); - } - - // verify the required parameter 'path' is set - if (path == undefined || path == null) { - throw new Error("Missing the required parameter 'path' when calling proxyHEADNamespacedPodWithPath"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace, - 'path': path - }; - var queryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['*/*']; - var returnType = 'String'; - - return this.apiClient.callApi( - '/api/v1/proxy/namespaces/{namespace}/pods/{name}/{path}', 'HEAD', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the proxyHEADNamespacedService operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~proxyHEADNamespacedServiceCallback - * @param {String} error Error message, if any. - * @param {'String'} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * proxy HEAD requests to Service - * @param {String} name name of the Service - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~proxyHEADNamespacedServiceCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link 'String'} - */ - this.proxyHEADNamespacedService = function(name, namespace, callback) { - var postBody = null; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling proxyHEADNamespacedService"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling proxyHEADNamespacedService"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['*/*']; - var returnType = 'String'; - - return this.apiClient.callApi( - '/api/v1/proxy/namespaces/{namespace}/services/{name}', 'HEAD', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the proxyHEADNamespacedServiceWithPath operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~proxyHEADNamespacedServiceWithPathCallback - * @param {String} error Error message, if any. - * @param {'String'} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * proxy HEAD requests to Service - * @param {String} name name of the Service - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {String} path path to the resource - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~proxyHEADNamespacedServiceWithPathCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link 'String'} - */ - this.proxyHEADNamespacedServiceWithPath = function(name, namespace, path, callback) { - var postBody = null; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling proxyHEADNamespacedServiceWithPath"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling proxyHEADNamespacedServiceWithPath"); - } - - // verify the required parameter 'path' is set - if (path == undefined || path == null) { - throw new Error("Missing the required parameter 'path' when calling proxyHEADNamespacedServiceWithPath"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace, - 'path': path - }; - var queryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['*/*']; - var returnType = 'String'; - - return this.apiClient.callApi( - '/api/v1/proxy/namespaces/{namespace}/services/{name}/{path}', 'HEAD', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the proxyHEADNode operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~proxyHEADNodeCallback - * @param {String} error Error message, if any. - * @param {'String'} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * proxy HEAD requests to Node - * @param {String} name name of the Node - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~proxyHEADNodeCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link 'String'} - */ - this.proxyHEADNode = function(name, callback) { - var postBody = null; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling proxyHEADNode"); - } - - - var pathParams = { - 'name': name - }; - var queryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['*/*']; - var returnType = 'String'; - - return this.apiClient.callApi( - '/api/v1/proxy/nodes/{name}', 'HEAD', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the proxyHEADNodeWithPath operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~proxyHEADNodeWithPathCallback - * @param {String} error Error message, if any. - * @param {'String'} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * proxy HEAD requests to Node - * @param {String} name name of the Node - * @param {String} path path to the resource - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~proxyHEADNodeWithPathCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link 'String'} - */ - this.proxyHEADNodeWithPath = function(name, path, callback) { - var postBody = null; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling proxyHEADNodeWithPath"); - } - - // verify the required parameter 'path' is set - if (path == undefined || path == null) { - throw new Error("Missing the required parameter 'path' when calling proxyHEADNodeWithPath"); - } - - - var pathParams = { - 'name': name, - 'path': path - }; - var queryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['*/*']; - var returnType = 'String'; - - return this.apiClient.callApi( - '/api/v1/proxy/nodes/{name}/{path}', 'HEAD', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the proxyOPTIONSNamespacedPod operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~proxyOPTIONSNamespacedPodCallback - * @param {String} error Error message, if any. - * @param {'String'} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * proxy OPTIONS requests to Pod - * @param {String} name name of the Pod - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~proxyOPTIONSNamespacedPodCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link 'String'} - */ - this.proxyOPTIONSNamespacedPod = function(name, namespace, callback) { - var postBody = null; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling proxyOPTIONSNamespacedPod"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling proxyOPTIONSNamespacedPod"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['*/*']; - var returnType = 'String'; - - return this.apiClient.callApi( - '/api/v1/proxy/namespaces/{namespace}/pods/{name}', 'OPTIONS', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the proxyOPTIONSNamespacedPodWithPath operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~proxyOPTIONSNamespacedPodWithPathCallback - * @param {String} error Error message, if any. - * @param {'String'} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * proxy OPTIONS requests to Pod - * @param {String} name name of the Pod - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {String} path path to the resource - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~proxyOPTIONSNamespacedPodWithPathCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link 'String'} - */ - this.proxyOPTIONSNamespacedPodWithPath = function(name, namespace, path, callback) { - var postBody = null; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling proxyOPTIONSNamespacedPodWithPath"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling proxyOPTIONSNamespacedPodWithPath"); - } - - // verify the required parameter 'path' is set - if (path == undefined || path == null) { - throw new Error("Missing the required parameter 'path' when calling proxyOPTIONSNamespacedPodWithPath"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace, - 'path': path - }; - var queryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['*/*']; - var returnType = 'String'; - - return this.apiClient.callApi( - '/api/v1/proxy/namespaces/{namespace}/pods/{name}/{path}', 'OPTIONS', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the proxyOPTIONSNamespacedService operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~proxyOPTIONSNamespacedServiceCallback - * @param {String} error Error message, if any. - * @param {'String'} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * proxy OPTIONS requests to Service - * @param {String} name name of the Service - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~proxyOPTIONSNamespacedServiceCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link 'String'} - */ - this.proxyOPTIONSNamespacedService = function(name, namespace, callback) { - var postBody = null; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling proxyOPTIONSNamespacedService"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling proxyOPTIONSNamespacedService"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['*/*']; - var returnType = 'String'; - - return this.apiClient.callApi( - '/api/v1/proxy/namespaces/{namespace}/services/{name}', 'OPTIONS', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the proxyOPTIONSNamespacedServiceWithPath operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~proxyOPTIONSNamespacedServiceWithPathCallback - * @param {String} error Error message, if any. - * @param {'String'} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * proxy OPTIONS requests to Service - * @param {String} name name of the Service - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {String} path path to the resource - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~proxyOPTIONSNamespacedServiceWithPathCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link 'String'} - */ - this.proxyOPTIONSNamespacedServiceWithPath = function(name, namespace, path, callback) { - var postBody = null; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling proxyOPTIONSNamespacedServiceWithPath"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling proxyOPTIONSNamespacedServiceWithPath"); - } - - // verify the required parameter 'path' is set - if (path == undefined || path == null) { - throw new Error("Missing the required parameter 'path' when calling proxyOPTIONSNamespacedServiceWithPath"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace, - 'path': path - }; - var queryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['*/*']; - var returnType = 'String'; - - return this.apiClient.callApi( - '/api/v1/proxy/namespaces/{namespace}/services/{name}/{path}', 'OPTIONS', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the proxyOPTIONSNode operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~proxyOPTIONSNodeCallback - * @param {String} error Error message, if any. - * @param {'String'} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * proxy OPTIONS requests to Node - * @param {String} name name of the Node - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~proxyOPTIONSNodeCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link 'String'} - */ - this.proxyOPTIONSNode = function(name, callback) { - var postBody = null; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling proxyOPTIONSNode"); - } - - - var pathParams = { - 'name': name - }; - var queryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['*/*']; - var returnType = 'String'; - - return this.apiClient.callApi( - '/api/v1/proxy/nodes/{name}', 'OPTIONS', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the proxyOPTIONSNodeWithPath operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~proxyOPTIONSNodeWithPathCallback - * @param {String} error Error message, if any. - * @param {'String'} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * proxy OPTIONS requests to Node - * @param {String} name name of the Node - * @param {String} path path to the resource - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~proxyOPTIONSNodeWithPathCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link 'String'} - */ - this.proxyOPTIONSNodeWithPath = function(name, path, callback) { - var postBody = null; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling proxyOPTIONSNodeWithPath"); - } - - // verify the required parameter 'path' is set - if (path == undefined || path == null) { - throw new Error("Missing the required parameter 'path' when calling proxyOPTIONSNodeWithPath"); - } - - - var pathParams = { - 'name': name, - 'path': path - }; - var queryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['*/*']; - var returnType = 'String'; - - return this.apiClient.callApi( - '/api/v1/proxy/nodes/{name}/{path}', 'OPTIONS', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the proxyPATCHNamespacedPod operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~proxyPATCHNamespacedPodCallback - * @param {String} error Error message, if any. - * @param {'String'} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * proxy PATCH requests to Pod - * @param {String} name name of the Pod - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~proxyPATCHNamespacedPodCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link 'String'} - */ - this.proxyPATCHNamespacedPod = function(name, namespace, callback) { - var postBody = null; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling proxyPATCHNamespacedPod"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling proxyPATCHNamespacedPod"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['*/*']; - var returnType = 'String'; - - return this.apiClient.callApi( - '/api/v1/proxy/namespaces/{namespace}/pods/{name}', 'PATCH', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the proxyPATCHNamespacedPodWithPath operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~proxyPATCHNamespacedPodWithPathCallback - * @param {String} error Error message, if any. - * @param {'String'} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * proxy PATCH requests to Pod - * @param {String} name name of the Pod - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {String} path path to the resource - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~proxyPATCHNamespacedPodWithPathCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link 'String'} - */ - this.proxyPATCHNamespacedPodWithPath = function(name, namespace, path, callback) { - var postBody = null; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling proxyPATCHNamespacedPodWithPath"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling proxyPATCHNamespacedPodWithPath"); - } - - // verify the required parameter 'path' is set - if (path == undefined || path == null) { - throw new Error("Missing the required parameter 'path' when calling proxyPATCHNamespacedPodWithPath"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace, - 'path': path - }; - var queryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['*/*']; - var returnType = 'String'; - - return this.apiClient.callApi( - '/api/v1/proxy/namespaces/{namespace}/pods/{name}/{path}', 'PATCH', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the proxyPATCHNamespacedService operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~proxyPATCHNamespacedServiceCallback - * @param {String} error Error message, if any. - * @param {'String'} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * proxy PATCH requests to Service - * @param {String} name name of the Service - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~proxyPATCHNamespacedServiceCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link 'String'} - */ - this.proxyPATCHNamespacedService = function(name, namespace, callback) { - var postBody = null; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling proxyPATCHNamespacedService"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling proxyPATCHNamespacedService"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['*/*']; - var returnType = 'String'; - - return this.apiClient.callApi( - '/api/v1/proxy/namespaces/{namespace}/services/{name}', 'PATCH', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the proxyPATCHNamespacedServiceWithPath operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~proxyPATCHNamespacedServiceWithPathCallback - * @param {String} error Error message, if any. - * @param {'String'} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * proxy PATCH requests to Service - * @param {String} name name of the Service - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {String} path path to the resource - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~proxyPATCHNamespacedServiceWithPathCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link 'String'} - */ - this.proxyPATCHNamespacedServiceWithPath = function(name, namespace, path, callback) { - var postBody = null; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling proxyPATCHNamespacedServiceWithPath"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling proxyPATCHNamespacedServiceWithPath"); - } - - // verify the required parameter 'path' is set - if (path == undefined || path == null) { - throw new Error("Missing the required parameter 'path' when calling proxyPATCHNamespacedServiceWithPath"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace, - 'path': path - }; - var queryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['*/*']; - var returnType = 'String'; - - return this.apiClient.callApi( - '/api/v1/proxy/namespaces/{namespace}/services/{name}/{path}', 'PATCH', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the proxyPATCHNode operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~proxyPATCHNodeCallback - * @param {String} error Error message, if any. - * @param {'String'} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * proxy PATCH requests to Node - * @param {String} name name of the Node - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~proxyPATCHNodeCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link 'String'} - */ - this.proxyPATCHNode = function(name, callback) { - var postBody = null; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling proxyPATCHNode"); - } - - - var pathParams = { - 'name': name - }; - var queryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['*/*']; - var returnType = 'String'; - - return this.apiClient.callApi( - '/api/v1/proxy/nodes/{name}', 'PATCH', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the proxyPATCHNodeWithPath operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~proxyPATCHNodeWithPathCallback - * @param {String} error Error message, if any. - * @param {'String'} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * proxy PATCH requests to Node - * @param {String} name name of the Node - * @param {String} path path to the resource - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~proxyPATCHNodeWithPathCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link 'String'} - */ - this.proxyPATCHNodeWithPath = function(name, path, callback) { - var postBody = null; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling proxyPATCHNodeWithPath"); - } - - // verify the required parameter 'path' is set - if (path == undefined || path == null) { - throw new Error("Missing the required parameter 'path' when calling proxyPATCHNodeWithPath"); - } - - - var pathParams = { - 'name': name, - 'path': path - }; - var queryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['*/*']; - var returnType = 'String'; - - return this.apiClient.callApi( - '/api/v1/proxy/nodes/{name}/{path}', 'PATCH', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the proxyPOSTNamespacedPod operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~proxyPOSTNamespacedPodCallback - * @param {String} error Error message, if any. - * @param {'String'} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * proxy POST requests to Pod - * @param {String} name name of the Pod - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~proxyPOSTNamespacedPodCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link 'String'} - */ - this.proxyPOSTNamespacedPod = function(name, namespace, callback) { - var postBody = null; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling proxyPOSTNamespacedPod"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling proxyPOSTNamespacedPod"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['*/*']; - var returnType = 'String'; - - return this.apiClient.callApi( - '/api/v1/proxy/namespaces/{namespace}/pods/{name}', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the proxyPOSTNamespacedPodWithPath operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~proxyPOSTNamespacedPodWithPathCallback - * @param {String} error Error message, if any. - * @param {'String'} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * proxy POST requests to Pod - * @param {String} name name of the Pod - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {String} path path to the resource - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~proxyPOSTNamespacedPodWithPathCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link 'String'} - */ - this.proxyPOSTNamespacedPodWithPath = function(name, namespace, path, callback) { - var postBody = null; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling proxyPOSTNamespacedPodWithPath"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling proxyPOSTNamespacedPodWithPath"); - } - - // verify the required parameter 'path' is set - if (path == undefined || path == null) { - throw new Error("Missing the required parameter 'path' when calling proxyPOSTNamespacedPodWithPath"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace, - 'path': path - }; - var queryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['*/*']; - var returnType = 'String'; - - return this.apiClient.callApi( - '/api/v1/proxy/namespaces/{namespace}/pods/{name}/{path}', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the proxyPOSTNamespacedService operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~proxyPOSTNamespacedServiceCallback - * @param {String} error Error message, if any. - * @param {'String'} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * proxy POST requests to Service - * @param {String} name name of the Service - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~proxyPOSTNamespacedServiceCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link 'String'} - */ - this.proxyPOSTNamespacedService = function(name, namespace, callback) { - var postBody = null; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling proxyPOSTNamespacedService"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling proxyPOSTNamespacedService"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['*/*']; - var returnType = 'String'; - - return this.apiClient.callApi( - '/api/v1/proxy/namespaces/{namespace}/services/{name}', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the proxyPOSTNamespacedServiceWithPath operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~proxyPOSTNamespacedServiceWithPathCallback - * @param {String} error Error message, if any. - * @param {'String'} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * proxy POST requests to Service - * @param {String} name name of the Service - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {String} path path to the resource - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~proxyPOSTNamespacedServiceWithPathCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link 'String'} - */ - this.proxyPOSTNamespacedServiceWithPath = function(name, namespace, path, callback) { - var postBody = null; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling proxyPOSTNamespacedServiceWithPath"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling proxyPOSTNamespacedServiceWithPath"); - } - - // verify the required parameter 'path' is set - if (path == undefined || path == null) { - throw new Error("Missing the required parameter 'path' when calling proxyPOSTNamespacedServiceWithPath"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace, - 'path': path - }; - var queryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['*/*']; - var returnType = 'String'; - - return this.apiClient.callApi( - '/api/v1/proxy/namespaces/{namespace}/services/{name}/{path}', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the proxyPOSTNode operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~proxyPOSTNodeCallback - * @param {String} error Error message, if any. - * @param {'String'} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * proxy POST requests to Node - * @param {String} name name of the Node - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~proxyPOSTNodeCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link 'String'} - */ - this.proxyPOSTNode = function(name, callback) { - var postBody = null; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling proxyPOSTNode"); - } - - - var pathParams = { - 'name': name - }; - var queryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['*/*']; - var returnType = 'String'; - - return this.apiClient.callApi( - '/api/v1/proxy/nodes/{name}', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the proxyPOSTNodeWithPath operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~proxyPOSTNodeWithPathCallback - * @param {String} error Error message, if any. - * @param {'String'} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * proxy POST requests to Node - * @param {String} name name of the Node - * @param {String} path path to the resource - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~proxyPOSTNodeWithPathCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link 'String'} - */ - this.proxyPOSTNodeWithPath = function(name, path, callback) { - var postBody = null; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling proxyPOSTNodeWithPath"); - } - - // verify the required parameter 'path' is set - if (path == undefined || path == null) { - throw new Error("Missing the required parameter 'path' when calling proxyPOSTNodeWithPath"); - } - - - var pathParams = { - 'name': name, - 'path': path - }; - var queryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['*/*']; - var returnType = 'String'; - - return this.apiClient.callApi( - '/api/v1/proxy/nodes/{name}/{path}', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the proxyPUTNamespacedPod operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~proxyPUTNamespacedPodCallback - * @param {String} error Error message, if any. - * @param {'String'} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * proxy PUT requests to Pod - * @param {String} name name of the Pod - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~proxyPUTNamespacedPodCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link 'String'} - */ - this.proxyPUTNamespacedPod = function(name, namespace, callback) { - var postBody = null; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling proxyPUTNamespacedPod"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling proxyPUTNamespacedPod"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['*/*']; - var returnType = 'String'; - - return this.apiClient.callApi( - '/api/v1/proxy/namespaces/{namespace}/pods/{name}', 'PUT', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the proxyPUTNamespacedPodWithPath operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~proxyPUTNamespacedPodWithPathCallback - * @param {String} error Error message, if any. - * @param {'String'} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * proxy PUT requests to Pod - * @param {String} name name of the Pod - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {String} path path to the resource - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~proxyPUTNamespacedPodWithPathCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link 'String'} - */ - this.proxyPUTNamespacedPodWithPath = function(name, namespace, path, callback) { - var postBody = null; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling proxyPUTNamespacedPodWithPath"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling proxyPUTNamespacedPodWithPath"); - } - - // verify the required parameter 'path' is set - if (path == undefined || path == null) { - throw new Error("Missing the required parameter 'path' when calling proxyPUTNamespacedPodWithPath"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace, - 'path': path - }; - var queryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['*/*']; - var returnType = 'String'; - - return this.apiClient.callApi( - '/api/v1/proxy/namespaces/{namespace}/pods/{name}/{path}', 'PUT', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the proxyPUTNamespacedService operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~proxyPUTNamespacedServiceCallback - * @param {String} error Error message, if any. - * @param {'String'} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * proxy PUT requests to Service - * @param {String} name name of the Service - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~proxyPUTNamespacedServiceCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link 'String'} - */ - this.proxyPUTNamespacedService = function(name, namespace, callback) { - var postBody = null; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling proxyPUTNamespacedService"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling proxyPUTNamespacedService"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['*/*']; - var returnType = 'String'; - - return this.apiClient.callApi( - '/api/v1/proxy/namespaces/{namespace}/services/{name}', 'PUT', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the proxyPUTNamespacedServiceWithPath operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~proxyPUTNamespacedServiceWithPathCallback - * @param {String} error Error message, if any. - * @param {'String'} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * proxy PUT requests to Service - * @param {String} name name of the Service - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {String} path path to the resource - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~proxyPUTNamespacedServiceWithPathCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link 'String'} - */ - this.proxyPUTNamespacedServiceWithPath = function(name, namespace, path, callback) { - var postBody = null; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling proxyPUTNamespacedServiceWithPath"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling proxyPUTNamespacedServiceWithPath"); - } - - // verify the required parameter 'path' is set - if (path == undefined || path == null) { - throw new Error("Missing the required parameter 'path' when calling proxyPUTNamespacedServiceWithPath"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace, - 'path': path - }; - var queryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['*/*']; - var returnType = 'String'; - - return this.apiClient.callApi( - '/api/v1/proxy/namespaces/{namespace}/services/{name}/{path}', 'PUT', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the proxyPUTNode operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~proxyPUTNodeCallback - * @param {String} error Error message, if any. - * @param {'String'} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * proxy PUT requests to Node - * @param {String} name name of the Node - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~proxyPUTNodeCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link 'String'} - */ - this.proxyPUTNode = function(name, callback) { - var postBody = null; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling proxyPUTNode"); - } - - - var pathParams = { - 'name': name - }; - var queryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['*/*']; - var returnType = 'String'; - - return this.apiClient.callApi( - '/api/v1/proxy/nodes/{name}', 'PUT', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the proxyPUTNodeWithPath operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~proxyPUTNodeWithPathCallback - * @param {String} error Error message, if any. - * @param {'String'} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * proxy PUT requests to Node - * @param {String} name name of the Node - * @param {String} path path to the resource - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~proxyPUTNodeWithPathCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link 'String'} - */ - this.proxyPUTNodeWithPath = function(name, path, callback) { - var postBody = null; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling proxyPUTNodeWithPath"); - } - - // verify the required parameter 'path' is set - if (path == undefined || path == null) { - throw new Error("Missing the required parameter 'path' when calling proxyPUTNodeWithPath"); - } - - - var pathParams = { - 'name': name, - 'path': path - }; - var queryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['*/*']; - var returnType = 'String'; - - return this.apiClient.callApi( - '/api/v1/proxy/nodes/{name}/{path}', 'PUT', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the readComponentStatus operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~readComponentStatusCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1ComponentStatus} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * read the specified ComponentStatus - * @param {String} name name of the ComponentStatus - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~readComponentStatusCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1ComponentStatus} - */ - this.readComponentStatus = function(name, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling readComponentStatus"); - } - - - var pathParams = { - 'name': name - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1ComponentStatus; - - return this.apiClient.callApi( - '/api/v1/componentstatuses/{name}', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the readNamespace operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~readNamespaceCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Namespace} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * read the specified Namespace - * @param {String} name name of the Namespace - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {Boolean} opts.exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. - * @param {Boolean} opts._export Should this value be exported. Export strips fields that a user can not specify. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~readNamespaceCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1Namespace} - */ - this.readNamespace = function(name, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling readNamespace"); - } - - - var pathParams = { - 'name': name - }; - var queryParams = { - 'pretty': opts['pretty'], - 'exact': opts['exact'], - 'export': opts['_export'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1Namespace; - - return this.apiClient.callApi( - '/api/v1/namespaces/{name}', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the readNamespaceStatus operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~readNamespaceStatusCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Namespace} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * read status of the specified Namespace - * @param {String} name name of the Namespace - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~readNamespaceStatusCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1Namespace} - */ - this.readNamespaceStatus = function(name, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling readNamespaceStatus"); - } - - - var pathParams = { - 'name': name - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1Namespace; - - return this.apiClient.callApi( - '/api/v1/namespaces/{name}/status', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the readNamespacedConfigMap operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~readNamespacedConfigMapCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1ConfigMap} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * read the specified ConfigMap - * @param {String} name name of the ConfigMap - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {Boolean} opts.exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. - * @param {Boolean} opts._export Should this value be exported. Export strips fields that a user can not specify. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~readNamespacedConfigMapCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1ConfigMap} - */ - this.readNamespacedConfigMap = function(name, namespace, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling readNamespacedConfigMap"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling readNamespacedConfigMap"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'], - 'exact': opts['exact'], - 'export': opts['_export'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1ConfigMap; - - return this.apiClient.callApi( - '/api/v1/namespaces/{namespace}/configmaps/{name}', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the readNamespacedEndpoints operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~readNamespacedEndpointsCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Endpoints} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * read the specified Endpoints - * @param {String} name name of the Endpoints - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {Boolean} opts.exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. - * @param {Boolean} opts._export Should this value be exported. Export strips fields that a user can not specify. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~readNamespacedEndpointsCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1Endpoints} - */ - this.readNamespacedEndpoints = function(name, namespace, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling readNamespacedEndpoints"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling readNamespacedEndpoints"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'], - 'exact': opts['exact'], - 'export': opts['_export'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1Endpoints; - - return this.apiClient.callApi( - '/api/v1/namespaces/{namespace}/endpoints/{name}', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the readNamespacedEvent operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~readNamespacedEventCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Event} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * read the specified Event - * @param {String} name name of the Event - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {Boolean} opts.exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. - * @param {Boolean} opts._export Should this value be exported. Export strips fields that a user can not specify. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~readNamespacedEventCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1Event} - */ - this.readNamespacedEvent = function(name, namespace, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling readNamespacedEvent"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling readNamespacedEvent"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'], - 'exact': opts['exact'], - 'export': opts['_export'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1Event; - - return this.apiClient.callApi( - '/api/v1/namespaces/{namespace}/events/{name}', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the readNamespacedLimitRange operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~readNamespacedLimitRangeCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1LimitRange} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * read the specified LimitRange - * @param {String} name name of the LimitRange - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {Boolean} opts.exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. - * @param {Boolean} opts._export Should this value be exported. Export strips fields that a user can not specify. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~readNamespacedLimitRangeCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1LimitRange} - */ - this.readNamespacedLimitRange = function(name, namespace, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling readNamespacedLimitRange"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling readNamespacedLimitRange"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'], - 'exact': opts['exact'], - 'export': opts['_export'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1LimitRange; - - return this.apiClient.callApi( - '/api/v1/namespaces/{namespace}/limitranges/{name}', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the readNamespacedPersistentVolumeClaim operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~readNamespacedPersistentVolumeClaimCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1PersistentVolumeClaim} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * read the specified PersistentVolumeClaim - * @param {String} name name of the PersistentVolumeClaim - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {Boolean} opts.exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. - * @param {Boolean} opts._export Should this value be exported. Export strips fields that a user can not specify. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~readNamespacedPersistentVolumeClaimCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1PersistentVolumeClaim} - */ - this.readNamespacedPersistentVolumeClaim = function(name, namespace, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling readNamespacedPersistentVolumeClaim"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling readNamespacedPersistentVolumeClaim"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'], - 'exact': opts['exact'], - 'export': opts['_export'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1PersistentVolumeClaim; - - return this.apiClient.callApi( - '/api/v1/namespaces/{namespace}/persistentvolumeclaims/{name}', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the readNamespacedPersistentVolumeClaimStatus operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~readNamespacedPersistentVolumeClaimStatusCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1PersistentVolumeClaim} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * read status of the specified PersistentVolumeClaim - * @param {String} name name of the PersistentVolumeClaim - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~readNamespacedPersistentVolumeClaimStatusCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1PersistentVolumeClaim} - */ - this.readNamespacedPersistentVolumeClaimStatus = function(name, namespace, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling readNamespacedPersistentVolumeClaimStatus"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling readNamespacedPersistentVolumeClaimStatus"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1PersistentVolumeClaim; - - return this.apiClient.callApi( - '/api/v1/namespaces/{namespace}/persistentvolumeclaims/{name}/status', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the readNamespacedPod operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~readNamespacedPodCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Pod} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * read the specified Pod - * @param {String} name name of the Pod - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {Boolean} opts.exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. - * @param {Boolean} opts._export Should this value be exported. Export strips fields that a user can not specify. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~readNamespacedPodCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1Pod} - */ - this.readNamespacedPod = function(name, namespace, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling readNamespacedPod"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling readNamespacedPod"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'], - 'exact': opts['exact'], - 'export': opts['_export'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1Pod; - - return this.apiClient.callApi( - '/api/v1/namespaces/{namespace}/pods/{name}', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the readNamespacedPodLog operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~readNamespacedPodLogCallback - * @param {String} error Error message, if any. - * @param {'String'} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * read log of the specified Pod - * @param {String} name name of the Pod - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} opts Optional parameters - * @param {String} opts.container The container for which to stream logs. Defaults to only container if there is one container in the pod. - * @param {Boolean} opts.follow Follow the log stream of the pod. Defaults to false. - * @param {Number} opts.limitBytes If set, the number of bytes to read from the server before terminating the log output. This may not display a complete final line of logging, and may return slightly more or slightly less than the specified limit. - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {Boolean} opts.previous Return previous terminated container logs. Defaults to false. - * @param {Number} opts.sinceSeconds A relative time in seconds before the current time from which to show logs. If this value precedes the time a pod was started, only logs since the pod start will be returned. If this value is in the future, no logs will be returned. Only one of sinceSeconds or sinceTime may be specified. - * @param {Number} opts.tailLines If set, the number of lines from the end of the logs to show. If not specified, logs are shown from the creation of the container or sinceSeconds or sinceTime - * @param {Boolean} opts.timestamps If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line of log output. Defaults to false. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~readNamespacedPodLogCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link 'String'} - */ - this.readNamespacedPodLog = function(name, namespace, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling readNamespacedPodLog"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling readNamespacedPodLog"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'container': opts['container'], - 'follow': opts['follow'], - 'limitBytes': opts['limitBytes'], - 'pretty': opts['pretty'], - 'previous': opts['previous'], - 'sinceSeconds': opts['sinceSeconds'], - 'tailLines': opts['tailLines'], - 'timestamps': opts['timestamps'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['text/plain', 'application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = 'String'; - - return this.apiClient.callApi( - '/api/v1/namespaces/{namespace}/pods/{name}/log', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the readNamespacedPodStatus operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~readNamespacedPodStatusCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Pod} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * read status of the specified Pod - * @param {String} name name of the Pod - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~readNamespacedPodStatusCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1Pod} - */ - this.readNamespacedPodStatus = function(name, namespace, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling readNamespacedPodStatus"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling readNamespacedPodStatus"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1Pod; - - return this.apiClient.callApi( - '/api/v1/namespaces/{namespace}/pods/{name}/status', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the readNamespacedPodTemplate operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~readNamespacedPodTemplateCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1PodTemplate} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * read the specified PodTemplate - * @param {String} name name of the PodTemplate - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {Boolean} opts.exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. - * @param {Boolean} opts._export Should this value be exported. Export strips fields that a user can not specify. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~readNamespacedPodTemplateCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1PodTemplate} - */ - this.readNamespacedPodTemplate = function(name, namespace, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling readNamespacedPodTemplate"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling readNamespacedPodTemplate"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'], - 'exact': opts['exact'], - 'export': opts['_export'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1PodTemplate; - - return this.apiClient.callApi( - '/api/v1/namespaces/{namespace}/podtemplates/{name}', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the readNamespacedReplicationController operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~readNamespacedReplicationControllerCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1ReplicationController} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * read the specified ReplicationController - * @param {String} name name of the ReplicationController - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {Boolean} opts.exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. - * @param {Boolean} opts._export Should this value be exported. Export strips fields that a user can not specify. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~readNamespacedReplicationControllerCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1ReplicationController} - */ - this.readNamespacedReplicationController = function(name, namespace, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling readNamespacedReplicationController"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling readNamespacedReplicationController"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'], - 'exact': opts['exact'], - 'export': opts['_export'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1ReplicationController; - - return this.apiClient.callApi( - '/api/v1/namespaces/{namespace}/replicationcontrollers/{name}', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the readNamespacedReplicationControllerStatus operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~readNamespacedReplicationControllerStatusCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1ReplicationController} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * read status of the specified ReplicationController - * @param {String} name name of the ReplicationController - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~readNamespacedReplicationControllerStatusCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1ReplicationController} - */ - this.readNamespacedReplicationControllerStatus = function(name, namespace, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling readNamespacedReplicationControllerStatus"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling readNamespacedReplicationControllerStatus"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1ReplicationController; - - return this.apiClient.callApi( - '/api/v1/namespaces/{namespace}/replicationcontrollers/{name}/status', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the readNamespacedResourceQuota operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~readNamespacedResourceQuotaCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1ResourceQuota} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * read the specified ResourceQuota - * @param {String} name name of the ResourceQuota - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {Boolean} opts.exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. - * @param {Boolean} opts._export Should this value be exported. Export strips fields that a user can not specify. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~readNamespacedResourceQuotaCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1ResourceQuota} - */ - this.readNamespacedResourceQuota = function(name, namespace, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling readNamespacedResourceQuota"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling readNamespacedResourceQuota"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'], - 'exact': opts['exact'], - 'export': opts['_export'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1ResourceQuota; - - return this.apiClient.callApi( - '/api/v1/namespaces/{namespace}/resourcequotas/{name}', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the readNamespacedResourceQuotaStatus operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~readNamespacedResourceQuotaStatusCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1ResourceQuota} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * read status of the specified ResourceQuota - * @param {String} name name of the ResourceQuota - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~readNamespacedResourceQuotaStatusCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1ResourceQuota} - */ - this.readNamespacedResourceQuotaStatus = function(name, namespace, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling readNamespacedResourceQuotaStatus"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling readNamespacedResourceQuotaStatus"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1ResourceQuota; - - return this.apiClient.callApi( - '/api/v1/namespaces/{namespace}/resourcequotas/{name}/status', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the readNamespacedScaleScale operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~readNamespacedScaleScaleCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Scale} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * read scale of the specified Scale - * @param {String} name name of the Scale - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~readNamespacedScaleScaleCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1Scale} - */ - this.readNamespacedScaleScale = function(name, namespace, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling readNamespacedScaleScale"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling readNamespacedScaleScale"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1Scale; - - return this.apiClient.callApi( - '/api/v1/namespaces/{namespace}/replicationcontrollers/{name}/scale', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the readNamespacedSecret operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~readNamespacedSecretCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Secret} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * read the specified Secret - * @param {String} name name of the Secret - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {Boolean} opts.exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. - * @param {Boolean} opts._export Should this value be exported. Export strips fields that a user can not specify. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~readNamespacedSecretCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1Secret} - */ - this.readNamespacedSecret = function(name, namespace, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling readNamespacedSecret"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling readNamespacedSecret"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'], - 'exact': opts['exact'], - 'export': opts['_export'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1Secret; - - return this.apiClient.callApi( - '/api/v1/namespaces/{namespace}/secrets/{name}', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the readNamespacedService operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~readNamespacedServiceCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Service} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * read the specified Service - * @param {String} name name of the Service - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {Boolean} opts.exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. - * @param {Boolean} opts._export Should this value be exported. Export strips fields that a user can not specify. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~readNamespacedServiceCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1Service} - */ - this.readNamespacedService = function(name, namespace, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling readNamespacedService"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling readNamespacedService"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'], - 'exact': opts['exact'], - 'export': opts['_export'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1Service; - - return this.apiClient.callApi( - '/api/v1/namespaces/{namespace}/services/{name}', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the readNamespacedServiceAccount operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~readNamespacedServiceAccountCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1ServiceAccount} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * read the specified ServiceAccount - * @param {String} name name of the ServiceAccount - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {Boolean} opts.exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. - * @param {Boolean} opts._export Should this value be exported. Export strips fields that a user can not specify. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~readNamespacedServiceAccountCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1ServiceAccount} - */ - this.readNamespacedServiceAccount = function(name, namespace, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling readNamespacedServiceAccount"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling readNamespacedServiceAccount"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'], - 'exact': opts['exact'], - 'export': opts['_export'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1ServiceAccount; - - return this.apiClient.callApi( - '/api/v1/namespaces/{namespace}/serviceaccounts/{name}', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the readNamespacedServiceStatus operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~readNamespacedServiceStatusCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Service} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * read status of the specified Service - * @param {String} name name of the Service - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~readNamespacedServiceStatusCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1Service} - */ - this.readNamespacedServiceStatus = function(name, namespace, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling readNamespacedServiceStatus"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling readNamespacedServiceStatus"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1Service; - - return this.apiClient.callApi( - '/api/v1/namespaces/{namespace}/services/{name}/status', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the readNode operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~readNodeCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Node} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * read the specified Node - * @param {String} name name of the Node - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {Boolean} opts.exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. - * @param {Boolean} opts._export Should this value be exported. Export strips fields that a user can not specify. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~readNodeCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1Node} - */ - this.readNode = function(name, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling readNode"); - } - - - var pathParams = { - 'name': name - }; - var queryParams = { - 'pretty': opts['pretty'], - 'exact': opts['exact'], - 'export': opts['_export'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1Node; - - return this.apiClient.callApi( - '/api/v1/nodes/{name}', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the readNodeStatus operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~readNodeStatusCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Node} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * read status of the specified Node - * @param {String} name name of the Node - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~readNodeStatusCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1Node} - */ - this.readNodeStatus = function(name, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling readNodeStatus"); - } - - - var pathParams = { - 'name': name - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1Node; - - return this.apiClient.callApi( - '/api/v1/nodes/{name}/status', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the readPersistentVolume operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~readPersistentVolumeCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1PersistentVolume} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * read the specified PersistentVolume - * @param {String} name name of the PersistentVolume - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {Boolean} opts.exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. - * @param {Boolean} opts._export Should this value be exported. Export strips fields that a user can not specify. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~readPersistentVolumeCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1PersistentVolume} - */ - this.readPersistentVolume = function(name, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling readPersistentVolume"); - } - - - var pathParams = { - 'name': name - }; - var queryParams = { - 'pretty': opts['pretty'], - 'exact': opts['exact'], - 'export': opts['_export'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1PersistentVolume; - - return this.apiClient.callApi( - '/api/v1/persistentvolumes/{name}', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the readPersistentVolumeStatus operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~readPersistentVolumeStatusCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1PersistentVolume} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * read status of the specified PersistentVolume - * @param {String} name name of the PersistentVolume - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~readPersistentVolumeStatusCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1PersistentVolume} - */ - this.readPersistentVolumeStatus = function(name, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling readPersistentVolumeStatus"); - } - - - var pathParams = { - 'name': name - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1PersistentVolume; - - return this.apiClient.callApi( - '/api/v1/persistentvolumes/{name}/status', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the replaceNamespace operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~replaceNamespaceCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Namespace} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * replace the specified Namespace - * @param {String} name name of the Namespace - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Namespace} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~replaceNamespaceCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1Namespace} - */ - this.replaceNamespace = function(name, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling replaceNamespace"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling replaceNamespace"); - } - - - var pathParams = { - 'name': name - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1Namespace; - - return this.apiClient.callApi( - '/api/v1/namespaces/{name}', 'PUT', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the replaceNamespaceFinalize operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~replaceNamespaceFinalizeCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Namespace} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * replace finalize of the specified Namespace - * @param {String} name name of the Namespace - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Namespace} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~replaceNamespaceFinalizeCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1Namespace} - */ - this.replaceNamespaceFinalize = function(name, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling replaceNamespaceFinalize"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling replaceNamespaceFinalize"); - } - - - var pathParams = { - 'name': name - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1Namespace; - - return this.apiClient.callApi( - '/api/v1/namespaces/{name}/finalize', 'PUT', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the replaceNamespaceStatus operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~replaceNamespaceStatusCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Namespace} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * replace status of the specified Namespace - * @param {String} name name of the Namespace - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Namespace} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~replaceNamespaceStatusCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1Namespace} - */ - this.replaceNamespaceStatus = function(name, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling replaceNamespaceStatus"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling replaceNamespaceStatus"); - } - - - var pathParams = { - 'name': name - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1Namespace; - - return this.apiClient.callApi( - '/api/v1/namespaces/{name}/status', 'PUT', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the replaceNamespacedConfigMap operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~replaceNamespacedConfigMapCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1ConfigMap} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * replace the specified ConfigMap - * @param {String} name name of the ConfigMap - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1ConfigMap} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~replaceNamespacedConfigMapCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1ConfigMap} - */ - this.replaceNamespacedConfigMap = function(name, namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling replaceNamespacedConfigMap"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling replaceNamespacedConfigMap"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling replaceNamespacedConfigMap"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1ConfigMap; - - return this.apiClient.callApi( - '/api/v1/namespaces/{namespace}/configmaps/{name}', 'PUT', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the replaceNamespacedEndpoints operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~replaceNamespacedEndpointsCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Endpoints} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * replace the specified Endpoints - * @param {String} name name of the Endpoints - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Endpoints} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~replaceNamespacedEndpointsCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1Endpoints} - */ - this.replaceNamespacedEndpoints = function(name, namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling replaceNamespacedEndpoints"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling replaceNamespacedEndpoints"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling replaceNamespacedEndpoints"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1Endpoints; - - return this.apiClient.callApi( - '/api/v1/namespaces/{namespace}/endpoints/{name}', 'PUT', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the replaceNamespacedEvent operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~replaceNamespacedEventCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Event} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * replace the specified Event - * @param {String} name name of the Event - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Event} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~replaceNamespacedEventCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1Event} - */ - this.replaceNamespacedEvent = function(name, namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling replaceNamespacedEvent"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling replaceNamespacedEvent"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling replaceNamespacedEvent"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1Event; - - return this.apiClient.callApi( - '/api/v1/namespaces/{namespace}/events/{name}', 'PUT', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the replaceNamespacedLimitRange operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~replaceNamespacedLimitRangeCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1LimitRange} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * replace the specified LimitRange - * @param {String} name name of the LimitRange - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1LimitRange} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~replaceNamespacedLimitRangeCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1LimitRange} - */ - this.replaceNamespacedLimitRange = function(name, namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling replaceNamespacedLimitRange"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling replaceNamespacedLimitRange"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling replaceNamespacedLimitRange"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1LimitRange; - - return this.apiClient.callApi( - '/api/v1/namespaces/{namespace}/limitranges/{name}', 'PUT', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the replaceNamespacedPersistentVolumeClaim operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~replaceNamespacedPersistentVolumeClaimCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1PersistentVolumeClaim} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * replace the specified PersistentVolumeClaim - * @param {String} name name of the PersistentVolumeClaim - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1PersistentVolumeClaim} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~replaceNamespacedPersistentVolumeClaimCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1PersistentVolumeClaim} - */ - this.replaceNamespacedPersistentVolumeClaim = function(name, namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling replaceNamespacedPersistentVolumeClaim"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling replaceNamespacedPersistentVolumeClaim"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling replaceNamespacedPersistentVolumeClaim"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1PersistentVolumeClaim; - - return this.apiClient.callApi( - '/api/v1/namespaces/{namespace}/persistentvolumeclaims/{name}', 'PUT', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the replaceNamespacedPersistentVolumeClaimStatus operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~replaceNamespacedPersistentVolumeClaimStatusCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1PersistentVolumeClaim} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * replace status of the specified PersistentVolumeClaim - * @param {String} name name of the PersistentVolumeClaim - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1PersistentVolumeClaim} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~replaceNamespacedPersistentVolumeClaimStatusCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1PersistentVolumeClaim} - */ - this.replaceNamespacedPersistentVolumeClaimStatus = function(name, namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling replaceNamespacedPersistentVolumeClaimStatus"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling replaceNamespacedPersistentVolumeClaimStatus"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling replaceNamespacedPersistentVolumeClaimStatus"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1PersistentVolumeClaim; - - return this.apiClient.callApi( - '/api/v1/namespaces/{namespace}/persistentvolumeclaims/{name}/status', 'PUT', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the replaceNamespacedPod operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~replaceNamespacedPodCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Pod} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * replace the specified Pod - * @param {String} name name of the Pod - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Pod} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~replaceNamespacedPodCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1Pod} - */ - this.replaceNamespacedPod = function(name, namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling replaceNamespacedPod"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling replaceNamespacedPod"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling replaceNamespacedPod"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1Pod; - - return this.apiClient.callApi( - '/api/v1/namespaces/{namespace}/pods/{name}', 'PUT', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the replaceNamespacedPodStatus operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~replaceNamespacedPodStatusCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Pod} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * replace status of the specified Pod - * @param {String} name name of the Pod - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Pod} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~replaceNamespacedPodStatusCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1Pod} - */ - this.replaceNamespacedPodStatus = function(name, namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling replaceNamespacedPodStatus"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling replaceNamespacedPodStatus"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling replaceNamespacedPodStatus"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1Pod; - - return this.apiClient.callApi( - '/api/v1/namespaces/{namespace}/pods/{name}/status', 'PUT', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the replaceNamespacedPodTemplate operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~replaceNamespacedPodTemplateCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1PodTemplate} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * replace the specified PodTemplate - * @param {String} name name of the PodTemplate - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1PodTemplate} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~replaceNamespacedPodTemplateCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1PodTemplate} - */ - this.replaceNamespacedPodTemplate = function(name, namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling replaceNamespacedPodTemplate"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling replaceNamespacedPodTemplate"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling replaceNamespacedPodTemplate"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1PodTemplate; - - return this.apiClient.callApi( - '/api/v1/namespaces/{namespace}/podtemplates/{name}', 'PUT', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the replaceNamespacedReplicationController operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~replaceNamespacedReplicationControllerCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1ReplicationController} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * replace the specified ReplicationController - * @param {String} name name of the ReplicationController - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1ReplicationController} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~replaceNamespacedReplicationControllerCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1ReplicationController} - */ - this.replaceNamespacedReplicationController = function(name, namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling replaceNamespacedReplicationController"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling replaceNamespacedReplicationController"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling replaceNamespacedReplicationController"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1ReplicationController; - - return this.apiClient.callApi( - '/api/v1/namespaces/{namespace}/replicationcontrollers/{name}', 'PUT', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the replaceNamespacedReplicationControllerStatus operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~replaceNamespacedReplicationControllerStatusCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1ReplicationController} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * replace status of the specified ReplicationController - * @param {String} name name of the ReplicationController - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1ReplicationController} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~replaceNamespacedReplicationControllerStatusCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1ReplicationController} - */ - this.replaceNamespacedReplicationControllerStatus = function(name, namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling replaceNamespacedReplicationControllerStatus"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling replaceNamespacedReplicationControllerStatus"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling replaceNamespacedReplicationControllerStatus"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1ReplicationController; - - return this.apiClient.callApi( - '/api/v1/namespaces/{namespace}/replicationcontrollers/{name}/status', 'PUT', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the replaceNamespacedResourceQuota operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~replaceNamespacedResourceQuotaCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1ResourceQuota} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * replace the specified ResourceQuota - * @param {String} name name of the ResourceQuota - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1ResourceQuota} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~replaceNamespacedResourceQuotaCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1ResourceQuota} - */ - this.replaceNamespacedResourceQuota = function(name, namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling replaceNamespacedResourceQuota"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling replaceNamespacedResourceQuota"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling replaceNamespacedResourceQuota"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1ResourceQuota; - - return this.apiClient.callApi( - '/api/v1/namespaces/{namespace}/resourcequotas/{name}', 'PUT', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the replaceNamespacedResourceQuotaStatus operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~replaceNamespacedResourceQuotaStatusCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1ResourceQuota} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * replace status of the specified ResourceQuota - * @param {String} name name of the ResourceQuota - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1ResourceQuota} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~replaceNamespacedResourceQuotaStatusCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1ResourceQuota} - */ - this.replaceNamespacedResourceQuotaStatus = function(name, namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling replaceNamespacedResourceQuotaStatus"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling replaceNamespacedResourceQuotaStatus"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling replaceNamespacedResourceQuotaStatus"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1ResourceQuota; - - return this.apiClient.callApi( - '/api/v1/namespaces/{namespace}/resourcequotas/{name}/status', 'PUT', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the replaceNamespacedScaleScale operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~replaceNamespacedScaleScaleCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Scale} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * replace scale of the specified Scale - * @param {String} name name of the Scale - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Scale} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~replaceNamespacedScaleScaleCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1Scale} - */ - this.replaceNamespacedScaleScale = function(name, namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling replaceNamespacedScaleScale"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling replaceNamespacedScaleScale"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling replaceNamespacedScaleScale"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1Scale; - - return this.apiClient.callApi( - '/api/v1/namespaces/{namespace}/replicationcontrollers/{name}/scale', 'PUT', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the replaceNamespacedSecret operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~replaceNamespacedSecretCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Secret} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * replace the specified Secret - * @param {String} name name of the Secret - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Secret} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~replaceNamespacedSecretCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1Secret} - */ - this.replaceNamespacedSecret = function(name, namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling replaceNamespacedSecret"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling replaceNamespacedSecret"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling replaceNamespacedSecret"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1Secret; - - return this.apiClient.callApi( - '/api/v1/namespaces/{namespace}/secrets/{name}', 'PUT', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the replaceNamespacedService operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~replaceNamespacedServiceCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Service} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * replace the specified Service - * @param {String} name name of the Service - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Service} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~replaceNamespacedServiceCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1Service} - */ - this.replaceNamespacedService = function(name, namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling replaceNamespacedService"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling replaceNamespacedService"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling replaceNamespacedService"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1Service; - - return this.apiClient.callApi( - '/api/v1/namespaces/{namespace}/services/{name}', 'PUT', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the replaceNamespacedServiceAccount operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~replaceNamespacedServiceAccountCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1ServiceAccount} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * replace the specified ServiceAccount - * @param {String} name name of the ServiceAccount - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1ServiceAccount} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~replaceNamespacedServiceAccountCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1ServiceAccount} - */ - this.replaceNamespacedServiceAccount = function(name, namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling replaceNamespacedServiceAccount"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling replaceNamespacedServiceAccount"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling replaceNamespacedServiceAccount"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1ServiceAccount; - - return this.apiClient.callApi( - '/api/v1/namespaces/{namespace}/serviceaccounts/{name}', 'PUT', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the replaceNamespacedServiceStatus operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~replaceNamespacedServiceStatusCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Service} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * replace status of the specified Service - * @param {String} name name of the Service - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Service} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~replaceNamespacedServiceStatusCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1Service} - */ - this.replaceNamespacedServiceStatus = function(name, namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling replaceNamespacedServiceStatus"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling replaceNamespacedServiceStatus"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling replaceNamespacedServiceStatus"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1Service; - - return this.apiClient.callApi( - '/api/v1/namespaces/{namespace}/services/{name}/status', 'PUT', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the replaceNode operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~replaceNodeCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Node} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * replace the specified Node - * @param {String} name name of the Node - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Node} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~replaceNodeCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1Node} - */ - this.replaceNode = function(name, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling replaceNode"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling replaceNode"); - } - - - var pathParams = { - 'name': name - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1Node; - - return this.apiClient.callApi( - '/api/v1/nodes/{name}', 'PUT', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the replaceNodeStatus operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~replaceNodeStatusCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Node} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * replace status of the specified Node - * @param {String} name name of the Node - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Node} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~replaceNodeStatusCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1Node} - */ - this.replaceNodeStatus = function(name, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling replaceNodeStatus"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling replaceNodeStatus"); - } - - - var pathParams = { - 'name': name - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1Node; - - return this.apiClient.callApi( - '/api/v1/nodes/{name}/status', 'PUT', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the replacePersistentVolume operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~replacePersistentVolumeCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1PersistentVolume} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * replace the specified PersistentVolume - * @param {String} name name of the PersistentVolume - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1PersistentVolume} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~replacePersistentVolumeCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1PersistentVolume} - */ - this.replacePersistentVolume = function(name, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling replacePersistentVolume"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling replacePersistentVolume"); - } - - - var pathParams = { - 'name': name - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1PersistentVolume; - - return this.apiClient.callApi( - '/api/v1/persistentvolumes/{name}', 'PUT', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the replacePersistentVolumeStatus operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~replacePersistentVolumeStatusCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1PersistentVolume} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * replace status of the specified PersistentVolume - * @param {String} name name of the PersistentVolume - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1PersistentVolume} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Core_v1Api~replacePersistentVolumeStatusCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1PersistentVolume} - */ - this.replacePersistentVolumeStatus = function(name, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling replacePersistentVolumeStatus"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling replacePersistentVolumeStatus"); - } - - - var pathParams = { - 'name': name - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1PersistentVolume; - - return this.apiClient.callApi( - '/api/v1/persistentvolumes/{name}/status', 'PUT', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - }; - - return exports; -})); diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.apis/ExtensionsApi.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.apis/ExtensionsApi.js deleted file mode 100644 index e6cb258109..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.apis/ExtensionsApi.js +++ /dev/null @@ -1,88 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1APIGroup'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('../io.kubernetes.js.models/V1APIGroup')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.ExtensionsApi = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1APIGroup); - } -}(this, function(ApiClient, V1APIGroup) { - 'use strict'; - - /** - * Extensions service. - * @module io.kubernetes.js/io.kubernetes.js.apis/ExtensionsApi - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new ExtensionsApi. - * @alias module:io.kubernetes.js/io.kubernetes.js.apis/ExtensionsApi - * @class - * @param {module:io.kubernetes.js/ApiClient} apiClient Optional API client implementation to use, - * default to {@link module:io.kubernetes.js/ApiClient#instance} if unspecified. - */ - var exports = function(apiClient) { - this.apiClient = apiClient || ApiClient.instance; - - - /** - * Callback function to receive the result of the getAPIGroup operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/ExtensionsApi~getAPIGroupCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1APIGroup} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * get information of a group - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/ExtensionsApi~getAPIGroupCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1APIGroup} - */ - this.getAPIGroup = function(callback) { - var postBody = null; - - - var pathParams = { - }; - var queryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1APIGroup; - - return this.apiClient.callApi( - '/apis/extensions/', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - }; - - return exports; -})); diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api.js deleted file mode 100644 index 9261aaa9fb..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api.js +++ /dev/null @@ -1,4547 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1Deployment', 'io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1DeploymentList', 'io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1DeploymentRollback', 'io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1Scale', 'io.kubernetes.js/io.kubernetes.js.models/V1APIResourceList', 'io.kubernetes.js/io.kubernetes.js.models/V1DeleteOptions', 'io.kubernetes.js/io.kubernetes.js.models/V1Status', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1DaemonSet', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1DaemonSetList', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1Ingress', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1IngressList', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1NetworkPolicy', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1NetworkPolicyList', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1PodSecurityPolicy', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1PodSecurityPolicyList', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1ReplicaSet', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1ReplicaSetList', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1ThirdPartyResource', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1ThirdPartyResourceList'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('../io.kubernetes.js.models/ExtensionsV1beta1Deployment'), require('../io.kubernetes.js.models/ExtensionsV1beta1DeploymentList'), require('../io.kubernetes.js.models/ExtensionsV1beta1DeploymentRollback'), require('../io.kubernetes.js.models/ExtensionsV1beta1Scale'), require('../io.kubernetes.js.models/V1APIResourceList'), require('../io.kubernetes.js.models/V1DeleteOptions'), require('../io.kubernetes.js.models/V1Status'), require('../io.kubernetes.js.models/V1beta1DaemonSet'), require('../io.kubernetes.js.models/V1beta1DaemonSetList'), require('../io.kubernetes.js.models/V1beta1Ingress'), require('../io.kubernetes.js.models/V1beta1IngressList'), require('../io.kubernetes.js.models/V1beta1NetworkPolicy'), require('../io.kubernetes.js.models/V1beta1NetworkPolicyList'), require('../io.kubernetes.js.models/V1beta1PodSecurityPolicy'), require('../io.kubernetes.js.models/V1beta1PodSecurityPolicyList'), require('../io.kubernetes.js.models/V1beta1ReplicaSet'), require('../io.kubernetes.js.models/V1beta1ReplicaSetList'), require('../io.kubernetes.js.models/V1beta1ThirdPartyResource'), require('../io.kubernetes.js.models/V1beta1ThirdPartyResourceList')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.Extensions_v1beta1Api = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.ExtensionsV1beta1Deployment, root.KubernetesJsClient.ExtensionsV1beta1DeploymentList, root.KubernetesJsClient.ExtensionsV1beta1DeploymentRollback, root.KubernetesJsClient.ExtensionsV1beta1Scale, root.KubernetesJsClient.V1APIResourceList, root.KubernetesJsClient.V1DeleteOptions, root.KubernetesJsClient.V1Status, root.KubernetesJsClient.V1beta1DaemonSet, root.KubernetesJsClient.V1beta1DaemonSetList, root.KubernetesJsClient.V1beta1Ingress, root.KubernetesJsClient.V1beta1IngressList, root.KubernetesJsClient.V1beta1NetworkPolicy, root.KubernetesJsClient.V1beta1NetworkPolicyList, root.KubernetesJsClient.V1beta1PodSecurityPolicy, root.KubernetesJsClient.V1beta1PodSecurityPolicyList, root.KubernetesJsClient.V1beta1ReplicaSet, root.KubernetesJsClient.V1beta1ReplicaSetList, root.KubernetesJsClient.V1beta1ThirdPartyResource, root.KubernetesJsClient.V1beta1ThirdPartyResourceList); - } -}(this, function(ApiClient, ExtensionsV1beta1Deployment, ExtensionsV1beta1DeploymentList, ExtensionsV1beta1DeploymentRollback, ExtensionsV1beta1Scale, V1APIResourceList, V1DeleteOptions, V1Status, V1beta1DaemonSet, V1beta1DaemonSetList, V1beta1Ingress, V1beta1IngressList, V1beta1NetworkPolicy, V1beta1NetworkPolicyList, V1beta1PodSecurityPolicy, V1beta1PodSecurityPolicyList, V1beta1ReplicaSet, V1beta1ReplicaSetList, V1beta1ThirdPartyResource, V1beta1ThirdPartyResourceList) { - 'use strict'; - - /** - * Extensions_v1beta1 service. - * @module io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new Extensions_v1beta1Api. - * @alias module:io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api - * @class - * @param {module:io.kubernetes.js/ApiClient} apiClient Optional API client implementation to use, - * default to {@link module:io.kubernetes.js/ApiClient#instance} if unspecified. - */ - var exports = function(apiClient) { - this.apiClient = apiClient || ApiClient.instance; - - - /** - * Callback function to receive the result of the createNamespacedDaemonSet operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api~createNamespacedDaemonSetCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1DaemonSet} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * create a DaemonSet - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1DaemonSet} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api~createNamespacedDaemonSetCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1beta1DaemonSet} - */ - this.createNamespacedDaemonSet = function(namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling createNamespacedDaemonSet"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling createNamespacedDaemonSet"); - } - - - var pathParams = { - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1beta1DaemonSet; - - return this.apiClient.callApi( - '/apis/extensions/v1beta1/namespaces/{namespace}/daemonsets', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the createNamespacedDeployment operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api~createNamespacedDeploymentCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1Deployment} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * create a Deployment - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {module:io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1Deployment} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api~createNamespacedDeploymentCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1Deployment} - */ - this.createNamespacedDeployment = function(namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling createNamespacedDeployment"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling createNamespacedDeployment"); - } - - - var pathParams = { - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = ExtensionsV1beta1Deployment; - - return this.apiClient.callApi( - '/apis/extensions/v1beta1/namespaces/{namespace}/deployments', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the createNamespacedDeploymentRollbackRollback operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api~createNamespacedDeploymentRollbackRollbackCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1DeploymentRollback} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * create rollback of a DeploymentRollback - * @param {String} name name of the DeploymentRollback - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {module:io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1DeploymentRollback} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api~createNamespacedDeploymentRollbackRollbackCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1DeploymentRollback} - */ - this.createNamespacedDeploymentRollbackRollback = function(name, namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling createNamespacedDeploymentRollbackRollback"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling createNamespacedDeploymentRollbackRollback"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling createNamespacedDeploymentRollbackRollback"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = ExtensionsV1beta1DeploymentRollback; - - return this.apiClient.callApi( - '/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/rollback', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the createNamespacedIngress operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api~createNamespacedIngressCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1Ingress} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * create an Ingress - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1Ingress} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api~createNamespacedIngressCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1beta1Ingress} - */ - this.createNamespacedIngress = function(namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling createNamespacedIngress"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling createNamespacedIngress"); - } - - - var pathParams = { - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1beta1Ingress; - - return this.apiClient.callApi( - '/apis/extensions/v1beta1/namespaces/{namespace}/ingresses', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the createNamespacedNetworkPolicy operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api~createNamespacedNetworkPolicyCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1NetworkPolicy} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * create a NetworkPolicy - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1NetworkPolicy} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api~createNamespacedNetworkPolicyCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1beta1NetworkPolicy} - */ - this.createNamespacedNetworkPolicy = function(namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling createNamespacedNetworkPolicy"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling createNamespacedNetworkPolicy"); - } - - - var pathParams = { - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1beta1NetworkPolicy; - - return this.apiClient.callApi( - '/apis/extensions/v1beta1/namespaces/{namespace}/networkpolicies', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the createNamespacedReplicaSet operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api~createNamespacedReplicaSetCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1ReplicaSet} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * create a ReplicaSet - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1ReplicaSet} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api~createNamespacedReplicaSetCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1beta1ReplicaSet} - */ - this.createNamespacedReplicaSet = function(namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling createNamespacedReplicaSet"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling createNamespacedReplicaSet"); - } - - - var pathParams = { - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1beta1ReplicaSet; - - return this.apiClient.callApi( - '/apis/extensions/v1beta1/namespaces/{namespace}/replicasets', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the createPodSecurityPolicy operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api~createPodSecurityPolicyCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1PodSecurityPolicy} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * create a PodSecurityPolicy - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1PodSecurityPolicy} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api~createPodSecurityPolicyCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1beta1PodSecurityPolicy} - */ - this.createPodSecurityPolicy = function(body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling createPodSecurityPolicy"); - } - - - var pathParams = { - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1beta1PodSecurityPolicy; - - return this.apiClient.callApi( - '/apis/extensions/v1beta1/podsecuritypolicies', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the createThirdPartyResource operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api~createThirdPartyResourceCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1ThirdPartyResource} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * create a ThirdPartyResource - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1ThirdPartyResource} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api~createThirdPartyResourceCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1beta1ThirdPartyResource} - */ - this.createThirdPartyResource = function(body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling createThirdPartyResource"); - } - - - var pathParams = { - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1beta1ThirdPartyResource; - - return this.apiClient.callApi( - '/apis/extensions/v1beta1/thirdpartyresources', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the deleteCollectionNamespacedDaemonSet operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api~deleteCollectionNamespacedDaemonSetCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Status} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * delete collection of DaemonSet - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {String} opts.fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. - * @param {String} opts.labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. - * @param {String} opts.resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - * @param {Number} opts.timeoutSeconds Timeout for the list/watch call. - * @param {Boolean} opts.watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api~deleteCollectionNamespacedDaemonSetCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1Status} - */ - this.deleteCollectionNamespacedDaemonSet = function(namespace, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedDaemonSet"); - } - - - var pathParams = { - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'], - 'fieldSelector': opts['fieldSelector'], - 'labelSelector': opts['labelSelector'], - 'resourceVersion': opts['resourceVersion'], - 'timeoutSeconds': opts['timeoutSeconds'], - 'watch': opts['watch'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1Status; - - return this.apiClient.callApi( - '/apis/extensions/v1beta1/namespaces/{namespace}/daemonsets', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the deleteCollectionNamespacedDeployment operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api~deleteCollectionNamespacedDeploymentCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Status} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * delete collection of Deployment - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {String} opts.fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. - * @param {String} opts.labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. - * @param {String} opts.resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - * @param {Number} opts.timeoutSeconds Timeout for the list/watch call. - * @param {Boolean} opts.watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api~deleteCollectionNamespacedDeploymentCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1Status} - */ - this.deleteCollectionNamespacedDeployment = function(namespace, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedDeployment"); - } - - - var pathParams = { - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'], - 'fieldSelector': opts['fieldSelector'], - 'labelSelector': opts['labelSelector'], - 'resourceVersion': opts['resourceVersion'], - 'timeoutSeconds': opts['timeoutSeconds'], - 'watch': opts['watch'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1Status; - - return this.apiClient.callApi( - '/apis/extensions/v1beta1/namespaces/{namespace}/deployments', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the deleteCollectionNamespacedIngress operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api~deleteCollectionNamespacedIngressCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Status} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * delete collection of Ingress - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {String} opts.fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. - * @param {String} opts.labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. - * @param {String} opts.resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - * @param {Number} opts.timeoutSeconds Timeout for the list/watch call. - * @param {Boolean} opts.watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api~deleteCollectionNamespacedIngressCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1Status} - */ - this.deleteCollectionNamespacedIngress = function(namespace, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedIngress"); - } - - - var pathParams = { - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'], - 'fieldSelector': opts['fieldSelector'], - 'labelSelector': opts['labelSelector'], - 'resourceVersion': opts['resourceVersion'], - 'timeoutSeconds': opts['timeoutSeconds'], - 'watch': opts['watch'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1Status; - - return this.apiClient.callApi( - '/apis/extensions/v1beta1/namespaces/{namespace}/ingresses', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the deleteCollectionNamespacedNetworkPolicy operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api~deleteCollectionNamespacedNetworkPolicyCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Status} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * delete collection of NetworkPolicy - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {String} opts.fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. - * @param {String} opts.labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. - * @param {String} opts.resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - * @param {Number} opts.timeoutSeconds Timeout for the list/watch call. - * @param {Boolean} opts.watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api~deleteCollectionNamespacedNetworkPolicyCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1Status} - */ - this.deleteCollectionNamespacedNetworkPolicy = function(namespace, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedNetworkPolicy"); - } - - - var pathParams = { - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'], - 'fieldSelector': opts['fieldSelector'], - 'labelSelector': opts['labelSelector'], - 'resourceVersion': opts['resourceVersion'], - 'timeoutSeconds': opts['timeoutSeconds'], - 'watch': opts['watch'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1Status; - - return this.apiClient.callApi( - '/apis/extensions/v1beta1/namespaces/{namespace}/networkpolicies', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the deleteCollectionNamespacedReplicaSet operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api~deleteCollectionNamespacedReplicaSetCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Status} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * delete collection of ReplicaSet - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {String} opts.fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. - * @param {String} opts.labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. - * @param {String} opts.resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - * @param {Number} opts.timeoutSeconds Timeout for the list/watch call. - * @param {Boolean} opts.watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api~deleteCollectionNamespacedReplicaSetCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1Status} - */ - this.deleteCollectionNamespacedReplicaSet = function(namespace, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedReplicaSet"); - } - - - var pathParams = { - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'], - 'fieldSelector': opts['fieldSelector'], - 'labelSelector': opts['labelSelector'], - 'resourceVersion': opts['resourceVersion'], - 'timeoutSeconds': opts['timeoutSeconds'], - 'watch': opts['watch'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1Status; - - return this.apiClient.callApi( - '/apis/extensions/v1beta1/namespaces/{namespace}/replicasets', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the deleteCollectionPodSecurityPolicy operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api~deleteCollectionPodSecurityPolicyCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Status} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * delete collection of PodSecurityPolicy - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {String} opts.fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. - * @param {String} opts.labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. - * @param {String} opts.resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - * @param {Number} opts.timeoutSeconds Timeout for the list/watch call. - * @param {Boolean} opts.watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api~deleteCollectionPodSecurityPolicyCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1Status} - */ - this.deleteCollectionPodSecurityPolicy = function(opts, callback) { - opts = opts || {}; - var postBody = null; - - - var pathParams = { - }; - var queryParams = { - 'pretty': opts['pretty'], - 'fieldSelector': opts['fieldSelector'], - 'labelSelector': opts['labelSelector'], - 'resourceVersion': opts['resourceVersion'], - 'timeoutSeconds': opts['timeoutSeconds'], - 'watch': opts['watch'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1Status; - - return this.apiClient.callApi( - '/apis/extensions/v1beta1/podsecuritypolicies', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the deleteCollectionThirdPartyResource operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api~deleteCollectionThirdPartyResourceCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Status} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * delete collection of ThirdPartyResource - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {String} opts.fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. - * @param {String} opts.labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. - * @param {String} opts.resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - * @param {Number} opts.timeoutSeconds Timeout for the list/watch call. - * @param {Boolean} opts.watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api~deleteCollectionThirdPartyResourceCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1Status} - */ - this.deleteCollectionThirdPartyResource = function(opts, callback) { - opts = opts || {}; - var postBody = null; - - - var pathParams = { - }; - var queryParams = { - 'pretty': opts['pretty'], - 'fieldSelector': opts['fieldSelector'], - 'labelSelector': opts['labelSelector'], - 'resourceVersion': opts['resourceVersion'], - 'timeoutSeconds': opts['timeoutSeconds'], - 'watch': opts['watch'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1Status; - - return this.apiClient.callApi( - '/apis/extensions/v1beta1/thirdpartyresources', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the deleteNamespacedDaemonSet operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api~deleteNamespacedDaemonSetCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Status} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * delete a DaemonSet - * @param {String} name name of the DaemonSet - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1DeleteOptions} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {Number} opts.gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - * @param {Boolean} opts.orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - * @param {String} opts.propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api~deleteNamespacedDaemonSetCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1Status} - */ - this.deleteNamespacedDaemonSet = function(name, namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling deleteNamespacedDaemonSet"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling deleteNamespacedDaemonSet"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling deleteNamespacedDaemonSet"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'], - 'gracePeriodSeconds': opts['gracePeriodSeconds'], - 'orphanDependents': opts['orphanDependents'], - 'propagationPolicy': opts['propagationPolicy'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1Status; - - return this.apiClient.callApi( - '/apis/extensions/v1beta1/namespaces/{namespace}/daemonsets/{name}', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the deleteNamespacedDeployment operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api~deleteNamespacedDeploymentCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Status} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * delete a Deployment - * @param {String} name name of the Deployment - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1DeleteOptions} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {Number} opts.gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - * @param {Boolean} opts.orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - * @param {String} opts.propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api~deleteNamespacedDeploymentCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1Status} - */ - this.deleteNamespacedDeployment = function(name, namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling deleteNamespacedDeployment"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling deleteNamespacedDeployment"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling deleteNamespacedDeployment"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'], - 'gracePeriodSeconds': opts['gracePeriodSeconds'], - 'orphanDependents': opts['orphanDependents'], - 'propagationPolicy': opts['propagationPolicy'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1Status; - - return this.apiClient.callApi( - '/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the deleteNamespacedIngress operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api~deleteNamespacedIngressCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Status} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * delete an Ingress - * @param {String} name name of the Ingress - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1DeleteOptions} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {Number} opts.gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - * @param {Boolean} opts.orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - * @param {String} opts.propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api~deleteNamespacedIngressCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1Status} - */ - this.deleteNamespacedIngress = function(name, namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling deleteNamespacedIngress"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling deleteNamespacedIngress"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling deleteNamespacedIngress"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'], - 'gracePeriodSeconds': opts['gracePeriodSeconds'], - 'orphanDependents': opts['orphanDependents'], - 'propagationPolicy': opts['propagationPolicy'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1Status; - - return this.apiClient.callApi( - '/apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name}', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the deleteNamespacedNetworkPolicy operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api~deleteNamespacedNetworkPolicyCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Status} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * delete a NetworkPolicy - * @param {String} name name of the NetworkPolicy - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1DeleteOptions} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {Number} opts.gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - * @param {Boolean} opts.orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - * @param {String} opts.propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api~deleteNamespacedNetworkPolicyCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1Status} - */ - this.deleteNamespacedNetworkPolicy = function(name, namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling deleteNamespacedNetworkPolicy"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling deleteNamespacedNetworkPolicy"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling deleteNamespacedNetworkPolicy"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'], - 'gracePeriodSeconds': opts['gracePeriodSeconds'], - 'orphanDependents': opts['orphanDependents'], - 'propagationPolicy': opts['propagationPolicy'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1Status; - - return this.apiClient.callApi( - '/apis/extensions/v1beta1/namespaces/{namespace}/networkpolicies/{name}', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the deleteNamespacedReplicaSet operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api~deleteNamespacedReplicaSetCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Status} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * delete a ReplicaSet - * @param {String} name name of the ReplicaSet - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1DeleteOptions} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {Number} opts.gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - * @param {Boolean} opts.orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - * @param {String} opts.propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api~deleteNamespacedReplicaSetCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1Status} - */ - this.deleteNamespacedReplicaSet = function(name, namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling deleteNamespacedReplicaSet"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling deleteNamespacedReplicaSet"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling deleteNamespacedReplicaSet"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'], - 'gracePeriodSeconds': opts['gracePeriodSeconds'], - 'orphanDependents': opts['orphanDependents'], - 'propagationPolicy': opts['propagationPolicy'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1Status; - - return this.apiClient.callApi( - '/apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the deletePodSecurityPolicy operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api~deletePodSecurityPolicyCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Status} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * delete a PodSecurityPolicy - * @param {String} name name of the PodSecurityPolicy - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1DeleteOptions} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {Number} opts.gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - * @param {Boolean} opts.orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - * @param {String} opts.propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api~deletePodSecurityPolicyCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1Status} - */ - this.deletePodSecurityPolicy = function(name, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling deletePodSecurityPolicy"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling deletePodSecurityPolicy"); - } - - - var pathParams = { - 'name': name - }; - var queryParams = { - 'pretty': opts['pretty'], - 'gracePeriodSeconds': opts['gracePeriodSeconds'], - 'orphanDependents': opts['orphanDependents'], - 'propagationPolicy': opts['propagationPolicy'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1Status; - - return this.apiClient.callApi( - '/apis/extensions/v1beta1/podsecuritypolicies/{name}', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the deleteThirdPartyResource operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api~deleteThirdPartyResourceCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Status} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * delete a ThirdPartyResource - * @param {String} name name of the ThirdPartyResource - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1DeleteOptions} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {Number} opts.gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - * @param {Boolean} opts.orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - * @param {String} opts.propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api~deleteThirdPartyResourceCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1Status} - */ - this.deleteThirdPartyResource = function(name, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling deleteThirdPartyResource"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling deleteThirdPartyResource"); - } - - - var pathParams = { - 'name': name - }; - var queryParams = { - 'pretty': opts['pretty'], - 'gracePeriodSeconds': opts['gracePeriodSeconds'], - 'orphanDependents': opts['orphanDependents'], - 'propagationPolicy': opts['propagationPolicy'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1Status; - - return this.apiClient.callApi( - '/apis/extensions/v1beta1/thirdpartyresources/{name}', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the getAPIResources operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api~getAPIResourcesCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1APIResourceList} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * get available resources - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api~getAPIResourcesCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1APIResourceList} - */ - this.getAPIResources = function(callback) { - var postBody = null; - - - var pathParams = { - }; - var queryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1APIResourceList; - - return this.apiClient.callApi( - '/apis/extensions/v1beta1/', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the listDaemonSetForAllNamespaces operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api~listDaemonSetForAllNamespacesCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1DaemonSetList} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * list or watch objects of kind DaemonSet - * @param {Object} opts Optional parameters - * @param {String} opts.fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. - * @param {String} opts.labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {String} opts.resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - * @param {Number} opts.timeoutSeconds Timeout for the list/watch call. - * @param {Boolean} opts.watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api~listDaemonSetForAllNamespacesCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1beta1DaemonSetList} - */ - this.listDaemonSetForAllNamespaces = function(opts, callback) { - opts = opts || {}; - var postBody = null; - - - var pathParams = { - }; - var queryParams = { - 'fieldSelector': opts['fieldSelector'], - 'labelSelector': opts['labelSelector'], - 'pretty': opts['pretty'], - 'resourceVersion': opts['resourceVersion'], - 'timeoutSeconds': opts['timeoutSeconds'], - 'watch': opts['watch'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']; - var returnType = V1beta1DaemonSetList; - - return this.apiClient.callApi( - '/apis/extensions/v1beta1/daemonsets', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the listDeploymentForAllNamespaces operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api~listDeploymentForAllNamespacesCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1DeploymentList} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * list or watch objects of kind Deployment - * @param {Object} opts Optional parameters - * @param {String} opts.fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. - * @param {String} opts.labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {String} opts.resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - * @param {Number} opts.timeoutSeconds Timeout for the list/watch call. - * @param {Boolean} opts.watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api~listDeploymentForAllNamespacesCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1DeploymentList} - */ - this.listDeploymentForAllNamespaces = function(opts, callback) { - opts = opts || {}; - var postBody = null; - - - var pathParams = { - }; - var queryParams = { - 'fieldSelector': opts['fieldSelector'], - 'labelSelector': opts['labelSelector'], - 'pretty': opts['pretty'], - 'resourceVersion': opts['resourceVersion'], - 'timeoutSeconds': opts['timeoutSeconds'], - 'watch': opts['watch'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']; - var returnType = ExtensionsV1beta1DeploymentList; - - return this.apiClient.callApi( - '/apis/extensions/v1beta1/deployments', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the listIngressForAllNamespaces operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api~listIngressForAllNamespacesCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1IngressList} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * list or watch objects of kind Ingress - * @param {Object} opts Optional parameters - * @param {String} opts.fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. - * @param {String} opts.labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {String} opts.resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - * @param {Number} opts.timeoutSeconds Timeout for the list/watch call. - * @param {Boolean} opts.watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api~listIngressForAllNamespacesCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1beta1IngressList} - */ - this.listIngressForAllNamespaces = function(opts, callback) { - opts = opts || {}; - var postBody = null; - - - var pathParams = { - }; - var queryParams = { - 'fieldSelector': opts['fieldSelector'], - 'labelSelector': opts['labelSelector'], - 'pretty': opts['pretty'], - 'resourceVersion': opts['resourceVersion'], - 'timeoutSeconds': opts['timeoutSeconds'], - 'watch': opts['watch'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']; - var returnType = V1beta1IngressList; - - return this.apiClient.callApi( - '/apis/extensions/v1beta1/ingresses', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the listNamespacedDaemonSet operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api~listNamespacedDaemonSetCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1DaemonSetList} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * list or watch objects of kind DaemonSet - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {String} opts.fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. - * @param {String} opts.labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. - * @param {String} opts.resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - * @param {Number} opts.timeoutSeconds Timeout for the list/watch call. - * @param {Boolean} opts.watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api~listNamespacedDaemonSetCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1beta1DaemonSetList} - */ - this.listNamespacedDaemonSet = function(namespace, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling listNamespacedDaemonSet"); - } - - - var pathParams = { - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'], - 'fieldSelector': opts['fieldSelector'], - 'labelSelector': opts['labelSelector'], - 'resourceVersion': opts['resourceVersion'], - 'timeoutSeconds': opts['timeoutSeconds'], - 'watch': opts['watch'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']; - var returnType = V1beta1DaemonSetList; - - return this.apiClient.callApi( - '/apis/extensions/v1beta1/namespaces/{namespace}/daemonsets', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the listNamespacedDeployment operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api~listNamespacedDeploymentCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1DeploymentList} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * list or watch objects of kind Deployment - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {String} opts.fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. - * @param {String} opts.labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. - * @param {String} opts.resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - * @param {Number} opts.timeoutSeconds Timeout for the list/watch call. - * @param {Boolean} opts.watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api~listNamespacedDeploymentCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1DeploymentList} - */ - this.listNamespacedDeployment = function(namespace, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling listNamespacedDeployment"); - } - - - var pathParams = { - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'], - 'fieldSelector': opts['fieldSelector'], - 'labelSelector': opts['labelSelector'], - 'resourceVersion': opts['resourceVersion'], - 'timeoutSeconds': opts['timeoutSeconds'], - 'watch': opts['watch'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']; - var returnType = ExtensionsV1beta1DeploymentList; - - return this.apiClient.callApi( - '/apis/extensions/v1beta1/namespaces/{namespace}/deployments', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the listNamespacedIngress operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api~listNamespacedIngressCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1IngressList} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * list or watch objects of kind Ingress - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {String} opts.fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. - * @param {String} opts.labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. - * @param {String} opts.resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - * @param {Number} opts.timeoutSeconds Timeout for the list/watch call. - * @param {Boolean} opts.watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api~listNamespacedIngressCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1beta1IngressList} - */ - this.listNamespacedIngress = function(namespace, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling listNamespacedIngress"); - } - - - var pathParams = { - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'], - 'fieldSelector': opts['fieldSelector'], - 'labelSelector': opts['labelSelector'], - 'resourceVersion': opts['resourceVersion'], - 'timeoutSeconds': opts['timeoutSeconds'], - 'watch': opts['watch'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']; - var returnType = V1beta1IngressList; - - return this.apiClient.callApi( - '/apis/extensions/v1beta1/namespaces/{namespace}/ingresses', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the listNamespacedNetworkPolicy operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api~listNamespacedNetworkPolicyCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1NetworkPolicyList} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * list or watch objects of kind NetworkPolicy - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {String} opts.fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. - * @param {String} opts.labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. - * @param {String} opts.resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - * @param {Number} opts.timeoutSeconds Timeout for the list/watch call. - * @param {Boolean} opts.watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api~listNamespacedNetworkPolicyCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1beta1NetworkPolicyList} - */ - this.listNamespacedNetworkPolicy = function(namespace, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling listNamespacedNetworkPolicy"); - } - - - var pathParams = { - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'], - 'fieldSelector': opts['fieldSelector'], - 'labelSelector': opts['labelSelector'], - 'resourceVersion': opts['resourceVersion'], - 'timeoutSeconds': opts['timeoutSeconds'], - 'watch': opts['watch'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']; - var returnType = V1beta1NetworkPolicyList; - - return this.apiClient.callApi( - '/apis/extensions/v1beta1/namespaces/{namespace}/networkpolicies', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the listNamespacedReplicaSet operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api~listNamespacedReplicaSetCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1ReplicaSetList} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * list or watch objects of kind ReplicaSet - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {String} opts.fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. - * @param {String} opts.labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. - * @param {String} opts.resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - * @param {Number} opts.timeoutSeconds Timeout for the list/watch call. - * @param {Boolean} opts.watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api~listNamespacedReplicaSetCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1beta1ReplicaSetList} - */ - this.listNamespacedReplicaSet = function(namespace, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling listNamespacedReplicaSet"); - } - - - var pathParams = { - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'], - 'fieldSelector': opts['fieldSelector'], - 'labelSelector': opts['labelSelector'], - 'resourceVersion': opts['resourceVersion'], - 'timeoutSeconds': opts['timeoutSeconds'], - 'watch': opts['watch'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']; - var returnType = V1beta1ReplicaSetList; - - return this.apiClient.callApi( - '/apis/extensions/v1beta1/namespaces/{namespace}/replicasets', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the listNetworkPolicyForAllNamespaces operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api~listNetworkPolicyForAllNamespacesCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1NetworkPolicyList} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * list or watch objects of kind NetworkPolicy - * @param {Object} opts Optional parameters - * @param {String} opts.fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. - * @param {String} opts.labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {String} opts.resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - * @param {Number} opts.timeoutSeconds Timeout for the list/watch call. - * @param {Boolean} opts.watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api~listNetworkPolicyForAllNamespacesCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1beta1NetworkPolicyList} - */ - this.listNetworkPolicyForAllNamespaces = function(opts, callback) { - opts = opts || {}; - var postBody = null; - - - var pathParams = { - }; - var queryParams = { - 'fieldSelector': opts['fieldSelector'], - 'labelSelector': opts['labelSelector'], - 'pretty': opts['pretty'], - 'resourceVersion': opts['resourceVersion'], - 'timeoutSeconds': opts['timeoutSeconds'], - 'watch': opts['watch'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']; - var returnType = V1beta1NetworkPolicyList; - - return this.apiClient.callApi( - '/apis/extensions/v1beta1/networkpolicies', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the listPodSecurityPolicy operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api~listPodSecurityPolicyCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1PodSecurityPolicyList} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * list or watch objects of kind PodSecurityPolicy - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {String} opts.fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. - * @param {String} opts.labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. - * @param {String} opts.resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - * @param {Number} opts.timeoutSeconds Timeout for the list/watch call. - * @param {Boolean} opts.watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api~listPodSecurityPolicyCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1beta1PodSecurityPolicyList} - */ - this.listPodSecurityPolicy = function(opts, callback) { - opts = opts || {}; - var postBody = null; - - - var pathParams = { - }; - var queryParams = { - 'pretty': opts['pretty'], - 'fieldSelector': opts['fieldSelector'], - 'labelSelector': opts['labelSelector'], - 'resourceVersion': opts['resourceVersion'], - 'timeoutSeconds': opts['timeoutSeconds'], - 'watch': opts['watch'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']; - var returnType = V1beta1PodSecurityPolicyList; - - return this.apiClient.callApi( - '/apis/extensions/v1beta1/podsecuritypolicies', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the listReplicaSetForAllNamespaces operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api~listReplicaSetForAllNamespacesCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1ReplicaSetList} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * list or watch objects of kind ReplicaSet - * @param {Object} opts Optional parameters - * @param {String} opts.fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. - * @param {String} opts.labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {String} opts.resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - * @param {Number} opts.timeoutSeconds Timeout for the list/watch call. - * @param {Boolean} opts.watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api~listReplicaSetForAllNamespacesCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1beta1ReplicaSetList} - */ - this.listReplicaSetForAllNamespaces = function(opts, callback) { - opts = opts || {}; - var postBody = null; - - - var pathParams = { - }; - var queryParams = { - 'fieldSelector': opts['fieldSelector'], - 'labelSelector': opts['labelSelector'], - 'pretty': opts['pretty'], - 'resourceVersion': opts['resourceVersion'], - 'timeoutSeconds': opts['timeoutSeconds'], - 'watch': opts['watch'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']; - var returnType = V1beta1ReplicaSetList; - - return this.apiClient.callApi( - '/apis/extensions/v1beta1/replicasets', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the listThirdPartyResource operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api~listThirdPartyResourceCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1ThirdPartyResourceList} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * list or watch objects of kind ThirdPartyResource - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {String} opts.fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. - * @param {String} opts.labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. - * @param {String} opts.resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - * @param {Number} opts.timeoutSeconds Timeout for the list/watch call. - * @param {Boolean} opts.watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api~listThirdPartyResourceCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1beta1ThirdPartyResourceList} - */ - this.listThirdPartyResource = function(opts, callback) { - opts = opts || {}; - var postBody = null; - - - var pathParams = { - }; - var queryParams = { - 'pretty': opts['pretty'], - 'fieldSelector': opts['fieldSelector'], - 'labelSelector': opts['labelSelector'], - 'resourceVersion': opts['resourceVersion'], - 'timeoutSeconds': opts['timeoutSeconds'], - 'watch': opts['watch'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']; - var returnType = V1beta1ThirdPartyResourceList; - - return this.apiClient.callApi( - '/apis/extensions/v1beta1/thirdpartyresources', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the patchNamespacedDaemonSet operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api~patchNamespacedDaemonSetCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1DaemonSet} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * partially update the specified DaemonSet - * @param {String} name name of the DaemonSet - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api~patchNamespacedDaemonSetCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1beta1DaemonSet} - */ - this.patchNamespacedDaemonSet = function(name, namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling patchNamespacedDaemonSet"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling patchNamespacedDaemonSet"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling patchNamespacedDaemonSet"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1beta1DaemonSet; - - return this.apiClient.callApi( - '/apis/extensions/v1beta1/namespaces/{namespace}/daemonsets/{name}', 'PATCH', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the patchNamespacedDaemonSetStatus operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api~patchNamespacedDaemonSetStatusCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1DaemonSet} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * partially update status of the specified DaemonSet - * @param {String} name name of the DaemonSet - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api~patchNamespacedDaemonSetStatusCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1beta1DaemonSet} - */ - this.patchNamespacedDaemonSetStatus = function(name, namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling patchNamespacedDaemonSetStatus"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling patchNamespacedDaemonSetStatus"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling patchNamespacedDaemonSetStatus"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1beta1DaemonSet; - - return this.apiClient.callApi( - '/apis/extensions/v1beta1/namespaces/{namespace}/daemonsets/{name}/status', 'PATCH', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the patchNamespacedDeployment operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api~patchNamespacedDeploymentCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1Deployment} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * partially update the specified Deployment - * @param {String} name name of the Deployment - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api~patchNamespacedDeploymentCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1Deployment} - */ - this.patchNamespacedDeployment = function(name, namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling patchNamespacedDeployment"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling patchNamespacedDeployment"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling patchNamespacedDeployment"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = ExtensionsV1beta1Deployment; - - return this.apiClient.callApi( - '/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}', 'PATCH', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the patchNamespacedDeploymentStatus operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api~patchNamespacedDeploymentStatusCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1Deployment} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * partially update status of the specified Deployment - * @param {String} name name of the Deployment - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api~patchNamespacedDeploymentStatusCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1Deployment} - */ - this.patchNamespacedDeploymentStatus = function(name, namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling patchNamespacedDeploymentStatus"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling patchNamespacedDeploymentStatus"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling patchNamespacedDeploymentStatus"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = ExtensionsV1beta1Deployment; - - return this.apiClient.callApi( - '/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/status', 'PATCH', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the patchNamespacedDeploymentsScale operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api~patchNamespacedDeploymentsScaleCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1Scale} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * partially update scale of the specified Scale - * @param {String} name name of the Scale - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api~patchNamespacedDeploymentsScaleCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1Scale} - */ - this.patchNamespacedDeploymentsScale = function(name, namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling patchNamespacedDeploymentsScale"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling patchNamespacedDeploymentsScale"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling patchNamespacedDeploymentsScale"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = ExtensionsV1beta1Scale; - - return this.apiClient.callApi( - '/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/scale', 'PATCH', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the patchNamespacedIngress operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api~patchNamespacedIngressCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1Ingress} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * partially update the specified Ingress - * @param {String} name name of the Ingress - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api~patchNamespacedIngressCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1beta1Ingress} - */ - this.patchNamespacedIngress = function(name, namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling patchNamespacedIngress"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling patchNamespacedIngress"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling patchNamespacedIngress"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1beta1Ingress; - - return this.apiClient.callApi( - '/apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name}', 'PATCH', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the patchNamespacedIngressStatus operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api~patchNamespacedIngressStatusCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1Ingress} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * partially update status of the specified Ingress - * @param {String} name name of the Ingress - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api~patchNamespacedIngressStatusCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1beta1Ingress} - */ - this.patchNamespacedIngressStatus = function(name, namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling patchNamespacedIngressStatus"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling patchNamespacedIngressStatus"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling patchNamespacedIngressStatus"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1beta1Ingress; - - return this.apiClient.callApi( - '/apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name}/status', 'PATCH', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the patchNamespacedNetworkPolicy operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api~patchNamespacedNetworkPolicyCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1NetworkPolicy} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * partially update the specified NetworkPolicy - * @param {String} name name of the NetworkPolicy - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api~patchNamespacedNetworkPolicyCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1beta1NetworkPolicy} - */ - this.patchNamespacedNetworkPolicy = function(name, namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling patchNamespacedNetworkPolicy"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling patchNamespacedNetworkPolicy"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling patchNamespacedNetworkPolicy"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1beta1NetworkPolicy; - - return this.apiClient.callApi( - '/apis/extensions/v1beta1/namespaces/{namespace}/networkpolicies/{name}', 'PATCH', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the patchNamespacedReplicaSet operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api~patchNamespacedReplicaSetCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1ReplicaSet} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * partially update the specified ReplicaSet - * @param {String} name name of the ReplicaSet - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api~patchNamespacedReplicaSetCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1beta1ReplicaSet} - */ - this.patchNamespacedReplicaSet = function(name, namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling patchNamespacedReplicaSet"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling patchNamespacedReplicaSet"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling patchNamespacedReplicaSet"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1beta1ReplicaSet; - - return this.apiClient.callApi( - '/apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}', 'PATCH', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the patchNamespacedReplicaSetStatus operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api~patchNamespacedReplicaSetStatusCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1ReplicaSet} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * partially update status of the specified ReplicaSet - * @param {String} name name of the ReplicaSet - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api~patchNamespacedReplicaSetStatusCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1beta1ReplicaSet} - */ - this.patchNamespacedReplicaSetStatus = function(name, namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling patchNamespacedReplicaSetStatus"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling patchNamespacedReplicaSetStatus"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling patchNamespacedReplicaSetStatus"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1beta1ReplicaSet; - - return this.apiClient.callApi( - '/apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}/status', 'PATCH', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the patchNamespacedReplicasetsScale operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api~patchNamespacedReplicasetsScaleCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1Scale} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * partially update scale of the specified Scale - * @param {String} name name of the Scale - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api~patchNamespacedReplicasetsScaleCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1Scale} - */ - this.patchNamespacedReplicasetsScale = function(name, namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling patchNamespacedReplicasetsScale"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling patchNamespacedReplicasetsScale"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling patchNamespacedReplicasetsScale"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = ExtensionsV1beta1Scale; - - return this.apiClient.callApi( - '/apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}/scale', 'PATCH', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the patchNamespacedReplicationcontrollersScale operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api~patchNamespacedReplicationcontrollersScaleCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1Scale} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * partially update scale of the specified Scale - * @param {String} name name of the Scale - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api~patchNamespacedReplicationcontrollersScaleCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1Scale} - */ - this.patchNamespacedReplicationcontrollersScale = function(name, namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling patchNamespacedReplicationcontrollersScale"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling patchNamespacedReplicationcontrollersScale"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling patchNamespacedReplicationcontrollersScale"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = ExtensionsV1beta1Scale; - - return this.apiClient.callApi( - '/apis/extensions/v1beta1/namespaces/{namespace}/replicationcontrollers/{name}/scale', 'PATCH', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the patchPodSecurityPolicy operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api~patchPodSecurityPolicyCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1PodSecurityPolicy} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * partially update the specified PodSecurityPolicy - * @param {String} name name of the PodSecurityPolicy - * @param {Object} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api~patchPodSecurityPolicyCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1beta1PodSecurityPolicy} - */ - this.patchPodSecurityPolicy = function(name, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling patchPodSecurityPolicy"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling patchPodSecurityPolicy"); - } - - - var pathParams = { - 'name': name - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1beta1PodSecurityPolicy; - - return this.apiClient.callApi( - '/apis/extensions/v1beta1/podsecuritypolicies/{name}', 'PATCH', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the patchThirdPartyResource operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api~patchThirdPartyResourceCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1ThirdPartyResource} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * partially update the specified ThirdPartyResource - * @param {String} name name of the ThirdPartyResource - * @param {Object} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api~patchThirdPartyResourceCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1beta1ThirdPartyResource} - */ - this.patchThirdPartyResource = function(name, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling patchThirdPartyResource"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling patchThirdPartyResource"); - } - - - var pathParams = { - 'name': name - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1beta1ThirdPartyResource; - - return this.apiClient.callApi( - '/apis/extensions/v1beta1/thirdpartyresources/{name}', 'PATCH', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the readNamespacedDaemonSet operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api~readNamespacedDaemonSetCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1DaemonSet} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * read the specified DaemonSet - * @param {String} name name of the DaemonSet - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {Boolean} opts.exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. - * @param {Boolean} opts._export Should this value be exported. Export strips fields that a user can not specify. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api~readNamespacedDaemonSetCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1beta1DaemonSet} - */ - this.readNamespacedDaemonSet = function(name, namespace, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling readNamespacedDaemonSet"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling readNamespacedDaemonSet"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'], - 'exact': opts['exact'], - 'export': opts['_export'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1beta1DaemonSet; - - return this.apiClient.callApi( - '/apis/extensions/v1beta1/namespaces/{namespace}/daemonsets/{name}', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the readNamespacedDaemonSetStatus operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api~readNamespacedDaemonSetStatusCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1DaemonSet} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * read status of the specified DaemonSet - * @param {String} name name of the DaemonSet - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api~readNamespacedDaemonSetStatusCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1beta1DaemonSet} - */ - this.readNamespacedDaemonSetStatus = function(name, namespace, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling readNamespacedDaemonSetStatus"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling readNamespacedDaemonSetStatus"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1beta1DaemonSet; - - return this.apiClient.callApi( - '/apis/extensions/v1beta1/namespaces/{namespace}/daemonsets/{name}/status', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the readNamespacedDeployment operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api~readNamespacedDeploymentCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1Deployment} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * read the specified Deployment - * @param {String} name name of the Deployment - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {Boolean} opts.exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. - * @param {Boolean} opts._export Should this value be exported. Export strips fields that a user can not specify. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api~readNamespacedDeploymentCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1Deployment} - */ - this.readNamespacedDeployment = function(name, namespace, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling readNamespacedDeployment"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling readNamespacedDeployment"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'], - 'exact': opts['exact'], - 'export': opts['_export'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = ExtensionsV1beta1Deployment; - - return this.apiClient.callApi( - '/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the readNamespacedDeploymentStatus operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api~readNamespacedDeploymentStatusCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1Deployment} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * read status of the specified Deployment - * @param {String} name name of the Deployment - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api~readNamespacedDeploymentStatusCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1Deployment} - */ - this.readNamespacedDeploymentStatus = function(name, namespace, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling readNamespacedDeploymentStatus"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling readNamespacedDeploymentStatus"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = ExtensionsV1beta1Deployment; - - return this.apiClient.callApi( - '/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/status', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the readNamespacedDeploymentsScale operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api~readNamespacedDeploymentsScaleCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1Scale} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * read scale of the specified Scale - * @param {String} name name of the Scale - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api~readNamespacedDeploymentsScaleCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1Scale} - */ - this.readNamespacedDeploymentsScale = function(name, namespace, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling readNamespacedDeploymentsScale"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling readNamespacedDeploymentsScale"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = ExtensionsV1beta1Scale; - - return this.apiClient.callApi( - '/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/scale', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the readNamespacedIngress operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api~readNamespacedIngressCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1Ingress} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * read the specified Ingress - * @param {String} name name of the Ingress - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {Boolean} opts.exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. - * @param {Boolean} opts._export Should this value be exported. Export strips fields that a user can not specify. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api~readNamespacedIngressCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1beta1Ingress} - */ - this.readNamespacedIngress = function(name, namespace, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling readNamespacedIngress"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling readNamespacedIngress"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'], - 'exact': opts['exact'], - 'export': opts['_export'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1beta1Ingress; - - return this.apiClient.callApi( - '/apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name}', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the readNamespacedIngressStatus operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api~readNamespacedIngressStatusCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1Ingress} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * read status of the specified Ingress - * @param {String} name name of the Ingress - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api~readNamespacedIngressStatusCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1beta1Ingress} - */ - this.readNamespacedIngressStatus = function(name, namespace, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling readNamespacedIngressStatus"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling readNamespacedIngressStatus"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1beta1Ingress; - - return this.apiClient.callApi( - '/apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name}/status', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the readNamespacedNetworkPolicy operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api~readNamespacedNetworkPolicyCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1NetworkPolicy} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * read the specified NetworkPolicy - * @param {String} name name of the NetworkPolicy - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {Boolean} opts.exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. - * @param {Boolean} opts._export Should this value be exported. Export strips fields that a user can not specify. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api~readNamespacedNetworkPolicyCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1beta1NetworkPolicy} - */ - this.readNamespacedNetworkPolicy = function(name, namespace, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling readNamespacedNetworkPolicy"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling readNamespacedNetworkPolicy"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'], - 'exact': opts['exact'], - 'export': opts['_export'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1beta1NetworkPolicy; - - return this.apiClient.callApi( - '/apis/extensions/v1beta1/namespaces/{namespace}/networkpolicies/{name}', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the readNamespacedReplicaSet operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api~readNamespacedReplicaSetCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1ReplicaSet} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * read the specified ReplicaSet - * @param {String} name name of the ReplicaSet - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {Boolean} opts.exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. - * @param {Boolean} opts._export Should this value be exported. Export strips fields that a user can not specify. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api~readNamespacedReplicaSetCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1beta1ReplicaSet} - */ - this.readNamespacedReplicaSet = function(name, namespace, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling readNamespacedReplicaSet"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling readNamespacedReplicaSet"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'], - 'exact': opts['exact'], - 'export': opts['_export'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1beta1ReplicaSet; - - return this.apiClient.callApi( - '/apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the readNamespacedReplicaSetStatus operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api~readNamespacedReplicaSetStatusCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1ReplicaSet} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * read status of the specified ReplicaSet - * @param {String} name name of the ReplicaSet - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api~readNamespacedReplicaSetStatusCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1beta1ReplicaSet} - */ - this.readNamespacedReplicaSetStatus = function(name, namespace, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling readNamespacedReplicaSetStatus"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling readNamespacedReplicaSetStatus"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1beta1ReplicaSet; - - return this.apiClient.callApi( - '/apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}/status', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the readNamespacedReplicasetsScale operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api~readNamespacedReplicasetsScaleCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1Scale} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * read scale of the specified Scale - * @param {String} name name of the Scale - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api~readNamespacedReplicasetsScaleCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1Scale} - */ - this.readNamespacedReplicasetsScale = function(name, namespace, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling readNamespacedReplicasetsScale"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling readNamespacedReplicasetsScale"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = ExtensionsV1beta1Scale; - - return this.apiClient.callApi( - '/apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}/scale', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the readNamespacedReplicationcontrollersScale operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api~readNamespacedReplicationcontrollersScaleCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1Scale} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * read scale of the specified Scale - * @param {String} name name of the Scale - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api~readNamespacedReplicationcontrollersScaleCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1Scale} - */ - this.readNamespacedReplicationcontrollersScale = function(name, namespace, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling readNamespacedReplicationcontrollersScale"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling readNamespacedReplicationcontrollersScale"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = ExtensionsV1beta1Scale; - - return this.apiClient.callApi( - '/apis/extensions/v1beta1/namespaces/{namespace}/replicationcontrollers/{name}/scale', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the readPodSecurityPolicy operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api~readPodSecurityPolicyCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1PodSecurityPolicy} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * read the specified PodSecurityPolicy - * @param {String} name name of the PodSecurityPolicy - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {Boolean} opts.exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. - * @param {Boolean} opts._export Should this value be exported. Export strips fields that a user can not specify. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api~readPodSecurityPolicyCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1beta1PodSecurityPolicy} - */ - this.readPodSecurityPolicy = function(name, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling readPodSecurityPolicy"); - } - - - var pathParams = { - 'name': name - }; - var queryParams = { - 'pretty': opts['pretty'], - 'exact': opts['exact'], - 'export': opts['_export'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1beta1PodSecurityPolicy; - - return this.apiClient.callApi( - '/apis/extensions/v1beta1/podsecuritypolicies/{name}', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the readThirdPartyResource operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api~readThirdPartyResourceCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1ThirdPartyResource} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * read the specified ThirdPartyResource - * @param {String} name name of the ThirdPartyResource - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {Boolean} opts.exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. - * @param {Boolean} opts._export Should this value be exported. Export strips fields that a user can not specify. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api~readThirdPartyResourceCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1beta1ThirdPartyResource} - */ - this.readThirdPartyResource = function(name, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling readThirdPartyResource"); - } - - - var pathParams = { - 'name': name - }; - var queryParams = { - 'pretty': opts['pretty'], - 'exact': opts['exact'], - 'export': opts['_export'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1beta1ThirdPartyResource; - - return this.apiClient.callApi( - '/apis/extensions/v1beta1/thirdpartyresources/{name}', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the replaceNamespacedDaemonSet operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api~replaceNamespacedDaemonSetCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1DaemonSet} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * replace the specified DaemonSet - * @param {String} name name of the DaemonSet - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1DaemonSet} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api~replaceNamespacedDaemonSetCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1beta1DaemonSet} - */ - this.replaceNamespacedDaemonSet = function(name, namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling replaceNamespacedDaemonSet"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling replaceNamespacedDaemonSet"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling replaceNamespacedDaemonSet"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1beta1DaemonSet; - - return this.apiClient.callApi( - '/apis/extensions/v1beta1/namespaces/{namespace}/daemonsets/{name}', 'PUT', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the replaceNamespacedDaemonSetStatus operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api~replaceNamespacedDaemonSetStatusCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1DaemonSet} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * replace status of the specified DaemonSet - * @param {String} name name of the DaemonSet - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1DaemonSet} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api~replaceNamespacedDaemonSetStatusCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1beta1DaemonSet} - */ - this.replaceNamespacedDaemonSetStatus = function(name, namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling replaceNamespacedDaemonSetStatus"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling replaceNamespacedDaemonSetStatus"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling replaceNamespacedDaemonSetStatus"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1beta1DaemonSet; - - return this.apiClient.callApi( - '/apis/extensions/v1beta1/namespaces/{namespace}/daemonsets/{name}/status', 'PUT', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the replaceNamespacedDeployment operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api~replaceNamespacedDeploymentCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1Deployment} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * replace the specified Deployment - * @param {String} name name of the Deployment - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {module:io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1Deployment} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api~replaceNamespacedDeploymentCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1Deployment} - */ - this.replaceNamespacedDeployment = function(name, namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling replaceNamespacedDeployment"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling replaceNamespacedDeployment"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling replaceNamespacedDeployment"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = ExtensionsV1beta1Deployment; - - return this.apiClient.callApi( - '/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}', 'PUT', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the replaceNamespacedDeploymentStatus operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api~replaceNamespacedDeploymentStatusCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1Deployment} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * replace status of the specified Deployment - * @param {String} name name of the Deployment - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {module:io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1Deployment} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api~replaceNamespacedDeploymentStatusCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1Deployment} - */ - this.replaceNamespacedDeploymentStatus = function(name, namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling replaceNamespacedDeploymentStatus"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling replaceNamespacedDeploymentStatus"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling replaceNamespacedDeploymentStatus"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = ExtensionsV1beta1Deployment; - - return this.apiClient.callApi( - '/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/status', 'PUT', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the replaceNamespacedDeploymentsScale operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api~replaceNamespacedDeploymentsScaleCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1Scale} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * replace scale of the specified Scale - * @param {String} name name of the Scale - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {module:io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1Scale} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api~replaceNamespacedDeploymentsScaleCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1Scale} - */ - this.replaceNamespacedDeploymentsScale = function(name, namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling replaceNamespacedDeploymentsScale"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling replaceNamespacedDeploymentsScale"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling replaceNamespacedDeploymentsScale"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = ExtensionsV1beta1Scale; - - return this.apiClient.callApi( - '/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/scale', 'PUT', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the replaceNamespacedIngress operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api~replaceNamespacedIngressCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1Ingress} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * replace the specified Ingress - * @param {String} name name of the Ingress - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1Ingress} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api~replaceNamespacedIngressCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1beta1Ingress} - */ - this.replaceNamespacedIngress = function(name, namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling replaceNamespacedIngress"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling replaceNamespacedIngress"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling replaceNamespacedIngress"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1beta1Ingress; - - return this.apiClient.callApi( - '/apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name}', 'PUT', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the replaceNamespacedIngressStatus operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api~replaceNamespacedIngressStatusCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1Ingress} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * replace status of the specified Ingress - * @param {String} name name of the Ingress - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1Ingress} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api~replaceNamespacedIngressStatusCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1beta1Ingress} - */ - this.replaceNamespacedIngressStatus = function(name, namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling replaceNamespacedIngressStatus"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling replaceNamespacedIngressStatus"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling replaceNamespacedIngressStatus"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1beta1Ingress; - - return this.apiClient.callApi( - '/apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name}/status', 'PUT', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the replaceNamespacedNetworkPolicy operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api~replaceNamespacedNetworkPolicyCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1NetworkPolicy} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * replace the specified NetworkPolicy - * @param {String} name name of the NetworkPolicy - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1NetworkPolicy} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api~replaceNamespacedNetworkPolicyCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1beta1NetworkPolicy} - */ - this.replaceNamespacedNetworkPolicy = function(name, namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling replaceNamespacedNetworkPolicy"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling replaceNamespacedNetworkPolicy"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling replaceNamespacedNetworkPolicy"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1beta1NetworkPolicy; - - return this.apiClient.callApi( - '/apis/extensions/v1beta1/namespaces/{namespace}/networkpolicies/{name}', 'PUT', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the replaceNamespacedReplicaSet operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api~replaceNamespacedReplicaSetCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1ReplicaSet} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * replace the specified ReplicaSet - * @param {String} name name of the ReplicaSet - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1ReplicaSet} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api~replaceNamespacedReplicaSetCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1beta1ReplicaSet} - */ - this.replaceNamespacedReplicaSet = function(name, namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling replaceNamespacedReplicaSet"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling replaceNamespacedReplicaSet"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling replaceNamespacedReplicaSet"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1beta1ReplicaSet; - - return this.apiClient.callApi( - '/apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}', 'PUT', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the replaceNamespacedReplicaSetStatus operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api~replaceNamespacedReplicaSetStatusCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1ReplicaSet} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * replace status of the specified ReplicaSet - * @param {String} name name of the ReplicaSet - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1ReplicaSet} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api~replaceNamespacedReplicaSetStatusCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1beta1ReplicaSet} - */ - this.replaceNamespacedReplicaSetStatus = function(name, namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling replaceNamespacedReplicaSetStatus"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling replaceNamespacedReplicaSetStatus"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling replaceNamespacedReplicaSetStatus"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1beta1ReplicaSet; - - return this.apiClient.callApi( - '/apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}/status', 'PUT', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the replaceNamespacedReplicasetsScale operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api~replaceNamespacedReplicasetsScaleCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1Scale} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * replace scale of the specified Scale - * @param {String} name name of the Scale - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {module:io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1Scale} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api~replaceNamespacedReplicasetsScaleCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1Scale} - */ - this.replaceNamespacedReplicasetsScale = function(name, namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling replaceNamespacedReplicasetsScale"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling replaceNamespacedReplicasetsScale"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling replaceNamespacedReplicasetsScale"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = ExtensionsV1beta1Scale; - - return this.apiClient.callApi( - '/apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}/scale', 'PUT', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the replaceNamespacedReplicationcontrollersScale operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api~replaceNamespacedReplicationcontrollersScaleCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1Scale} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * replace scale of the specified Scale - * @param {String} name name of the Scale - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {module:io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1Scale} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api~replaceNamespacedReplicationcontrollersScaleCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1Scale} - */ - this.replaceNamespacedReplicationcontrollersScale = function(name, namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling replaceNamespacedReplicationcontrollersScale"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling replaceNamespacedReplicationcontrollersScale"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling replaceNamespacedReplicationcontrollersScale"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = ExtensionsV1beta1Scale; - - return this.apiClient.callApi( - '/apis/extensions/v1beta1/namespaces/{namespace}/replicationcontrollers/{name}/scale', 'PUT', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the replacePodSecurityPolicy operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api~replacePodSecurityPolicyCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1PodSecurityPolicy} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * replace the specified PodSecurityPolicy - * @param {String} name name of the PodSecurityPolicy - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1PodSecurityPolicy} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api~replacePodSecurityPolicyCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1beta1PodSecurityPolicy} - */ - this.replacePodSecurityPolicy = function(name, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling replacePodSecurityPolicy"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling replacePodSecurityPolicy"); - } - - - var pathParams = { - 'name': name - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1beta1PodSecurityPolicy; - - return this.apiClient.callApi( - '/apis/extensions/v1beta1/podsecuritypolicies/{name}', 'PUT', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the replaceThirdPartyResource operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api~replaceThirdPartyResourceCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1ThirdPartyResource} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * replace the specified ThirdPartyResource - * @param {String} name name of the ThirdPartyResource - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1ThirdPartyResource} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Extensions_v1beta1Api~replaceThirdPartyResourceCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1beta1ThirdPartyResource} - */ - this.replaceThirdPartyResource = function(name, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling replaceThirdPartyResource"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling replaceThirdPartyResource"); - } - - - var pathParams = { - 'name': name - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1beta1ThirdPartyResource; - - return this.apiClient.callApi( - '/apis/extensions/v1beta1/thirdpartyresources/{name}', 'PUT', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - }; - - return exports; -})); diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.apis/LogsApi.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.apis/LogsApi.js deleted file mode 100644 index 780084135f..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.apis/LogsApi.js +++ /dev/null @@ -1,129 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.LogsApi = factory(root.KubernetesJsClient.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - /** - * Logs service. - * @module io.kubernetes.js/io.kubernetes.js.apis/LogsApi - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new LogsApi. - * @alias module:io.kubernetes.js/io.kubernetes.js.apis/LogsApi - * @class - * @param {module:io.kubernetes.js/ApiClient} apiClient Optional API client implementation to use, - * default to {@link module:io.kubernetes.js/ApiClient#instance} if unspecified. - */ - var exports = function(apiClient) { - this.apiClient = apiClient || ApiClient.instance; - - - /** - * Callback function to receive the result of the logFileHandler operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/LogsApi~logFileHandlerCallback - * @param {String} error Error message, if any. - * @param data This operation does not return a value. - * @param {String} response The complete HTTP response. - */ - - /** - * @param {String} logpath path to the log - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/LogsApi~logFileHandlerCallback} callback The callback function, accepting three arguments: error, data, response - */ - this.logFileHandler = function(logpath, callback) { - var postBody = null; - - // verify the required parameter 'logpath' is set - if (logpath == undefined || logpath == null) { - throw new Error("Missing the required parameter 'logpath' when calling logFileHandler"); - } - - - var pathParams = { - 'logpath': logpath - }; - var queryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = []; - var accepts = []; - var returnType = null; - - return this.apiClient.callApi( - '/logs/{logpath}', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the logFileListHandler operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/LogsApi~logFileListHandlerCallback - * @param {String} error Error message, if any. - * @param data This operation does not return a value. - * @param {String} response The complete HTTP response. - */ - - /** - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/LogsApi~logFileListHandlerCallback} callback The callback function, accepting three arguments: error, data, response - */ - this.logFileListHandler = function(callback) { - var postBody = null; - - - var pathParams = { - }; - var queryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = []; - var accepts = []; - var returnType = null; - - return this.apiClient.callApi( - '/logs/', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - }; - - return exports; -})); diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.apis/PolicyApi.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.apis/PolicyApi.js deleted file mode 100644 index 87023a893b..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.apis/PolicyApi.js +++ /dev/null @@ -1,88 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1APIGroup'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('../io.kubernetes.js.models/V1APIGroup')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.PolicyApi = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1APIGroup); - } -}(this, function(ApiClient, V1APIGroup) { - 'use strict'; - - /** - * Policy service. - * @module io.kubernetes.js/io.kubernetes.js.apis/PolicyApi - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new PolicyApi. - * @alias module:io.kubernetes.js/io.kubernetes.js.apis/PolicyApi - * @class - * @param {module:io.kubernetes.js/ApiClient} apiClient Optional API client implementation to use, - * default to {@link module:io.kubernetes.js/ApiClient#instance} if unspecified. - */ - var exports = function(apiClient) { - this.apiClient = apiClient || ApiClient.instance; - - - /** - * Callback function to receive the result of the getAPIGroup operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/PolicyApi~getAPIGroupCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1APIGroup} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * get information of a group - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/PolicyApi~getAPIGroupCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1APIGroup} - */ - this.getAPIGroup = function(callback) { - var postBody = null; - - - var pathParams = { - }; - var queryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1APIGroup; - - return this.apiClient.callApi( - '/apis/policy/', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - }; - - return exports; -})); diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.apis/Policy_v1beta1Api.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.apis/Policy_v1beta1Api.js deleted file mode 100644 index 1c7bdf1eb2..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.apis/Policy_v1beta1Api.js +++ /dev/null @@ -1,745 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1APIResourceList', 'io.kubernetes.js/io.kubernetes.js.models/V1DeleteOptions', 'io.kubernetes.js/io.kubernetes.js.models/V1Status', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1PodDisruptionBudget', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1PodDisruptionBudgetList'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('../io.kubernetes.js.models/V1APIResourceList'), require('../io.kubernetes.js.models/V1DeleteOptions'), require('../io.kubernetes.js.models/V1Status'), require('../io.kubernetes.js.models/V1beta1PodDisruptionBudget'), require('../io.kubernetes.js.models/V1beta1PodDisruptionBudgetList')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.Policy_v1beta1Api = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1APIResourceList, root.KubernetesJsClient.V1DeleteOptions, root.KubernetesJsClient.V1Status, root.KubernetesJsClient.V1beta1PodDisruptionBudget, root.KubernetesJsClient.V1beta1PodDisruptionBudgetList); - } -}(this, function(ApiClient, V1APIResourceList, V1DeleteOptions, V1Status, V1beta1PodDisruptionBudget, V1beta1PodDisruptionBudgetList) { - 'use strict'; - - /** - * Policy_v1beta1 service. - * @module io.kubernetes.js/io.kubernetes.js.apis/Policy_v1beta1Api - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new Policy_v1beta1Api. - * @alias module:io.kubernetes.js/io.kubernetes.js.apis/Policy_v1beta1Api - * @class - * @param {module:io.kubernetes.js/ApiClient} apiClient Optional API client implementation to use, - * default to {@link module:io.kubernetes.js/ApiClient#instance} if unspecified. - */ - var exports = function(apiClient) { - this.apiClient = apiClient || ApiClient.instance; - - - /** - * Callback function to receive the result of the createNamespacedPodDisruptionBudget operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Policy_v1beta1Api~createNamespacedPodDisruptionBudgetCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1PodDisruptionBudget} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * create a PodDisruptionBudget - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1PodDisruptionBudget} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Policy_v1beta1Api~createNamespacedPodDisruptionBudgetCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1beta1PodDisruptionBudget} - */ - this.createNamespacedPodDisruptionBudget = function(namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling createNamespacedPodDisruptionBudget"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling createNamespacedPodDisruptionBudget"); - } - - - var pathParams = { - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1beta1PodDisruptionBudget; - - return this.apiClient.callApi( - '/apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the deleteCollectionNamespacedPodDisruptionBudget operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Policy_v1beta1Api~deleteCollectionNamespacedPodDisruptionBudgetCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Status} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * delete collection of PodDisruptionBudget - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {String} opts.fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. - * @param {String} opts.labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. - * @param {String} opts.resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - * @param {Number} opts.timeoutSeconds Timeout for the list/watch call. - * @param {Boolean} opts.watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Policy_v1beta1Api~deleteCollectionNamespacedPodDisruptionBudgetCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1Status} - */ - this.deleteCollectionNamespacedPodDisruptionBudget = function(namespace, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedPodDisruptionBudget"); - } - - - var pathParams = { - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'], - 'fieldSelector': opts['fieldSelector'], - 'labelSelector': opts['labelSelector'], - 'resourceVersion': opts['resourceVersion'], - 'timeoutSeconds': opts['timeoutSeconds'], - 'watch': opts['watch'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1Status; - - return this.apiClient.callApi( - '/apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the deleteNamespacedPodDisruptionBudget operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Policy_v1beta1Api~deleteNamespacedPodDisruptionBudgetCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Status} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * delete a PodDisruptionBudget - * @param {String} name name of the PodDisruptionBudget - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1DeleteOptions} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {Number} opts.gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - * @param {Boolean} opts.orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - * @param {String} opts.propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Policy_v1beta1Api~deleteNamespacedPodDisruptionBudgetCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1Status} - */ - this.deleteNamespacedPodDisruptionBudget = function(name, namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling deleteNamespacedPodDisruptionBudget"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling deleteNamespacedPodDisruptionBudget"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling deleteNamespacedPodDisruptionBudget"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'], - 'gracePeriodSeconds': opts['gracePeriodSeconds'], - 'orphanDependents': opts['orphanDependents'], - 'propagationPolicy': opts['propagationPolicy'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1Status; - - return this.apiClient.callApi( - '/apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets/{name}', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the getAPIResources operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Policy_v1beta1Api~getAPIResourcesCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1APIResourceList} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * get available resources - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Policy_v1beta1Api~getAPIResourcesCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1APIResourceList} - */ - this.getAPIResources = function(callback) { - var postBody = null; - - - var pathParams = { - }; - var queryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1APIResourceList; - - return this.apiClient.callApi( - '/apis/policy/v1beta1/', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the listNamespacedPodDisruptionBudget operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Policy_v1beta1Api~listNamespacedPodDisruptionBudgetCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1PodDisruptionBudgetList} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * list or watch objects of kind PodDisruptionBudget - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {String} opts.fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. - * @param {String} opts.labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. - * @param {String} opts.resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - * @param {Number} opts.timeoutSeconds Timeout for the list/watch call. - * @param {Boolean} opts.watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Policy_v1beta1Api~listNamespacedPodDisruptionBudgetCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1beta1PodDisruptionBudgetList} - */ - this.listNamespacedPodDisruptionBudget = function(namespace, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling listNamespacedPodDisruptionBudget"); - } - - - var pathParams = { - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'], - 'fieldSelector': opts['fieldSelector'], - 'labelSelector': opts['labelSelector'], - 'resourceVersion': opts['resourceVersion'], - 'timeoutSeconds': opts['timeoutSeconds'], - 'watch': opts['watch'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']; - var returnType = V1beta1PodDisruptionBudgetList; - - return this.apiClient.callApi( - '/apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the listPodDisruptionBudgetForAllNamespaces operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Policy_v1beta1Api~listPodDisruptionBudgetForAllNamespacesCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1PodDisruptionBudgetList} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * list or watch objects of kind PodDisruptionBudget - * @param {Object} opts Optional parameters - * @param {String} opts.fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. - * @param {String} opts.labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {String} opts.resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - * @param {Number} opts.timeoutSeconds Timeout for the list/watch call. - * @param {Boolean} opts.watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Policy_v1beta1Api~listPodDisruptionBudgetForAllNamespacesCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1beta1PodDisruptionBudgetList} - */ - this.listPodDisruptionBudgetForAllNamespaces = function(opts, callback) { - opts = opts || {}; - var postBody = null; - - - var pathParams = { - }; - var queryParams = { - 'fieldSelector': opts['fieldSelector'], - 'labelSelector': opts['labelSelector'], - 'pretty': opts['pretty'], - 'resourceVersion': opts['resourceVersion'], - 'timeoutSeconds': opts['timeoutSeconds'], - 'watch': opts['watch'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']; - var returnType = V1beta1PodDisruptionBudgetList; - - return this.apiClient.callApi( - '/apis/policy/v1beta1/poddisruptionbudgets', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the patchNamespacedPodDisruptionBudget operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Policy_v1beta1Api~patchNamespacedPodDisruptionBudgetCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1PodDisruptionBudget} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * partially update the specified PodDisruptionBudget - * @param {String} name name of the PodDisruptionBudget - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Policy_v1beta1Api~patchNamespacedPodDisruptionBudgetCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1beta1PodDisruptionBudget} - */ - this.patchNamespacedPodDisruptionBudget = function(name, namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling patchNamespacedPodDisruptionBudget"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling patchNamespacedPodDisruptionBudget"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling patchNamespacedPodDisruptionBudget"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1beta1PodDisruptionBudget; - - return this.apiClient.callApi( - '/apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets/{name}', 'PATCH', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the patchNamespacedPodDisruptionBudgetStatus operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Policy_v1beta1Api~patchNamespacedPodDisruptionBudgetStatusCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1PodDisruptionBudget} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * partially update status of the specified PodDisruptionBudget - * @param {String} name name of the PodDisruptionBudget - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Policy_v1beta1Api~patchNamespacedPodDisruptionBudgetStatusCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1beta1PodDisruptionBudget} - */ - this.patchNamespacedPodDisruptionBudgetStatus = function(name, namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling patchNamespacedPodDisruptionBudgetStatus"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling patchNamespacedPodDisruptionBudgetStatus"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling patchNamespacedPodDisruptionBudgetStatus"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1beta1PodDisruptionBudget; - - return this.apiClient.callApi( - '/apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets/{name}/status', 'PATCH', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the readNamespacedPodDisruptionBudget operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Policy_v1beta1Api~readNamespacedPodDisruptionBudgetCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1PodDisruptionBudget} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * read the specified PodDisruptionBudget - * @param {String} name name of the PodDisruptionBudget - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {Boolean} opts.exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. - * @param {Boolean} opts._export Should this value be exported. Export strips fields that a user can not specify. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Policy_v1beta1Api~readNamespacedPodDisruptionBudgetCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1beta1PodDisruptionBudget} - */ - this.readNamespacedPodDisruptionBudget = function(name, namespace, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling readNamespacedPodDisruptionBudget"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling readNamespacedPodDisruptionBudget"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'], - 'exact': opts['exact'], - 'export': opts['_export'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1beta1PodDisruptionBudget; - - return this.apiClient.callApi( - '/apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets/{name}', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the readNamespacedPodDisruptionBudgetStatus operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Policy_v1beta1Api~readNamespacedPodDisruptionBudgetStatusCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1PodDisruptionBudget} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * read status of the specified PodDisruptionBudget - * @param {String} name name of the PodDisruptionBudget - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Policy_v1beta1Api~readNamespacedPodDisruptionBudgetStatusCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1beta1PodDisruptionBudget} - */ - this.readNamespacedPodDisruptionBudgetStatus = function(name, namespace, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling readNamespacedPodDisruptionBudgetStatus"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling readNamespacedPodDisruptionBudgetStatus"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1beta1PodDisruptionBudget; - - return this.apiClient.callApi( - '/apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets/{name}/status', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the replaceNamespacedPodDisruptionBudget operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Policy_v1beta1Api~replaceNamespacedPodDisruptionBudgetCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1PodDisruptionBudget} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * replace the specified PodDisruptionBudget - * @param {String} name name of the PodDisruptionBudget - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1PodDisruptionBudget} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Policy_v1beta1Api~replaceNamespacedPodDisruptionBudgetCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1beta1PodDisruptionBudget} - */ - this.replaceNamespacedPodDisruptionBudget = function(name, namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling replaceNamespacedPodDisruptionBudget"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling replaceNamespacedPodDisruptionBudget"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling replaceNamespacedPodDisruptionBudget"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1beta1PodDisruptionBudget; - - return this.apiClient.callApi( - '/apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets/{name}', 'PUT', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the replaceNamespacedPodDisruptionBudgetStatus operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Policy_v1beta1Api~replaceNamespacedPodDisruptionBudgetStatusCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1PodDisruptionBudget} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * replace status of the specified PodDisruptionBudget - * @param {String} name name of the PodDisruptionBudget - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1PodDisruptionBudget} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Policy_v1beta1Api~replaceNamespacedPodDisruptionBudgetStatusCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1beta1PodDisruptionBudget} - */ - this.replaceNamespacedPodDisruptionBudgetStatus = function(name, namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling replaceNamespacedPodDisruptionBudgetStatus"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling replaceNamespacedPodDisruptionBudgetStatus"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling replaceNamespacedPodDisruptionBudgetStatus"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1beta1PodDisruptionBudget; - - return this.apiClient.callApi( - '/apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets/{name}/status', 'PUT', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - }; - - return exports; -})); diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.apis/RbacAuthorizationApi.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.apis/RbacAuthorizationApi.js deleted file mode 100644 index e279834951..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.apis/RbacAuthorizationApi.js +++ /dev/null @@ -1,88 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1APIGroup'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('../io.kubernetes.js.models/V1APIGroup')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.RbacAuthorizationApi = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1APIGroup); - } -}(this, function(ApiClient, V1APIGroup) { - 'use strict'; - - /** - * RbacAuthorization service. - * @module io.kubernetes.js/io.kubernetes.js.apis/RbacAuthorizationApi - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new RbacAuthorizationApi. - * @alias module:io.kubernetes.js/io.kubernetes.js.apis/RbacAuthorizationApi - * @class - * @param {module:io.kubernetes.js/ApiClient} apiClient Optional API client implementation to use, - * default to {@link module:io.kubernetes.js/ApiClient#instance} if unspecified. - */ - var exports = function(apiClient) { - this.apiClient = apiClient || ApiClient.instance; - - - /** - * Callback function to receive the result of the getAPIGroup operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/RbacAuthorizationApi~getAPIGroupCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1APIGroup} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * get information of a group - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/RbacAuthorizationApi~getAPIGroupCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1APIGroup} - */ - this.getAPIGroup = function(callback) { - var postBody = null; - - - var pathParams = { - }; - var queryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1APIGroup; - - return this.apiClient.callApi( - '/apis/rbac.authorization.k8s.io/', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - }; - - return exports; -})); diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.apis/RbacAuthorization_v1alpha1Api.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.apis/RbacAuthorization_v1alpha1Api.js deleted file mode 100644 index a9c9925a7a..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.apis/RbacAuthorization_v1alpha1Api.js +++ /dev/null @@ -1,1778 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1APIResourceList', 'io.kubernetes.js/io.kubernetes.js.models/V1DeleteOptions', 'io.kubernetes.js/io.kubernetes.js.models/V1Status', 'io.kubernetes.js/io.kubernetes.js.models/V1alpha1ClusterRole', 'io.kubernetes.js/io.kubernetes.js.models/V1alpha1ClusterRoleBinding', 'io.kubernetes.js/io.kubernetes.js.models/V1alpha1ClusterRoleBindingList', 'io.kubernetes.js/io.kubernetes.js.models/V1alpha1ClusterRoleList', 'io.kubernetes.js/io.kubernetes.js.models/V1alpha1Role', 'io.kubernetes.js/io.kubernetes.js.models/V1alpha1RoleBinding', 'io.kubernetes.js/io.kubernetes.js.models/V1alpha1RoleBindingList', 'io.kubernetes.js/io.kubernetes.js.models/V1alpha1RoleList'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('../io.kubernetes.js.models/V1APIResourceList'), require('../io.kubernetes.js.models/V1DeleteOptions'), require('../io.kubernetes.js.models/V1Status'), require('../io.kubernetes.js.models/V1alpha1ClusterRole'), require('../io.kubernetes.js.models/V1alpha1ClusterRoleBinding'), require('../io.kubernetes.js.models/V1alpha1ClusterRoleBindingList'), require('../io.kubernetes.js.models/V1alpha1ClusterRoleList'), require('../io.kubernetes.js.models/V1alpha1Role'), require('../io.kubernetes.js.models/V1alpha1RoleBinding'), require('../io.kubernetes.js.models/V1alpha1RoleBindingList'), require('../io.kubernetes.js.models/V1alpha1RoleList')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.RbacAuthorization_v1alpha1Api = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1APIResourceList, root.KubernetesJsClient.V1DeleteOptions, root.KubernetesJsClient.V1Status, root.KubernetesJsClient.V1alpha1ClusterRole, root.KubernetesJsClient.V1alpha1ClusterRoleBinding, root.KubernetesJsClient.V1alpha1ClusterRoleBindingList, root.KubernetesJsClient.V1alpha1ClusterRoleList, root.KubernetesJsClient.V1alpha1Role, root.KubernetesJsClient.V1alpha1RoleBinding, root.KubernetesJsClient.V1alpha1RoleBindingList, root.KubernetesJsClient.V1alpha1RoleList); - } -}(this, function(ApiClient, V1APIResourceList, V1DeleteOptions, V1Status, V1alpha1ClusterRole, V1alpha1ClusterRoleBinding, V1alpha1ClusterRoleBindingList, V1alpha1ClusterRoleList, V1alpha1Role, V1alpha1RoleBinding, V1alpha1RoleBindingList, V1alpha1RoleList) { - 'use strict'; - - /** - * RbacAuthorization_v1alpha1 service. - * @module io.kubernetes.js/io.kubernetes.js.apis/RbacAuthorization_v1alpha1Api - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new RbacAuthorization_v1alpha1Api. - * @alias module:io.kubernetes.js/io.kubernetes.js.apis/RbacAuthorization_v1alpha1Api - * @class - * @param {module:io.kubernetes.js/ApiClient} apiClient Optional API client implementation to use, - * default to {@link module:io.kubernetes.js/ApiClient#instance} if unspecified. - */ - var exports = function(apiClient) { - this.apiClient = apiClient || ApiClient.instance; - - - /** - * Callback function to receive the result of the createClusterRole operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/RbacAuthorization_v1alpha1Api~createClusterRoleCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1alpha1ClusterRole} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * create a ClusterRole - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1alpha1ClusterRole} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/RbacAuthorization_v1alpha1Api~createClusterRoleCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1alpha1ClusterRole} - */ - this.createClusterRole = function(body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling createClusterRole"); - } - - - var pathParams = { - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1alpha1ClusterRole; - - return this.apiClient.callApi( - '/apis/rbac.authorization.k8s.io/v1alpha1/clusterroles', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the createClusterRoleBinding operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/RbacAuthorization_v1alpha1Api~createClusterRoleBindingCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1alpha1ClusterRoleBinding} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * create a ClusterRoleBinding - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1alpha1ClusterRoleBinding} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/RbacAuthorization_v1alpha1Api~createClusterRoleBindingCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1alpha1ClusterRoleBinding} - */ - this.createClusterRoleBinding = function(body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling createClusterRoleBinding"); - } - - - var pathParams = { - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1alpha1ClusterRoleBinding; - - return this.apiClient.callApi( - '/apis/rbac.authorization.k8s.io/v1alpha1/clusterrolebindings', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the createNamespacedRole operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/RbacAuthorization_v1alpha1Api~createNamespacedRoleCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1alpha1Role} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * create a Role - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1alpha1Role} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/RbacAuthorization_v1alpha1Api~createNamespacedRoleCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1alpha1Role} - */ - this.createNamespacedRole = function(namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling createNamespacedRole"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling createNamespacedRole"); - } - - - var pathParams = { - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1alpha1Role; - - return this.apiClient.callApi( - '/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/roles', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the createNamespacedRoleBinding operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/RbacAuthorization_v1alpha1Api~createNamespacedRoleBindingCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1alpha1RoleBinding} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * create a RoleBinding - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1alpha1RoleBinding} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/RbacAuthorization_v1alpha1Api~createNamespacedRoleBindingCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1alpha1RoleBinding} - */ - this.createNamespacedRoleBinding = function(namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling createNamespacedRoleBinding"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling createNamespacedRoleBinding"); - } - - - var pathParams = { - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1alpha1RoleBinding; - - return this.apiClient.callApi( - '/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/rolebindings', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the deleteClusterRole operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/RbacAuthorization_v1alpha1Api~deleteClusterRoleCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Status} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * delete a ClusterRole - * @param {String} name name of the ClusterRole - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1DeleteOptions} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {Number} opts.gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - * @param {Boolean} opts.orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - * @param {String} opts.propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/RbacAuthorization_v1alpha1Api~deleteClusterRoleCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1Status} - */ - this.deleteClusterRole = function(name, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling deleteClusterRole"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling deleteClusterRole"); - } - - - var pathParams = { - 'name': name - }; - var queryParams = { - 'pretty': opts['pretty'], - 'gracePeriodSeconds': opts['gracePeriodSeconds'], - 'orphanDependents': opts['orphanDependents'], - 'propagationPolicy': opts['propagationPolicy'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1Status; - - return this.apiClient.callApi( - '/apis/rbac.authorization.k8s.io/v1alpha1/clusterroles/{name}', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the deleteClusterRoleBinding operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/RbacAuthorization_v1alpha1Api~deleteClusterRoleBindingCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Status} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * delete a ClusterRoleBinding - * @param {String} name name of the ClusterRoleBinding - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1DeleteOptions} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {Number} opts.gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - * @param {Boolean} opts.orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - * @param {String} opts.propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/RbacAuthorization_v1alpha1Api~deleteClusterRoleBindingCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1Status} - */ - this.deleteClusterRoleBinding = function(name, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling deleteClusterRoleBinding"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling deleteClusterRoleBinding"); - } - - - var pathParams = { - 'name': name - }; - var queryParams = { - 'pretty': opts['pretty'], - 'gracePeriodSeconds': opts['gracePeriodSeconds'], - 'orphanDependents': opts['orphanDependents'], - 'propagationPolicy': opts['propagationPolicy'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1Status; - - return this.apiClient.callApi( - '/apis/rbac.authorization.k8s.io/v1alpha1/clusterrolebindings/{name}', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the deleteCollectionClusterRole operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/RbacAuthorization_v1alpha1Api~deleteCollectionClusterRoleCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Status} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * delete collection of ClusterRole - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {String} opts.fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. - * @param {String} opts.labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. - * @param {String} opts.resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - * @param {Number} opts.timeoutSeconds Timeout for the list/watch call. - * @param {Boolean} opts.watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/RbacAuthorization_v1alpha1Api~deleteCollectionClusterRoleCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1Status} - */ - this.deleteCollectionClusterRole = function(opts, callback) { - opts = opts || {}; - var postBody = null; - - - var pathParams = { - }; - var queryParams = { - 'pretty': opts['pretty'], - 'fieldSelector': opts['fieldSelector'], - 'labelSelector': opts['labelSelector'], - 'resourceVersion': opts['resourceVersion'], - 'timeoutSeconds': opts['timeoutSeconds'], - 'watch': opts['watch'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1Status; - - return this.apiClient.callApi( - '/apis/rbac.authorization.k8s.io/v1alpha1/clusterroles', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the deleteCollectionClusterRoleBinding operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/RbacAuthorization_v1alpha1Api~deleteCollectionClusterRoleBindingCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Status} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * delete collection of ClusterRoleBinding - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {String} opts.fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. - * @param {String} opts.labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. - * @param {String} opts.resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - * @param {Number} opts.timeoutSeconds Timeout for the list/watch call. - * @param {Boolean} opts.watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/RbacAuthorization_v1alpha1Api~deleteCollectionClusterRoleBindingCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1Status} - */ - this.deleteCollectionClusterRoleBinding = function(opts, callback) { - opts = opts || {}; - var postBody = null; - - - var pathParams = { - }; - var queryParams = { - 'pretty': opts['pretty'], - 'fieldSelector': opts['fieldSelector'], - 'labelSelector': opts['labelSelector'], - 'resourceVersion': opts['resourceVersion'], - 'timeoutSeconds': opts['timeoutSeconds'], - 'watch': opts['watch'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1Status; - - return this.apiClient.callApi( - '/apis/rbac.authorization.k8s.io/v1alpha1/clusterrolebindings', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the deleteCollectionNamespacedRole operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/RbacAuthorization_v1alpha1Api~deleteCollectionNamespacedRoleCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Status} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * delete collection of Role - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {String} opts.fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. - * @param {String} opts.labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. - * @param {String} opts.resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - * @param {Number} opts.timeoutSeconds Timeout for the list/watch call. - * @param {Boolean} opts.watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/RbacAuthorization_v1alpha1Api~deleteCollectionNamespacedRoleCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1Status} - */ - this.deleteCollectionNamespacedRole = function(namespace, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedRole"); - } - - - var pathParams = { - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'], - 'fieldSelector': opts['fieldSelector'], - 'labelSelector': opts['labelSelector'], - 'resourceVersion': opts['resourceVersion'], - 'timeoutSeconds': opts['timeoutSeconds'], - 'watch': opts['watch'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1Status; - - return this.apiClient.callApi( - '/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/roles', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the deleteCollectionNamespacedRoleBinding operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/RbacAuthorization_v1alpha1Api~deleteCollectionNamespacedRoleBindingCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Status} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * delete collection of RoleBinding - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {String} opts.fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. - * @param {String} opts.labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. - * @param {String} opts.resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - * @param {Number} opts.timeoutSeconds Timeout for the list/watch call. - * @param {Boolean} opts.watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/RbacAuthorization_v1alpha1Api~deleteCollectionNamespacedRoleBindingCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1Status} - */ - this.deleteCollectionNamespacedRoleBinding = function(namespace, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedRoleBinding"); - } - - - var pathParams = { - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'], - 'fieldSelector': opts['fieldSelector'], - 'labelSelector': opts['labelSelector'], - 'resourceVersion': opts['resourceVersion'], - 'timeoutSeconds': opts['timeoutSeconds'], - 'watch': opts['watch'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1Status; - - return this.apiClient.callApi( - '/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/rolebindings', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the deleteNamespacedRole operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/RbacAuthorization_v1alpha1Api~deleteNamespacedRoleCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Status} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * delete a Role - * @param {String} name name of the Role - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1DeleteOptions} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {Number} opts.gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - * @param {Boolean} opts.orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - * @param {String} opts.propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/RbacAuthorization_v1alpha1Api~deleteNamespacedRoleCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1Status} - */ - this.deleteNamespacedRole = function(name, namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling deleteNamespacedRole"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling deleteNamespacedRole"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling deleteNamespacedRole"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'], - 'gracePeriodSeconds': opts['gracePeriodSeconds'], - 'orphanDependents': opts['orphanDependents'], - 'propagationPolicy': opts['propagationPolicy'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1Status; - - return this.apiClient.callApi( - '/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/roles/{name}', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the deleteNamespacedRoleBinding operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/RbacAuthorization_v1alpha1Api~deleteNamespacedRoleBindingCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Status} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * delete a RoleBinding - * @param {String} name name of the RoleBinding - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1DeleteOptions} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {Number} opts.gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - * @param {Boolean} opts.orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - * @param {String} opts.propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/RbacAuthorization_v1alpha1Api~deleteNamespacedRoleBindingCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1Status} - */ - this.deleteNamespacedRoleBinding = function(name, namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling deleteNamespacedRoleBinding"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling deleteNamespacedRoleBinding"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling deleteNamespacedRoleBinding"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'], - 'gracePeriodSeconds': opts['gracePeriodSeconds'], - 'orphanDependents': opts['orphanDependents'], - 'propagationPolicy': opts['propagationPolicy'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1Status; - - return this.apiClient.callApi( - '/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/rolebindings/{name}', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the getAPIResources operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/RbacAuthorization_v1alpha1Api~getAPIResourcesCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1APIResourceList} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * get available resources - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/RbacAuthorization_v1alpha1Api~getAPIResourcesCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1APIResourceList} - */ - this.getAPIResources = function(callback) { - var postBody = null; - - - var pathParams = { - }; - var queryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1APIResourceList; - - return this.apiClient.callApi( - '/apis/rbac.authorization.k8s.io/v1alpha1/', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the listClusterRole operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/RbacAuthorization_v1alpha1Api~listClusterRoleCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1alpha1ClusterRoleList} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * list or watch objects of kind ClusterRole - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {String} opts.fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. - * @param {String} opts.labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. - * @param {String} opts.resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - * @param {Number} opts.timeoutSeconds Timeout for the list/watch call. - * @param {Boolean} opts.watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/RbacAuthorization_v1alpha1Api~listClusterRoleCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1alpha1ClusterRoleList} - */ - this.listClusterRole = function(opts, callback) { - opts = opts || {}; - var postBody = null; - - - var pathParams = { - }; - var queryParams = { - 'pretty': opts['pretty'], - 'fieldSelector': opts['fieldSelector'], - 'labelSelector': opts['labelSelector'], - 'resourceVersion': opts['resourceVersion'], - 'timeoutSeconds': opts['timeoutSeconds'], - 'watch': opts['watch'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']; - var returnType = V1alpha1ClusterRoleList; - - return this.apiClient.callApi( - '/apis/rbac.authorization.k8s.io/v1alpha1/clusterroles', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the listClusterRoleBinding operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/RbacAuthorization_v1alpha1Api~listClusterRoleBindingCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1alpha1ClusterRoleBindingList} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * list or watch objects of kind ClusterRoleBinding - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {String} opts.fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. - * @param {String} opts.labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. - * @param {String} opts.resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - * @param {Number} opts.timeoutSeconds Timeout for the list/watch call. - * @param {Boolean} opts.watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/RbacAuthorization_v1alpha1Api~listClusterRoleBindingCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1alpha1ClusterRoleBindingList} - */ - this.listClusterRoleBinding = function(opts, callback) { - opts = opts || {}; - var postBody = null; - - - var pathParams = { - }; - var queryParams = { - 'pretty': opts['pretty'], - 'fieldSelector': opts['fieldSelector'], - 'labelSelector': opts['labelSelector'], - 'resourceVersion': opts['resourceVersion'], - 'timeoutSeconds': opts['timeoutSeconds'], - 'watch': opts['watch'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']; - var returnType = V1alpha1ClusterRoleBindingList; - - return this.apiClient.callApi( - '/apis/rbac.authorization.k8s.io/v1alpha1/clusterrolebindings', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the listNamespacedRole operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/RbacAuthorization_v1alpha1Api~listNamespacedRoleCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1alpha1RoleList} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * list or watch objects of kind Role - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {String} opts.fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. - * @param {String} opts.labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. - * @param {String} opts.resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - * @param {Number} opts.timeoutSeconds Timeout for the list/watch call. - * @param {Boolean} opts.watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/RbacAuthorization_v1alpha1Api~listNamespacedRoleCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1alpha1RoleList} - */ - this.listNamespacedRole = function(namespace, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling listNamespacedRole"); - } - - - var pathParams = { - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'], - 'fieldSelector': opts['fieldSelector'], - 'labelSelector': opts['labelSelector'], - 'resourceVersion': opts['resourceVersion'], - 'timeoutSeconds': opts['timeoutSeconds'], - 'watch': opts['watch'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']; - var returnType = V1alpha1RoleList; - - return this.apiClient.callApi( - '/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/roles', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the listNamespacedRoleBinding operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/RbacAuthorization_v1alpha1Api~listNamespacedRoleBindingCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1alpha1RoleBindingList} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * list or watch objects of kind RoleBinding - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {String} opts.fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. - * @param {String} opts.labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. - * @param {String} opts.resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - * @param {Number} opts.timeoutSeconds Timeout for the list/watch call. - * @param {Boolean} opts.watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/RbacAuthorization_v1alpha1Api~listNamespacedRoleBindingCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1alpha1RoleBindingList} - */ - this.listNamespacedRoleBinding = function(namespace, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling listNamespacedRoleBinding"); - } - - - var pathParams = { - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'], - 'fieldSelector': opts['fieldSelector'], - 'labelSelector': opts['labelSelector'], - 'resourceVersion': opts['resourceVersion'], - 'timeoutSeconds': opts['timeoutSeconds'], - 'watch': opts['watch'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']; - var returnType = V1alpha1RoleBindingList; - - return this.apiClient.callApi( - '/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/rolebindings', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the listRoleBindingForAllNamespaces operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/RbacAuthorization_v1alpha1Api~listRoleBindingForAllNamespacesCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1alpha1RoleBindingList} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * list or watch objects of kind RoleBinding - * @param {Object} opts Optional parameters - * @param {String} opts.fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. - * @param {String} opts.labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {String} opts.resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - * @param {Number} opts.timeoutSeconds Timeout for the list/watch call. - * @param {Boolean} opts.watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/RbacAuthorization_v1alpha1Api~listRoleBindingForAllNamespacesCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1alpha1RoleBindingList} - */ - this.listRoleBindingForAllNamespaces = function(opts, callback) { - opts = opts || {}; - var postBody = null; - - - var pathParams = { - }; - var queryParams = { - 'fieldSelector': opts['fieldSelector'], - 'labelSelector': opts['labelSelector'], - 'pretty': opts['pretty'], - 'resourceVersion': opts['resourceVersion'], - 'timeoutSeconds': opts['timeoutSeconds'], - 'watch': opts['watch'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']; - var returnType = V1alpha1RoleBindingList; - - return this.apiClient.callApi( - '/apis/rbac.authorization.k8s.io/v1alpha1/rolebindings', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the listRoleForAllNamespaces operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/RbacAuthorization_v1alpha1Api~listRoleForAllNamespacesCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1alpha1RoleList} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * list or watch objects of kind Role - * @param {Object} opts Optional parameters - * @param {String} opts.fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. - * @param {String} opts.labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {String} opts.resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - * @param {Number} opts.timeoutSeconds Timeout for the list/watch call. - * @param {Boolean} opts.watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/RbacAuthorization_v1alpha1Api~listRoleForAllNamespacesCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1alpha1RoleList} - */ - this.listRoleForAllNamespaces = function(opts, callback) { - opts = opts || {}; - var postBody = null; - - - var pathParams = { - }; - var queryParams = { - 'fieldSelector': opts['fieldSelector'], - 'labelSelector': opts['labelSelector'], - 'pretty': opts['pretty'], - 'resourceVersion': opts['resourceVersion'], - 'timeoutSeconds': opts['timeoutSeconds'], - 'watch': opts['watch'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']; - var returnType = V1alpha1RoleList; - - return this.apiClient.callApi( - '/apis/rbac.authorization.k8s.io/v1alpha1/roles', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the patchClusterRole operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/RbacAuthorization_v1alpha1Api~patchClusterRoleCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1alpha1ClusterRole} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * partially update the specified ClusterRole - * @param {String} name name of the ClusterRole - * @param {Object} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/RbacAuthorization_v1alpha1Api~patchClusterRoleCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1alpha1ClusterRole} - */ - this.patchClusterRole = function(name, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling patchClusterRole"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling patchClusterRole"); - } - - - var pathParams = { - 'name': name - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1alpha1ClusterRole; - - return this.apiClient.callApi( - '/apis/rbac.authorization.k8s.io/v1alpha1/clusterroles/{name}', 'PATCH', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the patchClusterRoleBinding operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/RbacAuthorization_v1alpha1Api~patchClusterRoleBindingCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1alpha1ClusterRoleBinding} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * partially update the specified ClusterRoleBinding - * @param {String} name name of the ClusterRoleBinding - * @param {Object} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/RbacAuthorization_v1alpha1Api~patchClusterRoleBindingCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1alpha1ClusterRoleBinding} - */ - this.patchClusterRoleBinding = function(name, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling patchClusterRoleBinding"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling patchClusterRoleBinding"); - } - - - var pathParams = { - 'name': name - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1alpha1ClusterRoleBinding; - - return this.apiClient.callApi( - '/apis/rbac.authorization.k8s.io/v1alpha1/clusterrolebindings/{name}', 'PATCH', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the patchNamespacedRole operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/RbacAuthorization_v1alpha1Api~patchNamespacedRoleCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1alpha1Role} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * partially update the specified Role - * @param {String} name name of the Role - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/RbacAuthorization_v1alpha1Api~patchNamespacedRoleCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1alpha1Role} - */ - this.patchNamespacedRole = function(name, namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling patchNamespacedRole"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling patchNamespacedRole"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling patchNamespacedRole"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1alpha1Role; - - return this.apiClient.callApi( - '/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/roles/{name}', 'PATCH', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the patchNamespacedRoleBinding operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/RbacAuthorization_v1alpha1Api~patchNamespacedRoleBindingCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1alpha1RoleBinding} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * partially update the specified RoleBinding - * @param {String} name name of the RoleBinding - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/RbacAuthorization_v1alpha1Api~patchNamespacedRoleBindingCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1alpha1RoleBinding} - */ - this.patchNamespacedRoleBinding = function(name, namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling patchNamespacedRoleBinding"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling patchNamespacedRoleBinding"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling patchNamespacedRoleBinding"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1alpha1RoleBinding; - - return this.apiClient.callApi( - '/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/rolebindings/{name}', 'PATCH', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the readClusterRole operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/RbacAuthorization_v1alpha1Api~readClusterRoleCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1alpha1ClusterRole} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * read the specified ClusterRole - * @param {String} name name of the ClusterRole - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/RbacAuthorization_v1alpha1Api~readClusterRoleCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1alpha1ClusterRole} - */ - this.readClusterRole = function(name, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling readClusterRole"); - } - - - var pathParams = { - 'name': name - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1alpha1ClusterRole; - - return this.apiClient.callApi( - '/apis/rbac.authorization.k8s.io/v1alpha1/clusterroles/{name}', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the readClusterRoleBinding operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/RbacAuthorization_v1alpha1Api~readClusterRoleBindingCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1alpha1ClusterRoleBinding} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * read the specified ClusterRoleBinding - * @param {String} name name of the ClusterRoleBinding - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/RbacAuthorization_v1alpha1Api~readClusterRoleBindingCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1alpha1ClusterRoleBinding} - */ - this.readClusterRoleBinding = function(name, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling readClusterRoleBinding"); - } - - - var pathParams = { - 'name': name - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1alpha1ClusterRoleBinding; - - return this.apiClient.callApi( - '/apis/rbac.authorization.k8s.io/v1alpha1/clusterrolebindings/{name}', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the readNamespacedRole operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/RbacAuthorization_v1alpha1Api~readNamespacedRoleCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1alpha1Role} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * read the specified Role - * @param {String} name name of the Role - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/RbacAuthorization_v1alpha1Api~readNamespacedRoleCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1alpha1Role} - */ - this.readNamespacedRole = function(name, namespace, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling readNamespacedRole"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling readNamespacedRole"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1alpha1Role; - - return this.apiClient.callApi( - '/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/roles/{name}', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the readNamespacedRoleBinding operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/RbacAuthorization_v1alpha1Api~readNamespacedRoleBindingCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1alpha1RoleBinding} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * read the specified RoleBinding - * @param {String} name name of the RoleBinding - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/RbacAuthorization_v1alpha1Api~readNamespacedRoleBindingCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1alpha1RoleBinding} - */ - this.readNamespacedRoleBinding = function(name, namespace, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling readNamespacedRoleBinding"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling readNamespacedRoleBinding"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1alpha1RoleBinding; - - return this.apiClient.callApi( - '/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/rolebindings/{name}', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the replaceClusterRole operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/RbacAuthorization_v1alpha1Api~replaceClusterRoleCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1alpha1ClusterRole} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * replace the specified ClusterRole - * @param {String} name name of the ClusterRole - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1alpha1ClusterRole} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/RbacAuthorization_v1alpha1Api~replaceClusterRoleCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1alpha1ClusterRole} - */ - this.replaceClusterRole = function(name, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling replaceClusterRole"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling replaceClusterRole"); - } - - - var pathParams = { - 'name': name - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1alpha1ClusterRole; - - return this.apiClient.callApi( - '/apis/rbac.authorization.k8s.io/v1alpha1/clusterroles/{name}', 'PUT', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the replaceClusterRoleBinding operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/RbacAuthorization_v1alpha1Api~replaceClusterRoleBindingCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1alpha1ClusterRoleBinding} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * replace the specified ClusterRoleBinding - * @param {String} name name of the ClusterRoleBinding - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1alpha1ClusterRoleBinding} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/RbacAuthorization_v1alpha1Api~replaceClusterRoleBindingCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1alpha1ClusterRoleBinding} - */ - this.replaceClusterRoleBinding = function(name, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling replaceClusterRoleBinding"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling replaceClusterRoleBinding"); - } - - - var pathParams = { - 'name': name - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1alpha1ClusterRoleBinding; - - return this.apiClient.callApi( - '/apis/rbac.authorization.k8s.io/v1alpha1/clusterrolebindings/{name}', 'PUT', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the replaceNamespacedRole operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/RbacAuthorization_v1alpha1Api~replaceNamespacedRoleCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1alpha1Role} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * replace the specified Role - * @param {String} name name of the Role - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1alpha1Role} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/RbacAuthorization_v1alpha1Api~replaceNamespacedRoleCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1alpha1Role} - */ - this.replaceNamespacedRole = function(name, namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling replaceNamespacedRole"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling replaceNamespacedRole"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling replaceNamespacedRole"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1alpha1Role; - - return this.apiClient.callApi( - '/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/roles/{name}', 'PUT', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the replaceNamespacedRoleBinding operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/RbacAuthorization_v1alpha1Api~replaceNamespacedRoleBindingCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1alpha1RoleBinding} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * replace the specified RoleBinding - * @param {String} name name of the RoleBinding - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1alpha1RoleBinding} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/RbacAuthorization_v1alpha1Api~replaceNamespacedRoleBindingCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1alpha1RoleBinding} - */ - this.replaceNamespacedRoleBinding = function(name, namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling replaceNamespacedRoleBinding"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling replaceNamespacedRoleBinding"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling replaceNamespacedRoleBinding"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1alpha1RoleBinding; - - return this.apiClient.callApi( - '/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/rolebindings/{name}', 'PUT', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - }; - - return exports; -})); diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.apis/RbacAuthorization_v1beta1Api.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.apis/RbacAuthorization_v1beta1Api.js deleted file mode 100644 index ba76931f96..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.apis/RbacAuthorization_v1beta1Api.js +++ /dev/null @@ -1,1778 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1APIResourceList', 'io.kubernetes.js/io.kubernetes.js.models/V1DeleteOptions', 'io.kubernetes.js/io.kubernetes.js.models/V1Status', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1ClusterRole', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1ClusterRoleBinding', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1ClusterRoleBindingList', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1ClusterRoleList', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1Role', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1RoleBinding', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1RoleBindingList', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1RoleList'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('../io.kubernetes.js.models/V1APIResourceList'), require('../io.kubernetes.js.models/V1DeleteOptions'), require('../io.kubernetes.js.models/V1Status'), require('../io.kubernetes.js.models/V1beta1ClusterRole'), require('../io.kubernetes.js.models/V1beta1ClusterRoleBinding'), require('../io.kubernetes.js.models/V1beta1ClusterRoleBindingList'), require('../io.kubernetes.js.models/V1beta1ClusterRoleList'), require('../io.kubernetes.js.models/V1beta1Role'), require('../io.kubernetes.js.models/V1beta1RoleBinding'), require('../io.kubernetes.js.models/V1beta1RoleBindingList'), require('../io.kubernetes.js.models/V1beta1RoleList')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.RbacAuthorization_v1beta1Api = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1APIResourceList, root.KubernetesJsClient.V1DeleteOptions, root.KubernetesJsClient.V1Status, root.KubernetesJsClient.V1beta1ClusterRole, root.KubernetesJsClient.V1beta1ClusterRoleBinding, root.KubernetesJsClient.V1beta1ClusterRoleBindingList, root.KubernetesJsClient.V1beta1ClusterRoleList, root.KubernetesJsClient.V1beta1Role, root.KubernetesJsClient.V1beta1RoleBinding, root.KubernetesJsClient.V1beta1RoleBindingList, root.KubernetesJsClient.V1beta1RoleList); - } -}(this, function(ApiClient, V1APIResourceList, V1DeleteOptions, V1Status, V1beta1ClusterRole, V1beta1ClusterRoleBinding, V1beta1ClusterRoleBindingList, V1beta1ClusterRoleList, V1beta1Role, V1beta1RoleBinding, V1beta1RoleBindingList, V1beta1RoleList) { - 'use strict'; - - /** - * RbacAuthorization_v1beta1 service. - * @module io.kubernetes.js/io.kubernetes.js.apis/RbacAuthorization_v1beta1Api - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new RbacAuthorization_v1beta1Api. - * @alias module:io.kubernetes.js/io.kubernetes.js.apis/RbacAuthorization_v1beta1Api - * @class - * @param {module:io.kubernetes.js/ApiClient} apiClient Optional API client implementation to use, - * default to {@link module:io.kubernetes.js/ApiClient#instance} if unspecified. - */ - var exports = function(apiClient) { - this.apiClient = apiClient || ApiClient.instance; - - - /** - * Callback function to receive the result of the createClusterRole operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/RbacAuthorization_v1beta1Api~createClusterRoleCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1ClusterRole} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * create a ClusterRole - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1ClusterRole} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/RbacAuthorization_v1beta1Api~createClusterRoleCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1beta1ClusterRole} - */ - this.createClusterRole = function(body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling createClusterRole"); - } - - - var pathParams = { - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1beta1ClusterRole; - - return this.apiClient.callApi( - '/apis/rbac.authorization.k8s.io/v1beta1/clusterroles', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the createClusterRoleBinding operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/RbacAuthorization_v1beta1Api~createClusterRoleBindingCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1ClusterRoleBinding} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * create a ClusterRoleBinding - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1ClusterRoleBinding} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/RbacAuthorization_v1beta1Api~createClusterRoleBindingCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1beta1ClusterRoleBinding} - */ - this.createClusterRoleBinding = function(body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling createClusterRoleBinding"); - } - - - var pathParams = { - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1beta1ClusterRoleBinding; - - return this.apiClient.callApi( - '/apis/rbac.authorization.k8s.io/v1beta1/clusterrolebindings', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the createNamespacedRole operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/RbacAuthorization_v1beta1Api~createNamespacedRoleCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1Role} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * create a Role - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1Role} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/RbacAuthorization_v1beta1Api~createNamespacedRoleCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1beta1Role} - */ - this.createNamespacedRole = function(namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling createNamespacedRole"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling createNamespacedRole"); - } - - - var pathParams = { - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1beta1Role; - - return this.apiClient.callApi( - '/apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/roles', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the createNamespacedRoleBinding operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/RbacAuthorization_v1beta1Api~createNamespacedRoleBindingCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1RoleBinding} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * create a RoleBinding - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1RoleBinding} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/RbacAuthorization_v1beta1Api~createNamespacedRoleBindingCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1beta1RoleBinding} - */ - this.createNamespacedRoleBinding = function(namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling createNamespacedRoleBinding"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling createNamespacedRoleBinding"); - } - - - var pathParams = { - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1beta1RoleBinding; - - return this.apiClient.callApi( - '/apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/rolebindings', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the deleteClusterRole operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/RbacAuthorization_v1beta1Api~deleteClusterRoleCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Status} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * delete a ClusterRole - * @param {String} name name of the ClusterRole - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1DeleteOptions} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {Number} opts.gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - * @param {Boolean} opts.orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - * @param {String} opts.propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/RbacAuthorization_v1beta1Api~deleteClusterRoleCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1Status} - */ - this.deleteClusterRole = function(name, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling deleteClusterRole"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling deleteClusterRole"); - } - - - var pathParams = { - 'name': name - }; - var queryParams = { - 'pretty': opts['pretty'], - 'gracePeriodSeconds': opts['gracePeriodSeconds'], - 'orphanDependents': opts['orphanDependents'], - 'propagationPolicy': opts['propagationPolicy'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1Status; - - return this.apiClient.callApi( - '/apis/rbac.authorization.k8s.io/v1beta1/clusterroles/{name}', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the deleteClusterRoleBinding operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/RbacAuthorization_v1beta1Api~deleteClusterRoleBindingCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Status} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * delete a ClusterRoleBinding - * @param {String} name name of the ClusterRoleBinding - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1DeleteOptions} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {Number} opts.gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - * @param {Boolean} opts.orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - * @param {String} opts.propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/RbacAuthorization_v1beta1Api~deleteClusterRoleBindingCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1Status} - */ - this.deleteClusterRoleBinding = function(name, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling deleteClusterRoleBinding"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling deleteClusterRoleBinding"); - } - - - var pathParams = { - 'name': name - }; - var queryParams = { - 'pretty': opts['pretty'], - 'gracePeriodSeconds': opts['gracePeriodSeconds'], - 'orphanDependents': opts['orphanDependents'], - 'propagationPolicy': opts['propagationPolicy'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1Status; - - return this.apiClient.callApi( - '/apis/rbac.authorization.k8s.io/v1beta1/clusterrolebindings/{name}', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the deleteCollectionClusterRole operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/RbacAuthorization_v1beta1Api~deleteCollectionClusterRoleCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Status} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * delete collection of ClusterRole - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {String} opts.fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. - * @param {String} opts.labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. - * @param {String} opts.resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - * @param {Number} opts.timeoutSeconds Timeout for the list/watch call. - * @param {Boolean} opts.watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/RbacAuthorization_v1beta1Api~deleteCollectionClusterRoleCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1Status} - */ - this.deleteCollectionClusterRole = function(opts, callback) { - opts = opts || {}; - var postBody = null; - - - var pathParams = { - }; - var queryParams = { - 'pretty': opts['pretty'], - 'fieldSelector': opts['fieldSelector'], - 'labelSelector': opts['labelSelector'], - 'resourceVersion': opts['resourceVersion'], - 'timeoutSeconds': opts['timeoutSeconds'], - 'watch': opts['watch'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1Status; - - return this.apiClient.callApi( - '/apis/rbac.authorization.k8s.io/v1beta1/clusterroles', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the deleteCollectionClusterRoleBinding operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/RbacAuthorization_v1beta1Api~deleteCollectionClusterRoleBindingCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Status} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * delete collection of ClusterRoleBinding - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {String} opts.fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. - * @param {String} opts.labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. - * @param {String} opts.resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - * @param {Number} opts.timeoutSeconds Timeout for the list/watch call. - * @param {Boolean} opts.watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/RbacAuthorization_v1beta1Api~deleteCollectionClusterRoleBindingCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1Status} - */ - this.deleteCollectionClusterRoleBinding = function(opts, callback) { - opts = opts || {}; - var postBody = null; - - - var pathParams = { - }; - var queryParams = { - 'pretty': opts['pretty'], - 'fieldSelector': opts['fieldSelector'], - 'labelSelector': opts['labelSelector'], - 'resourceVersion': opts['resourceVersion'], - 'timeoutSeconds': opts['timeoutSeconds'], - 'watch': opts['watch'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1Status; - - return this.apiClient.callApi( - '/apis/rbac.authorization.k8s.io/v1beta1/clusterrolebindings', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the deleteCollectionNamespacedRole operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/RbacAuthorization_v1beta1Api~deleteCollectionNamespacedRoleCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Status} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * delete collection of Role - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {String} opts.fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. - * @param {String} opts.labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. - * @param {String} opts.resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - * @param {Number} opts.timeoutSeconds Timeout for the list/watch call. - * @param {Boolean} opts.watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/RbacAuthorization_v1beta1Api~deleteCollectionNamespacedRoleCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1Status} - */ - this.deleteCollectionNamespacedRole = function(namespace, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedRole"); - } - - - var pathParams = { - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'], - 'fieldSelector': opts['fieldSelector'], - 'labelSelector': opts['labelSelector'], - 'resourceVersion': opts['resourceVersion'], - 'timeoutSeconds': opts['timeoutSeconds'], - 'watch': opts['watch'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1Status; - - return this.apiClient.callApi( - '/apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/roles', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the deleteCollectionNamespacedRoleBinding operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/RbacAuthorization_v1beta1Api~deleteCollectionNamespacedRoleBindingCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Status} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * delete collection of RoleBinding - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {String} opts.fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. - * @param {String} opts.labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. - * @param {String} opts.resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - * @param {Number} opts.timeoutSeconds Timeout for the list/watch call. - * @param {Boolean} opts.watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/RbacAuthorization_v1beta1Api~deleteCollectionNamespacedRoleBindingCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1Status} - */ - this.deleteCollectionNamespacedRoleBinding = function(namespace, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedRoleBinding"); - } - - - var pathParams = { - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'], - 'fieldSelector': opts['fieldSelector'], - 'labelSelector': opts['labelSelector'], - 'resourceVersion': opts['resourceVersion'], - 'timeoutSeconds': opts['timeoutSeconds'], - 'watch': opts['watch'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1Status; - - return this.apiClient.callApi( - '/apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/rolebindings', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the deleteNamespacedRole operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/RbacAuthorization_v1beta1Api~deleteNamespacedRoleCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Status} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * delete a Role - * @param {String} name name of the Role - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1DeleteOptions} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {Number} opts.gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - * @param {Boolean} opts.orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - * @param {String} opts.propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/RbacAuthorization_v1beta1Api~deleteNamespacedRoleCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1Status} - */ - this.deleteNamespacedRole = function(name, namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling deleteNamespacedRole"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling deleteNamespacedRole"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling deleteNamespacedRole"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'], - 'gracePeriodSeconds': opts['gracePeriodSeconds'], - 'orphanDependents': opts['orphanDependents'], - 'propagationPolicy': opts['propagationPolicy'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1Status; - - return this.apiClient.callApi( - '/apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/roles/{name}', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the deleteNamespacedRoleBinding operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/RbacAuthorization_v1beta1Api~deleteNamespacedRoleBindingCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Status} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * delete a RoleBinding - * @param {String} name name of the RoleBinding - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1DeleteOptions} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {Number} opts.gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - * @param {Boolean} opts.orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - * @param {String} opts.propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/RbacAuthorization_v1beta1Api~deleteNamespacedRoleBindingCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1Status} - */ - this.deleteNamespacedRoleBinding = function(name, namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling deleteNamespacedRoleBinding"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling deleteNamespacedRoleBinding"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling deleteNamespacedRoleBinding"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'], - 'gracePeriodSeconds': opts['gracePeriodSeconds'], - 'orphanDependents': opts['orphanDependents'], - 'propagationPolicy': opts['propagationPolicy'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1Status; - - return this.apiClient.callApi( - '/apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/rolebindings/{name}', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the getAPIResources operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/RbacAuthorization_v1beta1Api~getAPIResourcesCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1APIResourceList} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * get available resources - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/RbacAuthorization_v1beta1Api~getAPIResourcesCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1APIResourceList} - */ - this.getAPIResources = function(callback) { - var postBody = null; - - - var pathParams = { - }; - var queryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1APIResourceList; - - return this.apiClient.callApi( - '/apis/rbac.authorization.k8s.io/v1beta1/', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the listClusterRole operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/RbacAuthorization_v1beta1Api~listClusterRoleCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1ClusterRoleList} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * list or watch objects of kind ClusterRole - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {String} opts.fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. - * @param {String} opts.labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. - * @param {String} opts.resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - * @param {Number} opts.timeoutSeconds Timeout for the list/watch call. - * @param {Boolean} opts.watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/RbacAuthorization_v1beta1Api~listClusterRoleCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1beta1ClusterRoleList} - */ - this.listClusterRole = function(opts, callback) { - opts = opts || {}; - var postBody = null; - - - var pathParams = { - }; - var queryParams = { - 'pretty': opts['pretty'], - 'fieldSelector': opts['fieldSelector'], - 'labelSelector': opts['labelSelector'], - 'resourceVersion': opts['resourceVersion'], - 'timeoutSeconds': opts['timeoutSeconds'], - 'watch': opts['watch'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']; - var returnType = V1beta1ClusterRoleList; - - return this.apiClient.callApi( - '/apis/rbac.authorization.k8s.io/v1beta1/clusterroles', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the listClusterRoleBinding operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/RbacAuthorization_v1beta1Api~listClusterRoleBindingCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1ClusterRoleBindingList} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * list or watch objects of kind ClusterRoleBinding - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {String} opts.fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. - * @param {String} opts.labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. - * @param {String} opts.resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - * @param {Number} opts.timeoutSeconds Timeout for the list/watch call. - * @param {Boolean} opts.watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/RbacAuthorization_v1beta1Api~listClusterRoleBindingCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1beta1ClusterRoleBindingList} - */ - this.listClusterRoleBinding = function(opts, callback) { - opts = opts || {}; - var postBody = null; - - - var pathParams = { - }; - var queryParams = { - 'pretty': opts['pretty'], - 'fieldSelector': opts['fieldSelector'], - 'labelSelector': opts['labelSelector'], - 'resourceVersion': opts['resourceVersion'], - 'timeoutSeconds': opts['timeoutSeconds'], - 'watch': opts['watch'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']; - var returnType = V1beta1ClusterRoleBindingList; - - return this.apiClient.callApi( - '/apis/rbac.authorization.k8s.io/v1beta1/clusterrolebindings', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the listNamespacedRole operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/RbacAuthorization_v1beta1Api~listNamespacedRoleCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1RoleList} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * list or watch objects of kind Role - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {String} opts.fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. - * @param {String} opts.labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. - * @param {String} opts.resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - * @param {Number} opts.timeoutSeconds Timeout for the list/watch call. - * @param {Boolean} opts.watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/RbacAuthorization_v1beta1Api~listNamespacedRoleCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1beta1RoleList} - */ - this.listNamespacedRole = function(namespace, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling listNamespacedRole"); - } - - - var pathParams = { - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'], - 'fieldSelector': opts['fieldSelector'], - 'labelSelector': opts['labelSelector'], - 'resourceVersion': opts['resourceVersion'], - 'timeoutSeconds': opts['timeoutSeconds'], - 'watch': opts['watch'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']; - var returnType = V1beta1RoleList; - - return this.apiClient.callApi( - '/apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/roles', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the listNamespacedRoleBinding operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/RbacAuthorization_v1beta1Api~listNamespacedRoleBindingCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1RoleBindingList} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * list or watch objects of kind RoleBinding - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {String} opts.fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. - * @param {String} opts.labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. - * @param {String} opts.resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - * @param {Number} opts.timeoutSeconds Timeout for the list/watch call. - * @param {Boolean} opts.watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/RbacAuthorization_v1beta1Api~listNamespacedRoleBindingCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1beta1RoleBindingList} - */ - this.listNamespacedRoleBinding = function(namespace, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling listNamespacedRoleBinding"); - } - - - var pathParams = { - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'], - 'fieldSelector': opts['fieldSelector'], - 'labelSelector': opts['labelSelector'], - 'resourceVersion': opts['resourceVersion'], - 'timeoutSeconds': opts['timeoutSeconds'], - 'watch': opts['watch'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']; - var returnType = V1beta1RoleBindingList; - - return this.apiClient.callApi( - '/apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/rolebindings', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the listRoleBindingForAllNamespaces operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/RbacAuthorization_v1beta1Api~listRoleBindingForAllNamespacesCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1RoleBindingList} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * list or watch objects of kind RoleBinding - * @param {Object} opts Optional parameters - * @param {String} opts.fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. - * @param {String} opts.labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {String} opts.resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - * @param {Number} opts.timeoutSeconds Timeout for the list/watch call. - * @param {Boolean} opts.watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/RbacAuthorization_v1beta1Api~listRoleBindingForAllNamespacesCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1beta1RoleBindingList} - */ - this.listRoleBindingForAllNamespaces = function(opts, callback) { - opts = opts || {}; - var postBody = null; - - - var pathParams = { - }; - var queryParams = { - 'fieldSelector': opts['fieldSelector'], - 'labelSelector': opts['labelSelector'], - 'pretty': opts['pretty'], - 'resourceVersion': opts['resourceVersion'], - 'timeoutSeconds': opts['timeoutSeconds'], - 'watch': opts['watch'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']; - var returnType = V1beta1RoleBindingList; - - return this.apiClient.callApi( - '/apis/rbac.authorization.k8s.io/v1beta1/rolebindings', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the listRoleForAllNamespaces operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/RbacAuthorization_v1beta1Api~listRoleForAllNamespacesCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1RoleList} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * list or watch objects of kind Role - * @param {Object} opts Optional parameters - * @param {String} opts.fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. - * @param {String} opts.labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {String} opts.resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - * @param {Number} opts.timeoutSeconds Timeout for the list/watch call. - * @param {Boolean} opts.watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/RbacAuthorization_v1beta1Api~listRoleForAllNamespacesCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1beta1RoleList} - */ - this.listRoleForAllNamespaces = function(opts, callback) { - opts = opts || {}; - var postBody = null; - - - var pathParams = { - }; - var queryParams = { - 'fieldSelector': opts['fieldSelector'], - 'labelSelector': opts['labelSelector'], - 'pretty': opts['pretty'], - 'resourceVersion': opts['resourceVersion'], - 'timeoutSeconds': opts['timeoutSeconds'], - 'watch': opts['watch'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']; - var returnType = V1beta1RoleList; - - return this.apiClient.callApi( - '/apis/rbac.authorization.k8s.io/v1beta1/roles', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the patchClusterRole operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/RbacAuthorization_v1beta1Api~patchClusterRoleCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1ClusterRole} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * partially update the specified ClusterRole - * @param {String} name name of the ClusterRole - * @param {Object} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/RbacAuthorization_v1beta1Api~patchClusterRoleCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1beta1ClusterRole} - */ - this.patchClusterRole = function(name, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling patchClusterRole"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling patchClusterRole"); - } - - - var pathParams = { - 'name': name - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1beta1ClusterRole; - - return this.apiClient.callApi( - '/apis/rbac.authorization.k8s.io/v1beta1/clusterroles/{name}', 'PATCH', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the patchClusterRoleBinding operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/RbacAuthorization_v1beta1Api~patchClusterRoleBindingCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1ClusterRoleBinding} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * partially update the specified ClusterRoleBinding - * @param {String} name name of the ClusterRoleBinding - * @param {Object} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/RbacAuthorization_v1beta1Api~patchClusterRoleBindingCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1beta1ClusterRoleBinding} - */ - this.patchClusterRoleBinding = function(name, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling patchClusterRoleBinding"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling patchClusterRoleBinding"); - } - - - var pathParams = { - 'name': name - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1beta1ClusterRoleBinding; - - return this.apiClient.callApi( - '/apis/rbac.authorization.k8s.io/v1beta1/clusterrolebindings/{name}', 'PATCH', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the patchNamespacedRole operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/RbacAuthorization_v1beta1Api~patchNamespacedRoleCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1Role} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * partially update the specified Role - * @param {String} name name of the Role - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/RbacAuthorization_v1beta1Api~patchNamespacedRoleCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1beta1Role} - */ - this.patchNamespacedRole = function(name, namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling patchNamespacedRole"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling patchNamespacedRole"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling patchNamespacedRole"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1beta1Role; - - return this.apiClient.callApi( - '/apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/roles/{name}', 'PATCH', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the patchNamespacedRoleBinding operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/RbacAuthorization_v1beta1Api~patchNamespacedRoleBindingCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1RoleBinding} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * partially update the specified RoleBinding - * @param {String} name name of the RoleBinding - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/RbacAuthorization_v1beta1Api~patchNamespacedRoleBindingCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1beta1RoleBinding} - */ - this.patchNamespacedRoleBinding = function(name, namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling patchNamespacedRoleBinding"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling patchNamespacedRoleBinding"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling patchNamespacedRoleBinding"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1beta1RoleBinding; - - return this.apiClient.callApi( - '/apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/rolebindings/{name}', 'PATCH', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the readClusterRole operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/RbacAuthorization_v1beta1Api~readClusterRoleCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1ClusterRole} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * read the specified ClusterRole - * @param {String} name name of the ClusterRole - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/RbacAuthorization_v1beta1Api~readClusterRoleCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1beta1ClusterRole} - */ - this.readClusterRole = function(name, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling readClusterRole"); - } - - - var pathParams = { - 'name': name - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1beta1ClusterRole; - - return this.apiClient.callApi( - '/apis/rbac.authorization.k8s.io/v1beta1/clusterroles/{name}', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the readClusterRoleBinding operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/RbacAuthorization_v1beta1Api~readClusterRoleBindingCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1ClusterRoleBinding} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * read the specified ClusterRoleBinding - * @param {String} name name of the ClusterRoleBinding - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/RbacAuthorization_v1beta1Api~readClusterRoleBindingCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1beta1ClusterRoleBinding} - */ - this.readClusterRoleBinding = function(name, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling readClusterRoleBinding"); - } - - - var pathParams = { - 'name': name - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1beta1ClusterRoleBinding; - - return this.apiClient.callApi( - '/apis/rbac.authorization.k8s.io/v1beta1/clusterrolebindings/{name}', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the readNamespacedRole operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/RbacAuthorization_v1beta1Api~readNamespacedRoleCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1Role} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * read the specified Role - * @param {String} name name of the Role - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/RbacAuthorization_v1beta1Api~readNamespacedRoleCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1beta1Role} - */ - this.readNamespacedRole = function(name, namespace, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling readNamespacedRole"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling readNamespacedRole"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1beta1Role; - - return this.apiClient.callApi( - '/apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/roles/{name}', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the readNamespacedRoleBinding operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/RbacAuthorization_v1beta1Api~readNamespacedRoleBindingCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1RoleBinding} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * read the specified RoleBinding - * @param {String} name name of the RoleBinding - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/RbacAuthorization_v1beta1Api~readNamespacedRoleBindingCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1beta1RoleBinding} - */ - this.readNamespacedRoleBinding = function(name, namespace, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling readNamespacedRoleBinding"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling readNamespacedRoleBinding"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1beta1RoleBinding; - - return this.apiClient.callApi( - '/apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/rolebindings/{name}', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the replaceClusterRole operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/RbacAuthorization_v1beta1Api~replaceClusterRoleCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1ClusterRole} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * replace the specified ClusterRole - * @param {String} name name of the ClusterRole - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1ClusterRole} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/RbacAuthorization_v1beta1Api~replaceClusterRoleCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1beta1ClusterRole} - */ - this.replaceClusterRole = function(name, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling replaceClusterRole"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling replaceClusterRole"); - } - - - var pathParams = { - 'name': name - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1beta1ClusterRole; - - return this.apiClient.callApi( - '/apis/rbac.authorization.k8s.io/v1beta1/clusterroles/{name}', 'PUT', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the replaceClusterRoleBinding operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/RbacAuthorization_v1beta1Api~replaceClusterRoleBindingCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1ClusterRoleBinding} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * replace the specified ClusterRoleBinding - * @param {String} name name of the ClusterRoleBinding - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1ClusterRoleBinding} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/RbacAuthorization_v1beta1Api~replaceClusterRoleBindingCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1beta1ClusterRoleBinding} - */ - this.replaceClusterRoleBinding = function(name, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling replaceClusterRoleBinding"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling replaceClusterRoleBinding"); - } - - - var pathParams = { - 'name': name - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1beta1ClusterRoleBinding; - - return this.apiClient.callApi( - '/apis/rbac.authorization.k8s.io/v1beta1/clusterrolebindings/{name}', 'PUT', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the replaceNamespacedRole operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/RbacAuthorization_v1beta1Api~replaceNamespacedRoleCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1Role} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * replace the specified Role - * @param {String} name name of the Role - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1Role} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/RbacAuthorization_v1beta1Api~replaceNamespacedRoleCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1beta1Role} - */ - this.replaceNamespacedRole = function(name, namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling replaceNamespacedRole"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling replaceNamespacedRole"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling replaceNamespacedRole"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1beta1Role; - - return this.apiClient.callApi( - '/apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/roles/{name}', 'PUT', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the replaceNamespacedRoleBinding operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/RbacAuthorization_v1beta1Api~replaceNamespacedRoleBindingCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1RoleBinding} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * replace the specified RoleBinding - * @param {String} name name of the RoleBinding - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1RoleBinding} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/RbacAuthorization_v1beta1Api~replaceNamespacedRoleBindingCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1beta1RoleBinding} - */ - this.replaceNamespacedRoleBinding = function(name, namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling replaceNamespacedRoleBinding"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling replaceNamespacedRoleBinding"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling replaceNamespacedRoleBinding"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1beta1RoleBinding; - - return this.apiClient.callApi( - '/apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/rolebindings/{name}', 'PUT', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - }; - - return exports; -})); diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.apis/SettingsApi.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.apis/SettingsApi.js deleted file mode 100644 index 8721a94387..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.apis/SettingsApi.js +++ /dev/null @@ -1,88 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1APIGroup'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('../io.kubernetes.js.models/V1APIGroup')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.SettingsApi = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1APIGroup); - } -}(this, function(ApiClient, V1APIGroup) { - 'use strict'; - - /** - * Settings service. - * @module io.kubernetes.js/io.kubernetes.js.apis/SettingsApi - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new SettingsApi. - * @alias module:io.kubernetes.js/io.kubernetes.js.apis/SettingsApi - * @class - * @param {module:io.kubernetes.js/ApiClient} apiClient Optional API client implementation to use, - * default to {@link module:io.kubernetes.js/ApiClient#instance} if unspecified. - */ - var exports = function(apiClient) { - this.apiClient = apiClient || ApiClient.instance; - - - /** - * Callback function to receive the result of the getAPIGroup operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/SettingsApi~getAPIGroupCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1APIGroup} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * get information of a group - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/SettingsApi~getAPIGroupCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1APIGroup} - */ - this.getAPIGroup = function(callback) { - var postBody = null; - - - var pathParams = { - }; - var queryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1APIGroup; - - return this.apiClient.callApi( - '/apis/settings.k8s.io/', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - }; - - return exports; -})); diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.apis/Settings_v1alpha1Api.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.apis/Settings_v1alpha1Api.js deleted file mode 100644 index efdd0cc95d..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.apis/Settings_v1alpha1Api.js +++ /dev/null @@ -1,565 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1APIResourceList', 'io.kubernetes.js/io.kubernetes.js.models/V1DeleteOptions', 'io.kubernetes.js/io.kubernetes.js.models/V1Status', 'io.kubernetes.js/io.kubernetes.js.models/V1alpha1PodPreset', 'io.kubernetes.js/io.kubernetes.js.models/V1alpha1PodPresetList'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('../io.kubernetes.js.models/V1APIResourceList'), require('../io.kubernetes.js.models/V1DeleteOptions'), require('../io.kubernetes.js.models/V1Status'), require('../io.kubernetes.js.models/V1alpha1PodPreset'), require('../io.kubernetes.js.models/V1alpha1PodPresetList')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.Settings_v1alpha1Api = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1APIResourceList, root.KubernetesJsClient.V1DeleteOptions, root.KubernetesJsClient.V1Status, root.KubernetesJsClient.V1alpha1PodPreset, root.KubernetesJsClient.V1alpha1PodPresetList); - } -}(this, function(ApiClient, V1APIResourceList, V1DeleteOptions, V1Status, V1alpha1PodPreset, V1alpha1PodPresetList) { - 'use strict'; - - /** - * Settings_v1alpha1 service. - * @module io.kubernetes.js/io.kubernetes.js.apis/Settings_v1alpha1Api - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new Settings_v1alpha1Api. - * @alias module:io.kubernetes.js/io.kubernetes.js.apis/Settings_v1alpha1Api - * @class - * @param {module:io.kubernetes.js/ApiClient} apiClient Optional API client implementation to use, - * default to {@link module:io.kubernetes.js/ApiClient#instance} if unspecified. - */ - var exports = function(apiClient) { - this.apiClient = apiClient || ApiClient.instance; - - - /** - * Callback function to receive the result of the createNamespacedPodPreset operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Settings_v1alpha1Api~createNamespacedPodPresetCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1alpha1PodPreset} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * create a PodPreset - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1alpha1PodPreset} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Settings_v1alpha1Api~createNamespacedPodPresetCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1alpha1PodPreset} - */ - this.createNamespacedPodPreset = function(namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling createNamespacedPodPreset"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling createNamespacedPodPreset"); - } - - - var pathParams = { - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1alpha1PodPreset; - - return this.apiClient.callApi( - '/apis/settings.k8s.io/v1alpha1/namespaces/{namespace}/podpresets', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the deleteCollectionNamespacedPodPreset operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Settings_v1alpha1Api~deleteCollectionNamespacedPodPresetCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Status} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * delete collection of PodPreset - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {String} opts.fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. - * @param {String} opts.labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. - * @param {String} opts.resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - * @param {Number} opts.timeoutSeconds Timeout for the list/watch call. - * @param {Boolean} opts.watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Settings_v1alpha1Api~deleteCollectionNamespacedPodPresetCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1Status} - */ - this.deleteCollectionNamespacedPodPreset = function(namespace, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedPodPreset"); - } - - - var pathParams = { - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'], - 'fieldSelector': opts['fieldSelector'], - 'labelSelector': opts['labelSelector'], - 'resourceVersion': opts['resourceVersion'], - 'timeoutSeconds': opts['timeoutSeconds'], - 'watch': opts['watch'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1Status; - - return this.apiClient.callApi( - '/apis/settings.k8s.io/v1alpha1/namespaces/{namespace}/podpresets', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the deleteNamespacedPodPreset operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Settings_v1alpha1Api~deleteNamespacedPodPresetCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Status} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * delete a PodPreset - * @param {String} name name of the PodPreset - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1DeleteOptions} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {Number} opts.gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - * @param {Boolean} opts.orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - * @param {String} opts.propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Settings_v1alpha1Api~deleteNamespacedPodPresetCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1Status} - */ - this.deleteNamespacedPodPreset = function(name, namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling deleteNamespacedPodPreset"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling deleteNamespacedPodPreset"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling deleteNamespacedPodPreset"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'], - 'gracePeriodSeconds': opts['gracePeriodSeconds'], - 'orphanDependents': opts['orphanDependents'], - 'propagationPolicy': opts['propagationPolicy'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1Status; - - return this.apiClient.callApi( - '/apis/settings.k8s.io/v1alpha1/namespaces/{namespace}/podpresets/{name}', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the getAPIResources operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Settings_v1alpha1Api~getAPIResourcesCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1APIResourceList} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * get available resources - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Settings_v1alpha1Api~getAPIResourcesCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1APIResourceList} - */ - this.getAPIResources = function(callback) { - var postBody = null; - - - var pathParams = { - }; - var queryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1APIResourceList; - - return this.apiClient.callApi( - '/apis/settings.k8s.io/v1alpha1/', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the listNamespacedPodPreset operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Settings_v1alpha1Api~listNamespacedPodPresetCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1alpha1PodPresetList} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * list or watch objects of kind PodPreset - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {String} opts.fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. - * @param {String} opts.labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. - * @param {String} opts.resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - * @param {Number} opts.timeoutSeconds Timeout for the list/watch call. - * @param {Boolean} opts.watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Settings_v1alpha1Api~listNamespacedPodPresetCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1alpha1PodPresetList} - */ - this.listNamespacedPodPreset = function(namespace, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling listNamespacedPodPreset"); - } - - - var pathParams = { - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'], - 'fieldSelector': opts['fieldSelector'], - 'labelSelector': opts['labelSelector'], - 'resourceVersion': opts['resourceVersion'], - 'timeoutSeconds': opts['timeoutSeconds'], - 'watch': opts['watch'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']; - var returnType = V1alpha1PodPresetList; - - return this.apiClient.callApi( - '/apis/settings.k8s.io/v1alpha1/namespaces/{namespace}/podpresets', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the listPodPresetForAllNamespaces operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Settings_v1alpha1Api~listPodPresetForAllNamespacesCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1alpha1PodPresetList} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * list or watch objects of kind PodPreset - * @param {Object} opts Optional parameters - * @param {String} opts.fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. - * @param {String} opts.labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {String} opts.resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - * @param {Number} opts.timeoutSeconds Timeout for the list/watch call. - * @param {Boolean} opts.watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Settings_v1alpha1Api~listPodPresetForAllNamespacesCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1alpha1PodPresetList} - */ - this.listPodPresetForAllNamespaces = function(opts, callback) { - opts = opts || {}; - var postBody = null; - - - var pathParams = { - }; - var queryParams = { - 'fieldSelector': opts['fieldSelector'], - 'labelSelector': opts['labelSelector'], - 'pretty': opts['pretty'], - 'resourceVersion': opts['resourceVersion'], - 'timeoutSeconds': opts['timeoutSeconds'], - 'watch': opts['watch'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']; - var returnType = V1alpha1PodPresetList; - - return this.apiClient.callApi( - '/apis/settings.k8s.io/v1alpha1/podpresets', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the patchNamespacedPodPreset operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Settings_v1alpha1Api~patchNamespacedPodPresetCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1alpha1PodPreset} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * partially update the specified PodPreset - * @param {String} name name of the PodPreset - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Settings_v1alpha1Api~patchNamespacedPodPresetCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1alpha1PodPreset} - */ - this.patchNamespacedPodPreset = function(name, namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling patchNamespacedPodPreset"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling patchNamespacedPodPreset"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling patchNamespacedPodPreset"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1alpha1PodPreset; - - return this.apiClient.callApi( - '/apis/settings.k8s.io/v1alpha1/namespaces/{namespace}/podpresets/{name}', 'PATCH', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the readNamespacedPodPreset operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Settings_v1alpha1Api~readNamespacedPodPresetCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1alpha1PodPreset} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * read the specified PodPreset - * @param {String} name name of the PodPreset - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {Boolean} opts.exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. - * @param {Boolean} opts._export Should this value be exported. Export strips fields that a user can not specify. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Settings_v1alpha1Api~readNamespacedPodPresetCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1alpha1PodPreset} - */ - this.readNamespacedPodPreset = function(name, namespace, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling readNamespacedPodPreset"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling readNamespacedPodPreset"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'], - 'exact': opts['exact'], - 'export': opts['_export'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1alpha1PodPreset; - - return this.apiClient.callApi( - '/apis/settings.k8s.io/v1alpha1/namespaces/{namespace}/podpresets/{name}', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the replaceNamespacedPodPreset operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Settings_v1alpha1Api~replaceNamespacedPodPresetCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1alpha1PodPreset} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * replace the specified PodPreset - * @param {String} name name of the PodPreset - * @param {String} namespace object name and auth scope, such as for teams and projects - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1alpha1PodPreset} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Settings_v1alpha1Api~replaceNamespacedPodPresetCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1alpha1PodPreset} - */ - this.replaceNamespacedPodPreset = function(name, namespace, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling replaceNamespacedPodPreset"); - } - - // verify the required parameter 'namespace' is set - if (namespace == undefined || namespace == null) { - throw new Error("Missing the required parameter 'namespace' when calling replaceNamespacedPodPreset"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling replaceNamespacedPodPreset"); - } - - - var pathParams = { - 'name': name, - 'namespace': namespace - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1alpha1PodPreset; - - return this.apiClient.callApi( - '/apis/settings.k8s.io/v1alpha1/namespaces/{namespace}/podpresets/{name}', 'PUT', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - }; - - return exports; -})); diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.apis/StorageApi.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.apis/StorageApi.js deleted file mode 100644 index eedc917c96..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.apis/StorageApi.js +++ /dev/null @@ -1,88 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1APIGroup'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('../io.kubernetes.js.models/V1APIGroup')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.StorageApi = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1APIGroup); - } -}(this, function(ApiClient, V1APIGroup) { - 'use strict'; - - /** - * Storage service. - * @module io.kubernetes.js/io.kubernetes.js.apis/StorageApi - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new StorageApi. - * @alias module:io.kubernetes.js/io.kubernetes.js.apis/StorageApi - * @class - * @param {module:io.kubernetes.js/ApiClient} apiClient Optional API client implementation to use, - * default to {@link module:io.kubernetes.js/ApiClient#instance} if unspecified. - */ - var exports = function(apiClient) { - this.apiClient = apiClient || ApiClient.instance; - - - /** - * Callback function to receive the result of the getAPIGroup operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/StorageApi~getAPIGroupCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1APIGroup} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * get information of a group - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/StorageApi~getAPIGroupCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1APIGroup} - */ - this.getAPIGroup = function(callback) { - var postBody = null; - - - var pathParams = { - }; - var queryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1APIGroup; - - return this.apiClient.callApi( - '/apis/storage.k8s.io/', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - }; - - return exports; -})); diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.apis/Storage_v1Api.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.apis/Storage_v1Api.js deleted file mode 100644 index b895cf5d74..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.apis/Storage_v1Api.js +++ /dev/null @@ -1,464 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1APIResourceList', 'io.kubernetes.js/io.kubernetes.js.models/V1DeleteOptions', 'io.kubernetes.js/io.kubernetes.js.models/V1Status', 'io.kubernetes.js/io.kubernetes.js.models/V1StorageClass', 'io.kubernetes.js/io.kubernetes.js.models/V1StorageClassList'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('../io.kubernetes.js.models/V1APIResourceList'), require('../io.kubernetes.js.models/V1DeleteOptions'), require('../io.kubernetes.js.models/V1Status'), require('../io.kubernetes.js.models/V1StorageClass'), require('../io.kubernetes.js.models/V1StorageClassList')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.Storage_v1Api = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1APIResourceList, root.KubernetesJsClient.V1DeleteOptions, root.KubernetesJsClient.V1Status, root.KubernetesJsClient.V1StorageClass, root.KubernetesJsClient.V1StorageClassList); - } -}(this, function(ApiClient, V1APIResourceList, V1DeleteOptions, V1Status, V1StorageClass, V1StorageClassList) { - 'use strict'; - - /** - * Storage_v1 service. - * @module io.kubernetes.js/io.kubernetes.js.apis/Storage_v1Api - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new Storage_v1Api. - * @alias module:io.kubernetes.js/io.kubernetes.js.apis/Storage_v1Api - * @class - * @param {module:io.kubernetes.js/ApiClient} apiClient Optional API client implementation to use, - * default to {@link module:io.kubernetes.js/ApiClient#instance} if unspecified. - */ - var exports = function(apiClient) { - this.apiClient = apiClient || ApiClient.instance; - - - /** - * Callback function to receive the result of the createStorageClass operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Storage_v1Api~createStorageClassCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1StorageClass} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * create a StorageClass - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1StorageClass} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Storage_v1Api~createStorageClassCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1StorageClass} - */ - this.createStorageClass = function(body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling createStorageClass"); - } - - - var pathParams = { - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1StorageClass; - - return this.apiClient.callApi( - '/apis/storage.k8s.io/v1/storageclasses', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the deleteCollectionStorageClass operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Storage_v1Api~deleteCollectionStorageClassCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Status} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * delete collection of StorageClass - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {String} opts.fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. - * @param {String} opts.labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. - * @param {String} opts.resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - * @param {Number} opts.timeoutSeconds Timeout for the list/watch call. - * @param {Boolean} opts.watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Storage_v1Api~deleteCollectionStorageClassCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1Status} - */ - this.deleteCollectionStorageClass = function(opts, callback) { - opts = opts || {}; - var postBody = null; - - - var pathParams = { - }; - var queryParams = { - 'pretty': opts['pretty'], - 'fieldSelector': opts['fieldSelector'], - 'labelSelector': opts['labelSelector'], - 'resourceVersion': opts['resourceVersion'], - 'timeoutSeconds': opts['timeoutSeconds'], - 'watch': opts['watch'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1Status; - - return this.apiClient.callApi( - '/apis/storage.k8s.io/v1/storageclasses', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the deleteStorageClass operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Storage_v1Api~deleteStorageClassCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Status} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * delete a StorageClass - * @param {String} name name of the StorageClass - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1DeleteOptions} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {Number} opts.gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - * @param {Boolean} opts.orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - * @param {String} opts.propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Storage_v1Api~deleteStorageClassCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1Status} - */ - this.deleteStorageClass = function(name, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling deleteStorageClass"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling deleteStorageClass"); - } - - - var pathParams = { - 'name': name - }; - var queryParams = { - 'pretty': opts['pretty'], - 'gracePeriodSeconds': opts['gracePeriodSeconds'], - 'orphanDependents': opts['orphanDependents'], - 'propagationPolicy': opts['propagationPolicy'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1Status; - - return this.apiClient.callApi( - '/apis/storage.k8s.io/v1/storageclasses/{name}', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the getAPIResources operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Storage_v1Api~getAPIResourcesCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1APIResourceList} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * get available resources - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Storage_v1Api~getAPIResourcesCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1APIResourceList} - */ - this.getAPIResources = function(callback) { - var postBody = null; - - - var pathParams = { - }; - var queryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1APIResourceList; - - return this.apiClient.callApi( - '/apis/storage.k8s.io/v1/', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the listStorageClass operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Storage_v1Api~listStorageClassCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1StorageClassList} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * list or watch objects of kind StorageClass - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {String} opts.fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. - * @param {String} opts.labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. - * @param {String} opts.resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - * @param {Number} opts.timeoutSeconds Timeout for the list/watch call. - * @param {Boolean} opts.watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Storage_v1Api~listStorageClassCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1StorageClassList} - */ - this.listStorageClass = function(opts, callback) { - opts = opts || {}; - var postBody = null; - - - var pathParams = { - }; - var queryParams = { - 'pretty': opts['pretty'], - 'fieldSelector': opts['fieldSelector'], - 'labelSelector': opts['labelSelector'], - 'resourceVersion': opts['resourceVersion'], - 'timeoutSeconds': opts['timeoutSeconds'], - 'watch': opts['watch'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']; - var returnType = V1StorageClassList; - - return this.apiClient.callApi( - '/apis/storage.k8s.io/v1/storageclasses', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the patchStorageClass operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Storage_v1Api~patchStorageClassCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1StorageClass} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * partially update the specified StorageClass - * @param {String} name name of the StorageClass - * @param {Object} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Storage_v1Api~patchStorageClassCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1StorageClass} - */ - this.patchStorageClass = function(name, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling patchStorageClass"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling patchStorageClass"); - } - - - var pathParams = { - 'name': name - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1StorageClass; - - return this.apiClient.callApi( - '/apis/storage.k8s.io/v1/storageclasses/{name}', 'PATCH', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the readStorageClass operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Storage_v1Api~readStorageClassCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1StorageClass} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * read the specified StorageClass - * @param {String} name name of the StorageClass - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {Boolean} opts.exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. - * @param {Boolean} opts._export Should this value be exported. Export strips fields that a user can not specify. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Storage_v1Api~readStorageClassCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1StorageClass} - */ - this.readStorageClass = function(name, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling readStorageClass"); - } - - - var pathParams = { - 'name': name - }; - var queryParams = { - 'pretty': opts['pretty'], - 'exact': opts['exact'], - 'export': opts['_export'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1StorageClass; - - return this.apiClient.callApi( - '/apis/storage.k8s.io/v1/storageclasses/{name}', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the replaceStorageClass operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Storage_v1Api~replaceStorageClassCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1StorageClass} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * replace the specified StorageClass - * @param {String} name name of the StorageClass - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1StorageClass} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Storage_v1Api~replaceStorageClassCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1StorageClass} - */ - this.replaceStorageClass = function(name, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling replaceStorageClass"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling replaceStorageClass"); - } - - - var pathParams = { - 'name': name - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1StorageClass; - - return this.apiClient.callApi( - '/apis/storage.k8s.io/v1/storageclasses/{name}', 'PUT', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - }; - - return exports; -})); diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.apis/Storage_v1beta1Api.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.apis/Storage_v1beta1Api.js deleted file mode 100644 index 18968faab5..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.apis/Storage_v1beta1Api.js +++ /dev/null @@ -1,464 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1APIResourceList', 'io.kubernetes.js/io.kubernetes.js.models/V1DeleteOptions', 'io.kubernetes.js/io.kubernetes.js.models/V1Status', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1StorageClass', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1StorageClassList'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('../io.kubernetes.js.models/V1APIResourceList'), require('../io.kubernetes.js.models/V1DeleteOptions'), require('../io.kubernetes.js.models/V1Status'), require('../io.kubernetes.js.models/V1beta1StorageClass'), require('../io.kubernetes.js.models/V1beta1StorageClassList')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.Storage_v1beta1Api = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1APIResourceList, root.KubernetesJsClient.V1DeleteOptions, root.KubernetesJsClient.V1Status, root.KubernetesJsClient.V1beta1StorageClass, root.KubernetesJsClient.V1beta1StorageClassList); - } -}(this, function(ApiClient, V1APIResourceList, V1DeleteOptions, V1Status, V1beta1StorageClass, V1beta1StorageClassList) { - 'use strict'; - - /** - * Storage_v1beta1 service. - * @module io.kubernetes.js/io.kubernetes.js.apis/Storage_v1beta1Api - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new Storage_v1beta1Api. - * @alias module:io.kubernetes.js/io.kubernetes.js.apis/Storage_v1beta1Api - * @class - * @param {module:io.kubernetes.js/ApiClient} apiClient Optional API client implementation to use, - * default to {@link module:io.kubernetes.js/ApiClient#instance} if unspecified. - */ - var exports = function(apiClient) { - this.apiClient = apiClient || ApiClient.instance; - - - /** - * Callback function to receive the result of the createStorageClass operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Storage_v1beta1Api~createStorageClassCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1StorageClass} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * create a StorageClass - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1StorageClass} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Storage_v1beta1Api~createStorageClassCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1beta1StorageClass} - */ - this.createStorageClass = function(body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling createStorageClass"); - } - - - var pathParams = { - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1beta1StorageClass; - - return this.apiClient.callApi( - '/apis/storage.k8s.io/v1beta1/storageclasses', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the deleteCollectionStorageClass operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Storage_v1beta1Api~deleteCollectionStorageClassCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Status} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * delete collection of StorageClass - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {String} opts.fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. - * @param {String} opts.labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. - * @param {String} opts.resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - * @param {Number} opts.timeoutSeconds Timeout for the list/watch call. - * @param {Boolean} opts.watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Storage_v1beta1Api~deleteCollectionStorageClassCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1Status} - */ - this.deleteCollectionStorageClass = function(opts, callback) { - opts = opts || {}; - var postBody = null; - - - var pathParams = { - }; - var queryParams = { - 'pretty': opts['pretty'], - 'fieldSelector': opts['fieldSelector'], - 'labelSelector': opts['labelSelector'], - 'resourceVersion': opts['resourceVersion'], - 'timeoutSeconds': opts['timeoutSeconds'], - 'watch': opts['watch'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1Status; - - return this.apiClient.callApi( - '/apis/storage.k8s.io/v1beta1/storageclasses', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the deleteStorageClass operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Storage_v1beta1Api~deleteStorageClassCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Status} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * delete a StorageClass - * @param {String} name name of the StorageClass - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1DeleteOptions} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {Number} opts.gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - * @param {Boolean} opts.orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - * @param {String} opts.propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Storage_v1beta1Api~deleteStorageClassCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1Status} - */ - this.deleteStorageClass = function(name, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling deleteStorageClass"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling deleteStorageClass"); - } - - - var pathParams = { - 'name': name - }; - var queryParams = { - 'pretty': opts['pretty'], - 'gracePeriodSeconds': opts['gracePeriodSeconds'], - 'orphanDependents': opts['orphanDependents'], - 'propagationPolicy': opts['propagationPolicy'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1Status; - - return this.apiClient.callApi( - '/apis/storage.k8s.io/v1beta1/storageclasses/{name}', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the getAPIResources operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Storage_v1beta1Api~getAPIResourcesCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1APIResourceList} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * get available resources - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Storage_v1beta1Api~getAPIResourcesCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1APIResourceList} - */ - this.getAPIResources = function(callback) { - var postBody = null; - - - var pathParams = { - }; - var queryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1APIResourceList; - - return this.apiClient.callApi( - '/apis/storage.k8s.io/v1beta1/', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the listStorageClass operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Storage_v1beta1Api~listStorageClassCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1StorageClassList} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * list or watch objects of kind StorageClass - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {String} opts.fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. - * @param {String} opts.labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. - * @param {String} opts.resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. - * @param {Number} opts.timeoutSeconds Timeout for the list/watch call. - * @param {Boolean} opts.watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Storage_v1beta1Api~listStorageClassCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1beta1StorageClassList} - */ - this.listStorageClass = function(opts, callback) { - opts = opts || {}; - var postBody = null; - - - var pathParams = { - }; - var queryParams = { - 'pretty': opts['pretty'], - 'fieldSelector': opts['fieldSelector'], - 'labelSelector': opts['labelSelector'], - 'resourceVersion': opts['resourceVersion'], - 'timeoutSeconds': opts['timeoutSeconds'], - 'watch': opts['watch'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']; - var returnType = V1beta1StorageClassList; - - return this.apiClient.callApi( - '/apis/storage.k8s.io/v1beta1/storageclasses', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the patchStorageClass operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Storage_v1beta1Api~patchStorageClassCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1StorageClass} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * partially update the specified StorageClass - * @param {String} name name of the StorageClass - * @param {Object} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Storage_v1beta1Api~patchStorageClassCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1beta1StorageClass} - */ - this.patchStorageClass = function(name, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling patchStorageClass"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling patchStorageClass"); - } - - - var pathParams = { - 'name': name - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1beta1StorageClass; - - return this.apiClient.callApi( - '/apis/storage.k8s.io/v1beta1/storageclasses/{name}', 'PATCH', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the readStorageClass operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Storage_v1beta1Api~readStorageClassCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1StorageClass} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * read the specified StorageClass - * @param {String} name name of the StorageClass - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {Boolean} opts.exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. - * @param {Boolean} opts._export Should this value be exported. Export strips fields that a user can not specify. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Storage_v1beta1Api~readStorageClassCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1beta1StorageClass} - */ - this.readStorageClass = function(name, opts, callback) { - opts = opts || {}; - var postBody = null; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling readStorageClass"); - } - - - var pathParams = { - 'name': name - }; - var queryParams = { - 'pretty': opts['pretty'], - 'exact': opts['exact'], - 'export': opts['_export'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1beta1StorageClass; - - return this.apiClient.callApi( - '/apis/storage.k8s.io/v1beta1/storageclasses/{name}', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - - /** - * Callback function to receive the result of the replaceStorageClass operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/Storage_v1beta1Api~replaceStorageClassCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1StorageClass} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * replace the specified StorageClass - * @param {String} name name of the StorageClass - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1StorageClass} body - * @param {Object} opts Optional parameters - * @param {String} opts.pretty If 'true', then the output is pretty printed. - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/Storage_v1beta1Api~replaceStorageClassCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/V1beta1StorageClass} - */ - this.replaceStorageClass = function(name, body, opts, callback) { - opts = opts || {}; - var postBody = body; - - // verify the required parameter 'name' is set - if (name == undefined || name == null) { - throw new Error("Missing the required parameter 'name' when calling replaceStorageClass"); - } - - // verify the required parameter 'body' is set - if (body == undefined || body == null) { - throw new Error("Missing the required parameter 'body' when calling replaceStorageClass"); - } - - - var pathParams = { - 'name': name - }; - var queryParams = { - 'pretty': opts['pretty'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['*/*']; - var accepts = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']; - var returnType = V1beta1StorageClass; - - return this.apiClient.callApi( - '/apis/storage.k8s.io/v1beta1/storageclasses/{name}', 'PUT', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - }; - - return exports; -})); diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.apis/VersionApi.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.apis/VersionApi.js deleted file mode 100644 index be27417923..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.apis/VersionApi.js +++ /dev/null @@ -1,88 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/VersionInfo'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('../io.kubernetes.js.models/VersionInfo')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.VersionApi = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.VersionInfo); - } -}(this, function(ApiClient, VersionInfo) { - 'use strict'; - - /** - * Version service. - * @module io.kubernetes.js/io.kubernetes.js.apis/VersionApi - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new VersionApi. - * @alias module:io.kubernetes.js/io.kubernetes.js.apis/VersionApi - * @class - * @param {module:io.kubernetes.js/ApiClient} apiClient Optional API client implementation to use, - * default to {@link module:io.kubernetes.js/ApiClient#instance} if unspecified. - */ - var exports = function(apiClient) { - this.apiClient = apiClient || ApiClient.instance; - - - /** - * Callback function to receive the result of the getCode operation. - * @callback module:io.kubernetes.js/io.kubernetes.js.apis/VersionApi~getCodeCallback - * @param {String} error Error message, if any. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/VersionInfo} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * get the code version - * @param {module:io.kubernetes.js/io.kubernetes.js.apis/VersionApi~getCodeCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:io.kubernetes.js/io.kubernetes.js.models/VersionInfo} - */ - this.getCode = function(callback) { - var postBody = null; - - - var pathParams = { - }; - var queryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['BearerToken']; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = VersionInfo; - - return this.apiClient.callApi( - '/version/', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); - } - }; - - return exports; -})); diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1Deployment.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1Deployment.js deleted file mode 100644 index 97bab1b2dc..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1Deployment.js +++ /dev/null @@ -1,117 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1DeploymentSpec', 'io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1DeploymentStatus', 'io.kubernetes.js/io.kubernetes.js.models/V1ObjectMeta'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./AppsV1beta1DeploymentSpec'), require('./AppsV1beta1DeploymentStatus'), require('./V1ObjectMeta')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.AppsV1beta1Deployment = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.AppsV1beta1DeploymentSpec, root.KubernetesJsClient.AppsV1beta1DeploymentStatus, root.KubernetesJsClient.V1ObjectMeta); - } -}(this, function(ApiClient, AppsV1beta1DeploymentSpec, AppsV1beta1DeploymentStatus, V1ObjectMeta) { - 'use strict'; - - - - - /** - * The AppsV1beta1Deployment model module. - * @module io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1Deployment - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new AppsV1beta1Deployment. - * Deployment enables declarative updates for Pods and ReplicaSets. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1Deployment - * @class - */ - var exports = function() { - var _this = this; - - - - - - - }; - - /** - * Constructs a AppsV1beta1Deployment from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1Deployment} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1Deployment} The populated AppsV1beta1Deployment instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('apiVersion')) { - obj['apiVersion'] = ApiClient.convertToType(data['apiVersion'], 'String'); - } - if (data.hasOwnProperty('kind')) { - obj['kind'] = ApiClient.convertToType(data['kind'], 'String'); - } - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = V1ObjectMeta.constructFromObject(data['metadata']); - } - if (data.hasOwnProperty('spec')) { - obj['spec'] = AppsV1beta1DeploymentSpec.constructFromObject(data['spec']); - } - if (data.hasOwnProperty('status')) { - obj['status'] = AppsV1beta1DeploymentStatus.constructFromObject(data['status']); - } - } - return obj; - } - - /** - * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - * @member {String} apiVersion - */ - exports.prototype['apiVersion'] = undefined; - /** - * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - * @member {String} kind - */ - exports.prototype['kind'] = undefined; - /** - * Standard object metadata. - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1ObjectMeta} metadata - */ - exports.prototype['metadata'] = undefined; - /** - * Specification of the desired behavior of the Deployment. - * @member {module:io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1DeploymentSpec} spec - */ - exports.prototype['spec'] = undefined; - /** - * Most recently observed status of the Deployment. - * @member {module:io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1DeploymentStatus} status - */ - exports.prototype['status'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1DeploymentCondition.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1DeploymentCondition.js deleted file mode 100644 index 27f8f56c96..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1DeploymentCondition.js +++ /dev/null @@ -1,128 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.AppsV1beta1DeploymentCondition = factory(root.KubernetesJsClient.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - - /** - * The AppsV1beta1DeploymentCondition model module. - * @module io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1DeploymentCondition - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new AppsV1beta1DeploymentCondition. - * DeploymentCondition describes the state of a deployment at a certain point. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1DeploymentCondition - * @class - * @param status {String} Status of the condition, one of True, False, Unknown. - * @param type {String} Type of deployment condition. - */ - var exports = function(status, type) { - var _this = this; - - - - - - _this['status'] = status; - _this['type'] = type; - }; - - /** - * Constructs a AppsV1beta1DeploymentCondition from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1DeploymentCondition} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1DeploymentCondition} The populated AppsV1beta1DeploymentCondition instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('lastTransitionTime')) { - obj['lastTransitionTime'] = ApiClient.convertToType(data['lastTransitionTime'], 'Date'); - } - if (data.hasOwnProperty('lastUpdateTime')) { - obj['lastUpdateTime'] = ApiClient.convertToType(data['lastUpdateTime'], 'Date'); - } - if (data.hasOwnProperty('message')) { - obj['message'] = ApiClient.convertToType(data['message'], 'String'); - } - if (data.hasOwnProperty('reason')) { - obj['reason'] = ApiClient.convertToType(data['reason'], 'String'); - } - if (data.hasOwnProperty('status')) { - obj['status'] = ApiClient.convertToType(data['status'], 'String'); - } - if (data.hasOwnProperty('type')) { - obj['type'] = ApiClient.convertToType(data['type'], 'String'); - } - } - return obj; - } - - /** - * Last time the condition transitioned from one status to another. - * @member {Date} lastTransitionTime - */ - exports.prototype['lastTransitionTime'] = undefined; - /** - * The last time this condition was updated. - * @member {Date} lastUpdateTime - */ - exports.prototype['lastUpdateTime'] = undefined; - /** - * A human readable message indicating details about the transition. - * @member {String} message - */ - exports.prototype['message'] = undefined; - /** - * The reason for the condition's last transition. - * @member {String} reason - */ - exports.prototype['reason'] = undefined; - /** - * Status of the condition, one of True, False, Unknown. - * @member {String} status - */ - exports.prototype['status'] = undefined; - /** - * Type of deployment condition. - * @member {String} type - */ - exports.prototype['type'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1DeploymentList.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1DeploymentList.js deleted file mode 100644 index a2ea51185f..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1DeploymentList.js +++ /dev/null @@ -1,109 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1Deployment', 'io.kubernetes.js/io.kubernetes.js.models/V1ListMeta'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./AppsV1beta1Deployment'), require('./V1ListMeta')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.AppsV1beta1DeploymentList = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.AppsV1beta1Deployment, root.KubernetesJsClient.V1ListMeta); - } -}(this, function(ApiClient, AppsV1beta1Deployment, V1ListMeta) { - 'use strict'; - - - - - /** - * The AppsV1beta1DeploymentList model module. - * @module io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1DeploymentList - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new AppsV1beta1DeploymentList. - * DeploymentList is a list of Deployments. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1DeploymentList - * @class - * @param items {Array.} Items is the list of Deployments. - */ - var exports = function(items) { - var _this = this; - - - _this['items'] = items; - - - }; - - /** - * Constructs a AppsV1beta1DeploymentList from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1DeploymentList} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1DeploymentList} The populated AppsV1beta1DeploymentList instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('apiVersion')) { - obj['apiVersion'] = ApiClient.convertToType(data['apiVersion'], 'String'); - } - if (data.hasOwnProperty('items')) { - obj['items'] = ApiClient.convertToType(data['items'], [AppsV1beta1Deployment]); - } - if (data.hasOwnProperty('kind')) { - obj['kind'] = ApiClient.convertToType(data['kind'], 'String'); - } - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = V1ListMeta.constructFromObject(data['metadata']); - } - } - return obj; - } - - /** - * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - * @member {String} apiVersion - */ - exports.prototype['apiVersion'] = undefined; - /** - * Items is the list of Deployments. - * @member {Array.} items - */ - exports.prototype['items'] = undefined; - /** - * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - * @member {String} kind - */ - exports.prototype['kind'] = undefined; - /** - * Standard list metadata. - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1ListMeta} metadata - */ - exports.prototype['metadata'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1DeploymentRollback.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1DeploymentRollback.js deleted file mode 100644 index 69f48d8cf2..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1DeploymentRollback.js +++ /dev/null @@ -1,119 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1RollbackConfig'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./AppsV1beta1RollbackConfig')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.AppsV1beta1DeploymentRollback = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.AppsV1beta1RollbackConfig); - } -}(this, function(ApiClient, AppsV1beta1RollbackConfig) { - 'use strict'; - - - - - /** - * The AppsV1beta1DeploymentRollback model module. - * @module io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1DeploymentRollback - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new AppsV1beta1DeploymentRollback. - * DeploymentRollback stores the information required to rollback a deployment. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1DeploymentRollback - * @class - * @param name {String} Required: This must match the Name of a deployment. - * @param rollbackTo {module:io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1RollbackConfig} The config of this deployment rollback. - */ - var exports = function(name, rollbackTo) { - var _this = this; - - - - _this['name'] = name; - _this['rollbackTo'] = rollbackTo; - - }; - - /** - * Constructs a AppsV1beta1DeploymentRollback from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1DeploymentRollback} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1DeploymentRollback} The populated AppsV1beta1DeploymentRollback instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('apiVersion')) { - obj['apiVersion'] = ApiClient.convertToType(data['apiVersion'], 'String'); - } - if (data.hasOwnProperty('kind')) { - obj['kind'] = ApiClient.convertToType(data['kind'], 'String'); - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - } - if (data.hasOwnProperty('rollbackTo')) { - obj['rollbackTo'] = AppsV1beta1RollbackConfig.constructFromObject(data['rollbackTo']); - } - if (data.hasOwnProperty('updatedAnnotations')) { - obj['updatedAnnotations'] = ApiClient.convertToType(data['updatedAnnotations'], {'String': 'String'}); - } - } - return obj; - } - - /** - * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - * @member {String} apiVersion - */ - exports.prototype['apiVersion'] = undefined; - /** - * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - * @member {String} kind - */ - exports.prototype['kind'] = undefined; - /** - * Required: This must match the Name of a deployment. - * @member {String} name - */ - exports.prototype['name'] = undefined; - /** - * The config of this deployment rollback. - * @member {module:io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1RollbackConfig} rollbackTo - */ - exports.prototype['rollbackTo'] = undefined; - /** - * The annotations to be updated to a deployment - * @member {Object.} updatedAnnotations - */ - exports.prototype['updatedAnnotations'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1DeploymentSpec.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1DeploymentSpec.js deleted file mode 100644 index 901c0c8e47..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1DeploymentSpec.js +++ /dev/null @@ -1,154 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1DeploymentStrategy', 'io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1RollbackConfig', 'io.kubernetes.js/io.kubernetes.js.models/V1LabelSelector', 'io.kubernetes.js/io.kubernetes.js.models/V1PodTemplateSpec'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./AppsV1beta1DeploymentStrategy'), require('./AppsV1beta1RollbackConfig'), require('./V1LabelSelector'), require('./V1PodTemplateSpec')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.AppsV1beta1DeploymentSpec = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.AppsV1beta1DeploymentStrategy, root.KubernetesJsClient.AppsV1beta1RollbackConfig, root.KubernetesJsClient.V1LabelSelector, root.KubernetesJsClient.V1PodTemplateSpec); - } -}(this, function(ApiClient, AppsV1beta1DeploymentStrategy, AppsV1beta1RollbackConfig, V1LabelSelector, V1PodTemplateSpec) { - 'use strict'; - - - - - /** - * The AppsV1beta1DeploymentSpec model module. - * @module io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1DeploymentSpec - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new AppsV1beta1DeploymentSpec. - * DeploymentSpec is the specification of the desired behavior of the Deployment. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1DeploymentSpec - * @class - * @param template {module:io.kubernetes.js/io.kubernetes.js.models/V1PodTemplateSpec} Template describes the pods that will be created. - */ - var exports = function(template) { - var _this = this; - - - - - - - - - - _this['template'] = template; - }; - - /** - * Constructs a AppsV1beta1DeploymentSpec from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1DeploymentSpec} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1DeploymentSpec} The populated AppsV1beta1DeploymentSpec instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('minReadySeconds')) { - obj['minReadySeconds'] = ApiClient.convertToType(data['minReadySeconds'], 'Number'); - } - if (data.hasOwnProperty('paused')) { - obj['paused'] = ApiClient.convertToType(data['paused'], 'Boolean'); - } - if (data.hasOwnProperty('progressDeadlineSeconds')) { - obj['progressDeadlineSeconds'] = ApiClient.convertToType(data['progressDeadlineSeconds'], 'Number'); - } - if (data.hasOwnProperty('replicas')) { - obj['replicas'] = ApiClient.convertToType(data['replicas'], 'Number'); - } - if (data.hasOwnProperty('revisionHistoryLimit')) { - obj['revisionHistoryLimit'] = ApiClient.convertToType(data['revisionHistoryLimit'], 'Number'); - } - if (data.hasOwnProperty('rollbackTo')) { - obj['rollbackTo'] = AppsV1beta1RollbackConfig.constructFromObject(data['rollbackTo']); - } - if (data.hasOwnProperty('selector')) { - obj['selector'] = V1LabelSelector.constructFromObject(data['selector']); - } - if (data.hasOwnProperty('strategy')) { - obj['strategy'] = AppsV1beta1DeploymentStrategy.constructFromObject(data['strategy']); - } - if (data.hasOwnProperty('template')) { - obj['template'] = V1PodTemplateSpec.constructFromObject(data['template']); - } - } - return obj; - } - - /** - * Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) - * @member {Number} minReadySeconds - */ - exports.prototype['minReadySeconds'] = undefined; - /** - * Indicates that the deployment is paused. - * @member {Boolean} paused - */ - exports.prototype['paused'] = undefined; - /** - * The maximum time in seconds for a deployment to make progress before it is considered to be failed. The deployment controller will continue to process failed deployments and a condition with a ProgressDeadlineExceeded reason will be surfaced in the deployment status. Once autoRollback is implemented, the deployment controller will automatically rollback failed deployments. Note that progress will not be estimated during the time a deployment is paused. Defaults to 600s. - * @member {Number} progressDeadlineSeconds - */ - exports.prototype['progressDeadlineSeconds'] = undefined; - /** - * Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1. - * @member {Number} replicas - */ - exports.prototype['replicas'] = undefined; - /** - * The number of old ReplicaSets to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 2. - * @member {Number} revisionHistoryLimit - */ - exports.prototype['revisionHistoryLimit'] = undefined; - /** - * The config this deployment is rolling back to. Will be cleared after rollback is done. - * @member {module:io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1RollbackConfig} rollbackTo - */ - exports.prototype['rollbackTo'] = undefined; - /** - * Label selector for pods. Existing ReplicaSets whose pods are selected by this will be the ones affected by this deployment. - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1LabelSelector} selector - */ - exports.prototype['selector'] = undefined; - /** - * The deployment strategy to use to replace existing pods with new ones. - * @member {module:io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1DeploymentStrategy} strategy - */ - exports.prototype['strategy'] = undefined; - /** - * Template describes the pods that will be created. - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1PodTemplateSpec} template - */ - exports.prototype['template'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1DeploymentStatus.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1DeploymentStatus.js deleted file mode 100644 index e65d6ecff9..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1DeploymentStatus.js +++ /dev/null @@ -1,135 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1DeploymentCondition'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./AppsV1beta1DeploymentCondition')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.AppsV1beta1DeploymentStatus = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.AppsV1beta1DeploymentCondition); - } -}(this, function(ApiClient, AppsV1beta1DeploymentCondition) { - 'use strict'; - - - - - /** - * The AppsV1beta1DeploymentStatus model module. - * @module io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1DeploymentStatus - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new AppsV1beta1DeploymentStatus. - * DeploymentStatus is the most recently observed status of the Deployment. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1DeploymentStatus - * @class - */ - var exports = function() { - var _this = this; - - - - - - - - - }; - - /** - * Constructs a AppsV1beta1DeploymentStatus from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1DeploymentStatus} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1DeploymentStatus} The populated AppsV1beta1DeploymentStatus instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('availableReplicas')) { - obj['availableReplicas'] = ApiClient.convertToType(data['availableReplicas'], 'Number'); - } - if (data.hasOwnProperty('conditions')) { - obj['conditions'] = ApiClient.convertToType(data['conditions'], [AppsV1beta1DeploymentCondition]); - } - if (data.hasOwnProperty('observedGeneration')) { - obj['observedGeneration'] = ApiClient.convertToType(data['observedGeneration'], 'Number'); - } - if (data.hasOwnProperty('readyReplicas')) { - obj['readyReplicas'] = ApiClient.convertToType(data['readyReplicas'], 'Number'); - } - if (data.hasOwnProperty('replicas')) { - obj['replicas'] = ApiClient.convertToType(data['replicas'], 'Number'); - } - if (data.hasOwnProperty('unavailableReplicas')) { - obj['unavailableReplicas'] = ApiClient.convertToType(data['unavailableReplicas'], 'Number'); - } - if (data.hasOwnProperty('updatedReplicas')) { - obj['updatedReplicas'] = ApiClient.convertToType(data['updatedReplicas'], 'Number'); - } - } - return obj; - } - - /** - * Total number of available pods (ready for at least minReadySeconds) targeted by this deployment. - * @member {Number} availableReplicas - */ - exports.prototype['availableReplicas'] = undefined; - /** - * Represents the latest available observations of a deployment's current state. - * @member {Array.} conditions - */ - exports.prototype['conditions'] = undefined; - /** - * The generation observed by the deployment controller. - * @member {Number} observedGeneration - */ - exports.prototype['observedGeneration'] = undefined; - /** - * Total number of ready pods targeted by this deployment. - * @member {Number} readyReplicas - */ - exports.prototype['readyReplicas'] = undefined; - /** - * Total number of non-terminated pods targeted by this deployment (their labels match the selector). - * @member {Number} replicas - */ - exports.prototype['replicas'] = undefined; - /** - * Total number of unavailable pods targeted by this deployment. - * @member {Number} unavailableReplicas - */ - exports.prototype['unavailableReplicas'] = undefined; - /** - * Total number of non-terminated pods targeted by this deployment that have the desired template spec. - * @member {Number} updatedReplicas - */ - exports.prototype['updatedReplicas'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1DeploymentStrategy.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1DeploymentStrategy.js deleted file mode 100644 index 189612ea3f..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1DeploymentStrategy.js +++ /dev/null @@ -1,90 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1RollingUpdateDeployment'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./AppsV1beta1RollingUpdateDeployment')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.AppsV1beta1DeploymentStrategy = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.AppsV1beta1RollingUpdateDeployment); - } -}(this, function(ApiClient, AppsV1beta1RollingUpdateDeployment) { - 'use strict'; - - - - - /** - * The AppsV1beta1DeploymentStrategy model module. - * @module io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1DeploymentStrategy - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new AppsV1beta1DeploymentStrategy. - * DeploymentStrategy describes how to replace existing pods with new ones. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1DeploymentStrategy - * @class - */ - var exports = function() { - var _this = this; - - - - }; - - /** - * Constructs a AppsV1beta1DeploymentStrategy from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1DeploymentStrategy} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1DeploymentStrategy} The populated AppsV1beta1DeploymentStrategy instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('rollingUpdate')) { - obj['rollingUpdate'] = AppsV1beta1RollingUpdateDeployment.constructFromObject(data['rollingUpdate']); - } - if (data.hasOwnProperty('type')) { - obj['type'] = ApiClient.convertToType(data['type'], 'String'); - } - } - return obj; - } - - /** - * Rolling update config params. Present only if DeploymentStrategyType = RollingUpdate. - * @member {module:io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1RollingUpdateDeployment} rollingUpdate - */ - exports.prototype['rollingUpdate'] = undefined; - /** - * Type of deployment. Can be \"Recreate\" or \"RollingUpdate\". Default is RollingUpdate. - * @member {String} type - */ - exports.prototype['type'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1RollbackConfig.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1RollbackConfig.js deleted file mode 100644 index 62f5ee6a9b..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1RollbackConfig.js +++ /dev/null @@ -1,80 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.AppsV1beta1RollbackConfig = factory(root.KubernetesJsClient.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - - /** - * The AppsV1beta1RollbackConfig model module. - * @module io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1RollbackConfig - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new AppsV1beta1RollbackConfig. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1RollbackConfig - * @class - */ - var exports = function() { - var _this = this; - - - }; - - /** - * Constructs a AppsV1beta1RollbackConfig from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1RollbackConfig} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1RollbackConfig} The populated AppsV1beta1RollbackConfig instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('revision')) { - obj['revision'] = ApiClient.convertToType(data['revision'], 'Number'); - } - } - return obj; - } - - /** - * The revision to rollback to. If set to 0, rollbck to the last revision. - * @member {Number} revision - */ - exports.prototype['revision'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1RollingUpdateDeployment.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1RollingUpdateDeployment.js deleted file mode 100644 index 5dcb87231d..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1RollingUpdateDeployment.js +++ /dev/null @@ -1,90 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.AppsV1beta1RollingUpdateDeployment = factory(root.KubernetesJsClient.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - - /** - * The AppsV1beta1RollingUpdateDeployment model module. - * @module io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1RollingUpdateDeployment - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new AppsV1beta1RollingUpdateDeployment. - * Spec to control the desired behavior of rolling update. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1RollingUpdateDeployment - * @class - */ - var exports = function() { - var _this = this; - - - - }; - - /** - * Constructs a AppsV1beta1RollingUpdateDeployment from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1RollingUpdateDeployment} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1RollingUpdateDeployment} The populated AppsV1beta1RollingUpdateDeployment instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('maxSurge')) { - obj['maxSurge'] = ApiClient.convertToType(data['maxSurge'], 'String'); - } - if (data.hasOwnProperty('maxUnavailable')) { - obj['maxUnavailable'] = ApiClient.convertToType(data['maxUnavailable'], 'String'); - } - } - return obj; - } - - /** - * The maximum number of pods that can be scheduled above the desired number of pods. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up. Defaults to 25%. Example: when this is set to 30%, the new RC can be scaled up immediately when the rolling update starts, such that the total number of old and new pods do not exceed 130% of desired pods. Once old pods have been killed, new RC can be scaled up further, ensuring that total number of pods running at any time during the update is atmost 130% of desired pods. - * @member {String} maxSurge - */ - exports.prototype['maxSurge'] = undefined; - /** - * The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding down. This can not be 0 if MaxSurge is 0. Defaults to 25%. Example: when this is set to 30%, the old RC can be scaled down to 70% of desired pods immediately when the rolling update starts. Once new pods are ready, old RC can be scaled down further, followed by scaling up the new RC, ensuring that the total number of pods available at all times during the update is at least 70% of desired pods. - * @member {String} maxUnavailable - */ - exports.prototype['maxUnavailable'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1Scale.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1Scale.js deleted file mode 100644 index 7ea2f0d4f8..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1Scale.js +++ /dev/null @@ -1,117 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1ScaleSpec', 'io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1ScaleStatus', 'io.kubernetes.js/io.kubernetes.js.models/V1ObjectMeta'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./AppsV1beta1ScaleSpec'), require('./AppsV1beta1ScaleStatus'), require('./V1ObjectMeta')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.AppsV1beta1Scale = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.AppsV1beta1ScaleSpec, root.KubernetesJsClient.AppsV1beta1ScaleStatus, root.KubernetesJsClient.V1ObjectMeta); - } -}(this, function(ApiClient, AppsV1beta1ScaleSpec, AppsV1beta1ScaleStatus, V1ObjectMeta) { - 'use strict'; - - - - - /** - * The AppsV1beta1Scale model module. - * @module io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1Scale - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new AppsV1beta1Scale. - * Scale represents a scaling request for a resource. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1Scale - * @class - */ - var exports = function() { - var _this = this; - - - - - - - }; - - /** - * Constructs a AppsV1beta1Scale from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1Scale} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1Scale} The populated AppsV1beta1Scale instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('apiVersion')) { - obj['apiVersion'] = ApiClient.convertToType(data['apiVersion'], 'String'); - } - if (data.hasOwnProperty('kind')) { - obj['kind'] = ApiClient.convertToType(data['kind'], 'String'); - } - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = V1ObjectMeta.constructFromObject(data['metadata']); - } - if (data.hasOwnProperty('spec')) { - obj['spec'] = AppsV1beta1ScaleSpec.constructFromObject(data['spec']); - } - if (data.hasOwnProperty('status')) { - obj['status'] = AppsV1beta1ScaleStatus.constructFromObject(data['status']); - } - } - return obj; - } - - /** - * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - * @member {String} apiVersion - */ - exports.prototype['apiVersion'] = undefined; - /** - * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - * @member {String} kind - */ - exports.prototype['kind'] = undefined; - /** - * Standard object metadata; More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata. - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1ObjectMeta} metadata - */ - exports.prototype['metadata'] = undefined; - /** - * defines the behavior of the scale. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status. - * @member {module:io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1ScaleSpec} spec - */ - exports.prototype['spec'] = undefined; - /** - * current status of the scale. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status. Read-only. - * @member {module:io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1ScaleStatus} status - */ - exports.prototype['status'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1ScaleSpec.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1ScaleSpec.js deleted file mode 100644 index a4a8d52ba8..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1ScaleSpec.js +++ /dev/null @@ -1,81 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.AppsV1beta1ScaleSpec = factory(root.KubernetesJsClient.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - - /** - * The AppsV1beta1ScaleSpec model module. - * @module io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1ScaleSpec - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new AppsV1beta1ScaleSpec. - * ScaleSpec describes the attributes of a scale subresource - * @alias module:io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1ScaleSpec - * @class - */ - var exports = function() { - var _this = this; - - - }; - - /** - * Constructs a AppsV1beta1ScaleSpec from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1ScaleSpec} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1ScaleSpec} The populated AppsV1beta1ScaleSpec instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('replicas')) { - obj['replicas'] = ApiClient.convertToType(data['replicas'], 'Number'); - } - } - return obj; - } - - /** - * desired number of instances for the scaled object. - * @member {Number} replicas - */ - exports.prototype['replicas'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1ScaleStatus.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1ScaleStatus.js deleted file mode 100644 index a132cfe356..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1ScaleStatus.js +++ /dev/null @@ -1,100 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.AppsV1beta1ScaleStatus = factory(root.KubernetesJsClient.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - - /** - * The AppsV1beta1ScaleStatus model module. - * @module io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1ScaleStatus - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new AppsV1beta1ScaleStatus. - * ScaleStatus represents the current status of a scale subresource. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1ScaleStatus - * @class - * @param replicas {Number} actual number of observed instances of the scaled object. - */ - var exports = function(replicas) { - var _this = this; - - _this['replicas'] = replicas; - - - }; - - /** - * Constructs a AppsV1beta1ScaleStatus from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1ScaleStatus} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/AppsV1beta1ScaleStatus} The populated AppsV1beta1ScaleStatus instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('replicas')) { - obj['replicas'] = ApiClient.convertToType(data['replicas'], 'Number'); - } - if (data.hasOwnProperty('selector')) { - obj['selector'] = ApiClient.convertToType(data['selector'], {'String': 'String'}); - } - if (data.hasOwnProperty('targetSelector')) { - obj['targetSelector'] = ApiClient.convertToType(data['targetSelector'], 'String'); - } - } - return obj; - } - - /** - * actual number of observed instances of the scaled object. - * @member {Number} replicas - */ - exports.prototype['replicas'] = undefined; - /** - * label query over pods that should match the replicas count. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors - * @member {Object.} selector - */ - exports.prototype['selector'] = undefined; - /** - * label selector for pods that should match the replicas count. This is a serializated version of both map-based and more expressive set-based selectors. This is done to avoid introspection in the clients. The string will be in the same format as the query-param syntax. If the target type only supports map-based selectors, both this field and map-based selector field are populated. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors - * @member {String} targetSelector - */ - exports.prototype['targetSelector'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1Deployment.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1Deployment.js deleted file mode 100644 index e6cf810af2..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1Deployment.js +++ /dev/null @@ -1,117 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1DeploymentSpec', 'io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1DeploymentStatus', 'io.kubernetes.js/io.kubernetes.js.models/V1ObjectMeta'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./ExtensionsV1beta1DeploymentSpec'), require('./ExtensionsV1beta1DeploymentStatus'), require('./V1ObjectMeta')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.ExtensionsV1beta1Deployment = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.ExtensionsV1beta1DeploymentSpec, root.KubernetesJsClient.ExtensionsV1beta1DeploymentStatus, root.KubernetesJsClient.V1ObjectMeta); - } -}(this, function(ApiClient, ExtensionsV1beta1DeploymentSpec, ExtensionsV1beta1DeploymentStatus, V1ObjectMeta) { - 'use strict'; - - - - - /** - * The ExtensionsV1beta1Deployment model module. - * @module io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1Deployment - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new ExtensionsV1beta1Deployment. - * Deployment enables declarative updates for Pods and ReplicaSets. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1Deployment - * @class - */ - var exports = function() { - var _this = this; - - - - - - - }; - - /** - * Constructs a ExtensionsV1beta1Deployment from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1Deployment} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1Deployment} The populated ExtensionsV1beta1Deployment instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('apiVersion')) { - obj['apiVersion'] = ApiClient.convertToType(data['apiVersion'], 'String'); - } - if (data.hasOwnProperty('kind')) { - obj['kind'] = ApiClient.convertToType(data['kind'], 'String'); - } - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = V1ObjectMeta.constructFromObject(data['metadata']); - } - if (data.hasOwnProperty('spec')) { - obj['spec'] = ExtensionsV1beta1DeploymentSpec.constructFromObject(data['spec']); - } - if (data.hasOwnProperty('status')) { - obj['status'] = ExtensionsV1beta1DeploymentStatus.constructFromObject(data['status']); - } - } - return obj; - } - - /** - * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - * @member {String} apiVersion - */ - exports.prototype['apiVersion'] = undefined; - /** - * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - * @member {String} kind - */ - exports.prototype['kind'] = undefined; - /** - * Standard object metadata. - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1ObjectMeta} metadata - */ - exports.prototype['metadata'] = undefined; - /** - * Specification of the desired behavior of the Deployment. - * @member {module:io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1DeploymentSpec} spec - */ - exports.prototype['spec'] = undefined; - /** - * Most recently observed status of the Deployment. - * @member {module:io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1DeploymentStatus} status - */ - exports.prototype['status'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1DeploymentCondition.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1DeploymentCondition.js deleted file mode 100644 index 5f28fd0ed9..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1DeploymentCondition.js +++ /dev/null @@ -1,128 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.ExtensionsV1beta1DeploymentCondition = factory(root.KubernetesJsClient.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - - /** - * The ExtensionsV1beta1DeploymentCondition model module. - * @module io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1DeploymentCondition - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new ExtensionsV1beta1DeploymentCondition. - * DeploymentCondition describes the state of a deployment at a certain point. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1DeploymentCondition - * @class - * @param status {String} Status of the condition, one of True, False, Unknown. - * @param type {String} Type of deployment condition. - */ - var exports = function(status, type) { - var _this = this; - - - - - - _this['status'] = status; - _this['type'] = type; - }; - - /** - * Constructs a ExtensionsV1beta1DeploymentCondition from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1DeploymentCondition} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1DeploymentCondition} The populated ExtensionsV1beta1DeploymentCondition instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('lastTransitionTime')) { - obj['lastTransitionTime'] = ApiClient.convertToType(data['lastTransitionTime'], 'Date'); - } - if (data.hasOwnProperty('lastUpdateTime')) { - obj['lastUpdateTime'] = ApiClient.convertToType(data['lastUpdateTime'], 'Date'); - } - if (data.hasOwnProperty('message')) { - obj['message'] = ApiClient.convertToType(data['message'], 'String'); - } - if (data.hasOwnProperty('reason')) { - obj['reason'] = ApiClient.convertToType(data['reason'], 'String'); - } - if (data.hasOwnProperty('status')) { - obj['status'] = ApiClient.convertToType(data['status'], 'String'); - } - if (data.hasOwnProperty('type')) { - obj['type'] = ApiClient.convertToType(data['type'], 'String'); - } - } - return obj; - } - - /** - * Last time the condition transitioned from one status to another. - * @member {Date} lastTransitionTime - */ - exports.prototype['lastTransitionTime'] = undefined; - /** - * The last time this condition was updated. - * @member {Date} lastUpdateTime - */ - exports.prototype['lastUpdateTime'] = undefined; - /** - * A human readable message indicating details about the transition. - * @member {String} message - */ - exports.prototype['message'] = undefined; - /** - * The reason for the condition's last transition. - * @member {String} reason - */ - exports.prototype['reason'] = undefined; - /** - * Status of the condition, one of True, False, Unknown. - * @member {String} status - */ - exports.prototype['status'] = undefined; - /** - * Type of deployment condition. - * @member {String} type - */ - exports.prototype['type'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1DeploymentList.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1DeploymentList.js deleted file mode 100644 index 0bb55a2a48..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1DeploymentList.js +++ /dev/null @@ -1,109 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1Deployment', 'io.kubernetes.js/io.kubernetes.js.models/V1ListMeta'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./ExtensionsV1beta1Deployment'), require('./V1ListMeta')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.ExtensionsV1beta1DeploymentList = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.ExtensionsV1beta1Deployment, root.KubernetesJsClient.V1ListMeta); - } -}(this, function(ApiClient, ExtensionsV1beta1Deployment, V1ListMeta) { - 'use strict'; - - - - - /** - * The ExtensionsV1beta1DeploymentList model module. - * @module io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1DeploymentList - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new ExtensionsV1beta1DeploymentList. - * DeploymentList is a list of Deployments. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1DeploymentList - * @class - * @param items {Array.} Items is the list of Deployments. - */ - var exports = function(items) { - var _this = this; - - - _this['items'] = items; - - - }; - - /** - * Constructs a ExtensionsV1beta1DeploymentList from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1DeploymentList} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1DeploymentList} The populated ExtensionsV1beta1DeploymentList instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('apiVersion')) { - obj['apiVersion'] = ApiClient.convertToType(data['apiVersion'], 'String'); - } - if (data.hasOwnProperty('items')) { - obj['items'] = ApiClient.convertToType(data['items'], [ExtensionsV1beta1Deployment]); - } - if (data.hasOwnProperty('kind')) { - obj['kind'] = ApiClient.convertToType(data['kind'], 'String'); - } - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = V1ListMeta.constructFromObject(data['metadata']); - } - } - return obj; - } - - /** - * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - * @member {String} apiVersion - */ - exports.prototype['apiVersion'] = undefined; - /** - * Items is the list of Deployments. - * @member {Array.} items - */ - exports.prototype['items'] = undefined; - /** - * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - * @member {String} kind - */ - exports.prototype['kind'] = undefined; - /** - * Standard list metadata. - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1ListMeta} metadata - */ - exports.prototype['metadata'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1DeploymentRollback.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1DeploymentRollback.js deleted file mode 100644 index 57ba5c2f2d..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1DeploymentRollback.js +++ /dev/null @@ -1,119 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1RollbackConfig'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./ExtensionsV1beta1RollbackConfig')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.ExtensionsV1beta1DeploymentRollback = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.ExtensionsV1beta1RollbackConfig); - } -}(this, function(ApiClient, ExtensionsV1beta1RollbackConfig) { - 'use strict'; - - - - - /** - * The ExtensionsV1beta1DeploymentRollback model module. - * @module io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1DeploymentRollback - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new ExtensionsV1beta1DeploymentRollback. - * DeploymentRollback stores the information required to rollback a deployment. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1DeploymentRollback - * @class - * @param name {String} Required: This must match the Name of a deployment. - * @param rollbackTo {module:io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1RollbackConfig} The config of this deployment rollback. - */ - var exports = function(name, rollbackTo) { - var _this = this; - - - - _this['name'] = name; - _this['rollbackTo'] = rollbackTo; - - }; - - /** - * Constructs a ExtensionsV1beta1DeploymentRollback from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1DeploymentRollback} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1DeploymentRollback} The populated ExtensionsV1beta1DeploymentRollback instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('apiVersion')) { - obj['apiVersion'] = ApiClient.convertToType(data['apiVersion'], 'String'); - } - if (data.hasOwnProperty('kind')) { - obj['kind'] = ApiClient.convertToType(data['kind'], 'String'); - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - } - if (data.hasOwnProperty('rollbackTo')) { - obj['rollbackTo'] = ExtensionsV1beta1RollbackConfig.constructFromObject(data['rollbackTo']); - } - if (data.hasOwnProperty('updatedAnnotations')) { - obj['updatedAnnotations'] = ApiClient.convertToType(data['updatedAnnotations'], {'String': 'String'}); - } - } - return obj; - } - - /** - * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - * @member {String} apiVersion - */ - exports.prototype['apiVersion'] = undefined; - /** - * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - * @member {String} kind - */ - exports.prototype['kind'] = undefined; - /** - * Required: This must match the Name of a deployment. - * @member {String} name - */ - exports.prototype['name'] = undefined; - /** - * The config of this deployment rollback. - * @member {module:io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1RollbackConfig} rollbackTo - */ - exports.prototype['rollbackTo'] = undefined; - /** - * The annotations to be updated to a deployment - * @member {Object.} updatedAnnotations - */ - exports.prototype['updatedAnnotations'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1DeploymentSpec.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1DeploymentSpec.js deleted file mode 100644 index aac646ab6f..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1DeploymentSpec.js +++ /dev/null @@ -1,154 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1DeploymentStrategy', 'io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1RollbackConfig', 'io.kubernetes.js/io.kubernetes.js.models/V1LabelSelector', 'io.kubernetes.js/io.kubernetes.js.models/V1PodTemplateSpec'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./ExtensionsV1beta1DeploymentStrategy'), require('./ExtensionsV1beta1RollbackConfig'), require('./V1LabelSelector'), require('./V1PodTemplateSpec')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.ExtensionsV1beta1DeploymentSpec = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.ExtensionsV1beta1DeploymentStrategy, root.KubernetesJsClient.ExtensionsV1beta1RollbackConfig, root.KubernetesJsClient.V1LabelSelector, root.KubernetesJsClient.V1PodTemplateSpec); - } -}(this, function(ApiClient, ExtensionsV1beta1DeploymentStrategy, ExtensionsV1beta1RollbackConfig, V1LabelSelector, V1PodTemplateSpec) { - 'use strict'; - - - - - /** - * The ExtensionsV1beta1DeploymentSpec model module. - * @module io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1DeploymentSpec - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new ExtensionsV1beta1DeploymentSpec. - * DeploymentSpec is the specification of the desired behavior of the Deployment. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1DeploymentSpec - * @class - * @param template {module:io.kubernetes.js/io.kubernetes.js.models/V1PodTemplateSpec} Template describes the pods that will be created. - */ - var exports = function(template) { - var _this = this; - - - - - - - - - - _this['template'] = template; - }; - - /** - * Constructs a ExtensionsV1beta1DeploymentSpec from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1DeploymentSpec} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1DeploymentSpec} The populated ExtensionsV1beta1DeploymentSpec instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('minReadySeconds')) { - obj['minReadySeconds'] = ApiClient.convertToType(data['minReadySeconds'], 'Number'); - } - if (data.hasOwnProperty('paused')) { - obj['paused'] = ApiClient.convertToType(data['paused'], 'Boolean'); - } - if (data.hasOwnProperty('progressDeadlineSeconds')) { - obj['progressDeadlineSeconds'] = ApiClient.convertToType(data['progressDeadlineSeconds'], 'Number'); - } - if (data.hasOwnProperty('replicas')) { - obj['replicas'] = ApiClient.convertToType(data['replicas'], 'Number'); - } - if (data.hasOwnProperty('revisionHistoryLimit')) { - obj['revisionHistoryLimit'] = ApiClient.convertToType(data['revisionHistoryLimit'], 'Number'); - } - if (data.hasOwnProperty('rollbackTo')) { - obj['rollbackTo'] = ExtensionsV1beta1RollbackConfig.constructFromObject(data['rollbackTo']); - } - if (data.hasOwnProperty('selector')) { - obj['selector'] = V1LabelSelector.constructFromObject(data['selector']); - } - if (data.hasOwnProperty('strategy')) { - obj['strategy'] = ExtensionsV1beta1DeploymentStrategy.constructFromObject(data['strategy']); - } - if (data.hasOwnProperty('template')) { - obj['template'] = V1PodTemplateSpec.constructFromObject(data['template']); - } - } - return obj; - } - - /** - * Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) - * @member {Number} minReadySeconds - */ - exports.prototype['minReadySeconds'] = undefined; - /** - * Indicates that the deployment is paused and will not be processed by the deployment controller. - * @member {Boolean} paused - */ - exports.prototype['paused'] = undefined; - /** - * The maximum time in seconds for a deployment to make progress before it is considered to be failed. The deployment controller will continue to process failed deployments and a condition with a ProgressDeadlineExceeded reason will be surfaced in the deployment status. Once autoRollback is implemented, the deployment controller will automatically rollback failed deployments. Note that progress will not be estimated during the time a deployment is paused. This is not set by default. - * @member {Number} progressDeadlineSeconds - */ - exports.prototype['progressDeadlineSeconds'] = undefined; - /** - * Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1. - * @member {Number} replicas - */ - exports.prototype['replicas'] = undefined; - /** - * The number of old ReplicaSets to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. - * @member {Number} revisionHistoryLimit - */ - exports.prototype['revisionHistoryLimit'] = undefined; - /** - * The config this deployment is rolling back to. Will be cleared after rollback is done. - * @member {module:io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1RollbackConfig} rollbackTo - */ - exports.prototype['rollbackTo'] = undefined; - /** - * Label selector for pods. Existing ReplicaSets whose pods are selected by this will be the ones affected by this deployment. - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1LabelSelector} selector - */ - exports.prototype['selector'] = undefined; - /** - * The deployment strategy to use to replace existing pods with new ones. - * @member {module:io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1DeploymentStrategy} strategy - */ - exports.prototype['strategy'] = undefined; - /** - * Template describes the pods that will be created. - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1PodTemplateSpec} template - */ - exports.prototype['template'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1DeploymentStatus.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1DeploymentStatus.js deleted file mode 100644 index af123e4feb..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1DeploymentStatus.js +++ /dev/null @@ -1,135 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1DeploymentCondition'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./ExtensionsV1beta1DeploymentCondition')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.ExtensionsV1beta1DeploymentStatus = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.ExtensionsV1beta1DeploymentCondition); - } -}(this, function(ApiClient, ExtensionsV1beta1DeploymentCondition) { - 'use strict'; - - - - - /** - * The ExtensionsV1beta1DeploymentStatus model module. - * @module io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1DeploymentStatus - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new ExtensionsV1beta1DeploymentStatus. - * DeploymentStatus is the most recently observed status of the Deployment. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1DeploymentStatus - * @class - */ - var exports = function() { - var _this = this; - - - - - - - - - }; - - /** - * Constructs a ExtensionsV1beta1DeploymentStatus from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1DeploymentStatus} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1DeploymentStatus} The populated ExtensionsV1beta1DeploymentStatus instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('availableReplicas')) { - obj['availableReplicas'] = ApiClient.convertToType(data['availableReplicas'], 'Number'); - } - if (data.hasOwnProperty('conditions')) { - obj['conditions'] = ApiClient.convertToType(data['conditions'], [ExtensionsV1beta1DeploymentCondition]); - } - if (data.hasOwnProperty('observedGeneration')) { - obj['observedGeneration'] = ApiClient.convertToType(data['observedGeneration'], 'Number'); - } - if (data.hasOwnProperty('readyReplicas')) { - obj['readyReplicas'] = ApiClient.convertToType(data['readyReplicas'], 'Number'); - } - if (data.hasOwnProperty('replicas')) { - obj['replicas'] = ApiClient.convertToType(data['replicas'], 'Number'); - } - if (data.hasOwnProperty('unavailableReplicas')) { - obj['unavailableReplicas'] = ApiClient.convertToType(data['unavailableReplicas'], 'Number'); - } - if (data.hasOwnProperty('updatedReplicas')) { - obj['updatedReplicas'] = ApiClient.convertToType(data['updatedReplicas'], 'Number'); - } - } - return obj; - } - - /** - * Total number of available pods (ready for at least minReadySeconds) targeted by this deployment. - * @member {Number} availableReplicas - */ - exports.prototype['availableReplicas'] = undefined; - /** - * Represents the latest available observations of a deployment's current state. - * @member {Array.} conditions - */ - exports.prototype['conditions'] = undefined; - /** - * The generation observed by the deployment controller. - * @member {Number} observedGeneration - */ - exports.prototype['observedGeneration'] = undefined; - /** - * Total number of ready pods targeted by this deployment. - * @member {Number} readyReplicas - */ - exports.prototype['readyReplicas'] = undefined; - /** - * Total number of non-terminated pods targeted by this deployment (their labels match the selector). - * @member {Number} replicas - */ - exports.prototype['replicas'] = undefined; - /** - * Total number of unavailable pods targeted by this deployment. - * @member {Number} unavailableReplicas - */ - exports.prototype['unavailableReplicas'] = undefined; - /** - * Total number of non-terminated pods targeted by this deployment that have the desired template spec. - * @member {Number} updatedReplicas - */ - exports.prototype['updatedReplicas'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1DeploymentStrategy.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1DeploymentStrategy.js deleted file mode 100644 index f553198da9..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1DeploymentStrategy.js +++ /dev/null @@ -1,90 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1RollingUpdateDeployment'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./ExtensionsV1beta1RollingUpdateDeployment')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.ExtensionsV1beta1DeploymentStrategy = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.ExtensionsV1beta1RollingUpdateDeployment); - } -}(this, function(ApiClient, ExtensionsV1beta1RollingUpdateDeployment) { - 'use strict'; - - - - - /** - * The ExtensionsV1beta1DeploymentStrategy model module. - * @module io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1DeploymentStrategy - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new ExtensionsV1beta1DeploymentStrategy. - * DeploymentStrategy describes how to replace existing pods with new ones. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1DeploymentStrategy - * @class - */ - var exports = function() { - var _this = this; - - - - }; - - /** - * Constructs a ExtensionsV1beta1DeploymentStrategy from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1DeploymentStrategy} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1DeploymentStrategy} The populated ExtensionsV1beta1DeploymentStrategy instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('rollingUpdate')) { - obj['rollingUpdate'] = ExtensionsV1beta1RollingUpdateDeployment.constructFromObject(data['rollingUpdate']); - } - if (data.hasOwnProperty('type')) { - obj['type'] = ApiClient.convertToType(data['type'], 'String'); - } - } - return obj; - } - - /** - * Rolling update config params. Present only if DeploymentStrategyType = RollingUpdate. - * @member {module:io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1RollingUpdateDeployment} rollingUpdate - */ - exports.prototype['rollingUpdate'] = undefined; - /** - * Type of deployment. Can be \"Recreate\" or \"RollingUpdate\". Default is RollingUpdate. - * @member {String} type - */ - exports.prototype['type'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1RollbackConfig.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1RollbackConfig.js deleted file mode 100644 index 3eeadf3ced..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1RollbackConfig.js +++ /dev/null @@ -1,80 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.ExtensionsV1beta1RollbackConfig = factory(root.KubernetesJsClient.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - - /** - * The ExtensionsV1beta1RollbackConfig model module. - * @module io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1RollbackConfig - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new ExtensionsV1beta1RollbackConfig. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1RollbackConfig - * @class - */ - var exports = function() { - var _this = this; - - - }; - - /** - * Constructs a ExtensionsV1beta1RollbackConfig from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1RollbackConfig} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1RollbackConfig} The populated ExtensionsV1beta1RollbackConfig instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('revision')) { - obj['revision'] = ApiClient.convertToType(data['revision'], 'Number'); - } - } - return obj; - } - - /** - * The revision to rollback to. If set to 0, rollbck to the last revision. - * @member {Number} revision - */ - exports.prototype['revision'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1RollingUpdateDeployment.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1RollingUpdateDeployment.js deleted file mode 100644 index fa3f70c91d..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1RollingUpdateDeployment.js +++ /dev/null @@ -1,90 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.ExtensionsV1beta1RollingUpdateDeployment = factory(root.KubernetesJsClient.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - - /** - * The ExtensionsV1beta1RollingUpdateDeployment model module. - * @module io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1RollingUpdateDeployment - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new ExtensionsV1beta1RollingUpdateDeployment. - * Spec to control the desired behavior of rolling update. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1RollingUpdateDeployment - * @class - */ - var exports = function() { - var _this = this; - - - - }; - - /** - * Constructs a ExtensionsV1beta1RollingUpdateDeployment from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1RollingUpdateDeployment} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1RollingUpdateDeployment} The populated ExtensionsV1beta1RollingUpdateDeployment instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('maxSurge')) { - obj['maxSurge'] = ApiClient.convertToType(data['maxSurge'], 'String'); - } - if (data.hasOwnProperty('maxUnavailable')) { - obj['maxUnavailable'] = ApiClient.convertToType(data['maxUnavailable'], 'String'); - } - } - return obj; - } - - /** - * The maximum number of pods that can be scheduled above the desired number of pods. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up. By default, a value of 1 is used. Example: when this is set to 30%, the new RC can be scaled up immediately when the rolling update starts, such that the total number of old and new pods do not exceed 130% of desired pods. Once old pods have been killed, new RC can be scaled up further, ensuring that total number of pods running at any time during the update is atmost 130% of desired pods. - * @member {String} maxSurge - */ - exports.prototype['maxSurge'] = undefined; - /** - * The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding down. This can not be 0 if MaxSurge is 0. By default, a fixed value of 1 is used. Example: when this is set to 30%, the old RC can be scaled down to 70% of desired pods immediately when the rolling update starts. Once new pods are ready, old RC can be scaled down further, followed by scaling up the new RC, ensuring that the total number of pods available at all times during the update is at least 70% of desired pods. - * @member {String} maxUnavailable - */ - exports.prototype['maxUnavailable'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1Scale.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1Scale.js deleted file mode 100644 index 2c3bfdfb5d..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1Scale.js +++ /dev/null @@ -1,117 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1ScaleSpec', 'io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1ScaleStatus', 'io.kubernetes.js/io.kubernetes.js.models/V1ObjectMeta'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./ExtensionsV1beta1ScaleSpec'), require('./ExtensionsV1beta1ScaleStatus'), require('./V1ObjectMeta')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.ExtensionsV1beta1Scale = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.ExtensionsV1beta1ScaleSpec, root.KubernetesJsClient.ExtensionsV1beta1ScaleStatus, root.KubernetesJsClient.V1ObjectMeta); - } -}(this, function(ApiClient, ExtensionsV1beta1ScaleSpec, ExtensionsV1beta1ScaleStatus, V1ObjectMeta) { - 'use strict'; - - - - - /** - * The ExtensionsV1beta1Scale model module. - * @module io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1Scale - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new ExtensionsV1beta1Scale. - * represents a scaling request for a resource. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1Scale - * @class - */ - var exports = function() { - var _this = this; - - - - - - - }; - - /** - * Constructs a ExtensionsV1beta1Scale from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1Scale} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1Scale} The populated ExtensionsV1beta1Scale instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('apiVersion')) { - obj['apiVersion'] = ApiClient.convertToType(data['apiVersion'], 'String'); - } - if (data.hasOwnProperty('kind')) { - obj['kind'] = ApiClient.convertToType(data['kind'], 'String'); - } - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = V1ObjectMeta.constructFromObject(data['metadata']); - } - if (data.hasOwnProperty('spec')) { - obj['spec'] = ExtensionsV1beta1ScaleSpec.constructFromObject(data['spec']); - } - if (data.hasOwnProperty('status')) { - obj['status'] = ExtensionsV1beta1ScaleStatus.constructFromObject(data['status']); - } - } - return obj; - } - - /** - * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - * @member {String} apiVersion - */ - exports.prototype['apiVersion'] = undefined; - /** - * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - * @member {String} kind - */ - exports.prototype['kind'] = undefined; - /** - * Standard object metadata; More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata. - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1ObjectMeta} metadata - */ - exports.prototype['metadata'] = undefined; - /** - * defines the behavior of the scale. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status. - * @member {module:io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1ScaleSpec} spec - */ - exports.prototype['spec'] = undefined; - /** - * current status of the scale. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status. Read-only. - * @member {module:io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1ScaleStatus} status - */ - exports.prototype['status'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1ScaleSpec.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1ScaleSpec.js deleted file mode 100644 index 159962aae4..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1ScaleSpec.js +++ /dev/null @@ -1,81 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.ExtensionsV1beta1ScaleSpec = factory(root.KubernetesJsClient.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - - /** - * The ExtensionsV1beta1ScaleSpec model module. - * @module io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1ScaleSpec - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new ExtensionsV1beta1ScaleSpec. - * describes the attributes of a scale subresource - * @alias module:io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1ScaleSpec - * @class - */ - var exports = function() { - var _this = this; - - - }; - - /** - * Constructs a ExtensionsV1beta1ScaleSpec from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1ScaleSpec} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1ScaleSpec} The populated ExtensionsV1beta1ScaleSpec instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('replicas')) { - obj['replicas'] = ApiClient.convertToType(data['replicas'], 'Number'); - } - } - return obj; - } - - /** - * desired number of instances for the scaled object. - * @member {Number} replicas - */ - exports.prototype['replicas'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1ScaleStatus.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1ScaleStatus.js deleted file mode 100644 index 60c4cf7ed1..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1ScaleStatus.js +++ /dev/null @@ -1,100 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.ExtensionsV1beta1ScaleStatus = factory(root.KubernetesJsClient.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - - /** - * The ExtensionsV1beta1ScaleStatus model module. - * @module io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1ScaleStatus - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new ExtensionsV1beta1ScaleStatus. - * represents the current status of a scale subresource. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1ScaleStatus - * @class - * @param replicas {Number} actual number of observed instances of the scaled object. - */ - var exports = function(replicas) { - var _this = this; - - _this['replicas'] = replicas; - - - }; - - /** - * Constructs a ExtensionsV1beta1ScaleStatus from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1ScaleStatus} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/ExtensionsV1beta1ScaleStatus} The populated ExtensionsV1beta1ScaleStatus instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('replicas')) { - obj['replicas'] = ApiClient.convertToType(data['replicas'], 'Number'); - } - if (data.hasOwnProperty('selector')) { - obj['selector'] = ApiClient.convertToType(data['selector'], {'String': 'String'}); - } - if (data.hasOwnProperty('targetSelector')) { - obj['targetSelector'] = ApiClient.convertToType(data['targetSelector'], 'String'); - } - } - return obj; - } - - /** - * actual number of observed instances of the scaled object. - * @member {Number} replicas - */ - exports.prototype['replicas'] = undefined; - /** - * label query over pods that should match the replicas count. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors - * @member {Object.} selector - */ - exports.prototype['selector'] = undefined; - /** - * label selector for pods that should match the replicas count. This is a serializated version of both map-based and more expressive set-based selectors. This is done to avoid introspection in the clients. The string will be in the same format as the query-param syntax. If the target type only supports map-based selectors, both this field and map-based selector field are populated. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors - * @member {String} targetSelector - */ - exports.prototype['targetSelector'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/RuntimeRawExtension.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/RuntimeRawExtension.js deleted file mode 100644 index de6e4645dc..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/RuntimeRawExtension.js +++ /dev/null @@ -1,82 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.RuntimeRawExtension = factory(root.KubernetesJsClient.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - - /** - * The RuntimeRawExtension model module. - * @module io.kubernetes.js/io.kubernetes.js.models/RuntimeRawExtension - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new RuntimeRawExtension. - * RawExtension is used to hold extensions in external versions. To use this, make a field which has RawExtension as its type in your external, versioned struct, and Object in your internal struct. You also need to register your various plugin types. // Internal package: type MyAPIObject struct { runtime.TypeMeta `json:\",inline\"` MyPlugin runtime.Object `json:\"myPlugin\"` } type PluginA struct { AOption string `json:\"aOption\"` } // External package: type MyAPIObject struct { runtime.TypeMeta `json:\",inline\"` MyPlugin runtime.RawExtension `json:\"myPlugin\"` } type PluginA struct { AOption string `json:\"aOption\"` } // On the wire, the JSON will look something like this: { \"kind\":\"MyAPIObject\", \"apiVersion\":\"v1\", \"myPlugin\": { \"kind\":\"PluginA\", \"aOption\":\"foo\", }, } So what happens? Decode first uses json or yaml to unmarshal the serialized data into your external MyAPIObject. That causes the raw JSON to be stored, but not unpacked. The next step is to copy (using pkg/conversion) into the internal struct. The runtime package's DefaultScheme has conversion functions installed which will unpack the JSON stored in RawExtension, turning it into the correct object type, and storing it in the Object. (TODO: In the case where the object is of an unknown type, a runtime.Unknown object will be created and stored.) - * @alias module:io.kubernetes.js/io.kubernetes.js.models/RuntimeRawExtension - * @class - * @param raw {String} Raw is the underlying serialization of this object. - */ - var exports = function(raw) { - var _this = this; - - _this['Raw'] = raw; - }; - - /** - * Constructs a RuntimeRawExtension from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/RuntimeRawExtension} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/RuntimeRawExtension} The populated RuntimeRawExtension instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('Raw')) { - obj['Raw'] = ApiClient.convertToType(data['Raw'], 'String'); - } - } - return obj; - } - - /** - * Raw is the underlying serialization of this object. - * @member {String} Raw - */ - exports.prototype['Raw'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1APIGroup.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1APIGroup.js deleted file mode 100644 index fc1a45331c..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1APIGroup.js +++ /dev/null @@ -1,129 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1GroupVersionForDiscovery', 'io.kubernetes.js/io.kubernetes.js.models/V1ServerAddressByClientCIDR'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1GroupVersionForDiscovery'), require('./V1ServerAddressByClientCIDR')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1APIGroup = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1GroupVersionForDiscovery, root.KubernetesJsClient.V1ServerAddressByClientCIDR); - } -}(this, function(ApiClient, V1GroupVersionForDiscovery, V1ServerAddressByClientCIDR) { - 'use strict'; - - - - - /** - * The V1APIGroup model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1APIGroup - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1APIGroup. - * APIGroup contains the name, the supported versions, and the preferred version of a group. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1APIGroup - * @class - * @param name {String} name is the name of the group. - * @param serverAddressByClientCIDRs {Array.} a map of client CIDR to server address that is serving this group. This is to help clients reach servers in the most network-efficient way possible. Clients can use the appropriate server address as per the CIDR that they match. In case of multiple matches, clients should use the longest matching CIDR. The server returns only those CIDRs that it thinks that the client can match. For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP. - * @param versions {Array.} versions are the versions supported in this group. - */ - var exports = function(name, serverAddressByClientCIDRs, versions) { - var _this = this; - - - - _this['name'] = name; - - _this['serverAddressByClientCIDRs'] = serverAddressByClientCIDRs; - _this['versions'] = versions; - }; - - /** - * Constructs a V1APIGroup from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1APIGroup} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1APIGroup} The populated V1APIGroup instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('apiVersion')) { - obj['apiVersion'] = ApiClient.convertToType(data['apiVersion'], 'String'); - } - if (data.hasOwnProperty('kind')) { - obj['kind'] = ApiClient.convertToType(data['kind'], 'String'); - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - } - if (data.hasOwnProperty('preferredVersion')) { - obj['preferredVersion'] = V1GroupVersionForDiscovery.constructFromObject(data['preferredVersion']); - } - if (data.hasOwnProperty('serverAddressByClientCIDRs')) { - obj['serverAddressByClientCIDRs'] = ApiClient.convertToType(data['serverAddressByClientCIDRs'], [V1ServerAddressByClientCIDR]); - } - if (data.hasOwnProperty('versions')) { - obj['versions'] = ApiClient.convertToType(data['versions'], [V1GroupVersionForDiscovery]); - } - } - return obj; - } - - /** - * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - * @member {String} apiVersion - */ - exports.prototype['apiVersion'] = undefined; - /** - * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - * @member {String} kind - */ - exports.prototype['kind'] = undefined; - /** - * name is the name of the group. - * @member {String} name - */ - exports.prototype['name'] = undefined; - /** - * preferredVersion is the version preferred by the API server, which probably is the storage version. - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1GroupVersionForDiscovery} preferredVersion - */ - exports.prototype['preferredVersion'] = undefined; - /** - * a map of client CIDR to server address that is serving this group. This is to help clients reach servers in the most network-efficient way possible. Clients can use the appropriate server address as per the CIDR that they match. In case of multiple matches, clients should use the longest matching CIDR. The server returns only those CIDRs that it thinks that the client can match. For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP. - * @member {Array.} serverAddressByClientCIDRs - */ - exports.prototype['serverAddressByClientCIDRs'] = undefined; - /** - * versions are the versions supported in this group. - * @member {Array.} versions - */ - exports.prototype['versions'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1APIGroupList.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1APIGroupList.js deleted file mode 100644 index cf5c120292..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1APIGroupList.js +++ /dev/null @@ -1,100 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1APIGroup'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1APIGroup')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1APIGroupList = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1APIGroup); - } -}(this, function(ApiClient, V1APIGroup) { - 'use strict'; - - - - - /** - * The V1APIGroupList model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1APIGroupList - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1APIGroupList. - * APIGroupList is a list of APIGroup, to allow clients to discover the API at /apis. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1APIGroupList - * @class - * @param groups {Array.} groups is a list of APIGroup. - */ - var exports = function(groups) { - var _this = this; - - - _this['groups'] = groups; - - }; - - /** - * Constructs a V1APIGroupList from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1APIGroupList} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1APIGroupList} The populated V1APIGroupList instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('apiVersion')) { - obj['apiVersion'] = ApiClient.convertToType(data['apiVersion'], 'String'); - } - if (data.hasOwnProperty('groups')) { - obj['groups'] = ApiClient.convertToType(data['groups'], [V1APIGroup]); - } - if (data.hasOwnProperty('kind')) { - obj['kind'] = ApiClient.convertToType(data['kind'], 'String'); - } - } - return obj; - } - - /** - * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - * @member {String} apiVersion - */ - exports.prototype['apiVersion'] = undefined; - /** - * groups is a list of APIGroup. - * @member {Array.} groups - */ - exports.prototype['groups'] = undefined; - /** - * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - * @member {String} kind - */ - exports.prototype['kind'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1APIResource.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1APIResource.js deleted file mode 100644 index 0a433eef42..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1APIResource.js +++ /dev/null @@ -1,121 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1APIResource = factory(root.KubernetesJsClient.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - - /** - * The V1APIResource model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1APIResource - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1APIResource. - * APIResource specifies the name of a resource and whether it is namespaced. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1APIResource - * @class - * @param kind {String} kind is the kind for the resource (e.g. 'Foo' is the kind for a resource 'foo') - * @param name {String} name is the name of the resource. - * @param namespaced {Boolean} namespaced indicates if a resource is namespaced or not. - * @param verbs {Array.} verbs is a list of supported kube verbs (this includes get, list, watch, create, update, patch, delete, deletecollection, and proxy) - */ - var exports = function(kind, name, namespaced, verbs) { - var _this = this; - - _this['kind'] = kind; - _this['name'] = name; - _this['namespaced'] = namespaced; - - _this['verbs'] = verbs; - }; - - /** - * Constructs a V1APIResource from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1APIResource} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1APIResource} The populated V1APIResource instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('kind')) { - obj['kind'] = ApiClient.convertToType(data['kind'], 'String'); - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - } - if (data.hasOwnProperty('namespaced')) { - obj['namespaced'] = ApiClient.convertToType(data['namespaced'], 'Boolean'); - } - if (data.hasOwnProperty('shortNames')) { - obj['shortNames'] = ApiClient.convertToType(data['shortNames'], ['String']); - } - if (data.hasOwnProperty('verbs')) { - obj['verbs'] = ApiClient.convertToType(data['verbs'], ['String']); - } - } - return obj; - } - - /** - * kind is the kind for the resource (e.g. 'Foo' is the kind for a resource 'foo') - * @member {String} kind - */ - exports.prototype['kind'] = undefined; - /** - * name is the name of the resource. - * @member {String} name - */ - exports.prototype['name'] = undefined; - /** - * namespaced indicates if a resource is namespaced or not. - * @member {Boolean} namespaced - */ - exports.prototype['namespaced'] = undefined; - /** - * shortNames is a list of suggested short names of the resource. - * @member {Array.} shortNames - */ - exports.prototype['shortNames'] = undefined; - /** - * verbs is a list of supported kube verbs (this includes get, list, watch, create, update, patch, delete, deletecollection, and proxy) - * @member {Array.} verbs - */ - exports.prototype['verbs'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1APIResourceList.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1APIResourceList.js deleted file mode 100644 index 56110e16fa..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1APIResourceList.js +++ /dev/null @@ -1,110 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1APIResource'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1APIResource')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1APIResourceList = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1APIResource); - } -}(this, function(ApiClient, V1APIResource) { - 'use strict'; - - - - - /** - * The V1APIResourceList model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1APIResourceList - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1APIResourceList. - * APIResourceList is a list of APIResource, it is used to expose the name of the resources supported in a specific group and version, and if the resource is namespaced. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1APIResourceList - * @class - * @param groupVersion {String} groupVersion is the group and version this APIResourceList is for. - * @param resources {Array.} resources contains the name of the resources and if they are namespaced. - */ - var exports = function(groupVersion, resources) { - var _this = this; - - - _this['groupVersion'] = groupVersion; - - _this['resources'] = resources; - }; - - /** - * Constructs a V1APIResourceList from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1APIResourceList} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1APIResourceList} The populated V1APIResourceList instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('apiVersion')) { - obj['apiVersion'] = ApiClient.convertToType(data['apiVersion'], 'String'); - } - if (data.hasOwnProperty('groupVersion')) { - obj['groupVersion'] = ApiClient.convertToType(data['groupVersion'], 'String'); - } - if (data.hasOwnProperty('kind')) { - obj['kind'] = ApiClient.convertToType(data['kind'], 'String'); - } - if (data.hasOwnProperty('resources')) { - obj['resources'] = ApiClient.convertToType(data['resources'], [V1APIResource]); - } - } - return obj; - } - - /** - * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - * @member {String} apiVersion - */ - exports.prototype['apiVersion'] = undefined; - /** - * groupVersion is the group and version this APIResourceList is for. - * @member {String} groupVersion - */ - exports.prototype['groupVersion'] = undefined; - /** - * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - * @member {String} kind - */ - exports.prototype['kind'] = undefined; - /** - * resources contains the name of the resources and if they are namespaced. - * @member {Array.} resources - */ - exports.prototype['resources'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1APIVersions.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1APIVersions.js deleted file mode 100644 index 5049fdcc96..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1APIVersions.js +++ /dev/null @@ -1,110 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1ServerAddressByClientCIDR'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1ServerAddressByClientCIDR')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1APIVersions = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1ServerAddressByClientCIDR); - } -}(this, function(ApiClient, V1ServerAddressByClientCIDR) { - 'use strict'; - - - - - /** - * The V1APIVersions model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1APIVersions - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1APIVersions. - * APIVersions lists the versions that are available, to allow clients to discover the API at /api, which is the root path of the legacy v1 API. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1APIVersions - * @class - * @param serverAddressByClientCIDRs {Array.} a map of client CIDR to server address that is serving this group. This is to help clients reach servers in the most network-efficient way possible. Clients can use the appropriate server address as per the CIDR that they match. In case of multiple matches, clients should use the longest matching CIDR. The server returns only those CIDRs that it thinks that the client can match. For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP. - * @param versions {Array.} versions are the api versions that are available. - */ - var exports = function(serverAddressByClientCIDRs, versions) { - var _this = this; - - - - _this['serverAddressByClientCIDRs'] = serverAddressByClientCIDRs; - _this['versions'] = versions; - }; - - /** - * Constructs a V1APIVersions from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1APIVersions} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1APIVersions} The populated V1APIVersions instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('apiVersion')) { - obj['apiVersion'] = ApiClient.convertToType(data['apiVersion'], 'String'); - } - if (data.hasOwnProperty('kind')) { - obj['kind'] = ApiClient.convertToType(data['kind'], 'String'); - } - if (data.hasOwnProperty('serverAddressByClientCIDRs')) { - obj['serverAddressByClientCIDRs'] = ApiClient.convertToType(data['serverAddressByClientCIDRs'], [V1ServerAddressByClientCIDR]); - } - if (data.hasOwnProperty('versions')) { - obj['versions'] = ApiClient.convertToType(data['versions'], ['String']); - } - } - return obj; - } - - /** - * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - * @member {String} apiVersion - */ - exports.prototype['apiVersion'] = undefined; - /** - * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - * @member {String} kind - */ - exports.prototype['kind'] = undefined; - /** - * a map of client CIDR to server address that is serving this group. This is to help clients reach servers in the most network-efficient way possible. Clients can use the appropriate server address as per the CIDR that they match. In case of multiple matches, clients should use the longest matching CIDR. The server returns only those CIDRs that it thinks that the client can match. For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP. - * @member {Array.} serverAddressByClientCIDRs - */ - exports.prototype['serverAddressByClientCIDRs'] = undefined; - /** - * versions are the api versions that are available. - * @member {Array.} versions - */ - exports.prototype['versions'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1AWSElasticBlockStoreVolumeSource.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1AWSElasticBlockStoreVolumeSource.js deleted file mode 100644 index d96fd801a3..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1AWSElasticBlockStoreVolumeSource.js +++ /dev/null @@ -1,109 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1AWSElasticBlockStoreVolumeSource = factory(root.KubernetesJsClient.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - - /** - * The V1AWSElasticBlockStoreVolumeSource model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1AWSElasticBlockStoreVolumeSource - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1AWSElasticBlockStoreVolumeSource. - * Represents a Persistent Disk resource in AWS. An AWS EBS disk must exist before mounting to a container. The disk must also be in the same AWS zone as the kubelet. An AWS EBS disk can only be mounted as read/write once. AWS EBS volumes support ownership management and SELinux relabeling. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1AWSElasticBlockStoreVolumeSource - * @class - * @param volumeID {String} Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: http://kubernetes.io/docs/user-guide/volumes#awselasticblockstore - */ - var exports = function(volumeID) { - var _this = this; - - - - - _this['volumeID'] = volumeID; - }; - - /** - * Constructs a V1AWSElasticBlockStoreVolumeSource from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1AWSElasticBlockStoreVolumeSource} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1AWSElasticBlockStoreVolumeSource} The populated V1AWSElasticBlockStoreVolumeSource instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('fsType')) { - obj['fsType'] = ApiClient.convertToType(data['fsType'], 'String'); - } - if (data.hasOwnProperty('partition')) { - obj['partition'] = ApiClient.convertToType(data['partition'], 'Number'); - } - if (data.hasOwnProperty('readOnly')) { - obj['readOnly'] = ApiClient.convertToType(data['readOnly'], 'Boolean'); - } - if (data.hasOwnProperty('volumeID')) { - obj['volumeID'] = ApiClient.convertToType(data['volumeID'], 'String'); - } - } - return obj; - } - - /** - * Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: http://kubernetes.io/docs/user-guide/volumes#awselasticblockstore - * @member {String} fsType - */ - exports.prototype['fsType'] = undefined; - /** - * The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as \"1\". Similarly, the volume partition for /dev/sda is \"0\" (or you can leave the property empty). - * @member {Number} partition - */ - exports.prototype['partition'] = undefined; - /** - * Specify \"true\" to force and set the ReadOnly property in VolumeMounts to \"true\". If omitted, the default is \"false\". More info: http://kubernetes.io/docs/user-guide/volumes#awselasticblockstore - * @member {Boolean} readOnly - */ - exports.prototype['readOnly'] = undefined; - /** - * Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: http://kubernetes.io/docs/user-guide/volumes#awselasticblockstore - * @member {String} volumeID - */ - exports.prototype['volumeID'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1Affinity.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1Affinity.js deleted file mode 100644 index 31d4f85107..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1Affinity.js +++ /dev/null @@ -1,99 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1NodeAffinity', 'io.kubernetes.js/io.kubernetes.js.models/V1PodAffinity', 'io.kubernetes.js/io.kubernetes.js.models/V1PodAntiAffinity'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1NodeAffinity'), require('./V1PodAffinity'), require('./V1PodAntiAffinity')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1Affinity = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1NodeAffinity, root.KubernetesJsClient.V1PodAffinity, root.KubernetesJsClient.V1PodAntiAffinity); - } -}(this, function(ApiClient, V1NodeAffinity, V1PodAffinity, V1PodAntiAffinity) { - 'use strict'; - - - - - /** - * The V1Affinity model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1Affinity - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1Affinity. - * Affinity is a group of affinity scheduling rules. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1Affinity - * @class - */ - var exports = function() { - var _this = this; - - - - - }; - - /** - * Constructs a V1Affinity from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Affinity} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1Affinity} The populated V1Affinity instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('nodeAffinity')) { - obj['nodeAffinity'] = V1NodeAffinity.constructFromObject(data['nodeAffinity']); - } - if (data.hasOwnProperty('podAffinity')) { - obj['podAffinity'] = V1PodAffinity.constructFromObject(data['podAffinity']); - } - if (data.hasOwnProperty('podAntiAffinity')) { - obj['podAntiAffinity'] = V1PodAntiAffinity.constructFromObject(data['podAntiAffinity']); - } - } - return obj; - } - - /** - * Describes node affinity scheduling rules for the pod. - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1NodeAffinity} nodeAffinity - */ - exports.prototype['nodeAffinity'] = undefined; - /** - * Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1PodAffinity} podAffinity - */ - exports.prototype['podAffinity'] = undefined; - /** - * Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1PodAntiAffinity} podAntiAffinity - */ - exports.prototype['podAntiAffinity'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1AttachedVolume.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1AttachedVolume.js deleted file mode 100644 index a4e1ac1a53..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1AttachedVolume.js +++ /dev/null @@ -1,92 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1AttachedVolume = factory(root.KubernetesJsClient.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - - /** - * The V1AttachedVolume model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1AttachedVolume - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1AttachedVolume. - * AttachedVolume describes a volume attached to a node - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1AttachedVolume - * @class - * @param devicePath {String} DevicePath represents the device path where the volume should be available - * @param name {String} Name of the attached volume - */ - var exports = function(devicePath, name) { - var _this = this; - - _this['devicePath'] = devicePath; - _this['name'] = name; - }; - - /** - * Constructs a V1AttachedVolume from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1AttachedVolume} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1AttachedVolume} The populated V1AttachedVolume instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('devicePath')) { - obj['devicePath'] = ApiClient.convertToType(data['devicePath'], 'String'); - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - } - } - return obj; - } - - /** - * DevicePath represents the device path where the volume should be available - * @member {String} devicePath - */ - exports.prototype['devicePath'] = undefined; - /** - * Name of the attached volume - * @member {String} name - */ - exports.prototype['name'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1AzureDiskVolumeSource.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1AzureDiskVolumeSource.js deleted file mode 100644 index ca29b615c8..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1AzureDiskVolumeSource.js +++ /dev/null @@ -1,119 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1AzureDiskVolumeSource = factory(root.KubernetesJsClient.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - - /** - * The V1AzureDiskVolumeSource model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1AzureDiskVolumeSource - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1AzureDiskVolumeSource. - * AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1AzureDiskVolumeSource - * @class - * @param diskName {String} The Name of the data disk in the blob storage - * @param diskURI {String} The URI the data disk in the blob storage - */ - var exports = function(diskName, diskURI) { - var _this = this; - - - _this['diskName'] = diskName; - _this['diskURI'] = diskURI; - - - }; - - /** - * Constructs a V1AzureDiskVolumeSource from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1AzureDiskVolumeSource} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1AzureDiskVolumeSource} The populated V1AzureDiskVolumeSource instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('cachingMode')) { - obj['cachingMode'] = ApiClient.convertToType(data['cachingMode'], 'String'); - } - if (data.hasOwnProperty('diskName')) { - obj['diskName'] = ApiClient.convertToType(data['diskName'], 'String'); - } - if (data.hasOwnProperty('diskURI')) { - obj['diskURI'] = ApiClient.convertToType(data['diskURI'], 'String'); - } - if (data.hasOwnProperty('fsType')) { - obj['fsType'] = ApiClient.convertToType(data['fsType'], 'String'); - } - if (data.hasOwnProperty('readOnly')) { - obj['readOnly'] = ApiClient.convertToType(data['readOnly'], 'Boolean'); - } - } - return obj; - } - - /** - * Host Caching mode: None, Read Only, Read Write. - * @member {String} cachingMode - */ - exports.prototype['cachingMode'] = undefined; - /** - * The Name of the data disk in the blob storage - * @member {String} diskName - */ - exports.prototype['diskName'] = undefined; - /** - * The URI the data disk in the blob storage - * @member {String} diskURI - */ - exports.prototype['diskURI'] = undefined; - /** - * Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. - * @member {String} fsType - */ - exports.prototype['fsType'] = undefined; - /** - * Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * @member {Boolean} readOnly - */ - exports.prototype['readOnly'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1AzureFileVolumeSource.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1AzureFileVolumeSource.js deleted file mode 100644 index 9a11c01801..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1AzureFileVolumeSource.js +++ /dev/null @@ -1,101 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1AzureFileVolumeSource = factory(root.KubernetesJsClient.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - - /** - * The V1AzureFileVolumeSource model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1AzureFileVolumeSource - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1AzureFileVolumeSource. - * AzureFile represents an Azure File Service mount on the host and bind mount to the pod. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1AzureFileVolumeSource - * @class - * @param secretName {String} the name of secret that contains Azure Storage Account Name and Key - * @param shareName {String} Share Name - */ - var exports = function(secretName, shareName) { - var _this = this; - - - _this['secretName'] = secretName; - _this['shareName'] = shareName; - }; - - /** - * Constructs a V1AzureFileVolumeSource from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1AzureFileVolumeSource} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1AzureFileVolumeSource} The populated V1AzureFileVolumeSource instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('readOnly')) { - obj['readOnly'] = ApiClient.convertToType(data['readOnly'], 'Boolean'); - } - if (data.hasOwnProperty('secretName')) { - obj['secretName'] = ApiClient.convertToType(data['secretName'], 'String'); - } - if (data.hasOwnProperty('shareName')) { - obj['shareName'] = ApiClient.convertToType(data['shareName'], 'String'); - } - } - return obj; - } - - /** - * Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * @member {Boolean} readOnly - */ - exports.prototype['readOnly'] = undefined; - /** - * the name of secret that contains Azure Storage Account Name and Key - * @member {String} secretName - */ - exports.prototype['secretName'] = undefined; - /** - * Share Name - * @member {String} shareName - */ - exports.prototype['shareName'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1Binding.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1Binding.js deleted file mode 100644 index ab998c85b3..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1Binding.js +++ /dev/null @@ -1,109 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1ObjectMeta', 'io.kubernetes.js/io.kubernetes.js.models/V1ObjectReference'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1ObjectMeta'), require('./V1ObjectReference')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1Binding = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1ObjectMeta, root.KubernetesJsClient.V1ObjectReference); - } -}(this, function(ApiClient, V1ObjectMeta, V1ObjectReference) { - 'use strict'; - - - - - /** - * The V1Binding model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1Binding - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1Binding. - * Binding ties one object to another. For example, a pod is bound to a node by a scheduler. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1Binding - * @class - * @param target {module:io.kubernetes.js/io.kubernetes.js.models/V1ObjectReference} The target object that you want to bind to the standard object. - */ - var exports = function(target) { - var _this = this; - - - - - _this['target'] = target; - }; - - /** - * Constructs a V1Binding from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Binding} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1Binding} The populated V1Binding instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('apiVersion')) { - obj['apiVersion'] = ApiClient.convertToType(data['apiVersion'], 'String'); - } - if (data.hasOwnProperty('kind')) { - obj['kind'] = ApiClient.convertToType(data['kind'], 'String'); - } - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = V1ObjectMeta.constructFromObject(data['metadata']); - } - if (data.hasOwnProperty('target')) { - obj['target'] = V1ObjectReference.constructFromObject(data['target']); - } - } - return obj; - } - - /** - * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - * @member {String} apiVersion - */ - exports.prototype['apiVersion'] = undefined; - /** - * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - * @member {String} kind - */ - exports.prototype['kind'] = undefined; - /** - * Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1ObjectMeta} metadata - */ - exports.prototype['metadata'] = undefined; - /** - * The target object that you want to bind to the standard object. - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1ObjectReference} target - */ - exports.prototype['target'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1Capabilities.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1Capabilities.js deleted file mode 100644 index 544c6f5b4c..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1Capabilities.js +++ /dev/null @@ -1,90 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1Capabilities = factory(root.KubernetesJsClient.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - - /** - * The V1Capabilities model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1Capabilities - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1Capabilities. - * Adds and removes POSIX capabilities from running containers. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1Capabilities - * @class - */ - var exports = function() { - var _this = this; - - - - }; - - /** - * Constructs a V1Capabilities from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Capabilities} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1Capabilities} The populated V1Capabilities instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('add')) { - obj['add'] = ApiClient.convertToType(data['add'], ['String']); - } - if (data.hasOwnProperty('drop')) { - obj['drop'] = ApiClient.convertToType(data['drop'], ['String']); - } - } - return obj; - } - - /** - * Added capabilities - * @member {Array.} add - */ - exports.prototype['add'] = undefined; - /** - * Removed capabilities - * @member {Array.} drop - */ - exports.prototype['drop'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1CephFSVolumeSource.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1CephFSVolumeSource.js deleted file mode 100644 index 5506d0699c..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1CephFSVolumeSource.js +++ /dev/null @@ -1,127 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1LocalObjectReference'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1LocalObjectReference')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1CephFSVolumeSource = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1LocalObjectReference); - } -}(this, function(ApiClient, V1LocalObjectReference) { - 'use strict'; - - - - - /** - * The V1CephFSVolumeSource model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1CephFSVolumeSource - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1CephFSVolumeSource. - * Represents a Ceph Filesystem mount that lasts the lifetime of a pod Cephfs volumes do not support ownership management or SELinux relabeling. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1CephFSVolumeSource - * @class - * @param monitors {Array.} Required: Monitors is a collection of Ceph monitors More info: http://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it - */ - var exports = function(monitors) { - var _this = this; - - _this['monitors'] = monitors; - - - - - - }; - - /** - * Constructs a V1CephFSVolumeSource from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1CephFSVolumeSource} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1CephFSVolumeSource} The populated V1CephFSVolumeSource instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('monitors')) { - obj['monitors'] = ApiClient.convertToType(data['monitors'], ['String']); - } - if (data.hasOwnProperty('path')) { - obj['path'] = ApiClient.convertToType(data['path'], 'String'); - } - if (data.hasOwnProperty('readOnly')) { - obj['readOnly'] = ApiClient.convertToType(data['readOnly'], 'Boolean'); - } - if (data.hasOwnProperty('secretFile')) { - obj['secretFile'] = ApiClient.convertToType(data['secretFile'], 'String'); - } - if (data.hasOwnProperty('secretRef')) { - obj['secretRef'] = V1LocalObjectReference.constructFromObject(data['secretRef']); - } - if (data.hasOwnProperty('user')) { - obj['user'] = ApiClient.convertToType(data['user'], 'String'); - } - } - return obj; - } - - /** - * Required: Monitors is a collection of Ceph monitors More info: http://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it - * @member {Array.} monitors - */ - exports.prototype['monitors'] = undefined; - /** - * Optional: Used as the mounted root, rather than the full Ceph tree, default is / - * @member {String} path - */ - exports.prototype['path'] = undefined; - /** - * Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: http://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it - * @member {Boolean} readOnly - */ - exports.prototype['readOnly'] = undefined; - /** - * Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: http://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it - * @member {String} secretFile - */ - exports.prototype['secretFile'] = undefined; - /** - * Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: http://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1LocalObjectReference} secretRef - */ - exports.prototype['secretRef'] = undefined; - /** - * Optional: User is the rados user name, default is admin More info: http://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it - * @member {String} user - */ - exports.prototype['user'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1CinderVolumeSource.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1CinderVolumeSource.js deleted file mode 100644 index 9bc525c3e7..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1CinderVolumeSource.js +++ /dev/null @@ -1,100 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1CinderVolumeSource = factory(root.KubernetesJsClient.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - - /** - * The V1CinderVolumeSource model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1CinderVolumeSource - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1CinderVolumeSource. - * Represents a cinder volume resource in Openstack. A Cinder volume must exist before mounting to a container. The volume must also be in the same region as the kubelet. Cinder volumes support ownership management and SELinux relabeling. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1CinderVolumeSource - * @class - * @param volumeID {String} volume id used to identify the volume in cinder More info: http://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md - */ - var exports = function(volumeID) { - var _this = this; - - - - _this['volumeID'] = volumeID; - }; - - /** - * Constructs a V1CinderVolumeSource from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1CinderVolumeSource} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1CinderVolumeSource} The populated V1CinderVolumeSource instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('fsType')) { - obj['fsType'] = ApiClient.convertToType(data['fsType'], 'String'); - } - if (data.hasOwnProperty('readOnly')) { - obj['readOnly'] = ApiClient.convertToType(data['readOnly'], 'Boolean'); - } - if (data.hasOwnProperty('volumeID')) { - obj['volumeID'] = ApiClient.convertToType(data['volumeID'], 'String'); - } - } - return obj; - } - - /** - * Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: http://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md - * @member {String} fsType - */ - exports.prototype['fsType'] = undefined; - /** - * Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: http://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md - * @member {Boolean} readOnly - */ - exports.prototype['readOnly'] = undefined; - /** - * volume id used to identify the volume in cinder More info: http://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md - * @member {String} volumeID - */ - exports.prototype['volumeID'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1ComponentCondition.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1ComponentCondition.js deleted file mode 100644 index 8602d9273d..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1ComponentCondition.js +++ /dev/null @@ -1,110 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1ComponentCondition = factory(root.KubernetesJsClient.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - - /** - * The V1ComponentCondition model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1ComponentCondition - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1ComponentCondition. - * Information about the condition of a component. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1ComponentCondition - * @class - * @param status {String} Status of the condition for a component. Valid values for \"Healthy\": \"True\", \"False\", or \"Unknown\". - * @param type {String} Type of condition for a component. Valid value: \"Healthy\" - */ - var exports = function(status, type) { - var _this = this; - - - - _this['status'] = status; - _this['type'] = type; - }; - - /** - * Constructs a V1ComponentCondition from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1ComponentCondition} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1ComponentCondition} The populated V1ComponentCondition instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('error')) { - obj['error'] = ApiClient.convertToType(data['error'], 'String'); - } - if (data.hasOwnProperty('message')) { - obj['message'] = ApiClient.convertToType(data['message'], 'String'); - } - if (data.hasOwnProperty('status')) { - obj['status'] = ApiClient.convertToType(data['status'], 'String'); - } - if (data.hasOwnProperty('type')) { - obj['type'] = ApiClient.convertToType(data['type'], 'String'); - } - } - return obj; - } - - /** - * Condition error code for a component. For example, a health check error code. - * @member {String} error - */ - exports.prototype['error'] = undefined; - /** - * Message about the condition for a component. For example, information about a health check. - * @member {String} message - */ - exports.prototype['message'] = undefined; - /** - * Status of the condition for a component. Valid values for \"Healthy\": \"True\", \"False\", or \"Unknown\". - * @member {String} status - */ - exports.prototype['status'] = undefined; - /** - * Type of condition for a component. Valid value: \"Healthy\" - * @member {String} type - */ - exports.prototype['type'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1ComponentStatus.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1ComponentStatus.js deleted file mode 100644 index 27e9350ed9..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1ComponentStatus.js +++ /dev/null @@ -1,108 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1ComponentCondition', 'io.kubernetes.js/io.kubernetes.js.models/V1ObjectMeta'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1ComponentCondition'), require('./V1ObjectMeta')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1ComponentStatus = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1ComponentCondition, root.KubernetesJsClient.V1ObjectMeta); - } -}(this, function(ApiClient, V1ComponentCondition, V1ObjectMeta) { - 'use strict'; - - - - - /** - * The V1ComponentStatus model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1ComponentStatus - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1ComponentStatus. - * ComponentStatus (and ComponentStatusList) holds the cluster validation info. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1ComponentStatus - * @class - */ - var exports = function() { - var _this = this; - - - - - - }; - - /** - * Constructs a V1ComponentStatus from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1ComponentStatus} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1ComponentStatus} The populated V1ComponentStatus instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('apiVersion')) { - obj['apiVersion'] = ApiClient.convertToType(data['apiVersion'], 'String'); - } - if (data.hasOwnProperty('conditions')) { - obj['conditions'] = ApiClient.convertToType(data['conditions'], [V1ComponentCondition]); - } - if (data.hasOwnProperty('kind')) { - obj['kind'] = ApiClient.convertToType(data['kind'], 'String'); - } - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = V1ObjectMeta.constructFromObject(data['metadata']); - } - } - return obj; - } - - /** - * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - * @member {String} apiVersion - */ - exports.prototype['apiVersion'] = undefined; - /** - * List of component conditions observed - * @member {Array.} conditions - */ - exports.prototype['conditions'] = undefined; - /** - * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - * @member {String} kind - */ - exports.prototype['kind'] = undefined; - /** - * Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1ObjectMeta} metadata - */ - exports.prototype['metadata'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1ComponentStatusList.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1ComponentStatusList.js deleted file mode 100644 index 79c924f7da..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1ComponentStatusList.js +++ /dev/null @@ -1,109 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1ComponentStatus', 'io.kubernetes.js/io.kubernetes.js.models/V1ListMeta'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1ComponentStatus'), require('./V1ListMeta')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1ComponentStatusList = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1ComponentStatus, root.KubernetesJsClient.V1ListMeta); - } -}(this, function(ApiClient, V1ComponentStatus, V1ListMeta) { - 'use strict'; - - - - - /** - * The V1ComponentStatusList model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1ComponentStatusList - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1ComponentStatusList. - * Status of all the conditions for the component as a list of ComponentStatus objects. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1ComponentStatusList - * @class - * @param items {Array.} List of ComponentStatus objects. - */ - var exports = function(items) { - var _this = this; - - - _this['items'] = items; - - - }; - - /** - * Constructs a V1ComponentStatusList from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1ComponentStatusList} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1ComponentStatusList} The populated V1ComponentStatusList instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('apiVersion')) { - obj['apiVersion'] = ApiClient.convertToType(data['apiVersion'], 'String'); - } - if (data.hasOwnProperty('items')) { - obj['items'] = ApiClient.convertToType(data['items'], [V1ComponentStatus]); - } - if (data.hasOwnProperty('kind')) { - obj['kind'] = ApiClient.convertToType(data['kind'], 'String'); - } - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = V1ListMeta.constructFromObject(data['metadata']); - } - } - return obj; - } - - /** - * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - * @member {String} apiVersion - */ - exports.prototype['apiVersion'] = undefined; - /** - * List of ComponentStatus objects. - * @member {Array.} items - */ - exports.prototype['items'] = undefined; - /** - * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - * @member {String} kind - */ - exports.prototype['kind'] = undefined; - /** - * Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1ListMeta} metadata - */ - exports.prototype['metadata'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1ConfigMap.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1ConfigMap.js deleted file mode 100644 index e0f8e5e448..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1ConfigMap.js +++ /dev/null @@ -1,108 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1ObjectMeta'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1ObjectMeta')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1ConfigMap = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1ObjectMeta); - } -}(this, function(ApiClient, V1ObjectMeta) { - 'use strict'; - - - - - /** - * The V1ConfigMap model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1ConfigMap - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1ConfigMap. - * ConfigMap holds configuration data for pods to consume. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1ConfigMap - * @class - */ - var exports = function() { - var _this = this; - - - - - - }; - - /** - * Constructs a V1ConfigMap from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1ConfigMap} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1ConfigMap} The populated V1ConfigMap instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('apiVersion')) { - obj['apiVersion'] = ApiClient.convertToType(data['apiVersion'], 'String'); - } - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], {'String': 'String'}); - } - if (data.hasOwnProperty('kind')) { - obj['kind'] = ApiClient.convertToType(data['kind'], 'String'); - } - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = V1ObjectMeta.constructFromObject(data['metadata']); - } - } - return obj; - } - - /** - * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - * @member {String} apiVersion - */ - exports.prototype['apiVersion'] = undefined; - /** - * Data contains the configuration data. Each key must be a valid DNS_SUBDOMAIN with an optional leading dot. - * @member {Object.} data - */ - exports.prototype['data'] = undefined; - /** - * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - * @member {String} kind - */ - exports.prototype['kind'] = undefined; - /** - * Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1ObjectMeta} metadata - */ - exports.prototype['metadata'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1ConfigMapEnvSource.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1ConfigMapEnvSource.js deleted file mode 100644 index 6e2cc14341..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1ConfigMapEnvSource.js +++ /dev/null @@ -1,90 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1ConfigMapEnvSource = factory(root.KubernetesJsClient.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - - /** - * The V1ConfigMapEnvSource model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1ConfigMapEnvSource - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1ConfigMapEnvSource. - * ConfigMapEnvSource selects a ConfigMap to populate the environment variables with. The contents of the target ConfigMap's Data field will represent the key-value pairs as environment variables. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1ConfigMapEnvSource - * @class - */ - var exports = function() { - var _this = this; - - - - }; - - /** - * Constructs a V1ConfigMapEnvSource from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1ConfigMapEnvSource} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1ConfigMapEnvSource} The populated V1ConfigMapEnvSource instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - } - if (data.hasOwnProperty('optional')) { - obj['optional'] = ApiClient.convertToType(data['optional'], 'Boolean'); - } - } - return obj; - } - - /** - * Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * @member {String} name - */ - exports.prototype['name'] = undefined; - /** - * Specify whether the ConfigMap must be defined - * @member {Boolean} optional - */ - exports.prototype['optional'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1ConfigMapKeySelector.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1ConfigMapKeySelector.js deleted file mode 100644 index 5e80a72e00..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1ConfigMapKeySelector.js +++ /dev/null @@ -1,100 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1ConfigMapKeySelector = factory(root.KubernetesJsClient.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - - /** - * The V1ConfigMapKeySelector model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1ConfigMapKeySelector - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1ConfigMapKeySelector. - * Selects a key from a ConfigMap. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1ConfigMapKeySelector - * @class - * @param key {String} The key to select. - */ - var exports = function(key) { - var _this = this; - - _this['key'] = key; - - - }; - - /** - * Constructs a V1ConfigMapKeySelector from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1ConfigMapKeySelector} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1ConfigMapKeySelector} The populated V1ConfigMapKeySelector instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('key')) { - obj['key'] = ApiClient.convertToType(data['key'], 'String'); - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - } - if (data.hasOwnProperty('optional')) { - obj['optional'] = ApiClient.convertToType(data['optional'], 'Boolean'); - } - } - return obj; - } - - /** - * The key to select. - * @member {String} key - */ - exports.prototype['key'] = undefined; - /** - * Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * @member {String} name - */ - exports.prototype['name'] = undefined; - /** - * Specify whether the ConfigMap or it's key must be defined - * @member {Boolean} optional - */ - exports.prototype['optional'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1ConfigMapList.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1ConfigMapList.js deleted file mode 100644 index 5959b26208..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1ConfigMapList.js +++ /dev/null @@ -1,109 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1ConfigMap', 'io.kubernetes.js/io.kubernetes.js.models/V1ListMeta'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1ConfigMap'), require('./V1ListMeta')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1ConfigMapList = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1ConfigMap, root.KubernetesJsClient.V1ListMeta); - } -}(this, function(ApiClient, V1ConfigMap, V1ListMeta) { - 'use strict'; - - - - - /** - * The V1ConfigMapList model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1ConfigMapList - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1ConfigMapList. - * ConfigMapList is a resource containing a list of ConfigMap objects. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1ConfigMapList - * @class - * @param items {Array.} Items is the list of ConfigMaps. - */ - var exports = function(items) { - var _this = this; - - - _this['items'] = items; - - - }; - - /** - * Constructs a V1ConfigMapList from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1ConfigMapList} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1ConfigMapList} The populated V1ConfigMapList instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('apiVersion')) { - obj['apiVersion'] = ApiClient.convertToType(data['apiVersion'], 'String'); - } - if (data.hasOwnProperty('items')) { - obj['items'] = ApiClient.convertToType(data['items'], [V1ConfigMap]); - } - if (data.hasOwnProperty('kind')) { - obj['kind'] = ApiClient.convertToType(data['kind'], 'String'); - } - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = V1ListMeta.constructFromObject(data['metadata']); - } - } - return obj; - } - - /** - * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - * @member {String} apiVersion - */ - exports.prototype['apiVersion'] = undefined; - /** - * Items is the list of ConfigMaps. - * @member {Array.} items - */ - exports.prototype['items'] = undefined; - /** - * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - * @member {String} kind - */ - exports.prototype['kind'] = undefined; - /** - * More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1ListMeta} metadata - */ - exports.prototype['metadata'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1ConfigMapProjection.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1ConfigMapProjection.js deleted file mode 100644 index c07fbf7960..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1ConfigMapProjection.js +++ /dev/null @@ -1,99 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1KeyToPath'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1KeyToPath')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1ConfigMapProjection = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1KeyToPath); - } -}(this, function(ApiClient, V1KeyToPath) { - 'use strict'; - - - - - /** - * The V1ConfigMapProjection model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1ConfigMapProjection - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1ConfigMapProjection. - * Adapts a ConfigMap into a projected volume. The contents of the target ConfigMap's Data field will be presented in a projected volume as files using the keys in the Data field as the file names, unless the items element is populated with specific mappings of keys to paths. Note that this is identical to a configmap volume source without the default mode. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1ConfigMapProjection - * @class - */ - var exports = function() { - var _this = this; - - - - - }; - - /** - * Constructs a V1ConfigMapProjection from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1ConfigMapProjection} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1ConfigMapProjection} The populated V1ConfigMapProjection instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('items')) { - obj['items'] = ApiClient.convertToType(data['items'], [V1KeyToPath]); - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - } - if (data.hasOwnProperty('optional')) { - obj['optional'] = ApiClient.convertToType(data['optional'], 'Boolean'); - } - } - return obj; - } - - /** - * If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * @member {Array.} items - */ - exports.prototype['items'] = undefined; - /** - * Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * @member {String} name - */ - exports.prototype['name'] = undefined; - /** - * Specify whether the ConfigMap or it's keys must be defined - * @member {Boolean} optional - */ - exports.prototype['optional'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1ConfigMapVolumeSource.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1ConfigMapVolumeSource.js deleted file mode 100644 index 125af0d622..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1ConfigMapVolumeSource.js +++ /dev/null @@ -1,108 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1KeyToPath'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1KeyToPath')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1ConfigMapVolumeSource = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1KeyToPath); - } -}(this, function(ApiClient, V1KeyToPath) { - 'use strict'; - - - - - /** - * The V1ConfigMapVolumeSource model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1ConfigMapVolumeSource - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1ConfigMapVolumeSource. - * Adapts a ConfigMap into a volume. The contents of the target ConfigMap's Data field will be presented in a volume as files using the keys in the Data field as the file names, unless the items element is populated with specific mappings of keys to paths. ConfigMap volumes support ownership management and SELinux relabeling. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1ConfigMapVolumeSource - * @class - */ - var exports = function() { - var _this = this; - - - - - - }; - - /** - * Constructs a V1ConfigMapVolumeSource from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1ConfigMapVolumeSource} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1ConfigMapVolumeSource} The populated V1ConfigMapVolumeSource instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('defaultMode')) { - obj['defaultMode'] = ApiClient.convertToType(data['defaultMode'], 'Number'); - } - if (data.hasOwnProperty('items')) { - obj['items'] = ApiClient.convertToType(data['items'], [V1KeyToPath]); - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - } - if (data.hasOwnProperty('optional')) { - obj['optional'] = ApiClient.convertToType(data['optional'], 'Boolean'); - } - } - return obj; - } - - /** - * Optional: mode bits to use on created files by default. Must be a value between 0 and 0777. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. - * @member {Number} defaultMode - */ - exports.prototype['defaultMode'] = undefined; - /** - * If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * @member {Array.} items - */ - exports.prototype['items'] = undefined; - /** - * Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * @member {String} name - */ - exports.prototype['name'] = undefined; - /** - * Specify whether the ConfigMap or it's keys must be defined - * @member {Boolean} optional - */ - exports.prototype['optional'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1Container.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1Container.js deleted file mode 100644 index 4590577d46..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1Container.js +++ /dev/null @@ -1,253 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1ContainerPort', 'io.kubernetes.js/io.kubernetes.js.models/V1EnvFromSource', 'io.kubernetes.js/io.kubernetes.js.models/V1EnvVar', 'io.kubernetes.js/io.kubernetes.js.models/V1Lifecycle', 'io.kubernetes.js/io.kubernetes.js.models/V1Probe', 'io.kubernetes.js/io.kubernetes.js.models/V1ResourceRequirements', 'io.kubernetes.js/io.kubernetes.js.models/V1SecurityContext', 'io.kubernetes.js/io.kubernetes.js.models/V1VolumeMount'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1ContainerPort'), require('./V1EnvFromSource'), require('./V1EnvVar'), require('./V1Lifecycle'), require('./V1Probe'), require('./V1ResourceRequirements'), require('./V1SecurityContext'), require('./V1VolumeMount')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1Container = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1ContainerPort, root.KubernetesJsClient.V1EnvFromSource, root.KubernetesJsClient.V1EnvVar, root.KubernetesJsClient.V1Lifecycle, root.KubernetesJsClient.V1Probe, root.KubernetesJsClient.V1ResourceRequirements, root.KubernetesJsClient.V1SecurityContext, root.KubernetesJsClient.V1VolumeMount); - } -}(this, function(ApiClient, V1ContainerPort, V1EnvFromSource, V1EnvVar, V1Lifecycle, V1Probe, V1ResourceRequirements, V1SecurityContext, V1VolumeMount) { - 'use strict'; - - - - - /** - * The V1Container model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1Container - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1Container. - * A single application container that you want to run within a pod. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1Container - * @class - * @param name {String} Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. - */ - var exports = function(name) { - var _this = this; - - - - - - - - - - _this['name'] = name; - - - - - - - - - - - - }; - - /** - * Constructs a V1Container from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Container} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1Container} The populated V1Container instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('args')) { - obj['args'] = ApiClient.convertToType(data['args'], ['String']); - } - if (data.hasOwnProperty('command')) { - obj['command'] = ApiClient.convertToType(data['command'], ['String']); - } - if (data.hasOwnProperty('env')) { - obj['env'] = ApiClient.convertToType(data['env'], [V1EnvVar]); - } - if (data.hasOwnProperty('envFrom')) { - obj['envFrom'] = ApiClient.convertToType(data['envFrom'], [V1EnvFromSource]); - } - if (data.hasOwnProperty('image')) { - obj['image'] = ApiClient.convertToType(data['image'], 'String'); - } - if (data.hasOwnProperty('imagePullPolicy')) { - obj['imagePullPolicy'] = ApiClient.convertToType(data['imagePullPolicy'], 'String'); - } - if (data.hasOwnProperty('lifecycle')) { - obj['lifecycle'] = V1Lifecycle.constructFromObject(data['lifecycle']); - } - if (data.hasOwnProperty('livenessProbe')) { - obj['livenessProbe'] = V1Probe.constructFromObject(data['livenessProbe']); - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - } - if (data.hasOwnProperty('ports')) { - obj['ports'] = ApiClient.convertToType(data['ports'], [V1ContainerPort]); - } - if (data.hasOwnProperty('readinessProbe')) { - obj['readinessProbe'] = V1Probe.constructFromObject(data['readinessProbe']); - } - if (data.hasOwnProperty('resources')) { - obj['resources'] = V1ResourceRequirements.constructFromObject(data['resources']); - } - if (data.hasOwnProperty('securityContext')) { - obj['securityContext'] = V1SecurityContext.constructFromObject(data['securityContext']); - } - if (data.hasOwnProperty('stdin')) { - obj['stdin'] = ApiClient.convertToType(data['stdin'], 'Boolean'); - } - if (data.hasOwnProperty('stdinOnce')) { - obj['stdinOnce'] = ApiClient.convertToType(data['stdinOnce'], 'Boolean'); - } - if (data.hasOwnProperty('terminationMessagePath')) { - obj['terminationMessagePath'] = ApiClient.convertToType(data['terminationMessagePath'], 'String'); - } - if (data.hasOwnProperty('terminationMessagePolicy')) { - obj['terminationMessagePolicy'] = ApiClient.convertToType(data['terminationMessagePolicy'], 'String'); - } - if (data.hasOwnProperty('tty')) { - obj['tty'] = ApiClient.convertToType(data['tty'], 'Boolean'); - } - if (data.hasOwnProperty('volumeMounts')) { - obj['volumeMounts'] = ApiClient.convertToType(data['volumeMounts'], [V1VolumeMount]); - } - if (data.hasOwnProperty('workingDir')) { - obj['workingDir'] = ApiClient.convertToType(data['workingDir'], 'String'); - } - } - return obj; - } - - /** - * Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/containers#containers-and-commands - * @member {Array.} args - */ - exports.prototype['args'] = undefined; - /** - * Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/containers#containers-and-commands - * @member {Array.} command - */ - exports.prototype['command'] = undefined; - /** - * List of environment variables to set in the container. Cannot be updated. - * @member {Array.} env - */ - exports.prototype['env'] = undefined; - /** - * List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. - * @member {Array.} envFrom - */ - exports.prototype['envFrom'] = undefined; - /** - * Docker image name. More info: http://kubernetes.io/docs/user-guide/images - * @member {String} image - */ - exports.prototype['image'] = undefined; - /** - * Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/images#updating-images - * @member {String} imagePullPolicy - */ - exports.prototype['imagePullPolicy'] = undefined; - /** - * Actions that the management system should take in response to container lifecycle events. Cannot be updated. - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1Lifecycle} lifecycle - */ - exports.prototype['lifecycle'] = undefined; - /** - * Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/pod-states#container-probes - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1Probe} livenessProbe - */ - exports.prototype['livenessProbe'] = undefined; - /** - * Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. - * @member {String} name - */ - exports.prototype['name'] = undefined; - /** - * List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default \"0.0.0.0\" address inside a container will be accessible from the network. Cannot be updated. - * @member {Array.} ports - */ - exports.prototype['ports'] = undefined; - /** - * Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/pod-states#container-probes - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1Probe} readinessProbe - */ - exports.prototype['readinessProbe'] = undefined; - /** - * Compute Resources required by this container. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#resources - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1ResourceRequirements} resources - */ - exports.prototype['resources'] = undefined; - /** - * Security options the pod should run with. More info: http://releases.k8s.io/HEAD/docs/design/security_context.md - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1SecurityContext} securityContext - */ - exports.prototype['securityContext'] = undefined; - /** - * Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. - * @member {Boolean} stdin - */ - exports.prototype['stdin'] = undefined; - /** - * Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false - * @member {Boolean} stdinOnce - */ - exports.prototype['stdinOnce'] = undefined; - /** - * Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. - * @member {String} terminationMessagePath - */ - exports.prototype['terminationMessagePath'] = undefined; - /** - * Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. - * @member {String} terminationMessagePolicy - */ - exports.prototype['terminationMessagePolicy'] = undefined; - /** - * Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. - * @member {Boolean} tty - */ - exports.prototype['tty'] = undefined; - /** - * Pod volumes to mount into the container's filesystem. Cannot be updated. - * @member {Array.} volumeMounts - */ - exports.prototype['volumeMounts'] = undefined; - /** - * Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. - * @member {String} workingDir - */ - exports.prototype['workingDir'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1ContainerImage.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1ContainerImage.js deleted file mode 100644 index 1b5611d4f6..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1ContainerImage.js +++ /dev/null @@ -1,91 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1ContainerImage = factory(root.KubernetesJsClient.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - - /** - * The V1ContainerImage model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1ContainerImage - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1ContainerImage. - * Describe a container image - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1ContainerImage - * @class - * @param names {Array.} Names by which this image is known. e.g. [\"gcr.io/google_containers/hyperkube:v1.0.7\", \"dockerhub.io/google_containers/hyperkube:v1.0.7\"] - */ - var exports = function(names) { - var _this = this; - - _this['names'] = names; - - }; - - /** - * Constructs a V1ContainerImage from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1ContainerImage} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1ContainerImage} The populated V1ContainerImage instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('names')) { - obj['names'] = ApiClient.convertToType(data['names'], ['String']); - } - if (data.hasOwnProperty('sizeBytes')) { - obj['sizeBytes'] = ApiClient.convertToType(data['sizeBytes'], 'Number'); - } - } - return obj; - } - - /** - * Names by which this image is known. e.g. [\"gcr.io/google_containers/hyperkube:v1.0.7\", \"dockerhub.io/google_containers/hyperkube:v1.0.7\"] - * @member {Array.} names - */ - exports.prototype['names'] = undefined; - /** - * The size of the image in bytes. - * @member {Number} sizeBytes - */ - exports.prototype['sizeBytes'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1ContainerPort.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1ContainerPort.js deleted file mode 100644 index 0a578ab942..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1ContainerPort.js +++ /dev/null @@ -1,118 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1ContainerPort = factory(root.KubernetesJsClient.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - - /** - * The V1ContainerPort model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1ContainerPort - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1ContainerPort. - * ContainerPort represents a network port in a single container. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1ContainerPort - * @class - * @param containerPort {Number} Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. - */ - var exports = function(containerPort) { - var _this = this; - - _this['containerPort'] = containerPort; - - - - - }; - - /** - * Constructs a V1ContainerPort from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1ContainerPort} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1ContainerPort} The populated V1ContainerPort instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('containerPort')) { - obj['containerPort'] = ApiClient.convertToType(data['containerPort'], 'Number'); - } - if (data.hasOwnProperty('hostIP')) { - obj['hostIP'] = ApiClient.convertToType(data['hostIP'], 'String'); - } - if (data.hasOwnProperty('hostPort')) { - obj['hostPort'] = ApiClient.convertToType(data['hostPort'], 'Number'); - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - } - if (data.hasOwnProperty('protocol')) { - obj['protocol'] = ApiClient.convertToType(data['protocol'], 'String'); - } - } - return obj; - } - - /** - * Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. - * @member {Number} containerPort - */ - exports.prototype['containerPort'] = undefined; - /** - * What host IP to bind the external port to. - * @member {String} hostIP - */ - exports.prototype['hostIP'] = undefined; - /** - * Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. - * @member {Number} hostPort - */ - exports.prototype['hostPort'] = undefined; - /** - * If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. - * @member {String} name - */ - exports.prototype['name'] = undefined; - /** - * Protocol for port. Must be UDP or TCP. Defaults to \"TCP\". - * @member {String} protocol - */ - exports.prototype['protocol'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1ContainerState.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1ContainerState.js deleted file mode 100644 index c83111c05c..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1ContainerState.js +++ /dev/null @@ -1,99 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1ContainerStateRunning', 'io.kubernetes.js/io.kubernetes.js.models/V1ContainerStateTerminated', 'io.kubernetes.js/io.kubernetes.js.models/V1ContainerStateWaiting'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1ContainerStateRunning'), require('./V1ContainerStateTerminated'), require('./V1ContainerStateWaiting')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1ContainerState = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1ContainerStateRunning, root.KubernetesJsClient.V1ContainerStateTerminated, root.KubernetesJsClient.V1ContainerStateWaiting); - } -}(this, function(ApiClient, V1ContainerStateRunning, V1ContainerStateTerminated, V1ContainerStateWaiting) { - 'use strict'; - - - - - /** - * The V1ContainerState model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1ContainerState - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1ContainerState. - * ContainerState holds a possible state of container. Only one of its members may be specified. If none of them is specified, the default one is ContainerStateWaiting. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1ContainerState - * @class - */ - var exports = function() { - var _this = this; - - - - - }; - - /** - * Constructs a V1ContainerState from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1ContainerState} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1ContainerState} The populated V1ContainerState instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('running')) { - obj['running'] = V1ContainerStateRunning.constructFromObject(data['running']); - } - if (data.hasOwnProperty('terminated')) { - obj['terminated'] = V1ContainerStateTerminated.constructFromObject(data['terminated']); - } - if (data.hasOwnProperty('waiting')) { - obj['waiting'] = V1ContainerStateWaiting.constructFromObject(data['waiting']); - } - } - return obj; - } - - /** - * Details about a running container - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1ContainerStateRunning} running - */ - exports.prototype['running'] = undefined; - /** - * Details about a terminated container - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1ContainerStateTerminated} terminated - */ - exports.prototype['terminated'] = undefined; - /** - * Details about a waiting container - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1ContainerStateWaiting} waiting - */ - exports.prototype['waiting'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1ContainerStateRunning.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1ContainerStateRunning.js deleted file mode 100644 index d830ca0d4a..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1ContainerStateRunning.js +++ /dev/null @@ -1,81 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1ContainerStateRunning = factory(root.KubernetesJsClient.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - - /** - * The V1ContainerStateRunning model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1ContainerStateRunning - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1ContainerStateRunning. - * ContainerStateRunning is a running state of a container. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1ContainerStateRunning - * @class - */ - var exports = function() { - var _this = this; - - - }; - - /** - * Constructs a V1ContainerStateRunning from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1ContainerStateRunning} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1ContainerStateRunning} The populated V1ContainerStateRunning instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('startedAt')) { - obj['startedAt'] = ApiClient.convertToType(data['startedAt'], 'Date'); - } - } - return obj; - } - - /** - * Time at which the container was last (re-)started - * @member {Date} startedAt - */ - exports.prototype['startedAt'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1ContainerStateTerminated.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1ContainerStateTerminated.js deleted file mode 100644 index 156cfde5c8..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1ContainerStateTerminated.js +++ /dev/null @@ -1,136 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1ContainerStateTerminated = factory(root.KubernetesJsClient.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - - /** - * The V1ContainerStateTerminated model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1ContainerStateTerminated - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1ContainerStateTerminated. - * ContainerStateTerminated is a terminated state of a container. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1ContainerStateTerminated - * @class - * @param exitCode {Number} Exit status from the last termination of the container - */ - var exports = function(exitCode) { - var _this = this; - - - _this['exitCode'] = exitCode; - - - - - - }; - - /** - * Constructs a V1ContainerStateTerminated from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1ContainerStateTerminated} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1ContainerStateTerminated} The populated V1ContainerStateTerminated instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('containerID')) { - obj['containerID'] = ApiClient.convertToType(data['containerID'], 'String'); - } - if (data.hasOwnProperty('exitCode')) { - obj['exitCode'] = ApiClient.convertToType(data['exitCode'], 'Number'); - } - if (data.hasOwnProperty('finishedAt')) { - obj['finishedAt'] = ApiClient.convertToType(data['finishedAt'], 'Date'); - } - if (data.hasOwnProperty('message')) { - obj['message'] = ApiClient.convertToType(data['message'], 'String'); - } - if (data.hasOwnProperty('reason')) { - obj['reason'] = ApiClient.convertToType(data['reason'], 'String'); - } - if (data.hasOwnProperty('signal')) { - obj['signal'] = ApiClient.convertToType(data['signal'], 'Number'); - } - if (data.hasOwnProperty('startedAt')) { - obj['startedAt'] = ApiClient.convertToType(data['startedAt'], 'Date'); - } - } - return obj; - } - - /** - * Container's ID in the format 'docker://' - * @member {String} containerID - */ - exports.prototype['containerID'] = undefined; - /** - * Exit status from the last termination of the container - * @member {Number} exitCode - */ - exports.prototype['exitCode'] = undefined; - /** - * Time at which the container last terminated - * @member {Date} finishedAt - */ - exports.prototype['finishedAt'] = undefined; - /** - * Message regarding the last termination of the container - * @member {String} message - */ - exports.prototype['message'] = undefined; - /** - * (brief) reason from the last termination of the container - * @member {String} reason - */ - exports.prototype['reason'] = undefined; - /** - * Signal from the last termination of the container - * @member {Number} signal - */ - exports.prototype['signal'] = undefined; - /** - * Time at which previous execution of the container started - * @member {Date} startedAt - */ - exports.prototype['startedAt'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1ContainerStateWaiting.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1ContainerStateWaiting.js deleted file mode 100644 index e3620c4f7c..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1ContainerStateWaiting.js +++ /dev/null @@ -1,90 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1ContainerStateWaiting = factory(root.KubernetesJsClient.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - - /** - * The V1ContainerStateWaiting model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1ContainerStateWaiting - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1ContainerStateWaiting. - * ContainerStateWaiting is a waiting state of a container. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1ContainerStateWaiting - * @class - */ - var exports = function() { - var _this = this; - - - - }; - - /** - * Constructs a V1ContainerStateWaiting from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1ContainerStateWaiting} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1ContainerStateWaiting} The populated V1ContainerStateWaiting instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('message')) { - obj['message'] = ApiClient.convertToType(data['message'], 'String'); - } - if (data.hasOwnProperty('reason')) { - obj['reason'] = ApiClient.convertToType(data['reason'], 'String'); - } - } - return obj; - } - - /** - * Message regarding why the container is not yet running. - * @member {String} message - */ - exports.prototype['message'] = undefined; - /** - * (brief) reason the container is not yet running. - * @member {String} reason - */ - exports.prototype['reason'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1ContainerStatus.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1ContainerStatus.js deleted file mode 100644 index fefe51715f..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1ContainerStatus.js +++ /dev/null @@ -1,149 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1ContainerState'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1ContainerState')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1ContainerStatus = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1ContainerState); - } -}(this, function(ApiClient, V1ContainerState) { - 'use strict'; - - - - - /** - * The V1ContainerStatus model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1ContainerStatus - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1ContainerStatus. - * ContainerStatus contains details for the current status of this container. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1ContainerStatus - * @class - * @param image {String} The image the container is running. More info: http://kubernetes.io/docs/user-guide/images - * @param imageID {String} ImageID of the container's image. - * @param name {String} This must be a DNS_LABEL. Each container in a pod must have a unique name. Cannot be updated. - * @param ready {Boolean} Specifies whether the container has passed its readiness probe. - * @param restartCount {Number} The number of times the container has been restarted, currently based on the number of dead containers that have not yet been removed. Note that this is calculated from dead containers. But those containers are subject to garbage collection. This value will get capped at 5 by GC. - */ - var exports = function(image, imageID, name, ready, restartCount) { - var _this = this; - - - _this['image'] = image; - _this['imageID'] = imageID; - - _this['name'] = name; - _this['ready'] = ready; - _this['restartCount'] = restartCount; - - }; - - /** - * Constructs a V1ContainerStatus from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1ContainerStatus} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1ContainerStatus} The populated V1ContainerStatus instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('containerID')) { - obj['containerID'] = ApiClient.convertToType(data['containerID'], 'String'); - } - if (data.hasOwnProperty('image')) { - obj['image'] = ApiClient.convertToType(data['image'], 'String'); - } - if (data.hasOwnProperty('imageID')) { - obj['imageID'] = ApiClient.convertToType(data['imageID'], 'String'); - } - if (data.hasOwnProperty('lastState')) { - obj['lastState'] = V1ContainerState.constructFromObject(data['lastState']); - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - } - if (data.hasOwnProperty('ready')) { - obj['ready'] = ApiClient.convertToType(data['ready'], 'Boolean'); - } - if (data.hasOwnProperty('restartCount')) { - obj['restartCount'] = ApiClient.convertToType(data['restartCount'], 'Number'); - } - if (data.hasOwnProperty('state')) { - obj['state'] = V1ContainerState.constructFromObject(data['state']); - } - } - return obj; - } - - /** - * Container's ID in the format 'docker://'. More info: http://kubernetes.io/docs/user-guide/container-environment#container-information - * @member {String} containerID - */ - exports.prototype['containerID'] = undefined; - /** - * The image the container is running. More info: http://kubernetes.io/docs/user-guide/images - * @member {String} image - */ - exports.prototype['image'] = undefined; - /** - * ImageID of the container's image. - * @member {String} imageID - */ - exports.prototype['imageID'] = undefined; - /** - * Details about the container's last termination condition. - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1ContainerState} lastState - */ - exports.prototype['lastState'] = undefined; - /** - * This must be a DNS_LABEL. Each container in a pod must have a unique name. Cannot be updated. - * @member {String} name - */ - exports.prototype['name'] = undefined; - /** - * Specifies whether the container has passed its readiness probe. - * @member {Boolean} ready - */ - exports.prototype['ready'] = undefined; - /** - * The number of times the container has been restarted, currently based on the number of dead containers that have not yet been removed. Note that this is calculated from dead containers. But those containers are subject to garbage collection. This value will get capped at 5 by GC. - * @member {Number} restartCount - */ - exports.prototype['restartCount'] = undefined; - /** - * Details about the container's current condition. - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1ContainerState} state - */ - exports.prototype['state'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1CrossVersionObjectReference.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1CrossVersionObjectReference.js deleted file mode 100644 index 757eb339f3..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1CrossVersionObjectReference.js +++ /dev/null @@ -1,101 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1CrossVersionObjectReference = factory(root.KubernetesJsClient.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - - /** - * The V1CrossVersionObjectReference model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1CrossVersionObjectReference - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1CrossVersionObjectReference. - * CrossVersionObjectReference contains enough information to let you identify the referred resource. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1CrossVersionObjectReference - * @class - * @param kind {String} Kind of the referent; More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds\" - * @param name {String} Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names - */ - var exports = function(kind, name) { - var _this = this; - - - _this['kind'] = kind; - _this['name'] = name; - }; - - /** - * Constructs a V1CrossVersionObjectReference from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1CrossVersionObjectReference} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1CrossVersionObjectReference} The populated V1CrossVersionObjectReference instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('apiVersion')) { - obj['apiVersion'] = ApiClient.convertToType(data['apiVersion'], 'String'); - } - if (data.hasOwnProperty('kind')) { - obj['kind'] = ApiClient.convertToType(data['kind'], 'String'); - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - } - } - return obj; - } - - /** - * API version of the referent - * @member {String} apiVersion - */ - exports.prototype['apiVersion'] = undefined; - /** - * Kind of the referent; More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds\" - * @member {String} kind - */ - exports.prototype['kind'] = undefined; - /** - * Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names - * @member {String} name - */ - exports.prototype['name'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1DaemonEndpoint.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1DaemonEndpoint.js deleted file mode 100644 index 9c608067db..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1DaemonEndpoint.js +++ /dev/null @@ -1,82 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1DaemonEndpoint = factory(root.KubernetesJsClient.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - - /** - * The V1DaemonEndpoint model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1DaemonEndpoint - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1DaemonEndpoint. - * DaemonEndpoint contains information about a single Daemon endpoint. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1DaemonEndpoint - * @class - * @param port {Number} Port number of the given endpoint. - */ - var exports = function(port) { - var _this = this; - - _this['Port'] = port; - }; - - /** - * Constructs a V1DaemonEndpoint from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1DaemonEndpoint} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1DaemonEndpoint} The populated V1DaemonEndpoint instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('Port')) { - obj['Port'] = ApiClient.convertToType(data['Port'], 'Number'); - } - } - return obj; - } - - /** - * Port number of the given endpoint. - * @member {Number} Port - */ - exports.prototype['Port'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1DeleteOptions.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1DeleteOptions.js deleted file mode 100644 index 4a7831b1c8..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1DeleteOptions.js +++ /dev/null @@ -1,126 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1Preconditions'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1Preconditions')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1DeleteOptions = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1Preconditions); - } -}(this, function(ApiClient, V1Preconditions) { - 'use strict'; - - - - - /** - * The V1DeleteOptions model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1DeleteOptions - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1DeleteOptions. - * DeleteOptions may be provided when deleting an API object. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1DeleteOptions - * @class - */ - var exports = function() { - var _this = this; - - - - - - - - }; - - /** - * Constructs a V1DeleteOptions from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1DeleteOptions} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1DeleteOptions} The populated V1DeleteOptions instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('apiVersion')) { - obj['apiVersion'] = ApiClient.convertToType(data['apiVersion'], 'String'); - } - if (data.hasOwnProperty('gracePeriodSeconds')) { - obj['gracePeriodSeconds'] = ApiClient.convertToType(data['gracePeriodSeconds'], 'Number'); - } - if (data.hasOwnProperty('kind')) { - obj['kind'] = ApiClient.convertToType(data['kind'], 'String'); - } - if (data.hasOwnProperty('orphanDependents')) { - obj['orphanDependents'] = ApiClient.convertToType(data['orphanDependents'], 'Boolean'); - } - if (data.hasOwnProperty('preconditions')) { - obj['preconditions'] = V1Preconditions.constructFromObject(data['preconditions']); - } - if (data.hasOwnProperty('propagationPolicy')) { - obj['propagationPolicy'] = ApiClient.convertToType(data['propagationPolicy'], 'String'); - } - } - return obj; - } - - /** - * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - * @member {String} apiVersion - */ - exports.prototype['apiVersion'] = undefined; - /** - * The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - * @member {Number} gracePeriodSeconds - */ - exports.prototype['gracePeriodSeconds'] = undefined; - /** - * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - * @member {String} kind - */ - exports.prototype['kind'] = undefined; - /** - * Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - * @member {Boolean} orphanDependents - */ - exports.prototype['orphanDependents'] = undefined; - /** - * Must be fulfilled before a deletion is carried out. If not possible, a 409 Conflict status will be returned. - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1Preconditions} preconditions - */ - exports.prototype['preconditions'] = undefined; - /** - * Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. - * @member {String} propagationPolicy - */ - exports.prototype['propagationPolicy'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1DownwardAPIProjection.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1DownwardAPIProjection.js deleted file mode 100644 index d2369e30c6..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1DownwardAPIProjection.js +++ /dev/null @@ -1,81 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1DownwardAPIVolumeFile'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1DownwardAPIVolumeFile')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1DownwardAPIProjection = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1DownwardAPIVolumeFile); - } -}(this, function(ApiClient, V1DownwardAPIVolumeFile) { - 'use strict'; - - - - - /** - * The V1DownwardAPIProjection model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1DownwardAPIProjection - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1DownwardAPIProjection. - * Represents downward API info for projecting into a projected volume. Note that this is identical to a downwardAPI volume source without the default mode. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1DownwardAPIProjection - * @class - */ - var exports = function() { - var _this = this; - - - }; - - /** - * Constructs a V1DownwardAPIProjection from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1DownwardAPIProjection} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1DownwardAPIProjection} The populated V1DownwardAPIProjection instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('items')) { - obj['items'] = ApiClient.convertToType(data['items'], [V1DownwardAPIVolumeFile]); - } - } - return obj; - } - - /** - * Items is a list of DownwardAPIVolume file - * @member {Array.} items - */ - exports.prototype['items'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1DownwardAPIVolumeFile.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1DownwardAPIVolumeFile.js deleted file mode 100644 index 2c5a246f63..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1DownwardAPIVolumeFile.js +++ /dev/null @@ -1,109 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1ObjectFieldSelector', 'io.kubernetes.js/io.kubernetes.js.models/V1ResourceFieldSelector'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1ObjectFieldSelector'), require('./V1ResourceFieldSelector')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1DownwardAPIVolumeFile = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1ObjectFieldSelector, root.KubernetesJsClient.V1ResourceFieldSelector); - } -}(this, function(ApiClient, V1ObjectFieldSelector, V1ResourceFieldSelector) { - 'use strict'; - - - - - /** - * The V1DownwardAPIVolumeFile model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1DownwardAPIVolumeFile - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1DownwardAPIVolumeFile. - * DownwardAPIVolumeFile represents information to create the file containing the pod field - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1DownwardAPIVolumeFile - * @class - * @param path {String} Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' - */ - var exports = function(path) { - var _this = this; - - - - _this['path'] = path; - - }; - - /** - * Constructs a V1DownwardAPIVolumeFile from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1DownwardAPIVolumeFile} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1DownwardAPIVolumeFile} The populated V1DownwardAPIVolumeFile instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('fieldRef')) { - obj['fieldRef'] = V1ObjectFieldSelector.constructFromObject(data['fieldRef']); - } - if (data.hasOwnProperty('mode')) { - obj['mode'] = ApiClient.convertToType(data['mode'], 'Number'); - } - if (data.hasOwnProperty('path')) { - obj['path'] = ApiClient.convertToType(data['path'], 'String'); - } - if (data.hasOwnProperty('resourceFieldRef')) { - obj['resourceFieldRef'] = V1ResourceFieldSelector.constructFromObject(data['resourceFieldRef']); - } - } - return obj; - } - - /** - * Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1ObjectFieldSelector} fieldRef - */ - exports.prototype['fieldRef'] = undefined; - /** - * Optional: mode bits to use on this file, must be a value between 0 and 0777. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. - * @member {Number} mode - */ - exports.prototype['mode'] = undefined; - /** - * Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' - * @member {String} path - */ - exports.prototype['path'] = undefined; - /** - * Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1ResourceFieldSelector} resourceFieldRef - */ - exports.prototype['resourceFieldRef'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1DownwardAPIVolumeSource.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1DownwardAPIVolumeSource.js deleted file mode 100644 index 4a8a44e89b..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1DownwardAPIVolumeSource.js +++ /dev/null @@ -1,90 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1DownwardAPIVolumeFile'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1DownwardAPIVolumeFile')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1DownwardAPIVolumeSource = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1DownwardAPIVolumeFile); - } -}(this, function(ApiClient, V1DownwardAPIVolumeFile) { - 'use strict'; - - - - - /** - * The V1DownwardAPIVolumeSource model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1DownwardAPIVolumeSource - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1DownwardAPIVolumeSource. - * DownwardAPIVolumeSource represents a volume containing downward API info. Downward API volumes support ownership management and SELinux relabeling. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1DownwardAPIVolumeSource - * @class - */ - var exports = function() { - var _this = this; - - - - }; - - /** - * Constructs a V1DownwardAPIVolumeSource from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1DownwardAPIVolumeSource} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1DownwardAPIVolumeSource} The populated V1DownwardAPIVolumeSource instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('defaultMode')) { - obj['defaultMode'] = ApiClient.convertToType(data['defaultMode'], 'Number'); - } - if (data.hasOwnProperty('items')) { - obj['items'] = ApiClient.convertToType(data['items'], [V1DownwardAPIVolumeFile]); - } - } - return obj; - } - - /** - * Optional: mode bits to use on created files by default. Must be a value between 0 and 0777. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. - * @member {Number} defaultMode - */ - exports.prototype['defaultMode'] = undefined; - /** - * Items is a list of downward API volume file - * @member {Array.} items - */ - exports.prototype['items'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1EmptyDirVolumeSource.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1EmptyDirVolumeSource.js deleted file mode 100644 index 4bf170e6ab..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1EmptyDirVolumeSource.js +++ /dev/null @@ -1,81 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1EmptyDirVolumeSource = factory(root.KubernetesJsClient.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - - /** - * The V1EmptyDirVolumeSource model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1EmptyDirVolumeSource - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1EmptyDirVolumeSource. - * Represents an empty directory for a pod. Empty directory volumes support ownership management and SELinux relabeling. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1EmptyDirVolumeSource - * @class - */ - var exports = function() { - var _this = this; - - - }; - - /** - * Constructs a V1EmptyDirVolumeSource from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1EmptyDirVolumeSource} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1EmptyDirVolumeSource} The populated V1EmptyDirVolumeSource instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('medium')) { - obj['medium'] = ApiClient.convertToType(data['medium'], 'String'); - } - } - return obj; - } - - /** - * What type of storage medium should back this directory. The default is \"\" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir - * @member {String} medium - */ - exports.prototype['medium'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1EndpointAddress.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1EndpointAddress.js deleted file mode 100644 index c1576be363..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1EndpointAddress.js +++ /dev/null @@ -1,109 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1ObjectReference'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1ObjectReference')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1EndpointAddress = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1ObjectReference); - } -}(this, function(ApiClient, V1ObjectReference) { - 'use strict'; - - - - - /** - * The V1EndpointAddress model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1EndpointAddress - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1EndpointAddress. - * EndpointAddress is a tuple that describes single IP address. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1EndpointAddress - * @class - * @param ip {String} The IP of this endpoint. May not be loopback (127.0.0.0/8), link-local (169.254.0.0/16), or link-local multicast ((224.0.0.0/24). IPv6 is also accepted but not fully supported on all platforms. Also, certain kubernetes components, like kube-proxy, are not IPv6 ready. - */ - var exports = function(ip) { - var _this = this; - - - _this['ip'] = ip; - - - }; - - /** - * Constructs a V1EndpointAddress from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1EndpointAddress} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1EndpointAddress} The populated V1EndpointAddress instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('hostname')) { - obj['hostname'] = ApiClient.convertToType(data['hostname'], 'String'); - } - if (data.hasOwnProperty('ip')) { - obj['ip'] = ApiClient.convertToType(data['ip'], 'String'); - } - if (data.hasOwnProperty('nodeName')) { - obj['nodeName'] = ApiClient.convertToType(data['nodeName'], 'String'); - } - if (data.hasOwnProperty('targetRef')) { - obj['targetRef'] = V1ObjectReference.constructFromObject(data['targetRef']); - } - } - return obj; - } - - /** - * The Hostname of this endpoint - * @member {String} hostname - */ - exports.prototype['hostname'] = undefined; - /** - * The IP of this endpoint. May not be loopback (127.0.0.0/8), link-local (169.254.0.0/16), or link-local multicast ((224.0.0.0/24). IPv6 is also accepted but not fully supported on all platforms. Also, certain kubernetes components, like kube-proxy, are not IPv6 ready. - * @member {String} ip - */ - exports.prototype['ip'] = undefined; - /** - * Optional: Node hosting this endpoint. This can be used to determine endpoints local to a node. - * @member {String} nodeName - */ - exports.prototype['nodeName'] = undefined; - /** - * Reference to object providing the endpoint. - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1ObjectReference} targetRef - */ - exports.prototype['targetRef'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1EndpointPort.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1EndpointPort.js deleted file mode 100644 index a7cce1719c..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1EndpointPort.js +++ /dev/null @@ -1,100 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1EndpointPort = factory(root.KubernetesJsClient.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - - /** - * The V1EndpointPort model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1EndpointPort - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1EndpointPort. - * EndpointPort is a tuple that describes a single port. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1EndpointPort - * @class - * @param port {Number} The port number of the endpoint. - */ - var exports = function(port) { - var _this = this; - - - _this['port'] = port; - - }; - - /** - * Constructs a V1EndpointPort from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1EndpointPort} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1EndpointPort} The populated V1EndpointPort instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - } - if (data.hasOwnProperty('port')) { - obj['port'] = ApiClient.convertToType(data['port'], 'Number'); - } - if (data.hasOwnProperty('protocol')) { - obj['protocol'] = ApiClient.convertToType(data['protocol'], 'String'); - } - } - return obj; - } - - /** - * The name of this port (corresponds to ServicePort.Name). Must be a DNS_LABEL. Optional only if one port is defined. - * @member {String} name - */ - exports.prototype['name'] = undefined; - /** - * The port number of the endpoint. - * @member {Number} port - */ - exports.prototype['port'] = undefined; - /** - * The IP protocol for this port. Must be UDP or TCP. Default is TCP. - * @member {String} protocol - */ - exports.prototype['protocol'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1EndpointSubset.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1EndpointSubset.js deleted file mode 100644 index 01b027f4bd..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1EndpointSubset.js +++ /dev/null @@ -1,99 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1EndpointAddress', 'io.kubernetes.js/io.kubernetes.js.models/V1EndpointPort'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1EndpointAddress'), require('./V1EndpointPort')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1EndpointSubset = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1EndpointAddress, root.KubernetesJsClient.V1EndpointPort); - } -}(this, function(ApiClient, V1EndpointAddress, V1EndpointPort) { - 'use strict'; - - - - - /** - * The V1EndpointSubset model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1EndpointSubset - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1EndpointSubset. - * EndpointSubset is a group of addresses with a common set of ports. The expanded set of endpoints is the Cartesian product of Addresses x Ports. For example, given: { Addresses: [{\"ip\": \"10.10.1.1\"}, {\"ip\": \"10.10.2.2\"}], Ports: [{\"name\": \"a\", \"port\": 8675}, {\"name\": \"b\", \"port\": 309}] } The resulting set of endpoints can be viewed as: a: [ 10.10.1.1:8675, 10.10.2.2:8675 ], b: [ 10.10.1.1:309, 10.10.2.2:309 ] - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1EndpointSubset - * @class - */ - var exports = function() { - var _this = this; - - - - - }; - - /** - * Constructs a V1EndpointSubset from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1EndpointSubset} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1EndpointSubset} The populated V1EndpointSubset instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('addresses')) { - obj['addresses'] = ApiClient.convertToType(data['addresses'], [V1EndpointAddress]); - } - if (data.hasOwnProperty('notReadyAddresses')) { - obj['notReadyAddresses'] = ApiClient.convertToType(data['notReadyAddresses'], [V1EndpointAddress]); - } - if (data.hasOwnProperty('ports')) { - obj['ports'] = ApiClient.convertToType(data['ports'], [V1EndpointPort]); - } - } - return obj; - } - - /** - * IP addresses which offer the related ports that are marked as ready. These endpoints should be considered safe for load balancers and clients to utilize. - * @member {Array.} addresses - */ - exports.prototype['addresses'] = undefined; - /** - * IP addresses which offer the related ports but are not currently marked as ready because they have not yet finished starting, have recently failed a readiness check, or have recently failed a liveness check. - * @member {Array.} notReadyAddresses - */ - exports.prototype['notReadyAddresses'] = undefined; - /** - * Port numbers available on the related IP addresses. - * @member {Array.} ports - */ - exports.prototype['ports'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1Endpoints.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1Endpoints.js deleted file mode 100644 index f06f9ff59e..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1Endpoints.js +++ /dev/null @@ -1,109 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1EndpointSubset', 'io.kubernetes.js/io.kubernetes.js.models/V1ObjectMeta'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1EndpointSubset'), require('./V1ObjectMeta')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1Endpoints = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1EndpointSubset, root.KubernetesJsClient.V1ObjectMeta); - } -}(this, function(ApiClient, V1EndpointSubset, V1ObjectMeta) { - 'use strict'; - - - - - /** - * The V1Endpoints model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1Endpoints - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1Endpoints. - * Endpoints is a collection of endpoints that implement the actual service. Example: Name: \"mysvc\", Subsets: [ { Addresses: [{\"ip\": \"10.10.1.1\"}, {\"ip\": \"10.10.2.2\"}], Ports: [{\"name\": \"a\", \"port\": 8675}, {\"name\": \"b\", \"port\": 309}] }, { Addresses: [{\"ip\": \"10.10.3.3\"}], Ports: [{\"name\": \"a\", \"port\": 93}, {\"name\": \"b\", \"port\": 76}] }, ] - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1Endpoints - * @class - * @param subsets {Array.} The set of all endpoints is the union of all subsets. Addresses are placed into subsets according to the IPs they share. A single address with multiple ports, some of which are ready and some of which are not (because they come from different containers) will result in the address being displayed in different subsets for the different ports. No address will appear in both Addresses and NotReadyAddresses in the same subset. Sets of addresses and ports that comprise a service. - */ - var exports = function(subsets) { - var _this = this; - - - - - _this['subsets'] = subsets; - }; - - /** - * Constructs a V1Endpoints from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Endpoints} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1Endpoints} The populated V1Endpoints instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('apiVersion')) { - obj['apiVersion'] = ApiClient.convertToType(data['apiVersion'], 'String'); - } - if (data.hasOwnProperty('kind')) { - obj['kind'] = ApiClient.convertToType(data['kind'], 'String'); - } - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = V1ObjectMeta.constructFromObject(data['metadata']); - } - if (data.hasOwnProperty('subsets')) { - obj['subsets'] = ApiClient.convertToType(data['subsets'], [V1EndpointSubset]); - } - } - return obj; - } - - /** - * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - * @member {String} apiVersion - */ - exports.prototype['apiVersion'] = undefined; - /** - * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - * @member {String} kind - */ - exports.prototype['kind'] = undefined; - /** - * Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1ObjectMeta} metadata - */ - exports.prototype['metadata'] = undefined; - /** - * The set of all endpoints is the union of all subsets. Addresses are placed into subsets according to the IPs they share. A single address with multiple ports, some of which are ready and some of which are not (because they come from different containers) will result in the address being displayed in different subsets for the different ports. No address will appear in both Addresses and NotReadyAddresses in the same subset. Sets of addresses and ports that comprise a service. - * @member {Array.} subsets - */ - exports.prototype['subsets'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1EndpointsList.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1EndpointsList.js deleted file mode 100644 index b214d26fa8..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1EndpointsList.js +++ /dev/null @@ -1,109 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1Endpoints', 'io.kubernetes.js/io.kubernetes.js.models/V1ListMeta'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1Endpoints'), require('./V1ListMeta')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1EndpointsList = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1Endpoints, root.KubernetesJsClient.V1ListMeta); - } -}(this, function(ApiClient, V1Endpoints, V1ListMeta) { - 'use strict'; - - - - - /** - * The V1EndpointsList model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1EndpointsList - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1EndpointsList. - * EndpointsList is a list of endpoints. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1EndpointsList - * @class - * @param items {Array.} List of endpoints. - */ - var exports = function(items) { - var _this = this; - - - _this['items'] = items; - - - }; - - /** - * Constructs a V1EndpointsList from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1EndpointsList} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1EndpointsList} The populated V1EndpointsList instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('apiVersion')) { - obj['apiVersion'] = ApiClient.convertToType(data['apiVersion'], 'String'); - } - if (data.hasOwnProperty('items')) { - obj['items'] = ApiClient.convertToType(data['items'], [V1Endpoints]); - } - if (data.hasOwnProperty('kind')) { - obj['kind'] = ApiClient.convertToType(data['kind'], 'String'); - } - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = V1ListMeta.constructFromObject(data['metadata']); - } - } - return obj; - } - - /** - * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - * @member {String} apiVersion - */ - exports.prototype['apiVersion'] = undefined; - /** - * List of endpoints. - * @member {Array.} items - */ - exports.prototype['items'] = undefined; - /** - * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - * @member {String} kind - */ - exports.prototype['kind'] = undefined; - /** - * Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1ListMeta} metadata - */ - exports.prototype['metadata'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1EnvFromSource.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1EnvFromSource.js deleted file mode 100644 index 6a3c704219..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1EnvFromSource.js +++ /dev/null @@ -1,99 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1ConfigMapEnvSource', 'io.kubernetes.js/io.kubernetes.js.models/V1SecretEnvSource'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1ConfigMapEnvSource'), require('./V1SecretEnvSource')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1EnvFromSource = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1ConfigMapEnvSource, root.KubernetesJsClient.V1SecretEnvSource); - } -}(this, function(ApiClient, V1ConfigMapEnvSource, V1SecretEnvSource) { - 'use strict'; - - - - - /** - * The V1EnvFromSource model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1EnvFromSource - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1EnvFromSource. - * EnvFromSource represents the source of a set of ConfigMaps - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1EnvFromSource - * @class - */ - var exports = function() { - var _this = this; - - - - - }; - - /** - * Constructs a V1EnvFromSource from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1EnvFromSource} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1EnvFromSource} The populated V1EnvFromSource instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('configMapRef')) { - obj['configMapRef'] = V1ConfigMapEnvSource.constructFromObject(data['configMapRef']); - } - if (data.hasOwnProperty('prefix')) { - obj['prefix'] = ApiClient.convertToType(data['prefix'], 'String'); - } - if (data.hasOwnProperty('secretRef')) { - obj['secretRef'] = V1SecretEnvSource.constructFromObject(data['secretRef']); - } - } - return obj; - } - - /** - * The ConfigMap to select from - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1ConfigMapEnvSource} configMapRef - */ - exports.prototype['configMapRef'] = undefined; - /** - * An optional identifer to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. - * @member {String} prefix - */ - exports.prototype['prefix'] = undefined; - /** - * The Secret to select from - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1SecretEnvSource} secretRef - */ - exports.prototype['secretRef'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1EnvVar.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1EnvVar.js deleted file mode 100644 index 9a9778128e..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1EnvVar.js +++ /dev/null @@ -1,100 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1EnvVarSource'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1EnvVarSource')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1EnvVar = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1EnvVarSource); - } -}(this, function(ApiClient, V1EnvVarSource) { - 'use strict'; - - - - - /** - * The V1EnvVar model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1EnvVar - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1EnvVar. - * EnvVar represents an environment variable present in a Container. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1EnvVar - * @class - * @param name {String} Name of the environment variable. Must be a C_IDENTIFIER. - */ - var exports = function(name) { - var _this = this; - - _this['name'] = name; - - - }; - - /** - * Constructs a V1EnvVar from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1EnvVar} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1EnvVar} The populated V1EnvVar instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - } - if (data.hasOwnProperty('value')) { - obj['value'] = ApiClient.convertToType(data['value'], 'String'); - } - if (data.hasOwnProperty('valueFrom')) { - obj['valueFrom'] = V1EnvVarSource.constructFromObject(data['valueFrom']); - } - } - return obj; - } - - /** - * Name of the environment variable. Must be a C_IDENTIFIER. - * @member {String} name - */ - exports.prototype['name'] = undefined; - /** - * Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to \"\". - * @member {String} value - */ - exports.prototype['value'] = undefined; - /** - * Source for the environment variable's value. Cannot be used if value is not empty. - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1EnvVarSource} valueFrom - */ - exports.prototype['valueFrom'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1EnvVarSource.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1EnvVarSource.js deleted file mode 100644 index 855a038a78..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1EnvVarSource.js +++ /dev/null @@ -1,108 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1ConfigMapKeySelector', 'io.kubernetes.js/io.kubernetes.js.models/V1ObjectFieldSelector', 'io.kubernetes.js/io.kubernetes.js.models/V1ResourceFieldSelector', 'io.kubernetes.js/io.kubernetes.js.models/V1SecretKeySelector'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1ConfigMapKeySelector'), require('./V1ObjectFieldSelector'), require('./V1ResourceFieldSelector'), require('./V1SecretKeySelector')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1EnvVarSource = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1ConfigMapKeySelector, root.KubernetesJsClient.V1ObjectFieldSelector, root.KubernetesJsClient.V1ResourceFieldSelector, root.KubernetesJsClient.V1SecretKeySelector); - } -}(this, function(ApiClient, V1ConfigMapKeySelector, V1ObjectFieldSelector, V1ResourceFieldSelector, V1SecretKeySelector) { - 'use strict'; - - - - - /** - * The V1EnvVarSource model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1EnvVarSource - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1EnvVarSource. - * EnvVarSource represents a source for the value of an EnvVar. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1EnvVarSource - * @class - */ - var exports = function() { - var _this = this; - - - - - - }; - - /** - * Constructs a V1EnvVarSource from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1EnvVarSource} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1EnvVarSource} The populated V1EnvVarSource instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('configMapKeyRef')) { - obj['configMapKeyRef'] = V1ConfigMapKeySelector.constructFromObject(data['configMapKeyRef']); - } - if (data.hasOwnProperty('fieldRef')) { - obj['fieldRef'] = V1ObjectFieldSelector.constructFromObject(data['fieldRef']); - } - if (data.hasOwnProperty('resourceFieldRef')) { - obj['resourceFieldRef'] = V1ResourceFieldSelector.constructFromObject(data['resourceFieldRef']); - } - if (data.hasOwnProperty('secretKeyRef')) { - obj['secretKeyRef'] = V1SecretKeySelector.constructFromObject(data['secretKeyRef']); - } - } - return obj; - } - - /** - * Selects a key of a ConfigMap. - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1ConfigMapKeySelector} configMapKeyRef - */ - exports.prototype['configMapKeyRef'] = undefined; - /** - * Selects a field of the pod: supports metadata.name, metadata.namespace, metadata.labels, metadata.annotations, spec.nodeName, spec.serviceAccountName, status.podIP. - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1ObjectFieldSelector} fieldRef - */ - exports.prototype['fieldRef'] = undefined; - /** - * Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1ResourceFieldSelector} resourceFieldRef - */ - exports.prototype['resourceFieldRef'] = undefined; - /** - * Selects a key of a secret in the pod's namespace - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1SecretKeySelector} secretKeyRef - */ - exports.prototype['secretKeyRef'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1Event.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1Event.js deleted file mode 100644 index e3cf11d9f3..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1Event.js +++ /dev/null @@ -1,173 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1EventSource', 'io.kubernetes.js/io.kubernetes.js.models/V1ObjectMeta', 'io.kubernetes.js/io.kubernetes.js.models/V1ObjectReference'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1EventSource'), require('./V1ObjectMeta'), require('./V1ObjectReference')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1Event = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1EventSource, root.KubernetesJsClient.V1ObjectMeta, root.KubernetesJsClient.V1ObjectReference); - } -}(this, function(ApiClient, V1EventSource, V1ObjectMeta, V1ObjectReference) { - 'use strict'; - - - - - /** - * The V1Event model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1Event - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1Event. - * Event is a report of an event somewhere in the cluster. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1Event - * @class - * @param involvedObject {module:io.kubernetes.js/io.kubernetes.js.models/V1ObjectReference} The object that this event is about. - * @param metadata {module:io.kubernetes.js/io.kubernetes.js.models/V1ObjectMeta} Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata - */ - var exports = function(involvedObject, metadata) { - var _this = this; - - - - - _this['involvedObject'] = involvedObject; - - - - _this['metadata'] = metadata; - - - - }; - - /** - * Constructs a V1Event from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Event} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1Event} The populated V1Event instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('apiVersion')) { - obj['apiVersion'] = ApiClient.convertToType(data['apiVersion'], 'String'); - } - if (data.hasOwnProperty('count')) { - obj['count'] = ApiClient.convertToType(data['count'], 'Number'); - } - if (data.hasOwnProperty('firstTimestamp')) { - obj['firstTimestamp'] = ApiClient.convertToType(data['firstTimestamp'], 'Date'); - } - if (data.hasOwnProperty('involvedObject')) { - obj['involvedObject'] = V1ObjectReference.constructFromObject(data['involvedObject']); - } - if (data.hasOwnProperty('kind')) { - obj['kind'] = ApiClient.convertToType(data['kind'], 'String'); - } - if (data.hasOwnProperty('lastTimestamp')) { - obj['lastTimestamp'] = ApiClient.convertToType(data['lastTimestamp'], 'Date'); - } - if (data.hasOwnProperty('message')) { - obj['message'] = ApiClient.convertToType(data['message'], 'String'); - } - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = V1ObjectMeta.constructFromObject(data['metadata']); - } - if (data.hasOwnProperty('reason')) { - obj['reason'] = ApiClient.convertToType(data['reason'], 'String'); - } - if (data.hasOwnProperty('source')) { - obj['source'] = V1EventSource.constructFromObject(data['source']); - } - if (data.hasOwnProperty('type')) { - obj['type'] = ApiClient.convertToType(data['type'], 'String'); - } - } - return obj; - } - - /** - * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - * @member {String} apiVersion - */ - exports.prototype['apiVersion'] = undefined; - /** - * The number of times this event has occurred. - * @member {Number} count - */ - exports.prototype['count'] = undefined; - /** - * The time at which the event was first recorded. (Time of server receipt is in TypeMeta.) - * @member {Date} firstTimestamp - */ - exports.prototype['firstTimestamp'] = undefined; - /** - * The object that this event is about. - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1ObjectReference} involvedObject - */ - exports.prototype['involvedObject'] = undefined; - /** - * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - * @member {String} kind - */ - exports.prototype['kind'] = undefined; - /** - * The time at which the most recent occurrence of this event was recorded. - * @member {Date} lastTimestamp - */ - exports.prototype['lastTimestamp'] = undefined; - /** - * A human-readable description of the status of this operation. - * @member {String} message - */ - exports.prototype['message'] = undefined; - /** - * Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1ObjectMeta} metadata - */ - exports.prototype['metadata'] = undefined; - /** - * This should be a short, machine understandable string that gives the reason for the transition into the object's current status. - * @member {String} reason - */ - exports.prototype['reason'] = undefined; - /** - * The component reporting this event. Should be a short machine understandable string. - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1EventSource} source - */ - exports.prototype['source'] = undefined; - /** - * Type of this event (Normal, Warning), new types could be added in the future - * @member {String} type - */ - exports.prototype['type'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1EventList.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1EventList.js deleted file mode 100644 index 1039ef7ec4..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1EventList.js +++ /dev/null @@ -1,109 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1Event', 'io.kubernetes.js/io.kubernetes.js.models/V1ListMeta'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1Event'), require('./V1ListMeta')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1EventList = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1Event, root.KubernetesJsClient.V1ListMeta); - } -}(this, function(ApiClient, V1Event, V1ListMeta) { - 'use strict'; - - - - - /** - * The V1EventList model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1EventList - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1EventList. - * EventList is a list of events. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1EventList - * @class - * @param items {Array.} List of events - */ - var exports = function(items) { - var _this = this; - - - _this['items'] = items; - - - }; - - /** - * Constructs a V1EventList from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1EventList} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1EventList} The populated V1EventList instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('apiVersion')) { - obj['apiVersion'] = ApiClient.convertToType(data['apiVersion'], 'String'); - } - if (data.hasOwnProperty('items')) { - obj['items'] = ApiClient.convertToType(data['items'], [V1Event]); - } - if (data.hasOwnProperty('kind')) { - obj['kind'] = ApiClient.convertToType(data['kind'], 'String'); - } - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = V1ListMeta.constructFromObject(data['metadata']); - } - } - return obj; - } - - /** - * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - * @member {String} apiVersion - */ - exports.prototype['apiVersion'] = undefined; - /** - * List of events - * @member {Array.} items - */ - exports.prototype['items'] = undefined; - /** - * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - * @member {String} kind - */ - exports.prototype['kind'] = undefined; - /** - * Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1ListMeta} metadata - */ - exports.prototype['metadata'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1EventSource.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1EventSource.js deleted file mode 100644 index d8fa75fa72..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1EventSource.js +++ /dev/null @@ -1,90 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1EventSource = factory(root.KubernetesJsClient.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - - /** - * The V1EventSource model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1EventSource - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1EventSource. - * EventSource contains information for an event. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1EventSource - * @class - */ - var exports = function() { - var _this = this; - - - - }; - - /** - * Constructs a V1EventSource from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1EventSource} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1EventSource} The populated V1EventSource instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('component')) { - obj['component'] = ApiClient.convertToType(data['component'], 'String'); - } - if (data.hasOwnProperty('host')) { - obj['host'] = ApiClient.convertToType(data['host'], 'String'); - } - } - return obj; - } - - /** - * Component from which the event is generated. - * @member {String} component - */ - exports.prototype['component'] = undefined; - /** - * Node name on which the event is generated. - * @member {String} host - */ - exports.prototype['host'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1ExecAction.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1ExecAction.js deleted file mode 100644 index 322e1cf8d3..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1ExecAction.js +++ /dev/null @@ -1,81 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1ExecAction = factory(root.KubernetesJsClient.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - - /** - * The V1ExecAction model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1ExecAction - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1ExecAction. - * ExecAction describes a \"run in container\" action. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1ExecAction - * @class - */ - var exports = function() { - var _this = this; - - - }; - - /** - * Constructs a V1ExecAction from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1ExecAction} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1ExecAction} The populated V1ExecAction instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('command')) { - obj['command'] = ApiClient.convertToType(data['command'], ['String']); - } - } - return obj; - } - - /** - * Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. - * @member {Array.} command - */ - exports.prototype['command'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1FCVolumeSource.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1FCVolumeSource.js deleted file mode 100644 index 77646aa242..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1FCVolumeSource.js +++ /dev/null @@ -1,110 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1FCVolumeSource = factory(root.KubernetesJsClient.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - - /** - * The V1FCVolumeSource model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1FCVolumeSource - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1FCVolumeSource. - * Represents a Fibre Channel volume. Fibre Channel volumes can only be mounted as read/write once. Fibre Channel volumes support ownership management and SELinux relabeling. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1FCVolumeSource - * @class - * @param lun {Number} Required: FC target lun number - * @param targetWWNs {Array.} Required: FC target worldwide names (WWNs) - */ - var exports = function(lun, targetWWNs) { - var _this = this; - - - _this['lun'] = lun; - - _this['targetWWNs'] = targetWWNs; - }; - - /** - * Constructs a V1FCVolumeSource from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1FCVolumeSource} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1FCVolumeSource} The populated V1FCVolumeSource instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('fsType')) { - obj['fsType'] = ApiClient.convertToType(data['fsType'], 'String'); - } - if (data.hasOwnProperty('lun')) { - obj['lun'] = ApiClient.convertToType(data['lun'], 'Number'); - } - if (data.hasOwnProperty('readOnly')) { - obj['readOnly'] = ApiClient.convertToType(data['readOnly'], 'Boolean'); - } - if (data.hasOwnProperty('targetWWNs')) { - obj['targetWWNs'] = ApiClient.convertToType(data['targetWWNs'], ['String']); - } - } - return obj; - } - - /** - * Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. - * @member {String} fsType - */ - exports.prototype['fsType'] = undefined; - /** - * Required: FC target lun number - * @member {Number} lun - */ - exports.prototype['lun'] = undefined; - /** - * Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * @member {Boolean} readOnly - */ - exports.prototype['readOnly'] = undefined; - /** - * Required: FC target worldwide names (WWNs) - * @member {Array.} targetWWNs - */ - exports.prototype['targetWWNs'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1FlexVolumeSource.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1FlexVolumeSource.js deleted file mode 100644 index 2f5b1ee097..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1FlexVolumeSource.js +++ /dev/null @@ -1,118 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1LocalObjectReference'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1LocalObjectReference')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1FlexVolumeSource = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1LocalObjectReference); - } -}(this, function(ApiClient, V1LocalObjectReference) { - 'use strict'; - - - - - /** - * The V1FlexVolumeSource model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1FlexVolumeSource - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1FlexVolumeSource. - * FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. This is an alpha feature and may change in future. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1FlexVolumeSource - * @class - * @param driver {String} Driver is the name of the driver to use for this volume. - */ - var exports = function(driver) { - var _this = this; - - _this['driver'] = driver; - - - - - }; - - /** - * Constructs a V1FlexVolumeSource from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1FlexVolumeSource} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1FlexVolumeSource} The populated V1FlexVolumeSource instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('driver')) { - obj['driver'] = ApiClient.convertToType(data['driver'], 'String'); - } - if (data.hasOwnProperty('fsType')) { - obj['fsType'] = ApiClient.convertToType(data['fsType'], 'String'); - } - if (data.hasOwnProperty('options')) { - obj['options'] = ApiClient.convertToType(data['options'], {'String': 'String'}); - } - if (data.hasOwnProperty('readOnly')) { - obj['readOnly'] = ApiClient.convertToType(data['readOnly'], 'Boolean'); - } - if (data.hasOwnProperty('secretRef')) { - obj['secretRef'] = V1LocalObjectReference.constructFromObject(data['secretRef']); - } - } - return obj; - } - - /** - * Driver is the name of the driver to use for this volume. - * @member {String} driver - */ - exports.prototype['driver'] = undefined; - /** - * Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". The default filesystem depends on FlexVolume script. - * @member {String} fsType - */ - exports.prototype['fsType'] = undefined; - /** - * Optional: Extra command options if any. - * @member {Object.} options - */ - exports.prototype['options'] = undefined; - /** - * Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * @member {Boolean} readOnly - */ - exports.prototype['readOnly'] = undefined; - /** - * Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1LocalObjectReference} secretRef - */ - exports.prototype['secretRef'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1FlockerVolumeSource.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1FlockerVolumeSource.js deleted file mode 100644 index af055b6946..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1FlockerVolumeSource.js +++ /dev/null @@ -1,90 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1FlockerVolumeSource = factory(root.KubernetesJsClient.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - - /** - * The V1FlockerVolumeSource model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1FlockerVolumeSource - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1FlockerVolumeSource. - * Represents a Flocker volume mounted by the Flocker agent. One and only one of datasetName and datasetUUID should be set. Flocker volumes do not support ownership management or SELinux relabeling. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1FlockerVolumeSource - * @class - */ - var exports = function() { - var _this = this; - - - - }; - - /** - * Constructs a V1FlockerVolumeSource from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1FlockerVolumeSource} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1FlockerVolumeSource} The populated V1FlockerVolumeSource instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('datasetName')) { - obj['datasetName'] = ApiClient.convertToType(data['datasetName'], 'String'); - } - if (data.hasOwnProperty('datasetUUID')) { - obj['datasetUUID'] = ApiClient.convertToType(data['datasetUUID'], 'String'); - } - } - return obj; - } - - /** - * Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated - * @member {String} datasetName - */ - exports.prototype['datasetName'] = undefined; - /** - * UUID of the dataset. This is unique identifier of a Flocker dataset - * @member {String} datasetUUID - */ - exports.prototype['datasetUUID'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1GCEPersistentDiskVolumeSource.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1GCEPersistentDiskVolumeSource.js deleted file mode 100644 index 904549fe2f..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1GCEPersistentDiskVolumeSource.js +++ /dev/null @@ -1,109 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1GCEPersistentDiskVolumeSource = factory(root.KubernetesJsClient.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - - /** - * The V1GCEPersistentDiskVolumeSource model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1GCEPersistentDiskVolumeSource - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1GCEPersistentDiskVolumeSource. - * Represents a Persistent Disk resource in Google Compute Engine. A GCE PD must exist before mounting to a container. The disk must also be in the same GCE project and zone as the kubelet. A GCE PD can only be mounted as read/write once or read-only many times. GCE PDs support ownership management and SELinux relabeling. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1GCEPersistentDiskVolumeSource - * @class - * @param pdName {String} Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: http://kubernetes.io/docs/user-guide/volumes#gcepersistentdisk - */ - var exports = function(pdName) { - var _this = this; - - - - _this['pdName'] = pdName; - - }; - - /** - * Constructs a V1GCEPersistentDiskVolumeSource from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1GCEPersistentDiskVolumeSource} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1GCEPersistentDiskVolumeSource} The populated V1GCEPersistentDiskVolumeSource instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('fsType')) { - obj['fsType'] = ApiClient.convertToType(data['fsType'], 'String'); - } - if (data.hasOwnProperty('partition')) { - obj['partition'] = ApiClient.convertToType(data['partition'], 'Number'); - } - if (data.hasOwnProperty('pdName')) { - obj['pdName'] = ApiClient.convertToType(data['pdName'], 'String'); - } - if (data.hasOwnProperty('readOnly')) { - obj['readOnly'] = ApiClient.convertToType(data['readOnly'], 'Boolean'); - } - } - return obj; - } - - /** - * Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: http://kubernetes.io/docs/user-guide/volumes#gcepersistentdisk - * @member {String} fsType - */ - exports.prototype['fsType'] = undefined; - /** - * The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as \"1\". Similarly, the volume partition for /dev/sda is \"0\" (or you can leave the property empty). More info: http://kubernetes.io/docs/user-guide/volumes#gcepersistentdisk - * @member {Number} partition - */ - exports.prototype['partition'] = undefined; - /** - * Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: http://kubernetes.io/docs/user-guide/volumes#gcepersistentdisk - * @member {String} pdName - */ - exports.prototype['pdName'] = undefined; - /** - * ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: http://kubernetes.io/docs/user-guide/volumes#gcepersistentdisk - * @member {Boolean} readOnly - */ - exports.prototype['readOnly'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1GitRepoVolumeSource.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1GitRepoVolumeSource.js deleted file mode 100644 index 088c6276c7..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1GitRepoVolumeSource.js +++ /dev/null @@ -1,100 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1GitRepoVolumeSource = factory(root.KubernetesJsClient.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - - /** - * The V1GitRepoVolumeSource model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1GitRepoVolumeSource - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1GitRepoVolumeSource. - * Represents a volume that is populated with the contents of a git repository. Git repo volumes do not support ownership management. Git repo volumes support SELinux relabeling. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1GitRepoVolumeSource - * @class - * @param repository {String} Repository URL - */ - var exports = function(repository) { - var _this = this; - - - _this['repository'] = repository; - - }; - - /** - * Constructs a V1GitRepoVolumeSource from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1GitRepoVolumeSource} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1GitRepoVolumeSource} The populated V1GitRepoVolumeSource instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('directory')) { - obj['directory'] = ApiClient.convertToType(data['directory'], 'String'); - } - if (data.hasOwnProperty('repository')) { - obj['repository'] = ApiClient.convertToType(data['repository'], 'String'); - } - if (data.hasOwnProperty('revision')) { - obj['revision'] = ApiClient.convertToType(data['revision'], 'String'); - } - } - return obj; - } - - /** - * Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. - * @member {String} directory - */ - exports.prototype['directory'] = undefined; - /** - * Repository URL - * @member {String} repository - */ - exports.prototype['repository'] = undefined; - /** - * Commit hash for the specified revision. - * @member {String} revision - */ - exports.prototype['revision'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1GlusterfsVolumeSource.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1GlusterfsVolumeSource.js deleted file mode 100644 index 45199e30ce..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1GlusterfsVolumeSource.js +++ /dev/null @@ -1,101 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1GlusterfsVolumeSource = factory(root.KubernetesJsClient.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - - /** - * The V1GlusterfsVolumeSource model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1GlusterfsVolumeSource - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1GlusterfsVolumeSource. - * Represents a Glusterfs mount that lasts the lifetime of a pod. Glusterfs volumes do not support ownership management or SELinux relabeling. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1GlusterfsVolumeSource - * @class - * @param endpoints {String} EndpointsName is the endpoint name that details Glusterfs topology. More info: http://releases.k8s.io/HEAD/examples/volumes/glusterfs/README.md#create-a-pod - * @param path {String} Path is the Glusterfs volume path. More info: http://releases.k8s.io/HEAD/examples/volumes/glusterfs/README.md#create-a-pod - */ - var exports = function(endpoints, path) { - var _this = this; - - _this['endpoints'] = endpoints; - _this['path'] = path; - - }; - - /** - * Constructs a V1GlusterfsVolumeSource from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1GlusterfsVolumeSource} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1GlusterfsVolumeSource} The populated V1GlusterfsVolumeSource instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('endpoints')) { - obj['endpoints'] = ApiClient.convertToType(data['endpoints'], 'String'); - } - if (data.hasOwnProperty('path')) { - obj['path'] = ApiClient.convertToType(data['path'], 'String'); - } - if (data.hasOwnProperty('readOnly')) { - obj['readOnly'] = ApiClient.convertToType(data['readOnly'], 'Boolean'); - } - } - return obj; - } - - /** - * EndpointsName is the endpoint name that details Glusterfs topology. More info: http://releases.k8s.io/HEAD/examples/volumes/glusterfs/README.md#create-a-pod - * @member {String} endpoints - */ - exports.prototype['endpoints'] = undefined; - /** - * Path is the Glusterfs volume path. More info: http://releases.k8s.io/HEAD/examples/volumes/glusterfs/README.md#create-a-pod - * @member {String} path - */ - exports.prototype['path'] = undefined; - /** - * ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: http://releases.k8s.io/HEAD/examples/volumes/glusterfs/README.md#create-a-pod - * @member {Boolean} readOnly - */ - exports.prototype['readOnly'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1GroupVersionForDiscovery.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1GroupVersionForDiscovery.js deleted file mode 100644 index 7e16044bbb..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1GroupVersionForDiscovery.js +++ /dev/null @@ -1,92 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1GroupVersionForDiscovery = factory(root.KubernetesJsClient.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - - /** - * The V1GroupVersionForDiscovery model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1GroupVersionForDiscovery - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1GroupVersionForDiscovery. - * GroupVersion contains the \"group/version\" and \"version\" string of a version. It is made a struct to keep extensibility. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1GroupVersionForDiscovery - * @class - * @param groupVersion {String} groupVersion specifies the API group and version in the form \"group/version\" - * @param version {String} version specifies the version in the form of \"version\". This is to save the clients the trouble of splitting the GroupVersion. - */ - var exports = function(groupVersion, version) { - var _this = this; - - _this['groupVersion'] = groupVersion; - _this['version'] = version; - }; - - /** - * Constructs a V1GroupVersionForDiscovery from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1GroupVersionForDiscovery} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1GroupVersionForDiscovery} The populated V1GroupVersionForDiscovery instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('groupVersion')) { - obj['groupVersion'] = ApiClient.convertToType(data['groupVersion'], 'String'); - } - if (data.hasOwnProperty('version')) { - obj['version'] = ApiClient.convertToType(data['version'], 'String'); - } - } - return obj; - } - - /** - * groupVersion specifies the API group and version in the form \"group/version\" - * @member {String} groupVersion - */ - exports.prototype['groupVersion'] = undefined; - /** - * version specifies the version in the form of \"version\". This is to save the clients the trouble of splitting the GroupVersion. - * @member {String} version - */ - exports.prototype['version'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1HTTPGetAction.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1HTTPGetAction.js deleted file mode 100644 index 81ba9d18eb..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1HTTPGetAction.js +++ /dev/null @@ -1,118 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1HTTPHeader'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1HTTPHeader')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1HTTPGetAction = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1HTTPHeader); - } -}(this, function(ApiClient, V1HTTPHeader) { - 'use strict'; - - - - - /** - * The V1HTTPGetAction model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1HTTPGetAction - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1HTTPGetAction. - * HTTPGetAction describes an action based on HTTP Get requests. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1HTTPGetAction - * @class - * @param port {String} Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - */ - var exports = function(port) { - var _this = this; - - - - - _this['port'] = port; - - }; - - /** - * Constructs a V1HTTPGetAction from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1HTTPGetAction} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1HTTPGetAction} The populated V1HTTPGetAction instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('host')) { - obj['host'] = ApiClient.convertToType(data['host'], 'String'); - } - if (data.hasOwnProperty('httpHeaders')) { - obj['httpHeaders'] = ApiClient.convertToType(data['httpHeaders'], [V1HTTPHeader]); - } - if (data.hasOwnProperty('path')) { - obj['path'] = ApiClient.convertToType(data['path'], 'String'); - } - if (data.hasOwnProperty('port')) { - obj['port'] = ApiClient.convertToType(data['port'], 'String'); - } - if (data.hasOwnProperty('scheme')) { - obj['scheme'] = ApiClient.convertToType(data['scheme'], 'String'); - } - } - return obj; - } - - /** - * Host name to connect to, defaults to the pod IP. You probably want to set \"Host\" in httpHeaders instead. - * @member {String} host - */ - exports.prototype['host'] = undefined; - /** - * Custom headers to set in the request. HTTP allows repeated headers. - * @member {Array.} httpHeaders - */ - exports.prototype['httpHeaders'] = undefined; - /** - * Path to access on the HTTP server. - * @member {String} path - */ - exports.prototype['path'] = undefined; - /** - * Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - * @member {String} port - */ - exports.prototype['port'] = undefined; - /** - * Scheme to use for connecting to the host. Defaults to HTTP. - * @member {String} scheme - */ - exports.prototype['scheme'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1HTTPHeader.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1HTTPHeader.js deleted file mode 100644 index 9b66f84e1c..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1HTTPHeader.js +++ /dev/null @@ -1,92 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1HTTPHeader = factory(root.KubernetesJsClient.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - - /** - * The V1HTTPHeader model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1HTTPHeader - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1HTTPHeader. - * HTTPHeader describes a custom header to be used in HTTP probes - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1HTTPHeader - * @class - * @param name {String} The header field name - * @param value {String} The header field value - */ - var exports = function(name, value) { - var _this = this; - - _this['name'] = name; - _this['value'] = value; - }; - - /** - * Constructs a V1HTTPHeader from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1HTTPHeader} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1HTTPHeader} The populated V1HTTPHeader instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - } - if (data.hasOwnProperty('value')) { - obj['value'] = ApiClient.convertToType(data['value'], 'String'); - } - } - return obj; - } - - /** - * The header field name - * @member {String} name - */ - exports.prototype['name'] = undefined; - /** - * The header field value - * @member {String} value - */ - exports.prototype['value'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1Handler.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1Handler.js deleted file mode 100644 index ad92d6962c..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1Handler.js +++ /dev/null @@ -1,99 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1ExecAction', 'io.kubernetes.js/io.kubernetes.js.models/V1HTTPGetAction', 'io.kubernetes.js/io.kubernetes.js.models/V1TCPSocketAction'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1ExecAction'), require('./V1HTTPGetAction'), require('./V1TCPSocketAction')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1Handler = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1ExecAction, root.KubernetesJsClient.V1HTTPGetAction, root.KubernetesJsClient.V1TCPSocketAction); - } -}(this, function(ApiClient, V1ExecAction, V1HTTPGetAction, V1TCPSocketAction) { - 'use strict'; - - - - - /** - * The V1Handler model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1Handler - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1Handler. - * Handler defines a specific action that should be taken - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1Handler - * @class - */ - var exports = function() { - var _this = this; - - - - - }; - - /** - * Constructs a V1Handler from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Handler} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1Handler} The populated V1Handler instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('exec')) { - obj['exec'] = V1ExecAction.constructFromObject(data['exec']); - } - if (data.hasOwnProperty('httpGet')) { - obj['httpGet'] = V1HTTPGetAction.constructFromObject(data['httpGet']); - } - if (data.hasOwnProperty('tcpSocket')) { - obj['tcpSocket'] = V1TCPSocketAction.constructFromObject(data['tcpSocket']); - } - } - return obj; - } - - /** - * One and only one of the following should be specified. Exec specifies the action to take. - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1ExecAction} exec - */ - exports.prototype['exec'] = undefined; - /** - * HTTPGet specifies the http request to perform. - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1HTTPGetAction} httpGet - */ - exports.prototype['httpGet'] = undefined; - /** - * TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1TCPSocketAction} tcpSocket - */ - exports.prototype['tcpSocket'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1HorizontalPodAutoscaler.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1HorizontalPodAutoscaler.js deleted file mode 100644 index 8098923486..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1HorizontalPodAutoscaler.js +++ /dev/null @@ -1,117 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1HorizontalPodAutoscalerSpec', 'io.kubernetes.js/io.kubernetes.js.models/V1HorizontalPodAutoscalerStatus', 'io.kubernetes.js/io.kubernetes.js.models/V1ObjectMeta'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1HorizontalPodAutoscalerSpec'), require('./V1HorizontalPodAutoscalerStatus'), require('./V1ObjectMeta')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1HorizontalPodAutoscaler = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1HorizontalPodAutoscalerSpec, root.KubernetesJsClient.V1HorizontalPodAutoscalerStatus, root.KubernetesJsClient.V1ObjectMeta); - } -}(this, function(ApiClient, V1HorizontalPodAutoscalerSpec, V1HorizontalPodAutoscalerStatus, V1ObjectMeta) { - 'use strict'; - - - - - /** - * The V1HorizontalPodAutoscaler model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1HorizontalPodAutoscaler - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1HorizontalPodAutoscaler. - * configuration of a horizontal pod autoscaler. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1HorizontalPodAutoscaler - * @class - */ - var exports = function() { - var _this = this; - - - - - - - }; - - /** - * Constructs a V1HorizontalPodAutoscaler from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1HorizontalPodAutoscaler} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1HorizontalPodAutoscaler} The populated V1HorizontalPodAutoscaler instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('apiVersion')) { - obj['apiVersion'] = ApiClient.convertToType(data['apiVersion'], 'String'); - } - if (data.hasOwnProperty('kind')) { - obj['kind'] = ApiClient.convertToType(data['kind'], 'String'); - } - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = V1ObjectMeta.constructFromObject(data['metadata']); - } - if (data.hasOwnProperty('spec')) { - obj['spec'] = V1HorizontalPodAutoscalerSpec.constructFromObject(data['spec']); - } - if (data.hasOwnProperty('status')) { - obj['status'] = V1HorizontalPodAutoscalerStatus.constructFromObject(data['status']); - } - } - return obj; - } - - /** - * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - * @member {String} apiVersion - */ - exports.prototype['apiVersion'] = undefined; - /** - * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - * @member {String} kind - */ - exports.prototype['kind'] = undefined; - /** - * Standard object metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1ObjectMeta} metadata - */ - exports.prototype['metadata'] = undefined; - /** - * behaviour of autoscaler. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status. - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1HorizontalPodAutoscalerSpec} spec - */ - exports.prototype['spec'] = undefined; - /** - * current information about the autoscaler. - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1HorizontalPodAutoscalerStatus} status - */ - exports.prototype['status'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1HorizontalPodAutoscalerList.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1HorizontalPodAutoscalerList.js deleted file mode 100644 index 661a63287f..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1HorizontalPodAutoscalerList.js +++ /dev/null @@ -1,109 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1HorizontalPodAutoscaler', 'io.kubernetes.js/io.kubernetes.js.models/V1ListMeta'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1HorizontalPodAutoscaler'), require('./V1ListMeta')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1HorizontalPodAutoscalerList = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1HorizontalPodAutoscaler, root.KubernetesJsClient.V1ListMeta); - } -}(this, function(ApiClient, V1HorizontalPodAutoscaler, V1ListMeta) { - 'use strict'; - - - - - /** - * The V1HorizontalPodAutoscalerList model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1HorizontalPodAutoscalerList - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1HorizontalPodAutoscalerList. - * list of horizontal pod autoscaler objects. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1HorizontalPodAutoscalerList - * @class - * @param items {Array.} list of horizontal pod autoscaler objects. - */ - var exports = function(items) { - var _this = this; - - - _this['items'] = items; - - - }; - - /** - * Constructs a V1HorizontalPodAutoscalerList from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1HorizontalPodAutoscalerList} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1HorizontalPodAutoscalerList} The populated V1HorizontalPodAutoscalerList instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('apiVersion')) { - obj['apiVersion'] = ApiClient.convertToType(data['apiVersion'], 'String'); - } - if (data.hasOwnProperty('items')) { - obj['items'] = ApiClient.convertToType(data['items'], [V1HorizontalPodAutoscaler]); - } - if (data.hasOwnProperty('kind')) { - obj['kind'] = ApiClient.convertToType(data['kind'], 'String'); - } - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = V1ListMeta.constructFromObject(data['metadata']); - } - } - return obj; - } - - /** - * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - * @member {String} apiVersion - */ - exports.prototype['apiVersion'] = undefined; - /** - * list of horizontal pod autoscaler objects. - * @member {Array.} items - */ - exports.prototype['items'] = undefined; - /** - * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - * @member {String} kind - */ - exports.prototype['kind'] = undefined; - /** - * Standard list metadata. - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1ListMeta} metadata - */ - exports.prototype['metadata'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1HorizontalPodAutoscalerSpec.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1HorizontalPodAutoscalerSpec.js deleted file mode 100644 index 7a8f7e7e83..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1HorizontalPodAutoscalerSpec.js +++ /dev/null @@ -1,110 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1CrossVersionObjectReference'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1CrossVersionObjectReference')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1HorizontalPodAutoscalerSpec = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1CrossVersionObjectReference); - } -}(this, function(ApiClient, V1CrossVersionObjectReference) { - 'use strict'; - - - - - /** - * The V1HorizontalPodAutoscalerSpec model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1HorizontalPodAutoscalerSpec - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1HorizontalPodAutoscalerSpec. - * specification of a horizontal pod autoscaler. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1HorizontalPodAutoscalerSpec - * @class - * @param maxReplicas {Number} upper limit for the number of pods that can be set by the autoscaler; cannot be smaller than MinReplicas. - * @param scaleTargetRef {module:io.kubernetes.js/io.kubernetes.js.models/V1CrossVersionObjectReference} reference to scaled resource; horizontal pod autoscaler will learn the current resource consumption and will set the desired number of pods by using its Scale subresource. - */ - var exports = function(maxReplicas, scaleTargetRef) { - var _this = this; - - _this['maxReplicas'] = maxReplicas; - - _this['scaleTargetRef'] = scaleTargetRef; - - }; - - /** - * Constructs a V1HorizontalPodAutoscalerSpec from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1HorizontalPodAutoscalerSpec} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1HorizontalPodAutoscalerSpec} The populated V1HorizontalPodAutoscalerSpec instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('maxReplicas')) { - obj['maxReplicas'] = ApiClient.convertToType(data['maxReplicas'], 'Number'); - } - if (data.hasOwnProperty('minReplicas')) { - obj['minReplicas'] = ApiClient.convertToType(data['minReplicas'], 'Number'); - } - if (data.hasOwnProperty('scaleTargetRef')) { - obj['scaleTargetRef'] = V1CrossVersionObjectReference.constructFromObject(data['scaleTargetRef']); - } - if (data.hasOwnProperty('targetCPUUtilizationPercentage')) { - obj['targetCPUUtilizationPercentage'] = ApiClient.convertToType(data['targetCPUUtilizationPercentage'], 'Number'); - } - } - return obj; - } - - /** - * upper limit for the number of pods that can be set by the autoscaler; cannot be smaller than MinReplicas. - * @member {Number} maxReplicas - */ - exports.prototype['maxReplicas'] = undefined; - /** - * lower limit for the number of pods that can be set by the autoscaler, default 1. - * @member {Number} minReplicas - */ - exports.prototype['minReplicas'] = undefined; - /** - * reference to scaled resource; horizontal pod autoscaler will learn the current resource consumption and will set the desired number of pods by using its Scale subresource. - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1CrossVersionObjectReference} scaleTargetRef - */ - exports.prototype['scaleTargetRef'] = undefined; - /** - * target average CPU utilization (represented as a percentage of requested CPU) over all the pods; if not specified the default autoscaling policy will be used. - * @member {Number} targetCPUUtilizationPercentage - */ - exports.prototype['targetCPUUtilizationPercentage'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1HorizontalPodAutoscalerStatus.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1HorizontalPodAutoscalerStatus.js deleted file mode 100644 index 1093e85a15..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1HorizontalPodAutoscalerStatus.js +++ /dev/null @@ -1,119 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1HorizontalPodAutoscalerStatus = factory(root.KubernetesJsClient.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - - /** - * The V1HorizontalPodAutoscalerStatus model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1HorizontalPodAutoscalerStatus - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1HorizontalPodAutoscalerStatus. - * current status of a horizontal pod autoscaler - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1HorizontalPodAutoscalerStatus - * @class - * @param currentReplicas {Number} current number of replicas of pods managed by this autoscaler. - * @param desiredReplicas {Number} desired number of replicas of pods managed by this autoscaler. - */ - var exports = function(currentReplicas, desiredReplicas) { - var _this = this; - - - _this['currentReplicas'] = currentReplicas; - _this['desiredReplicas'] = desiredReplicas; - - - }; - - /** - * Constructs a V1HorizontalPodAutoscalerStatus from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1HorizontalPodAutoscalerStatus} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1HorizontalPodAutoscalerStatus} The populated V1HorizontalPodAutoscalerStatus instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('currentCPUUtilizationPercentage')) { - obj['currentCPUUtilizationPercentage'] = ApiClient.convertToType(data['currentCPUUtilizationPercentage'], 'Number'); - } - if (data.hasOwnProperty('currentReplicas')) { - obj['currentReplicas'] = ApiClient.convertToType(data['currentReplicas'], 'Number'); - } - if (data.hasOwnProperty('desiredReplicas')) { - obj['desiredReplicas'] = ApiClient.convertToType(data['desiredReplicas'], 'Number'); - } - if (data.hasOwnProperty('lastScaleTime')) { - obj['lastScaleTime'] = ApiClient.convertToType(data['lastScaleTime'], 'Date'); - } - if (data.hasOwnProperty('observedGeneration')) { - obj['observedGeneration'] = ApiClient.convertToType(data['observedGeneration'], 'Number'); - } - } - return obj; - } - - /** - * current average CPU utilization over all pods, represented as a percentage of requested CPU, e.g. 70 means that an average pod is using now 70% of its requested CPU. - * @member {Number} currentCPUUtilizationPercentage - */ - exports.prototype['currentCPUUtilizationPercentage'] = undefined; - /** - * current number of replicas of pods managed by this autoscaler. - * @member {Number} currentReplicas - */ - exports.prototype['currentReplicas'] = undefined; - /** - * desired number of replicas of pods managed by this autoscaler. - * @member {Number} desiredReplicas - */ - exports.prototype['desiredReplicas'] = undefined; - /** - * last time the HorizontalPodAutoscaler scaled the number of pods; used by the autoscaler to control how often the number of pods is changed. - * @member {Date} lastScaleTime - */ - exports.prototype['lastScaleTime'] = undefined; - /** - * most recent generation observed by this autoscaler. - * @member {Number} observedGeneration - */ - exports.prototype['observedGeneration'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1HostPathVolumeSource.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1HostPathVolumeSource.js deleted file mode 100644 index 2c3a04e8ab..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1HostPathVolumeSource.js +++ /dev/null @@ -1,82 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1HostPathVolumeSource = factory(root.KubernetesJsClient.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - - /** - * The V1HostPathVolumeSource model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1HostPathVolumeSource - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1HostPathVolumeSource. - * Represents a host path mapped into a pod. Host path volumes do not support ownership management or SELinux relabeling. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1HostPathVolumeSource - * @class - * @param path {String} Path of the directory on the host. More info: http://kubernetes.io/docs/user-guide/volumes#hostpath - */ - var exports = function(path) { - var _this = this; - - _this['path'] = path; - }; - - /** - * Constructs a V1HostPathVolumeSource from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1HostPathVolumeSource} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1HostPathVolumeSource} The populated V1HostPathVolumeSource instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('path')) { - obj['path'] = ApiClient.convertToType(data['path'], 'String'); - } - } - return obj; - } - - /** - * Path of the directory on the host. More info: http://kubernetes.io/docs/user-guide/volumes#hostpath - * @member {String} path - */ - exports.prototype['path'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1ISCSIVolumeSource.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1ISCSIVolumeSource.js deleted file mode 100644 index 6562966fac..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1ISCSIVolumeSource.js +++ /dev/null @@ -1,138 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1ISCSIVolumeSource = factory(root.KubernetesJsClient.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - - /** - * The V1ISCSIVolumeSource model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1ISCSIVolumeSource - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1ISCSIVolumeSource. - * Represents an ISCSI disk. ISCSI volumes can only be mounted as read/write once. ISCSI volumes support ownership management and SELinux relabeling. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1ISCSIVolumeSource - * @class - * @param iqn {String} Target iSCSI Qualified Name. - * @param lun {Number} iSCSI target lun number. - * @param targetPortal {String} iSCSI target portal. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - */ - var exports = function(iqn, lun, targetPortal) { - var _this = this; - - - _this['iqn'] = iqn; - - _this['lun'] = lun; - - - _this['targetPortal'] = targetPortal; - }; - - /** - * Constructs a V1ISCSIVolumeSource from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1ISCSIVolumeSource} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1ISCSIVolumeSource} The populated V1ISCSIVolumeSource instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('fsType')) { - obj['fsType'] = ApiClient.convertToType(data['fsType'], 'String'); - } - if (data.hasOwnProperty('iqn')) { - obj['iqn'] = ApiClient.convertToType(data['iqn'], 'String'); - } - if (data.hasOwnProperty('iscsiInterface')) { - obj['iscsiInterface'] = ApiClient.convertToType(data['iscsiInterface'], 'String'); - } - if (data.hasOwnProperty('lun')) { - obj['lun'] = ApiClient.convertToType(data['lun'], 'Number'); - } - if (data.hasOwnProperty('portals')) { - obj['portals'] = ApiClient.convertToType(data['portals'], ['String']); - } - if (data.hasOwnProperty('readOnly')) { - obj['readOnly'] = ApiClient.convertToType(data['readOnly'], 'Boolean'); - } - if (data.hasOwnProperty('targetPortal')) { - obj['targetPortal'] = ApiClient.convertToType(data['targetPortal'], 'String'); - } - } - return obj; - } - - /** - * Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: http://kubernetes.io/docs/user-guide/volumes#iscsi - * @member {String} fsType - */ - exports.prototype['fsType'] = undefined; - /** - * Target iSCSI Qualified Name. - * @member {String} iqn - */ - exports.prototype['iqn'] = undefined; - /** - * Optional: Defaults to 'default' (tcp). iSCSI interface name that uses an iSCSI transport. - * @member {String} iscsiInterface - */ - exports.prototype['iscsiInterface'] = undefined; - /** - * iSCSI target lun number. - * @member {Number} lun - */ - exports.prototype['lun'] = undefined; - /** - * iSCSI target portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - * @member {Array.} portals - */ - exports.prototype['portals'] = undefined; - /** - * ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. - * @member {Boolean} readOnly - */ - exports.prototype['readOnly'] = undefined; - /** - * iSCSI target portal. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - * @member {String} targetPortal - */ - exports.prototype['targetPortal'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1Job.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1Job.js deleted file mode 100644 index ca17bba4fb..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1Job.js +++ /dev/null @@ -1,117 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1JobSpec', 'io.kubernetes.js/io.kubernetes.js.models/V1JobStatus', 'io.kubernetes.js/io.kubernetes.js.models/V1ObjectMeta'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1JobSpec'), require('./V1JobStatus'), require('./V1ObjectMeta')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1Job = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1JobSpec, root.KubernetesJsClient.V1JobStatus, root.KubernetesJsClient.V1ObjectMeta); - } -}(this, function(ApiClient, V1JobSpec, V1JobStatus, V1ObjectMeta) { - 'use strict'; - - - - - /** - * The V1Job model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1Job - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1Job. - * Job represents the configuration of a single job. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1Job - * @class - */ - var exports = function() { - var _this = this; - - - - - - - }; - - /** - * Constructs a V1Job from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Job} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1Job} The populated V1Job instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('apiVersion')) { - obj['apiVersion'] = ApiClient.convertToType(data['apiVersion'], 'String'); - } - if (data.hasOwnProperty('kind')) { - obj['kind'] = ApiClient.convertToType(data['kind'], 'String'); - } - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = V1ObjectMeta.constructFromObject(data['metadata']); - } - if (data.hasOwnProperty('spec')) { - obj['spec'] = V1JobSpec.constructFromObject(data['spec']); - } - if (data.hasOwnProperty('status')) { - obj['status'] = V1JobStatus.constructFromObject(data['status']); - } - } - return obj; - } - - /** - * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - * @member {String} apiVersion - */ - exports.prototype['apiVersion'] = undefined; - /** - * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - * @member {String} kind - */ - exports.prototype['kind'] = undefined; - /** - * Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1ObjectMeta} metadata - */ - exports.prototype['metadata'] = undefined; - /** - * Spec is a structure defining the expected behavior of a job. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1JobSpec} spec - */ - exports.prototype['spec'] = undefined; - /** - * Status is a structure describing current status of a job. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1JobStatus} status - */ - exports.prototype['status'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1JobCondition.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1JobCondition.js deleted file mode 100644 index 7f8679a169..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1JobCondition.js +++ /dev/null @@ -1,128 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1JobCondition = factory(root.KubernetesJsClient.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - - /** - * The V1JobCondition model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1JobCondition - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1JobCondition. - * JobCondition describes current state of a job. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1JobCondition - * @class - * @param status {String} Status of the condition, one of True, False, Unknown. - * @param type {String} Type of job condition, Complete or Failed. - */ - var exports = function(status, type) { - var _this = this; - - - - - - _this['status'] = status; - _this['type'] = type; - }; - - /** - * Constructs a V1JobCondition from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1JobCondition} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1JobCondition} The populated V1JobCondition instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('lastProbeTime')) { - obj['lastProbeTime'] = ApiClient.convertToType(data['lastProbeTime'], 'Date'); - } - if (data.hasOwnProperty('lastTransitionTime')) { - obj['lastTransitionTime'] = ApiClient.convertToType(data['lastTransitionTime'], 'Date'); - } - if (data.hasOwnProperty('message')) { - obj['message'] = ApiClient.convertToType(data['message'], 'String'); - } - if (data.hasOwnProperty('reason')) { - obj['reason'] = ApiClient.convertToType(data['reason'], 'String'); - } - if (data.hasOwnProperty('status')) { - obj['status'] = ApiClient.convertToType(data['status'], 'String'); - } - if (data.hasOwnProperty('type')) { - obj['type'] = ApiClient.convertToType(data['type'], 'String'); - } - } - return obj; - } - - /** - * Last time the condition was checked. - * @member {Date} lastProbeTime - */ - exports.prototype['lastProbeTime'] = undefined; - /** - * Last time the condition transit from one status to another. - * @member {Date} lastTransitionTime - */ - exports.prototype['lastTransitionTime'] = undefined; - /** - * Human readable message indicating details about last transition. - * @member {String} message - */ - exports.prototype['message'] = undefined; - /** - * (brief) reason for the condition's last transition. - * @member {String} reason - */ - exports.prototype['reason'] = undefined; - /** - * Status of the condition, one of True, False, Unknown. - * @member {String} status - */ - exports.prototype['status'] = undefined; - /** - * Type of job condition, Complete or Failed. - * @member {String} type - */ - exports.prototype['type'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1JobList.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1JobList.js deleted file mode 100644 index 02a3b4a9ab..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1JobList.js +++ /dev/null @@ -1,109 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1Job', 'io.kubernetes.js/io.kubernetes.js.models/V1ListMeta'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1Job'), require('./V1ListMeta')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1JobList = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1Job, root.KubernetesJsClient.V1ListMeta); - } -}(this, function(ApiClient, V1Job, V1ListMeta) { - 'use strict'; - - - - - /** - * The V1JobList model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1JobList - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1JobList. - * JobList is a collection of jobs. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1JobList - * @class - * @param items {Array.} Items is the list of Job. - */ - var exports = function(items) { - var _this = this; - - - _this['items'] = items; - - - }; - - /** - * Constructs a V1JobList from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1JobList} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1JobList} The populated V1JobList instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('apiVersion')) { - obj['apiVersion'] = ApiClient.convertToType(data['apiVersion'], 'String'); - } - if (data.hasOwnProperty('items')) { - obj['items'] = ApiClient.convertToType(data['items'], [V1Job]); - } - if (data.hasOwnProperty('kind')) { - obj['kind'] = ApiClient.convertToType(data['kind'], 'String'); - } - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = V1ListMeta.constructFromObject(data['metadata']); - } - } - return obj; - } - - /** - * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - * @member {String} apiVersion - */ - exports.prototype['apiVersion'] = undefined; - /** - * Items is the list of Job. - * @member {Array.} items - */ - exports.prototype['items'] = undefined; - /** - * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - * @member {String} kind - */ - exports.prototype['kind'] = undefined; - /** - * Standard list metadata More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1ListMeta} metadata - */ - exports.prototype['metadata'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1JobSpec.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1JobSpec.js deleted file mode 100644 index f458918e25..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1JobSpec.js +++ /dev/null @@ -1,127 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1LabelSelector', 'io.kubernetes.js/io.kubernetes.js.models/V1PodTemplateSpec'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1LabelSelector'), require('./V1PodTemplateSpec')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1JobSpec = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1LabelSelector, root.KubernetesJsClient.V1PodTemplateSpec); - } -}(this, function(ApiClient, V1LabelSelector, V1PodTemplateSpec) { - 'use strict'; - - - - - /** - * The V1JobSpec model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1JobSpec - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1JobSpec. - * JobSpec describes how the job execution will look like. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1JobSpec - * @class - * @param template {module:io.kubernetes.js/io.kubernetes.js.models/V1PodTemplateSpec} Template is the object that describes the pod that will be created when executing a job. More info: http://kubernetes.io/docs/user-guide/jobs - */ - var exports = function(template) { - var _this = this; - - - - - - - _this['template'] = template; - }; - - /** - * Constructs a V1JobSpec from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1JobSpec} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1JobSpec} The populated V1JobSpec instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('activeDeadlineSeconds')) { - obj['activeDeadlineSeconds'] = ApiClient.convertToType(data['activeDeadlineSeconds'], 'Number'); - } - if (data.hasOwnProperty('completions')) { - obj['completions'] = ApiClient.convertToType(data['completions'], 'Number'); - } - if (data.hasOwnProperty('manualSelector')) { - obj['manualSelector'] = ApiClient.convertToType(data['manualSelector'], 'Boolean'); - } - if (data.hasOwnProperty('parallelism')) { - obj['parallelism'] = ApiClient.convertToType(data['parallelism'], 'Number'); - } - if (data.hasOwnProperty('selector')) { - obj['selector'] = V1LabelSelector.constructFromObject(data['selector']); - } - if (data.hasOwnProperty('template')) { - obj['template'] = V1PodTemplateSpec.constructFromObject(data['template']); - } - } - return obj; - } - - /** - * Optional duration in seconds relative to the startTime that the job may be active before the system tries to terminate it; value must be positive integer - * @member {Number} activeDeadlineSeconds - */ - exports.prototype['activeDeadlineSeconds'] = undefined; - /** - * Completions specifies the desired number of successfully finished pods the job should be run with. Setting to nil means that the success of any pod signals the success of all pods, and allows parallelism to have any positive value. Setting to 1 means that parallelism is limited to 1 and the success of that pod signals the success of the job. More info: http://kubernetes.io/docs/user-guide/jobs - * @member {Number} completions - */ - exports.prototype['completions'] = undefined; - /** - * ManualSelector controls generation of pod labels and pod selectors. Leave `manualSelector` unset unless you are certain what you are doing. When false or unset, the system pick labels unique to this job and appends those labels to the pod template. When true, the user is responsible for picking unique labels and specifying the selector. Failure to pick a unique label may cause this and other jobs to not function correctly. However, You may see `manualSelector=true` in jobs that were created with the old `extensions/v1beta1` API. More info: http://releases.k8s.io/HEAD/docs/design/selector-generation.md - * @member {Boolean} manualSelector - */ - exports.prototype['manualSelector'] = undefined; - /** - * Parallelism specifies the maximum desired number of pods the job should run at any given time. The actual number of pods running in steady state will be less than this number when ((.spec.completions - .status.successful) < .spec.parallelism), i.e. when the work left to do is less than max parallelism. More info: http://kubernetes.io/docs/user-guide/jobs - * @member {Number} parallelism - */ - exports.prototype['parallelism'] = undefined; - /** - * Selector is a label query over pods that should match the pod count. Normally, the system sets this field for you. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1LabelSelector} selector - */ - exports.prototype['selector'] = undefined; - /** - * Template is the object that describes the pod that will be created when executing a job. More info: http://kubernetes.io/docs/user-guide/jobs - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1PodTemplateSpec} template - */ - exports.prototype['template'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1JobStatus.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1JobStatus.js deleted file mode 100644 index eb613466f4..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1JobStatus.js +++ /dev/null @@ -1,126 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1JobCondition'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1JobCondition')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1JobStatus = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1JobCondition); - } -}(this, function(ApiClient, V1JobCondition) { - 'use strict'; - - - - - /** - * The V1JobStatus model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1JobStatus - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1JobStatus. - * JobStatus represents the current state of a Job. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1JobStatus - * @class - */ - var exports = function() { - var _this = this; - - - - - - - - }; - - /** - * Constructs a V1JobStatus from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1JobStatus} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1JobStatus} The populated V1JobStatus instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('active')) { - obj['active'] = ApiClient.convertToType(data['active'], 'Number'); - } - if (data.hasOwnProperty('completionTime')) { - obj['completionTime'] = ApiClient.convertToType(data['completionTime'], 'Date'); - } - if (data.hasOwnProperty('conditions')) { - obj['conditions'] = ApiClient.convertToType(data['conditions'], [V1JobCondition]); - } - if (data.hasOwnProperty('failed')) { - obj['failed'] = ApiClient.convertToType(data['failed'], 'Number'); - } - if (data.hasOwnProperty('startTime')) { - obj['startTime'] = ApiClient.convertToType(data['startTime'], 'Date'); - } - if (data.hasOwnProperty('succeeded')) { - obj['succeeded'] = ApiClient.convertToType(data['succeeded'], 'Number'); - } - } - return obj; - } - - /** - * Active is the number of actively running pods. - * @member {Number} active - */ - exports.prototype['active'] = undefined; - /** - * CompletionTime represents time when the job was completed. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC. - * @member {Date} completionTime - */ - exports.prototype['completionTime'] = undefined; - /** - * Conditions represent the latest available observations of an object's current state. More info: http://kubernetes.io/docs/user-guide/jobs - * @member {Array.} conditions - */ - exports.prototype['conditions'] = undefined; - /** - * Failed is the number of pods which reached Phase Failed. - * @member {Number} failed - */ - exports.prototype['failed'] = undefined; - /** - * StartTime represents time when the job was acknowledged by the Job Manager. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC. - * @member {Date} startTime - */ - exports.prototype['startTime'] = undefined; - /** - * Succeeded is the number of pods which reached Phase Succeeded. - * @member {Number} succeeded - */ - exports.prototype['succeeded'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1KeyToPath.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1KeyToPath.js deleted file mode 100644 index f70cbc5787..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1KeyToPath.js +++ /dev/null @@ -1,101 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1KeyToPath = factory(root.KubernetesJsClient.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - - /** - * The V1KeyToPath model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1KeyToPath - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1KeyToPath. - * Maps a string key to a path within a volume. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1KeyToPath - * @class - * @param key {String} The key to project. - * @param path {String} The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. - */ - var exports = function(key, path) { - var _this = this; - - _this['key'] = key; - - _this['path'] = path; - }; - - /** - * Constructs a V1KeyToPath from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1KeyToPath} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1KeyToPath} The populated V1KeyToPath instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('key')) { - obj['key'] = ApiClient.convertToType(data['key'], 'String'); - } - if (data.hasOwnProperty('mode')) { - obj['mode'] = ApiClient.convertToType(data['mode'], 'Number'); - } - if (data.hasOwnProperty('path')) { - obj['path'] = ApiClient.convertToType(data['path'], 'String'); - } - } - return obj; - } - - /** - * The key to project. - * @member {String} key - */ - exports.prototype['key'] = undefined; - /** - * Optional: mode bits to use on this file, must be a value between 0 and 0777. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. - * @member {Number} mode - */ - exports.prototype['mode'] = undefined; - /** - * The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. - * @member {String} path - */ - exports.prototype['path'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1LabelSelector.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1LabelSelector.js deleted file mode 100644 index 19ca329eaf..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1LabelSelector.js +++ /dev/null @@ -1,90 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1LabelSelectorRequirement'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1LabelSelectorRequirement')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1LabelSelector = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1LabelSelectorRequirement); - } -}(this, function(ApiClient, V1LabelSelectorRequirement) { - 'use strict'; - - - - - /** - * The V1LabelSelector model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1LabelSelector - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1LabelSelector. - * A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1LabelSelector - * @class - */ - var exports = function() { - var _this = this; - - - - }; - - /** - * Constructs a V1LabelSelector from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1LabelSelector} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1LabelSelector} The populated V1LabelSelector instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('matchExpressions')) { - obj['matchExpressions'] = ApiClient.convertToType(data['matchExpressions'], [V1LabelSelectorRequirement]); - } - if (data.hasOwnProperty('matchLabels')) { - obj['matchLabels'] = ApiClient.convertToType(data['matchLabels'], {'String': 'String'}); - } - } - return obj; - } - - /** - * matchExpressions is a list of label selector requirements. The requirements are ANDed. - * @member {Array.} matchExpressions - */ - exports.prototype['matchExpressions'] = undefined; - /** - * matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \"key\", the operator is \"In\", and the values array contains only \"value\". The requirements are ANDed. - * @member {Object.} matchLabels - */ - exports.prototype['matchLabels'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1LabelSelectorRequirement.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1LabelSelectorRequirement.js deleted file mode 100644 index b876369c40..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1LabelSelectorRequirement.js +++ /dev/null @@ -1,101 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1LabelSelectorRequirement = factory(root.KubernetesJsClient.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - - /** - * The V1LabelSelectorRequirement model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1LabelSelectorRequirement - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1LabelSelectorRequirement. - * A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1LabelSelectorRequirement - * @class - * @param key {String} key is the label key that the selector applies to. - * @param operator {String} operator represents a key's relationship to a set of values. Valid operators ard In, NotIn, Exists and DoesNotExist. - */ - var exports = function(key, operator) { - var _this = this; - - _this['key'] = key; - _this['operator'] = operator; - - }; - - /** - * Constructs a V1LabelSelectorRequirement from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1LabelSelectorRequirement} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1LabelSelectorRequirement} The populated V1LabelSelectorRequirement instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('key')) { - obj['key'] = ApiClient.convertToType(data['key'], 'String'); - } - if (data.hasOwnProperty('operator')) { - obj['operator'] = ApiClient.convertToType(data['operator'], 'String'); - } - if (data.hasOwnProperty('values')) { - obj['values'] = ApiClient.convertToType(data['values'], ['String']); - } - } - return obj; - } - - /** - * key is the label key that the selector applies to. - * @member {String} key - */ - exports.prototype['key'] = undefined; - /** - * operator represents a key's relationship to a set of values. Valid operators ard In, NotIn, Exists and DoesNotExist. - * @member {String} operator - */ - exports.prototype['operator'] = undefined; - /** - * values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. - * @member {Array.} values - */ - exports.prototype['values'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1Lifecycle.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1Lifecycle.js deleted file mode 100644 index e6f109a614..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1Lifecycle.js +++ /dev/null @@ -1,90 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1Handler'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1Handler')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1Lifecycle = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1Handler); - } -}(this, function(ApiClient, V1Handler) { - 'use strict'; - - - - - /** - * The V1Lifecycle model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1Lifecycle - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1Lifecycle. - * Lifecycle describes actions that the management system should take in response to container lifecycle events. For the PostStart and PreStop lifecycle handlers, management of the container blocks until the action is complete, unless the container process fails, in which case the handler is aborted. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1Lifecycle - * @class - */ - var exports = function() { - var _this = this; - - - - }; - - /** - * Constructs a V1Lifecycle from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Lifecycle} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1Lifecycle} The populated V1Lifecycle instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('postStart')) { - obj['postStart'] = V1Handler.constructFromObject(data['postStart']); - } - if (data.hasOwnProperty('preStop')) { - obj['preStop'] = V1Handler.constructFromObject(data['preStop']); - } - } - return obj; - } - - /** - * PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: http://kubernetes.io/docs/user-guide/container-environment#hook-details - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1Handler} postStart - */ - exports.prototype['postStart'] = undefined; - /** - * PreStop is called immediately before a container is terminated. The container is terminated after the handler completes. The reason for termination is passed to the handler. Regardless of the outcome of the handler, the container is eventually terminated. Other management of the container blocks until the hook completes. More info: http://kubernetes.io/docs/user-guide/container-environment#hook-details - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1Handler} preStop - */ - exports.prototype['preStop'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1LimitRange.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1LimitRange.js deleted file mode 100644 index 89d6bee84d..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1LimitRange.js +++ /dev/null @@ -1,108 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1LimitRangeSpec', 'io.kubernetes.js/io.kubernetes.js.models/V1ObjectMeta'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1LimitRangeSpec'), require('./V1ObjectMeta')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1LimitRange = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1LimitRangeSpec, root.KubernetesJsClient.V1ObjectMeta); - } -}(this, function(ApiClient, V1LimitRangeSpec, V1ObjectMeta) { - 'use strict'; - - - - - /** - * The V1LimitRange model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1LimitRange - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1LimitRange. - * LimitRange sets resource usage limits for each kind of resource in a Namespace. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1LimitRange - * @class - */ - var exports = function() { - var _this = this; - - - - - - }; - - /** - * Constructs a V1LimitRange from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1LimitRange} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1LimitRange} The populated V1LimitRange instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('apiVersion')) { - obj['apiVersion'] = ApiClient.convertToType(data['apiVersion'], 'String'); - } - if (data.hasOwnProperty('kind')) { - obj['kind'] = ApiClient.convertToType(data['kind'], 'String'); - } - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = V1ObjectMeta.constructFromObject(data['metadata']); - } - if (data.hasOwnProperty('spec')) { - obj['spec'] = V1LimitRangeSpec.constructFromObject(data['spec']); - } - } - return obj; - } - - /** - * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - * @member {String} apiVersion - */ - exports.prototype['apiVersion'] = undefined; - /** - * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - * @member {String} kind - */ - exports.prototype['kind'] = undefined; - /** - * Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1ObjectMeta} metadata - */ - exports.prototype['metadata'] = undefined; - /** - * Spec defines the limits enforced. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1LimitRangeSpec} spec - */ - exports.prototype['spec'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1LimitRangeItem.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1LimitRangeItem.js deleted file mode 100644 index b8c235e826..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1LimitRangeItem.js +++ /dev/null @@ -1,126 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1LimitRangeItem = factory(root.KubernetesJsClient.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - - /** - * The V1LimitRangeItem model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1LimitRangeItem - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1LimitRangeItem. - * LimitRangeItem defines a min/max usage limit for any resource that matches on kind. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1LimitRangeItem - * @class - */ - var exports = function() { - var _this = this; - - - - - - - - }; - - /** - * Constructs a V1LimitRangeItem from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1LimitRangeItem} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1LimitRangeItem} The populated V1LimitRangeItem instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('default')) { - obj['default'] = ApiClient.convertToType(data['default'], {'String': 'String'}); - } - if (data.hasOwnProperty('defaultRequest')) { - obj['defaultRequest'] = ApiClient.convertToType(data['defaultRequest'], {'String': 'String'}); - } - if (data.hasOwnProperty('max')) { - obj['max'] = ApiClient.convertToType(data['max'], {'String': 'String'}); - } - if (data.hasOwnProperty('maxLimitRequestRatio')) { - obj['maxLimitRequestRatio'] = ApiClient.convertToType(data['maxLimitRequestRatio'], {'String': 'String'}); - } - if (data.hasOwnProperty('min')) { - obj['min'] = ApiClient.convertToType(data['min'], {'String': 'String'}); - } - if (data.hasOwnProperty('type')) { - obj['type'] = ApiClient.convertToType(data['type'], 'String'); - } - } - return obj; - } - - /** - * Default resource requirement limit value by resource name if resource limit is omitted. - * @member {Object.} default - */ - exports.prototype['default'] = undefined; - /** - * DefaultRequest is the default resource requirement request value by resource name if resource request is omitted. - * @member {Object.} defaultRequest - */ - exports.prototype['defaultRequest'] = undefined; - /** - * Max usage constraints on this kind by resource name. - * @member {Object.} max - */ - exports.prototype['max'] = undefined; - /** - * MaxLimitRequestRatio if specified, the named resource must have a request and limit that are both non-zero where limit divided by request is less than or equal to the enumerated value; this represents the max burst for the named resource. - * @member {Object.} maxLimitRequestRatio - */ - exports.prototype['maxLimitRequestRatio'] = undefined; - /** - * Min usage constraints on this kind by resource name. - * @member {Object.} min - */ - exports.prototype['min'] = undefined; - /** - * Type of resource that this limit applies to. - * @member {String} type - */ - exports.prototype['type'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1LimitRangeList.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1LimitRangeList.js deleted file mode 100644 index 0f1b3de33b..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1LimitRangeList.js +++ /dev/null @@ -1,109 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1LimitRange', 'io.kubernetes.js/io.kubernetes.js.models/V1ListMeta'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1LimitRange'), require('./V1ListMeta')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1LimitRangeList = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1LimitRange, root.KubernetesJsClient.V1ListMeta); - } -}(this, function(ApiClient, V1LimitRange, V1ListMeta) { - 'use strict'; - - - - - /** - * The V1LimitRangeList model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1LimitRangeList - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1LimitRangeList. - * LimitRangeList is a list of LimitRange items. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1LimitRangeList - * @class - * @param items {Array.} Items is a list of LimitRange objects. More info: http://releases.k8s.io/HEAD/docs/design/admission_control_limit_range.md - */ - var exports = function(items) { - var _this = this; - - - _this['items'] = items; - - - }; - - /** - * Constructs a V1LimitRangeList from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1LimitRangeList} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1LimitRangeList} The populated V1LimitRangeList instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('apiVersion')) { - obj['apiVersion'] = ApiClient.convertToType(data['apiVersion'], 'String'); - } - if (data.hasOwnProperty('items')) { - obj['items'] = ApiClient.convertToType(data['items'], [V1LimitRange]); - } - if (data.hasOwnProperty('kind')) { - obj['kind'] = ApiClient.convertToType(data['kind'], 'String'); - } - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = V1ListMeta.constructFromObject(data['metadata']); - } - } - return obj; - } - - /** - * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - * @member {String} apiVersion - */ - exports.prototype['apiVersion'] = undefined; - /** - * Items is a list of LimitRange objects. More info: http://releases.k8s.io/HEAD/docs/design/admission_control_limit_range.md - * @member {Array.} items - */ - exports.prototype['items'] = undefined; - /** - * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - * @member {String} kind - */ - exports.prototype['kind'] = undefined; - /** - * Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1ListMeta} metadata - */ - exports.prototype['metadata'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1LimitRangeSpec.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1LimitRangeSpec.js deleted file mode 100644 index 0d3944749a..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1LimitRangeSpec.js +++ /dev/null @@ -1,82 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1LimitRangeItem'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1LimitRangeItem')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1LimitRangeSpec = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1LimitRangeItem); - } -}(this, function(ApiClient, V1LimitRangeItem) { - 'use strict'; - - - - - /** - * The V1LimitRangeSpec model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1LimitRangeSpec - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1LimitRangeSpec. - * LimitRangeSpec defines a min/max usage limit for resources that match on kind. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1LimitRangeSpec - * @class - * @param limits {Array.} Limits is the list of LimitRangeItem objects that are enforced. - */ - var exports = function(limits) { - var _this = this; - - _this['limits'] = limits; - }; - - /** - * Constructs a V1LimitRangeSpec from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1LimitRangeSpec} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1LimitRangeSpec} The populated V1LimitRangeSpec instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('limits')) { - obj['limits'] = ApiClient.convertToType(data['limits'], [V1LimitRangeItem]); - } - } - return obj; - } - - /** - * Limits is the list of LimitRangeItem objects that are enforced. - * @member {Array.} limits - */ - exports.prototype['limits'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1ListMeta.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1ListMeta.js deleted file mode 100644 index e7cd541c5d..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1ListMeta.js +++ /dev/null @@ -1,90 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1ListMeta = factory(root.KubernetesJsClient.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - - /** - * The V1ListMeta model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1ListMeta - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1ListMeta. - * ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1ListMeta - * @class - */ - var exports = function() { - var _this = this; - - - - }; - - /** - * Constructs a V1ListMeta from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1ListMeta} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1ListMeta} The populated V1ListMeta instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('resourceVersion')) { - obj['resourceVersion'] = ApiClient.convertToType(data['resourceVersion'], 'String'); - } - if (data.hasOwnProperty('selfLink')) { - obj['selfLink'] = ApiClient.convertToType(data['selfLink'], 'String'); - } - } - return obj; - } - - /** - * String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#concurrency-control-and-consistency - * @member {String} resourceVersion - */ - exports.prototype['resourceVersion'] = undefined; - /** - * SelfLink is a URL representing this object. Populated by the system. Read-only. - * @member {String} selfLink - */ - exports.prototype['selfLink'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1LoadBalancerIngress.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1LoadBalancerIngress.js deleted file mode 100644 index 9f4404927c..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1LoadBalancerIngress.js +++ /dev/null @@ -1,90 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1LoadBalancerIngress = factory(root.KubernetesJsClient.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - - /** - * The V1LoadBalancerIngress model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1LoadBalancerIngress - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1LoadBalancerIngress. - * LoadBalancerIngress represents the status of a load-balancer ingress point: traffic intended for the service should be sent to an ingress point. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1LoadBalancerIngress - * @class - */ - var exports = function() { - var _this = this; - - - - }; - - /** - * Constructs a V1LoadBalancerIngress from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1LoadBalancerIngress} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1LoadBalancerIngress} The populated V1LoadBalancerIngress instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('hostname')) { - obj['hostname'] = ApiClient.convertToType(data['hostname'], 'String'); - } - if (data.hasOwnProperty('ip')) { - obj['ip'] = ApiClient.convertToType(data['ip'], 'String'); - } - } - return obj; - } - - /** - * Hostname is set for load-balancer ingress points that are DNS based (typically AWS load-balancers) - * @member {String} hostname - */ - exports.prototype['hostname'] = undefined; - /** - * IP is set for load-balancer ingress points that are IP based (typically GCE or OpenStack load-balancers) - * @member {String} ip - */ - exports.prototype['ip'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1LoadBalancerStatus.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1LoadBalancerStatus.js deleted file mode 100644 index 13875856bd..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1LoadBalancerStatus.js +++ /dev/null @@ -1,81 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1LoadBalancerIngress'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1LoadBalancerIngress')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1LoadBalancerStatus = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1LoadBalancerIngress); - } -}(this, function(ApiClient, V1LoadBalancerIngress) { - 'use strict'; - - - - - /** - * The V1LoadBalancerStatus model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1LoadBalancerStatus - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1LoadBalancerStatus. - * LoadBalancerStatus represents the status of a load-balancer. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1LoadBalancerStatus - * @class - */ - var exports = function() { - var _this = this; - - - }; - - /** - * Constructs a V1LoadBalancerStatus from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1LoadBalancerStatus} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1LoadBalancerStatus} The populated V1LoadBalancerStatus instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('ingress')) { - obj['ingress'] = ApiClient.convertToType(data['ingress'], [V1LoadBalancerIngress]); - } - } - return obj; - } - - /** - * Ingress is a list containing ingress points for the load-balancer. Traffic intended for the service should be sent to these ingress points. - * @member {Array.} ingress - */ - exports.prototype['ingress'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1LocalObjectReference.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1LocalObjectReference.js deleted file mode 100644 index 0d90d67708..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1LocalObjectReference.js +++ /dev/null @@ -1,81 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1LocalObjectReference = factory(root.KubernetesJsClient.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - - /** - * The V1LocalObjectReference model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1LocalObjectReference - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1LocalObjectReference. - * LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1LocalObjectReference - * @class - */ - var exports = function() { - var _this = this; - - - }; - - /** - * Constructs a V1LocalObjectReference from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1LocalObjectReference} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1LocalObjectReference} The populated V1LocalObjectReference instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - } - } - return obj; - } - - /** - * Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * @member {String} name - */ - exports.prototype['name'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1LocalSubjectAccessReview.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1LocalSubjectAccessReview.js deleted file mode 100644 index 4ed84753fa..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1LocalSubjectAccessReview.js +++ /dev/null @@ -1,117 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1ObjectMeta', 'io.kubernetes.js/io.kubernetes.js.models/V1SubjectAccessReviewSpec', 'io.kubernetes.js/io.kubernetes.js.models/V1SubjectAccessReviewStatus'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1ObjectMeta'), require('./V1SubjectAccessReviewSpec'), require('./V1SubjectAccessReviewStatus')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1LocalSubjectAccessReview = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1ObjectMeta, root.KubernetesJsClient.V1SubjectAccessReviewSpec, root.KubernetesJsClient.V1SubjectAccessReviewStatus); - } -}(this, function(ApiClient, V1ObjectMeta, V1SubjectAccessReviewSpec, V1SubjectAccessReviewStatus) { - 'use strict'; - - - - - /** - * The V1LocalSubjectAccessReview model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1LocalSubjectAccessReview - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1LocalSubjectAccessReview. - * LocalSubjectAccessReview checks whether or not a user or group can perform an action in a given namespace. Having a namespace scoped resource makes it much easier to grant namespace scoped policy that includes permissions checking. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1LocalSubjectAccessReview - * @class - * @param spec {module:io.kubernetes.js/io.kubernetes.js.models/V1SubjectAccessReviewSpec} Spec holds information about the request being evaluated. spec.namespace must be equal to the namespace you made the request against. If empty, it is defaulted. - */ - var exports = function(spec) { - var _this = this; - - - - - _this['spec'] = spec; - - }; - - /** - * Constructs a V1LocalSubjectAccessReview from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1LocalSubjectAccessReview} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1LocalSubjectAccessReview} The populated V1LocalSubjectAccessReview instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('apiVersion')) { - obj['apiVersion'] = ApiClient.convertToType(data['apiVersion'], 'String'); - } - if (data.hasOwnProperty('kind')) { - obj['kind'] = ApiClient.convertToType(data['kind'], 'String'); - } - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = V1ObjectMeta.constructFromObject(data['metadata']); - } - if (data.hasOwnProperty('spec')) { - obj['spec'] = V1SubjectAccessReviewSpec.constructFromObject(data['spec']); - } - if (data.hasOwnProperty('status')) { - obj['status'] = V1SubjectAccessReviewStatus.constructFromObject(data['status']); - } - } - return obj; - } - - /** - * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - * @member {String} apiVersion - */ - exports.prototype['apiVersion'] = undefined; - /** - * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - * @member {String} kind - */ - exports.prototype['kind'] = undefined; - /** - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1ObjectMeta} metadata - */ - exports.prototype['metadata'] = undefined; - /** - * Spec holds information about the request being evaluated. spec.namespace must be equal to the namespace you made the request against. If empty, it is defaulted. - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1SubjectAccessReviewSpec} spec - */ - exports.prototype['spec'] = undefined; - /** - * Status is filled in by the server and indicates whether the request is allowed or not - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1SubjectAccessReviewStatus} status - */ - exports.prototype['status'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1NFSVolumeSource.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1NFSVolumeSource.js deleted file mode 100644 index 8ef3145566..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1NFSVolumeSource.js +++ /dev/null @@ -1,101 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1NFSVolumeSource = factory(root.KubernetesJsClient.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - - /** - * The V1NFSVolumeSource model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1NFSVolumeSource - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1NFSVolumeSource. - * Represents an NFS mount that lasts the lifetime of a pod. NFS volumes do not support ownership management or SELinux relabeling. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1NFSVolumeSource - * @class - * @param path {String} Path that is exported by the NFS server. More info: http://kubernetes.io/docs/user-guide/volumes#nfs - * @param server {String} Server is the hostname or IP address of the NFS server. More info: http://kubernetes.io/docs/user-guide/volumes#nfs - */ - var exports = function(path, server) { - var _this = this; - - _this['path'] = path; - - _this['server'] = server; - }; - - /** - * Constructs a V1NFSVolumeSource from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1NFSVolumeSource} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1NFSVolumeSource} The populated V1NFSVolumeSource instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('path')) { - obj['path'] = ApiClient.convertToType(data['path'], 'String'); - } - if (data.hasOwnProperty('readOnly')) { - obj['readOnly'] = ApiClient.convertToType(data['readOnly'], 'Boolean'); - } - if (data.hasOwnProperty('server')) { - obj['server'] = ApiClient.convertToType(data['server'], 'String'); - } - } - return obj; - } - - /** - * Path that is exported by the NFS server. More info: http://kubernetes.io/docs/user-guide/volumes#nfs - * @member {String} path - */ - exports.prototype['path'] = undefined; - /** - * ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: http://kubernetes.io/docs/user-guide/volumes#nfs - * @member {Boolean} readOnly - */ - exports.prototype['readOnly'] = undefined; - /** - * Server is the hostname or IP address of the NFS server. More info: http://kubernetes.io/docs/user-guide/volumes#nfs - * @member {String} server - */ - exports.prototype['server'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1Namespace.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1Namespace.js deleted file mode 100644 index b002835972..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1Namespace.js +++ /dev/null @@ -1,117 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1NamespaceSpec', 'io.kubernetes.js/io.kubernetes.js.models/V1NamespaceStatus', 'io.kubernetes.js/io.kubernetes.js.models/V1ObjectMeta'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1NamespaceSpec'), require('./V1NamespaceStatus'), require('./V1ObjectMeta')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1Namespace = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1NamespaceSpec, root.KubernetesJsClient.V1NamespaceStatus, root.KubernetesJsClient.V1ObjectMeta); - } -}(this, function(ApiClient, V1NamespaceSpec, V1NamespaceStatus, V1ObjectMeta) { - 'use strict'; - - - - - /** - * The V1Namespace model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1Namespace - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1Namespace. - * Namespace provides a scope for Names. Use of multiple namespaces is optional. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1Namespace - * @class - */ - var exports = function() { - var _this = this; - - - - - - - }; - - /** - * Constructs a V1Namespace from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Namespace} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1Namespace} The populated V1Namespace instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('apiVersion')) { - obj['apiVersion'] = ApiClient.convertToType(data['apiVersion'], 'String'); - } - if (data.hasOwnProperty('kind')) { - obj['kind'] = ApiClient.convertToType(data['kind'], 'String'); - } - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = V1ObjectMeta.constructFromObject(data['metadata']); - } - if (data.hasOwnProperty('spec')) { - obj['spec'] = V1NamespaceSpec.constructFromObject(data['spec']); - } - if (data.hasOwnProperty('status')) { - obj['status'] = V1NamespaceStatus.constructFromObject(data['status']); - } - } - return obj; - } - - /** - * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - * @member {String} apiVersion - */ - exports.prototype['apiVersion'] = undefined; - /** - * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - * @member {String} kind - */ - exports.prototype['kind'] = undefined; - /** - * Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1ObjectMeta} metadata - */ - exports.prototype['metadata'] = undefined; - /** - * Spec defines the behavior of the Namespace. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1NamespaceSpec} spec - */ - exports.prototype['spec'] = undefined; - /** - * Status describes the current status of a Namespace. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1NamespaceStatus} status - */ - exports.prototype['status'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1NamespaceList.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1NamespaceList.js deleted file mode 100644 index 9063b3c10a..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1NamespaceList.js +++ /dev/null @@ -1,109 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1ListMeta', 'io.kubernetes.js/io.kubernetes.js.models/V1Namespace'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1ListMeta'), require('./V1Namespace')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1NamespaceList = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1ListMeta, root.KubernetesJsClient.V1Namespace); - } -}(this, function(ApiClient, V1ListMeta, V1Namespace) { - 'use strict'; - - - - - /** - * The V1NamespaceList model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1NamespaceList - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1NamespaceList. - * NamespaceList is a list of Namespaces. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1NamespaceList - * @class - * @param items {Array.} Items is the list of Namespace objects in the list. More info: http://kubernetes.io/docs/user-guide/namespaces - */ - var exports = function(items) { - var _this = this; - - - _this['items'] = items; - - - }; - - /** - * Constructs a V1NamespaceList from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1NamespaceList} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1NamespaceList} The populated V1NamespaceList instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('apiVersion')) { - obj['apiVersion'] = ApiClient.convertToType(data['apiVersion'], 'String'); - } - if (data.hasOwnProperty('items')) { - obj['items'] = ApiClient.convertToType(data['items'], [V1Namespace]); - } - if (data.hasOwnProperty('kind')) { - obj['kind'] = ApiClient.convertToType(data['kind'], 'String'); - } - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = V1ListMeta.constructFromObject(data['metadata']); - } - } - return obj; - } - - /** - * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - * @member {String} apiVersion - */ - exports.prototype['apiVersion'] = undefined; - /** - * Items is the list of Namespace objects in the list. More info: http://kubernetes.io/docs/user-guide/namespaces - * @member {Array.} items - */ - exports.prototype['items'] = undefined; - /** - * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - * @member {String} kind - */ - exports.prototype['kind'] = undefined; - /** - * Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1ListMeta} metadata - */ - exports.prototype['metadata'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1NamespaceSpec.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1NamespaceSpec.js deleted file mode 100644 index 9d1bca3664..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1NamespaceSpec.js +++ /dev/null @@ -1,81 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1NamespaceSpec = factory(root.KubernetesJsClient.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - - /** - * The V1NamespaceSpec model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1NamespaceSpec - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1NamespaceSpec. - * NamespaceSpec describes the attributes on a Namespace. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1NamespaceSpec - * @class - */ - var exports = function() { - var _this = this; - - - }; - - /** - * Constructs a V1NamespaceSpec from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1NamespaceSpec} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1NamespaceSpec} The populated V1NamespaceSpec instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('finalizers')) { - obj['finalizers'] = ApiClient.convertToType(data['finalizers'], ['String']); - } - } - return obj; - } - - /** - * Finalizers is an opaque list of values that must be empty to permanently remove object from storage. More info: http://releases.k8s.io/HEAD/docs/design/namespaces.md#finalizers - * @member {Array.} finalizers - */ - exports.prototype['finalizers'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1NamespaceStatus.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1NamespaceStatus.js deleted file mode 100644 index ed466dd411..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1NamespaceStatus.js +++ /dev/null @@ -1,81 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1NamespaceStatus = factory(root.KubernetesJsClient.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - - /** - * The V1NamespaceStatus model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1NamespaceStatus - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1NamespaceStatus. - * NamespaceStatus is information about the current status of a Namespace. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1NamespaceStatus - * @class - */ - var exports = function() { - var _this = this; - - - }; - - /** - * Constructs a V1NamespaceStatus from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1NamespaceStatus} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1NamespaceStatus} The populated V1NamespaceStatus instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('phase')) { - obj['phase'] = ApiClient.convertToType(data['phase'], 'String'); - } - } - return obj; - } - - /** - * Phase is the current lifecycle phase of the namespace. More info: http://releases.k8s.io/HEAD/docs/design/namespaces.md#phases - * @member {String} phase - */ - exports.prototype['phase'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1Node.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1Node.js deleted file mode 100644 index 09e3ef086b..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1Node.js +++ /dev/null @@ -1,117 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1NodeSpec', 'io.kubernetes.js/io.kubernetes.js.models/V1NodeStatus', 'io.kubernetes.js/io.kubernetes.js.models/V1ObjectMeta'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1NodeSpec'), require('./V1NodeStatus'), require('./V1ObjectMeta')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1Node = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1NodeSpec, root.KubernetesJsClient.V1NodeStatus, root.KubernetesJsClient.V1ObjectMeta); - } -}(this, function(ApiClient, V1NodeSpec, V1NodeStatus, V1ObjectMeta) { - 'use strict'; - - - - - /** - * The V1Node model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1Node - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1Node. - * Node is a worker node in Kubernetes. Each node will have a unique identifier in the cache (i.e. in etcd). - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1Node - * @class - */ - var exports = function() { - var _this = this; - - - - - - - }; - - /** - * Constructs a V1Node from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Node} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1Node} The populated V1Node instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('apiVersion')) { - obj['apiVersion'] = ApiClient.convertToType(data['apiVersion'], 'String'); - } - if (data.hasOwnProperty('kind')) { - obj['kind'] = ApiClient.convertToType(data['kind'], 'String'); - } - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = V1ObjectMeta.constructFromObject(data['metadata']); - } - if (data.hasOwnProperty('spec')) { - obj['spec'] = V1NodeSpec.constructFromObject(data['spec']); - } - if (data.hasOwnProperty('status')) { - obj['status'] = V1NodeStatus.constructFromObject(data['status']); - } - } - return obj; - } - - /** - * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - * @member {String} apiVersion - */ - exports.prototype['apiVersion'] = undefined; - /** - * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - * @member {String} kind - */ - exports.prototype['kind'] = undefined; - /** - * Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1ObjectMeta} metadata - */ - exports.prototype['metadata'] = undefined; - /** - * Spec defines the behavior of a node. http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1NodeSpec} spec - */ - exports.prototype['spec'] = undefined; - /** - * Most recently observed status of the node. Populated by the system. Read-only. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1NodeStatus} status - */ - exports.prototype['status'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1NodeAddress.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1NodeAddress.js deleted file mode 100644 index 3025f62285..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1NodeAddress.js +++ /dev/null @@ -1,92 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1NodeAddress = factory(root.KubernetesJsClient.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - - /** - * The V1NodeAddress model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1NodeAddress - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1NodeAddress. - * NodeAddress contains information for the node's address. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1NodeAddress - * @class - * @param address {String} The node address. - * @param type {String} Node address type, one of Hostname, ExternalIP or InternalIP. - */ - var exports = function(address, type) { - var _this = this; - - _this['address'] = address; - _this['type'] = type; - }; - - /** - * Constructs a V1NodeAddress from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1NodeAddress} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1NodeAddress} The populated V1NodeAddress instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('address')) { - obj['address'] = ApiClient.convertToType(data['address'], 'String'); - } - if (data.hasOwnProperty('type')) { - obj['type'] = ApiClient.convertToType(data['type'], 'String'); - } - } - return obj; - } - - /** - * The node address. - * @member {String} address - */ - exports.prototype['address'] = undefined; - /** - * Node address type, one of Hostname, ExternalIP or InternalIP. - * @member {String} type - */ - exports.prototype['type'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1NodeAffinity.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1NodeAffinity.js deleted file mode 100644 index d5931c942c..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1NodeAffinity.js +++ /dev/null @@ -1,90 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1NodeSelector', 'io.kubernetes.js/io.kubernetes.js.models/V1PreferredSchedulingTerm'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1NodeSelector'), require('./V1PreferredSchedulingTerm')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1NodeAffinity = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1NodeSelector, root.KubernetesJsClient.V1PreferredSchedulingTerm); - } -}(this, function(ApiClient, V1NodeSelector, V1PreferredSchedulingTerm) { - 'use strict'; - - - - - /** - * The V1NodeAffinity model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1NodeAffinity - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1NodeAffinity. - * Node affinity is a group of node affinity scheduling rules. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1NodeAffinity - * @class - */ - var exports = function() { - var _this = this; - - - - }; - - /** - * Constructs a V1NodeAffinity from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1NodeAffinity} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1NodeAffinity} The populated V1NodeAffinity instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('preferredDuringSchedulingIgnoredDuringExecution')) { - obj['preferredDuringSchedulingIgnoredDuringExecution'] = ApiClient.convertToType(data['preferredDuringSchedulingIgnoredDuringExecution'], [V1PreferredSchedulingTerm]); - } - if (data.hasOwnProperty('requiredDuringSchedulingIgnoredDuringExecution')) { - obj['requiredDuringSchedulingIgnoredDuringExecution'] = V1NodeSelector.constructFromObject(data['requiredDuringSchedulingIgnoredDuringExecution']); - } - } - return obj; - } - - /** - * The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. - * @member {Array.} preferredDuringSchedulingIgnoredDuringExecution - */ - exports.prototype['preferredDuringSchedulingIgnoredDuringExecution'] = undefined; - /** - * If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1NodeSelector} requiredDuringSchedulingIgnoredDuringExecution - */ - exports.prototype['requiredDuringSchedulingIgnoredDuringExecution'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1NodeCondition.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1NodeCondition.js deleted file mode 100644 index 837a249ff6..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1NodeCondition.js +++ /dev/null @@ -1,128 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1NodeCondition = factory(root.KubernetesJsClient.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - - /** - * The V1NodeCondition model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1NodeCondition - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1NodeCondition. - * NodeCondition contains condition information for a node. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1NodeCondition - * @class - * @param status {String} Status of the condition, one of True, False, Unknown. - * @param type {String} Type of node condition. - */ - var exports = function(status, type) { - var _this = this; - - - - - - _this['status'] = status; - _this['type'] = type; - }; - - /** - * Constructs a V1NodeCondition from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1NodeCondition} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1NodeCondition} The populated V1NodeCondition instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('lastHeartbeatTime')) { - obj['lastHeartbeatTime'] = ApiClient.convertToType(data['lastHeartbeatTime'], 'Date'); - } - if (data.hasOwnProperty('lastTransitionTime')) { - obj['lastTransitionTime'] = ApiClient.convertToType(data['lastTransitionTime'], 'Date'); - } - if (data.hasOwnProperty('message')) { - obj['message'] = ApiClient.convertToType(data['message'], 'String'); - } - if (data.hasOwnProperty('reason')) { - obj['reason'] = ApiClient.convertToType(data['reason'], 'String'); - } - if (data.hasOwnProperty('status')) { - obj['status'] = ApiClient.convertToType(data['status'], 'String'); - } - if (data.hasOwnProperty('type')) { - obj['type'] = ApiClient.convertToType(data['type'], 'String'); - } - } - return obj; - } - - /** - * Last time we got an update on a given condition. - * @member {Date} lastHeartbeatTime - */ - exports.prototype['lastHeartbeatTime'] = undefined; - /** - * Last time the condition transit from one status to another. - * @member {Date} lastTransitionTime - */ - exports.prototype['lastTransitionTime'] = undefined; - /** - * Human readable message indicating details about last transition. - * @member {String} message - */ - exports.prototype['message'] = undefined; - /** - * (brief) reason for the condition's last transition. - * @member {String} reason - */ - exports.prototype['reason'] = undefined; - /** - * Status of the condition, one of True, False, Unknown. - * @member {String} status - */ - exports.prototype['status'] = undefined; - /** - * Type of node condition. - * @member {String} type - */ - exports.prototype['type'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1NodeDaemonEndpoints.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1NodeDaemonEndpoints.js deleted file mode 100644 index 3e0b84ab86..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1NodeDaemonEndpoints.js +++ /dev/null @@ -1,81 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1DaemonEndpoint'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1DaemonEndpoint')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1NodeDaemonEndpoints = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1DaemonEndpoint); - } -}(this, function(ApiClient, V1DaemonEndpoint) { - 'use strict'; - - - - - /** - * The V1NodeDaemonEndpoints model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1NodeDaemonEndpoints - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1NodeDaemonEndpoints. - * NodeDaemonEndpoints lists ports opened by daemons running on the Node. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1NodeDaemonEndpoints - * @class - */ - var exports = function() { - var _this = this; - - - }; - - /** - * Constructs a V1NodeDaemonEndpoints from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1NodeDaemonEndpoints} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1NodeDaemonEndpoints} The populated V1NodeDaemonEndpoints instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('kubeletEndpoint')) { - obj['kubeletEndpoint'] = V1DaemonEndpoint.constructFromObject(data['kubeletEndpoint']); - } - } - return obj; - } - - /** - * Endpoint on which Kubelet is listening. - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1DaemonEndpoint} kubeletEndpoint - */ - exports.prototype['kubeletEndpoint'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1NodeList.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1NodeList.js deleted file mode 100644 index 2fe8cd94f6..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1NodeList.js +++ /dev/null @@ -1,109 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1ListMeta', 'io.kubernetes.js/io.kubernetes.js.models/V1Node'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1ListMeta'), require('./V1Node')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1NodeList = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1ListMeta, root.KubernetesJsClient.V1Node); - } -}(this, function(ApiClient, V1ListMeta, V1Node) { - 'use strict'; - - - - - /** - * The V1NodeList model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1NodeList - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1NodeList. - * NodeList is the whole list of all Nodes which have been registered with master. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1NodeList - * @class - * @param items {Array.} List of nodes - */ - var exports = function(items) { - var _this = this; - - - _this['items'] = items; - - - }; - - /** - * Constructs a V1NodeList from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1NodeList} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1NodeList} The populated V1NodeList instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('apiVersion')) { - obj['apiVersion'] = ApiClient.convertToType(data['apiVersion'], 'String'); - } - if (data.hasOwnProperty('items')) { - obj['items'] = ApiClient.convertToType(data['items'], [V1Node]); - } - if (data.hasOwnProperty('kind')) { - obj['kind'] = ApiClient.convertToType(data['kind'], 'String'); - } - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = V1ListMeta.constructFromObject(data['metadata']); - } - } - return obj; - } - - /** - * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - * @member {String} apiVersion - */ - exports.prototype['apiVersion'] = undefined; - /** - * List of nodes - * @member {Array.} items - */ - exports.prototype['items'] = undefined; - /** - * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - * @member {String} kind - */ - exports.prototype['kind'] = undefined; - /** - * Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1ListMeta} metadata - */ - exports.prototype['metadata'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1NodeSelector.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1NodeSelector.js deleted file mode 100644 index c3027a8669..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1NodeSelector.js +++ /dev/null @@ -1,82 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1NodeSelectorTerm'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1NodeSelectorTerm')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1NodeSelector = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1NodeSelectorTerm); - } -}(this, function(ApiClient, V1NodeSelectorTerm) { - 'use strict'; - - - - - /** - * The V1NodeSelector model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1NodeSelector - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1NodeSelector. - * A node selector represents the union of the results of one or more label queries over a set of nodes; that is, it represents the OR of the selectors represented by the node selector terms. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1NodeSelector - * @class - * @param nodeSelectorTerms {Array.} Required. A list of node selector terms. The terms are ORed. - */ - var exports = function(nodeSelectorTerms) { - var _this = this; - - _this['nodeSelectorTerms'] = nodeSelectorTerms; - }; - - /** - * Constructs a V1NodeSelector from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1NodeSelector} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1NodeSelector} The populated V1NodeSelector instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('nodeSelectorTerms')) { - obj['nodeSelectorTerms'] = ApiClient.convertToType(data['nodeSelectorTerms'], [V1NodeSelectorTerm]); - } - } - return obj; - } - - /** - * Required. A list of node selector terms. The terms are ORed. - * @member {Array.} nodeSelectorTerms - */ - exports.prototype['nodeSelectorTerms'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1NodeSelectorRequirement.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1NodeSelectorRequirement.js deleted file mode 100644 index e7ccf72975..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1NodeSelectorRequirement.js +++ /dev/null @@ -1,101 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1NodeSelectorRequirement = factory(root.KubernetesJsClient.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - - /** - * The V1NodeSelectorRequirement model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1NodeSelectorRequirement - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1NodeSelectorRequirement. - * A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1NodeSelectorRequirement - * @class - * @param key {String} The label key that the selector applies to. - * @param operator {String} Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. - */ - var exports = function(key, operator) { - var _this = this; - - _this['key'] = key; - _this['operator'] = operator; - - }; - - /** - * Constructs a V1NodeSelectorRequirement from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1NodeSelectorRequirement} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1NodeSelectorRequirement} The populated V1NodeSelectorRequirement instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('key')) { - obj['key'] = ApiClient.convertToType(data['key'], 'String'); - } - if (data.hasOwnProperty('operator')) { - obj['operator'] = ApiClient.convertToType(data['operator'], 'String'); - } - if (data.hasOwnProperty('values')) { - obj['values'] = ApiClient.convertToType(data['values'], ['String']); - } - } - return obj; - } - - /** - * The label key that the selector applies to. - * @member {String} key - */ - exports.prototype['key'] = undefined; - /** - * Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. - * @member {String} operator - */ - exports.prototype['operator'] = undefined; - /** - * An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch. - * @member {Array.} values - */ - exports.prototype['values'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1NodeSelectorTerm.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1NodeSelectorTerm.js deleted file mode 100644 index f1839810f7..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1NodeSelectorTerm.js +++ /dev/null @@ -1,82 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1NodeSelectorRequirement'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1NodeSelectorRequirement')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1NodeSelectorTerm = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1NodeSelectorRequirement); - } -}(this, function(ApiClient, V1NodeSelectorRequirement) { - 'use strict'; - - - - - /** - * The V1NodeSelectorTerm model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1NodeSelectorTerm - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1NodeSelectorTerm. - * A null or empty node selector term matches no objects. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1NodeSelectorTerm - * @class - * @param matchExpressions {Array.} Required. A list of node selector requirements. The requirements are ANDed. - */ - var exports = function(matchExpressions) { - var _this = this; - - _this['matchExpressions'] = matchExpressions; - }; - - /** - * Constructs a V1NodeSelectorTerm from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1NodeSelectorTerm} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1NodeSelectorTerm} The populated V1NodeSelectorTerm instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('matchExpressions')) { - obj['matchExpressions'] = ApiClient.convertToType(data['matchExpressions'], [V1NodeSelectorRequirement]); - } - } - return obj; - } - - /** - * Required. A list of node selector requirements. The requirements are ANDed. - * @member {Array.} matchExpressions - */ - exports.prototype['matchExpressions'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1NodeSpec.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1NodeSpec.js deleted file mode 100644 index 843757006e..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1NodeSpec.js +++ /dev/null @@ -1,117 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1Taint'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1Taint')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1NodeSpec = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1Taint); - } -}(this, function(ApiClient, V1Taint) { - 'use strict'; - - - - - /** - * The V1NodeSpec model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1NodeSpec - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1NodeSpec. - * NodeSpec describes the attributes that a node is created with. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1NodeSpec - * @class - */ - var exports = function() { - var _this = this; - - - - - - - }; - - /** - * Constructs a V1NodeSpec from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1NodeSpec} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1NodeSpec} The populated V1NodeSpec instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('externalID')) { - obj['externalID'] = ApiClient.convertToType(data['externalID'], 'String'); - } - if (data.hasOwnProperty('podCIDR')) { - obj['podCIDR'] = ApiClient.convertToType(data['podCIDR'], 'String'); - } - if (data.hasOwnProperty('providerID')) { - obj['providerID'] = ApiClient.convertToType(data['providerID'], 'String'); - } - if (data.hasOwnProperty('taints')) { - obj['taints'] = ApiClient.convertToType(data['taints'], [V1Taint]); - } - if (data.hasOwnProperty('unschedulable')) { - obj['unschedulable'] = ApiClient.convertToType(data['unschedulable'], 'Boolean'); - } - } - return obj; - } - - /** - * External ID of the node assigned by some machine database (e.g. a cloud provider). Deprecated. - * @member {String} externalID - */ - exports.prototype['externalID'] = undefined; - /** - * PodCIDR represents the pod IP range assigned to the node. - * @member {String} podCIDR - */ - exports.prototype['podCIDR'] = undefined; - /** - * ID of the node assigned by the cloud provider in the format: :// - * @member {String} providerID - */ - exports.prototype['providerID'] = undefined; - /** - * If specified, the node's taints. - * @member {Array.} taints - */ - exports.prototype['taints'] = undefined; - /** - * Unschedulable controls node schedulability of new pods. By default, node is schedulable. More info: http://releases.k8s.io/HEAD/docs/admin/node.md#manual-node-administration - * @member {Boolean} unschedulable - */ - exports.prototype['unschedulable'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1NodeStatus.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1NodeStatus.js deleted file mode 100644 index c996180a94..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1NodeStatus.js +++ /dev/null @@ -1,162 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1AttachedVolume', 'io.kubernetes.js/io.kubernetes.js.models/V1ContainerImage', 'io.kubernetes.js/io.kubernetes.js.models/V1NodeAddress', 'io.kubernetes.js/io.kubernetes.js.models/V1NodeCondition', 'io.kubernetes.js/io.kubernetes.js.models/V1NodeDaemonEndpoints', 'io.kubernetes.js/io.kubernetes.js.models/V1NodeSystemInfo'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1AttachedVolume'), require('./V1ContainerImage'), require('./V1NodeAddress'), require('./V1NodeCondition'), require('./V1NodeDaemonEndpoints'), require('./V1NodeSystemInfo')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1NodeStatus = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1AttachedVolume, root.KubernetesJsClient.V1ContainerImage, root.KubernetesJsClient.V1NodeAddress, root.KubernetesJsClient.V1NodeCondition, root.KubernetesJsClient.V1NodeDaemonEndpoints, root.KubernetesJsClient.V1NodeSystemInfo); - } -}(this, function(ApiClient, V1AttachedVolume, V1ContainerImage, V1NodeAddress, V1NodeCondition, V1NodeDaemonEndpoints, V1NodeSystemInfo) { - 'use strict'; - - - - - /** - * The V1NodeStatus model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1NodeStatus - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1NodeStatus. - * NodeStatus is information about the current status of a node. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1NodeStatus - * @class - */ - var exports = function() { - var _this = this; - - - - - - - - - - - - }; - - /** - * Constructs a V1NodeStatus from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1NodeStatus} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1NodeStatus} The populated V1NodeStatus instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('addresses')) { - obj['addresses'] = ApiClient.convertToType(data['addresses'], [V1NodeAddress]); - } - if (data.hasOwnProperty('allocatable')) { - obj['allocatable'] = ApiClient.convertToType(data['allocatable'], {'String': 'String'}); - } - if (data.hasOwnProperty('capacity')) { - obj['capacity'] = ApiClient.convertToType(data['capacity'], {'String': 'String'}); - } - if (data.hasOwnProperty('conditions')) { - obj['conditions'] = ApiClient.convertToType(data['conditions'], [V1NodeCondition]); - } - if (data.hasOwnProperty('daemonEndpoints')) { - obj['daemonEndpoints'] = V1NodeDaemonEndpoints.constructFromObject(data['daemonEndpoints']); - } - if (data.hasOwnProperty('images')) { - obj['images'] = ApiClient.convertToType(data['images'], [V1ContainerImage]); - } - if (data.hasOwnProperty('nodeInfo')) { - obj['nodeInfo'] = V1NodeSystemInfo.constructFromObject(data['nodeInfo']); - } - if (data.hasOwnProperty('phase')) { - obj['phase'] = ApiClient.convertToType(data['phase'], 'String'); - } - if (data.hasOwnProperty('volumesAttached')) { - obj['volumesAttached'] = ApiClient.convertToType(data['volumesAttached'], [V1AttachedVolume]); - } - if (data.hasOwnProperty('volumesInUse')) { - obj['volumesInUse'] = ApiClient.convertToType(data['volumesInUse'], ['String']); - } - } - return obj; - } - - /** - * List of addresses reachable to the node. Queried from cloud provider, if available. More info: http://releases.k8s.io/HEAD/docs/admin/node.md#node-addresses - * @member {Array.} addresses - */ - exports.prototype['addresses'] = undefined; - /** - * Allocatable represents the resources of a node that are available for scheduling. Defaults to Capacity. - * @member {Object.} allocatable - */ - exports.prototype['allocatable'] = undefined; - /** - * Capacity represents the total resources of a node. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#capacity for more details. - * @member {Object.} capacity - */ - exports.prototype['capacity'] = undefined; - /** - * Conditions is an array of current observed node conditions. More info: http://releases.k8s.io/HEAD/docs/admin/node.md#node-condition - * @member {Array.} conditions - */ - exports.prototype['conditions'] = undefined; - /** - * Endpoints of daemons running on the Node. - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1NodeDaemonEndpoints} daemonEndpoints - */ - exports.prototype['daemonEndpoints'] = undefined; - /** - * List of container images on this node - * @member {Array.} images - */ - exports.prototype['images'] = undefined; - /** - * Set of ids/uuids to uniquely identify the node. More info: http://releases.k8s.io/HEAD/docs/admin/node.md#node-info - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1NodeSystemInfo} nodeInfo - */ - exports.prototype['nodeInfo'] = undefined; - /** - * NodePhase is the recently observed lifecycle phase of the node. More info: http://releases.k8s.io/HEAD/docs/admin/node.md#node-phase The field is never populated, and now is deprecated. - * @member {String} phase - */ - exports.prototype['phase'] = undefined; - /** - * List of volumes that are attached to the node. - * @member {Array.} volumesAttached - */ - exports.prototype['volumesAttached'] = undefined; - /** - * List of attachable volumes in use (mounted) by the node. - * @member {Array.} volumesInUse - */ - exports.prototype['volumesInUse'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1NodeSystemInfo.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1NodeSystemInfo.js deleted file mode 100644 index 7968db97c5..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1NodeSystemInfo.js +++ /dev/null @@ -1,172 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1NodeSystemInfo = factory(root.KubernetesJsClient.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - - /** - * The V1NodeSystemInfo model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1NodeSystemInfo - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1NodeSystemInfo. - * NodeSystemInfo is a set of ids/uuids to uniquely identify the node. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1NodeSystemInfo - * @class - * @param architecture {String} The Architecture reported by the node - * @param bootID {String} Boot ID reported by the node. - * @param containerRuntimeVersion {String} ContainerRuntime Version reported by the node through runtime remote API (e.g. docker://1.5.0). - * @param kernelVersion {String} Kernel Version reported by the node from 'uname -r' (e.g. 3.16.0-0.bpo.4-amd64). - * @param kubeProxyVersion {String} KubeProxy Version reported by the node. - * @param kubeletVersion {String} Kubelet Version reported by the node. - * @param machineID {String} MachineID reported by the node. For unique machine identification in the cluster this field is prefered. Learn more from man(5) machine-id: http://man7.org/linux/man-pages/man5/machine-id.5.html - * @param operatingSystem {String} The Operating System reported by the node - * @param osImage {String} OS Image reported by the node from /etc/os-release (e.g. Debian GNU/Linux 7 (wheezy)). - * @param systemUUID {String} SystemUUID reported by the node. For unique machine identification MachineID is prefered. This field is specific to Red Hat hosts https://access.redhat.com/documentation/en-US/Red_Hat_Subscription_Management/1/html/RHSM/getting-system-uuid.html - */ - var exports = function(architecture, bootID, containerRuntimeVersion, kernelVersion, kubeProxyVersion, kubeletVersion, machineID, operatingSystem, osImage, systemUUID) { - var _this = this; - - _this['architecture'] = architecture; - _this['bootID'] = bootID; - _this['containerRuntimeVersion'] = containerRuntimeVersion; - _this['kernelVersion'] = kernelVersion; - _this['kubeProxyVersion'] = kubeProxyVersion; - _this['kubeletVersion'] = kubeletVersion; - _this['machineID'] = machineID; - _this['operatingSystem'] = operatingSystem; - _this['osImage'] = osImage; - _this['systemUUID'] = systemUUID; - }; - - /** - * Constructs a V1NodeSystemInfo from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1NodeSystemInfo} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1NodeSystemInfo} The populated V1NodeSystemInfo instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('architecture')) { - obj['architecture'] = ApiClient.convertToType(data['architecture'], 'String'); - } - if (data.hasOwnProperty('bootID')) { - obj['bootID'] = ApiClient.convertToType(data['bootID'], 'String'); - } - if (data.hasOwnProperty('containerRuntimeVersion')) { - obj['containerRuntimeVersion'] = ApiClient.convertToType(data['containerRuntimeVersion'], 'String'); - } - if (data.hasOwnProperty('kernelVersion')) { - obj['kernelVersion'] = ApiClient.convertToType(data['kernelVersion'], 'String'); - } - if (data.hasOwnProperty('kubeProxyVersion')) { - obj['kubeProxyVersion'] = ApiClient.convertToType(data['kubeProxyVersion'], 'String'); - } - if (data.hasOwnProperty('kubeletVersion')) { - obj['kubeletVersion'] = ApiClient.convertToType(data['kubeletVersion'], 'String'); - } - if (data.hasOwnProperty('machineID')) { - obj['machineID'] = ApiClient.convertToType(data['machineID'], 'String'); - } - if (data.hasOwnProperty('operatingSystem')) { - obj['operatingSystem'] = ApiClient.convertToType(data['operatingSystem'], 'String'); - } - if (data.hasOwnProperty('osImage')) { - obj['osImage'] = ApiClient.convertToType(data['osImage'], 'String'); - } - if (data.hasOwnProperty('systemUUID')) { - obj['systemUUID'] = ApiClient.convertToType(data['systemUUID'], 'String'); - } - } - return obj; - } - - /** - * The Architecture reported by the node - * @member {String} architecture - */ - exports.prototype['architecture'] = undefined; - /** - * Boot ID reported by the node. - * @member {String} bootID - */ - exports.prototype['bootID'] = undefined; - /** - * ContainerRuntime Version reported by the node through runtime remote API (e.g. docker://1.5.0). - * @member {String} containerRuntimeVersion - */ - exports.prototype['containerRuntimeVersion'] = undefined; - /** - * Kernel Version reported by the node from 'uname -r' (e.g. 3.16.0-0.bpo.4-amd64). - * @member {String} kernelVersion - */ - exports.prototype['kernelVersion'] = undefined; - /** - * KubeProxy Version reported by the node. - * @member {String} kubeProxyVersion - */ - exports.prototype['kubeProxyVersion'] = undefined; - /** - * Kubelet Version reported by the node. - * @member {String} kubeletVersion - */ - exports.prototype['kubeletVersion'] = undefined; - /** - * MachineID reported by the node. For unique machine identification in the cluster this field is prefered. Learn more from man(5) machine-id: http://man7.org/linux/man-pages/man5/machine-id.5.html - * @member {String} machineID - */ - exports.prototype['machineID'] = undefined; - /** - * The Operating System reported by the node - * @member {String} operatingSystem - */ - exports.prototype['operatingSystem'] = undefined; - /** - * OS Image reported by the node from /etc/os-release (e.g. Debian GNU/Linux 7 (wheezy)). - * @member {String} osImage - */ - exports.prototype['osImage'] = undefined; - /** - * SystemUUID reported by the node. For unique machine identification MachineID is prefered. This field is specific to Red Hat hosts https://access.redhat.com/documentation/en-US/Red_Hat_Subscription_Management/1/html/RHSM/getting-system-uuid.html - * @member {String} systemUUID - */ - exports.prototype['systemUUID'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1NonResourceAttributes.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1NonResourceAttributes.js deleted file mode 100644 index 93c409481e..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1NonResourceAttributes.js +++ /dev/null @@ -1,90 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1NonResourceAttributes = factory(root.KubernetesJsClient.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - - /** - * The V1NonResourceAttributes model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1NonResourceAttributes - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1NonResourceAttributes. - * NonResourceAttributes includes the authorization attributes available for non-resource requests to the Authorizer interface - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1NonResourceAttributes - * @class - */ - var exports = function() { - var _this = this; - - - - }; - - /** - * Constructs a V1NonResourceAttributes from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1NonResourceAttributes} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1NonResourceAttributes} The populated V1NonResourceAttributes instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('path')) { - obj['path'] = ApiClient.convertToType(data['path'], 'String'); - } - if (data.hasOwnProperty('verb')) { - obj['verb'] = ApiClient.convertToType(data['verb'], 'String'); - } - } - return obj; - } - - /** - * Path is the URL path of the request - * @member {String} path - */ - exports.prototype['path'] = undefined; - /** - * Verb is the standard HTTP verb - * @member {String} verb - */ - exports.prototype['verb'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1ObjectFieldSelector.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1ObjectFieldSelector.js deleted file mode 100644 index 9dabda5d25..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1ObjectFieldSelector.js +++ /dev/null @@ -1,91 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1ObjectFieldSelector = factory(root.KubernetesJsClient.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - - /** - * The V1ObjectFieldSelector model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1ObjectFieldSelector - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1ObjectFieldSelector. - * ObjectFieldSelector selects an APIVersioned field of an object. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1ObjectFieldSelector - * @class - * @param fieldPath {String} Path of the field to select in the specified API version. - */ - var exports = function(fieldPath) { - var _this = this; - - - _this['fieldPath'] = fieldPath; - }; - - /** - * Constructs a V1ObjectFieldSelector from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1ObjectFieldSelector} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1ObjectFieldSelector} The populated V1ObjectFieldSelector instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('apiVersion')) { - obj['apiVersion'] = ApiClient.convertToType(data['apiVersion'], 'String'); - } - if (data.hasOwnProperty('fieldPath')) { - obj['fieldPath'] = ApiClient.convertToType(data['fieldPath'], 'String'); - } - } - return obj; - } - - /** - * Version of the schema the FieldPath is written in terms of, defaults to \"v1\". - * @member {String} apiVersion - */ - exports.prototype['apiVersion'] = undefined; - /** - * Path of the field to select in the specified API version. - * @member {String} fieldPath - */ - exports.prototype['fieldPath'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1ObjectMeta.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1ObjectMeta.js deleted file mode 100644 index 8c5d6578d5..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1ObjectMeta.js +++ /dev/null @@ -1,207 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1OwnerReference'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1OwnerReference')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1ObjectMeta = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1OwnerReference); - } -}(this, function(ApiClient, V1OwnerReference) { - 'use strict'; - - - - - /** - * The V1ObjectMeta model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1ObjectMeta - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1ObjectMeta. - * ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1ObjectMeta - * @class - */ - var exports = function() { - var _this = this; - - - - - - - - - - - - - - - - - }; - - /** - * Constructs a V1ObjectMeta from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1ObjectMeta} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1ObjectMeta} The populated V1ObjectMeta instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('annotations')) { - obj['annotations'] = ApiClient.convertToType(data['annotations'], {'String': 'String'}); - } - if (data.hasOwnProperty('clusterName')) { - obj['clusterName'] = ApiClient.convertToType(data['clusterName'], 'String'); - } - if (data.hasOwnProperty('creationTimestamp')) { - obj['creationTimestamp'] = ApiClient.convertToType(data['creationTimestamp'], 'Date'); - } - if (data.hasOwnProperty('deletionGracePeriodSeconds')) { - obj['deletionGracePeriodSeconds'] = ApiClient.convertToType(data['deletionGracePeriodSeconds'], 'Number'); - } - if (data.hasOwnProperty('deletionTimestamp')) { - obj['deletionTimestamp'] = ApiClient.convertToType(data['deletionTimestamp'], 'Date'); - } - if (data.hasOwnProperty('finalizers')) { - obj['finalizers'] = ApiClient.convertToType(data['finalizers'], ['String']); - } - if (data.hasOwnProperty('generateName')) { - obj['generateName'] = ApiClient.convertToType(data['generateName'], 'String'); - } - if (data.hasOwnProperty('generation')) { - obj['generation'] = ApiClient.convertToType(data['generation'], 'Number'); - } - if (data.hasOwnProperty('labels')) { - obj['labels'] = ApiClient.convertToType(data['labels'], {'String': 'String'}); - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - } - if (data.hasOwnProperty('namespace')) { - obj['namespace'] = ApiClient.convertToType(data['namespace'], 'String'); - } - if (data.hasOwnProperty('ownerReferences')) { - obj['ownerReferences'] = ApiClient.convertToType(data['ownerReferences'], [V1OwnerReference]); - } - if (data.hasOwnProperty('resourceVersion')) { - obj['resourceVersion'] = ApiClient.convertToType(data['resourceVersion'], 'String'); - } - if (data.hasOwnProperty('selfLink')) { - obj['selfLink'] = ApiClient.convertToType(data['selfLink'], 'String'); - } - if (data.hasOwnProperty('uid')) { - obj['uid'] = ApiClient.convertToType(data['uid'], 'String'); - } - } - return obj; - } - - /** - * Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * @member {Object.} annotations - */ - exports.prototype['annotations'] = undefined; - /** - * The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * @member {String} clusterName - */ - exports.prototype['clusterName'] = undefined; - /** - * CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. Populated by the system. Read-only. Null for lists. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata - * @member {Date} creationTimestamp - */ - exports.prototype['creationTimestamp'] = undefined; - /** - * Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * @member {Number} deletionGracePeriodSeconds - */ - exports.prototype['deletionGracePeriodSeconds'] = undefined; - /** - * DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field. Once set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. Populated by the system when a graceful deletion is requested. Read-only. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata - * @member {Date} deletionTimestamp - */ - exports.prototype['deletionTimestamp'] = undefined; - /** - * Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. - * @member {Array.} finalizers - */ - exports.prototype['finalizers'] = undefined; - /** - * GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). Applied only if Name is not specified. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#idempotency - * @member {String} generateName - */ - exports.prototype['generateName'] = undefined; - /** - * A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * @member {Number} generation - */ - exports.prototype['generation'] = undefined; - /** - * Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * @member {Object.} labels - */ - exports.prototype['labels'] = undefined; - /** - * Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * @member {String} name - */ - exports.prototype['name'] = undefined; - /** - * Namespace defines the space within each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * @member {String} namespace - */ - exports.prototype['namespace'] = undefined; - /** - * List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * @member {Array.} ownerReferences - */ - exports.prototype['ownerReferences'] = undefined; - /** - * An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#concurrency-control-and-consistency - * @member {String} resourceVersion - */ - exports.prototype['resourceVersion'] = undefined; - /** - * SelfLink is a URL representing this object. Populated by the system. Read-only. - * @member {String} selfLink - */ - exports.prototype['selfLink'] = undefined; - /** - * UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - * @member {String} uid - */ - exports.prototype['uid'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1ObjectReference.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1ObjectReference.js deleted file mode 100644 index 24c122b41f..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1ObjectReference.js +++ /dev/null @@ -1,135 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1ObjectReference = factory(root.KubernetesJsClient.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - - /** - * The V1ObjectReference model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1ObjectReference - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1ObjectReference. - * ObjectReference contains enough information to let you inspect or modify the referred object. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1ObjectReference - * @class - */ - var exports = function() { - var _this = this; - - - - - - - - - }; - - /** - * Constructs a V1ObjectReference from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1ObjectReference} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1ObjectReference} The populated V1ObjectReference instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('apiVersion')) { - obj['apiVersion'] = ApiClient.convertToType(data['apiVersion'], 'String'); - } - if (data.hasOwnProperty('fieldPath')) { - obj['fieldPath'] = ApiClient.convertToType(data['fieldPath'], 'String'); - } - if (data.hasOwnProperty('kind')) { - obj['kind'] = ApiClient.convertToType(data['kind'], 'String'); - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - } - if (data.hasOwnProperty('namespace')) { - obj['namespace'] = ApiClient.convertToType(data['namespace'], 'String'); - } - if (data.hasOwnProperty('resourceVersion')) { - obj['resourceVersion'] = ApiClient.convertToType(data['resourceVersion'], 'String'); - } - if (data.hasOwnProperty('uid')) { - obj['uid'] = ApiClient.convertToType(data['uid'], 'String'); - } - } - return obj; - } - - /** - * API version of the referent. - * @member {String} apiVersion - */ - exports.prototype['apiVersion'] = undefined; - /** - * If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: \"spec.containers{name}\" (where \"name\" refers to the name of the container that triggered the event) or if no container name is specified \"spec.containers[2]\" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. - * @member {String} fieldPath - */ - exports.prototype['fieldPath'] = undefined; - /** - * Kind of the referent. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - * @member {String} kind - */ - exports.prototype['kind'] = undefined; - /** - * Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * @member {String} name - */ - exports.prototype['name'] = undefined; - /** - * Namespace of the referent. More info: http://kubernetes.io/docs/user-guide/namespaces - * @member {String} namespace - */ - exports.prototype['namespace'] = undefined; - /** - * Specific resourceVersion to which this reference is made, if any. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#concurrency-control-and-consistency - * @member {String} resourceVersion - */ - exports.prototype['resourceVersion'] = undefined; - /** - * UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - * @member {String} uid - */ - exports.prototype['uid'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1OwnerReference.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1OwnerReference.js deleted file mode 100644 index 92ecfb3677..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1OwnerReference.js +++ /dev/null @@ -1,130 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1OwnerReference = factory(root.KubernetesJsClient.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - - /** - * The V1OwnerReference model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1OwnerReference - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1OwnerReference. - * OwnerReference contains enough information to let you identify an owning object. Currently, an owning object must be in the same namespace, so there is no namespace field. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1OwnerReference - * @class - * @param apiVersion {String} API version of the referent. - * @param kind {String} Kind of the referent. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - * @param name {String} Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * @param uid {String} UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - */ - var exports = function(apiVersion, kind, name, uid) { - var _this = this; - - _this['apiVersion'] = apiVersion; - - - _this['kind'] = kind; - _this['name'] = name; - _this['uid'] = uid; - }; - - /** - * Constructs a V1OwnerReference from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1OwnerReference} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1OwnerReference} The populated V1OwnerReference instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('apiVersion')) { - obj['apiVersion'] = ApiClient.convertToType(data['apiVersion'], 'String'); - } - if (data.hasOwnProperty('blockOwnerDeletion')) { - obj['blockOwnerDeletion'] = ApiClient.convertToType(data['blockOwnerDeletion'], 'Boolean'); - } - if (data.hasOwnProperty('controller')) { - obj['controller'] = ApiClient.convertToType(data['controller'], 'Boolean'); - } - if (data.hasOwnProperty('kind')) { - obj['kind'] = ApiClient.convertToType(data['kind'], 'String'); - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - } - if (data.hasOwnProperty('uid')) { - obj['uid'] = ApiClient.convertToType(data['uid'], 'String'); - } - } - return obj; - } - - /** - * API version of the referent. - * @member {String} apiVersion - */ - exports.prototype['apiVersion'] = undefined; - /** - * If true, AND if the owner has the \"foregroundDeletion\" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs \"delete\" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * @member {Boolean} blockOwnerDeletion - */ - exports.prototype['blockOwnerDeletion'] = undefined; - /** - * If true, this reference points to the managing controller. - * @member {Boolean} controller - */ - exports.prototype['controller'] = undefined; - /** - * Kind of the referent. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - * @member {String} kind - */ - exports.prototype['kind'] = undefined; - /** - * Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * @member {String} name - */ - exports.prototype['name'] = undefined; - /** - * UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - * @member {String} uid - */ - exports.prototype['uid'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1PersistentVolume.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1PersistentVolume.js deleted file mode 100644 index 35327a3089..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1PersistentVolume.js +++ /dev/null @@ -1,117 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1ObjectMeta', 'io.kubernetes.js/io.kubernetes.js.models/V1PersistentVolumeSpec', 'io.kubernetes.js/io.kubernetes.js.models/V1PersistentVolumeStatus'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1ObjectMeta'), require('./V1PersistentVolumeSpec'), require('./V1PersistentVolumeStatus')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1PersistentVolume = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1ObjectMeta, root.KubernetesJsClient.V1PersistentVolumeSpec, root.KubernetesJsClient.V1PersistentVolumeStatus); - } -}(this, function(ApiClient, V1ObjectMeta, V1PersistentVolumeSpec, V1PersistentVolumeStatus) { - 'use strict'; - - - - - /** - * The V1PersistentVolume model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1PersistentVolume - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1PersistentVolume. - * PersistentVolume (PV) is a storage resource provisioned by an administrator. It is analogous to a node. More info: http://kubernetes.io/docs/user-guide/persistent-volumes - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1PersistentVolume - * @class - */ - var exports = function() { - var _this = this; - - - - - - - }; - - /** - * Constructs a V1PersistentVolume from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1PersistentVolume} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1PersistentVolume} The populated V1PersistentVolume instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('apiVersion')) { - obj['apiVersion'] = ApiClient.convertToType(data['apiVersion'], 'String'); - } - if (data.hasOwnProperty('kind')) { - obj['kind'] = ApiClient.convertToType(data['kind'], 'String'); - } - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = V1ObjectMeta.constructFromObject(data['metadata']); - } - if (data.hasOwnProperty('spec')) { - obj['spec'] = V1PersistentVolumeSpec.constructFromObject(data['spec']); - } - if (data.hasOwnProperty('status')) { - obj['status'] = V1PersistentVolumeStatus.constructFromObject(data['status']); - } - } - return obj; - } - - /** - * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - * @member {String} apiVersion - */ - exports.prototype['apiVersion'] = undefined; - /** - * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - * @member {String} kind - */ - exports.prototype['kind'] = undefined; - /** - * Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1ObjectMeta} metadata - */ - exports.prototype['metadata'] = undefined; - /** - * Spec defines a specification of a persistent volume owned by the cluster. Provisioned by an administrator. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#persistent-volumes - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1PersistentVolumeSpec} spec - */ - exports.prototype['spec'] = undefined; - /** - * Status represents the current information/status for the persistent volume. Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#persistent-volumes - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1PersistentVolumeStatus} status - */ - exports.prototype['status'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1PersistentVolumeClaim.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1PersistentVolumeClaim.js deleted file mode 100644 index 53a38163cc..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1PersistentVolumeClaim.js +++ /dev/null @@ -1,117 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1ObjectMeta', 'io.kubernetes.js/io.kubernetes.js.models/V1PersistentVolumeClaimSpec', 'io.kubernetes.js/io.kubernetes.js.models/V1PersistentVolumeClaimStatus'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1ObjectMeta'), require('./V1PersistentVolumeClaimSpec'), require('./V1PersistentVolumeClaimStatus')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1PersistentVolumeClaim = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1ObjectMeta, root.KubernetesJsClient.V1PersistentVolumeClaimSpec, root.KubernetesJsClient.V1PersistentVolumeClaimStatus); - } -}(this, function(ApiClient, V1ObjectMeta, V1PersistentVolumeClaimSpec, V1PersistentVolumeClaimStatus) { - 'use strict'; - - - - - /** - * The V1PersistentVolumeClaim model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1PersistentVolumeClaim - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1PersistentVolumeClaim. - * PersistentVolumeClaim is a user's request for and claim to a persistent volume - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1PersistentVolumeClaim - * @class - */ - var exports = function() { - var _this = this; - - - - - - - }; - - /** - * Constructs a V1PersistentVolumeClaim from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1PersistentVolumeClaim} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1PersistentVolumeClaim} The populated V1PersistentVolumeClaim instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('apiVersion')) { - obj['apiVersion'] = ApiClient.convertToType(data['apiVersion'], 'String'); - } - if (data.hasOwnProperty('kind')) { - obj['kind'] = ApiClient.convertToType(data['kind'], 'String'); - } - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = V1ObjectMeta.constructFromObject(data['metadata']); - } - if (data.hasOwnProperty('spec')) { - obj['spec'] = V1PersistentVolumeClaimSpec.constructFromObject(data['spec']); - } - if (data.hasOwnProperty('status')) { - obj['status'] = V1PersistentVolumeClaimStatus.constructFromObject(data['status']); - } - } - return obj; - } - - /** - * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - * @member {String} apiVersion - */ - exports.prototype['apiVersion'] = undefined; - /** - * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - * @member {String} kind - */ - exports.prototype['kind'] = undefined; - /** - * Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1ObjectMeta} metadata - */ - exports.prototype['metadata'] = undefined; - /** - * Spec defines the desired characteristics of a volume requested by a pod author. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#persistentvolumeclaims - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1PersistentVolumeClaimSpec} spec - */ - exports.prototype['spec'] = undefined; - /** - * Status represents the current information/status of a persistent volume claim. Read-only. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#persistentvolumeclaims - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1PersistentVolumeClaimStatus} status - */ - exports.prototype['status'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1PersistentVolumeClaimList.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1PersistentVolumeClaimList.js deleted file mode 100644 index 1770874ebd..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1PersistentVolumeClaimList.js +++ /dev/null @@ -1,109 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1ListMeta', 'io.kubernetes.js/io.kubernetes.js.models/V1PersistentVolumeClaim'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1ListMeta'), require('./V1PersistentVolumeClaim')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1PersistentVolumeClaimList = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1ListMeta, root.KubernetesJsClient.V1PersistentVolumeClaim); - } -}(this, function(ApiClient, V1ListMeta, V1PersistentVolumeClaim) { - 'use strict'; - - - - - /** - * The V1PersistentVolumeClaimList model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1PersistentVolumeClaimList - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1PersistentVolumeClaimList. - * PersistentVolumeClaimList is a list of PersistentVolumeClaim items. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1PersistentVolumeClaimList - * @class - * @param items {Array.} A list of persistent volume claims. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#persistentvolumeclaims - */ - var exports = function(items) { - var _this = this; - - - _this['items'] = items; - - - }; - - /** - * Constructs a V1PersistentVolumeClaimList from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1PersistentVolumeClaimList} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1PersistentVolumeClaimList} The populated V1PersistentVolumeClaimList instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('apiVersion')) { - obj['apiVersion'] = ApiClient.convertToType(data['apiVersion'], 'String'); - } - if (data.hasOwnProperty('items')) { - obj['items'] = ApiClient.convertToType(data['items'], [V1PersistentVolumeClaim]); - } - if (data.hasOwnProperty('kind')) { - obj['kind'] = ApiClient.convertToType(data['kind'], 'String'); - } - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = V1ListMeta.constructFromObject(data['metadata']); - } - } - return obj; - } - - /** - * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - * @member {String} apiVersion - */ - exports.prototype['apiVersion'] = undefined; - /** - * A list of persistent volume claims. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#persistentvolumeclaims - * @member {Array.} items - */ - exports.prototype['items'] = undefined; - /** - * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - * @member {String} kind - */ - exports.prototype['kind'] = undefined; - /** - * Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1ListMeta} metadata - */ - exports.prototype['metadata'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1PersistentVolumeClaimSpec.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1PersistentVolumeClaimSpec.js deleted file mode 100644 index 1a9e5ed0b9..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1PersistentVolumeClaimSpec.js +++ /dev/null @@ -1,117 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1LabelSelector', 'io.kubernetes.js/io.kubernetes.js.models/V1ResourceRequirements'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1LabelSelector'), require('./V1ResourceRequirements')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1PersistentVolumeClaimSpec = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1LabelSelector, root.KubernetesJsClient.V1ResourceRequirements); - } -}(this, function(ApiClient, V1LabelSelector, V1ResourceRequirements) { - 'use strict'; - - - - - /** - * The V1PersistentVolumeClaimSpec model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1PersistentVolumeClaimSpec - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1PersistentVolumeClaimSpec. - * PersistentVolumeClaimSpec describes the common attributes of storage devices and allows a Source for provider-specific attributes - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1PersistentVolumeClaimSpec - * @class - */ - var exports = function() { - var _this = this; - - - - - - - }; - - /** - * Constructs a V1PersistentVolumeClaimSpec from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1PersistentVolumeClaimSpec} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1PersistentVolumeClaimSpec} The populated V1PersistentVolumeClaimSpec instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('accessModes')) { - obj['accessModes'] = ApiClient.convertToType(data['accessModes'], ['String']); - } - if (data.hasOwnProperty('resources')) { - obj['resources'] = V1ResourceRequirements.constructFromObject(data['resources']); - } - if (data.hasOwnProperty('selector')) { - obj['selector'] = V1LabelSelector.constructFromObject(data['selector']); - } - if (data.hasOwnProperty('storageClassName')) { - obj['storageClassName'] = ApiClient.convertToType(data['storageClassName'], 'String'); - } - if (data.hasOwnProperty('volumeName')) { - obj['volumeName'] = ApiClient.convertToType(data['volumeName'], 'String'); - } - } - return obj; - } - - /** - * AccessModes contains the desired access modes the volume should have. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#access-modes-1 - * @member {Array.} accessModes - */ - exports.prototype['accessModes'] = undefined; - /** - * Resources represents the minimum resources the volume should have. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#resources - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1ResourceRequirements} resources - */ - exports.prototype['resources'] = undefined; - /** - * A label query over volumes to consider for binding. - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1LabelSelector} selector - */ - exports.prototype['selector'] = undefined; - /** - * Name of the StorageClass required by the claim. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#class-1 - * @member {String} storageClassName - */ - exports.prototype['storageClassName'] = undefined; - /** - * VolumeName is the binding reference to the PersistentVolume backing this claim. - * @member {String} volumeName - */ - exports.prototype['volumeName'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1PersistentVolumeClaimStatus.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1PersistentVolumeClaimStatus.js deleted file mode 100644 index e1c145ff12..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1PersistentVolumeClaimStatus.js +++ /dev/null @@ -1,99 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1PersistentVolumeClaimStatus = factory(root.KubernetesJsClient.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - - /** - * The V1PersistentVolumeClaimStatus model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1PersistentVolumeClaimStatus - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1PersistentVolumeClaimStatus. - * PersistentVolumeClaimStatus is the current status of a persistent volume claim. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1PersistentVolumeClaimStatus - * @class - */ - var exports = function() { - var _this = this; - - - - - }; - - /** - * Constructs a V1PersistentVolumeClaimStatus from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1PersistentVolumeClaimStatus} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1PersistentVolumeClaimStatus} The populated V1PersistentVolumeClaimStatus instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('accessModes')) { - obj['accessModes'] = ApiClient.convertToType(data['accessModes'], ['String']); - } - if (data.hasOwnProperty('capacity')) { - obj['capacity'] = ApiClient.convertToType(data['capacity'], {'String': 'String'}); - } - if (data.hasOwnProperty('phase')) { - obj['phase'] = ApiClient.convertToType(data['phase'], 'String'); - } - } - return obj; - } - - /** - * AccessModes contains the actual access modes the volume backing the PVC has. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#access-modes-1 - * @member {Array.} accessModes - */ - exports.prototype['accessModes'] = undefined; - /** - * Represents the actual resources of the underlying volume. - * @member {Object.} capacity - */ - exports.prototype['capacity'] = undefined; - /** - * Phase represents the current phase of PersistentVolumeClaim. - * @member {String} phase - */ - exports.prototype['phase'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1PersistentVolumeClaimVolumeSource.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1PersistentVolumeClaimVolumeSource.js deleted file mode 100644 index e610636751..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1PersistentVolumeClaimVolumeSource.js +++ /dev/null @@ -1,91 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1PersistentVolumeClaimVolumeSource = factory(root.KubernetesJsClient.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - - /** - * The V1PersistentVolumeClaimVolumeSource model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1PersistentVolumeClaimVolumeSource - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1PersistentVolumeClaimVolumeSource. - * PersistentVolumeClaimVolumeSource references the user's PVC in the same namespace. This volume finds the bound PV and mounts that volume for the pod. A PersistentVolumeClaimVolumeSource is, essentially, a wrapper around another type of volume that is owned by someone else (the system). - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1PersistentVolumeClaimVolumeSource - * @class - * @param claimName {String} ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#persistentvolumeclaims - */ - var exports = function(claimName) { - var _this = this; - - _this['claimName'] = claimName; - - }; - - /** - * Constructs a V1PersistentVolumeClaimVolumeSource from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1PersistentVolumeClaimVolumeSource} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1PersistentVolumeClaimVolumeSource} The populated V1PersistentVolumeClaimVolumeSource instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('claimName')) { - obj['claimName'] = ApiClient.convertToType(data['claimName'], 'String'); - } - if (data.hasOwnProperty('readOnly')) { - obj['readOnly'] = ApiClient.convertToType(data['readOnly'], 'Boolean'); - } - } - return obj; - } - - /** - * ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#persistentvolumeclaims - * @member {String} claimName - */ - exports.prototype['claimName'] = undefined; - /** - * Will force the ReadOnly setting in VolumeMounts. Default false. - * @member {Boolean} readOnly - */ - exports.prototype['readOnly'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1PersistentVolumeList.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1PersistentVolumeList.js deleted file mode 100644 index eafd39ac54..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1PersistentVolumeList.js +++ /dev/null @@ -1,109 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1ListMeta', 'io.kubernetes.js/io.kubernetes.js.models/V1PersistentVolume'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1ListMeta'), require('./V1PersistentVolume')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1PersistentVolumeList = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1ListMeta, root.KubernetesJsClient.V1PersistentVolume); - } -}(this, function(ApiClient, V1ListMeta, V1PersistentVolume) { - 'use strict'; - - - - - /** - * The V1PersistentVolumeList model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1PersistentVolumeList - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1PersistentVolumeList. - * PersistentVolumeList is a list of PersistentVolume items. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1PersistentVolumeList - * @class - * @param items {Array.} List of persistent volumes. More info: http://kubernetes.io/docs/user-guide/persistent-volumes - */ - var exports = function(items) { - var _this = this; - - - _this['items'] = items; - - - }; - - /** - * Constructs a V1PersistentVolumeList from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1PersistentVolumeList} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1PersistentVolumeList} The populated V1PersistentVolumeList instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('apiVersion')) { - obj['apiVersion'] = ApiClient.convertToType(data['apiVersion'], 'String'); - } - if (data.hasOwnProperty('items')) { - obj['items'] = ApiClient.convertToType(data['items'], [V1PersistentVolume]); - } - if (data.hasOwnProperty('kind')) { - obj['kind'] = ApiClient.convertToType(data['kind'], 'String'); - } - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = V1ListMeta.constructFromObject(data['metadata']); - } - } - return obj; - } - - /** - * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - * @member {String} apiVersion - */ - exports.prototype['apiVersion'] = undefined; - /** - * List of persistent volumes. More info: http://kubernetes.io/docs/user-guide/persistent-volumes - * @member {Array.} items - */ - exports.prototype['items'] = undefined; - /** - * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - * @member {String} kind - */ - exports.prototype['kind'] = undefined; - /** - * Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1ListMeta} metadata - */ - exports.prototype['metadata'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1PersistentVolumeSpec.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1PersistentVolumeSpec.js deleted file mode 100644 index becf56430d..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1PersistentVolumeSpec.js +++ /dev/null @@ -1,288 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1AWSElasticBlockStoreVolumeSource', 'io.kubernetes.js/io.kubernetes.js.models/V1AzureDiskVolumeSource', 'io.kubernetes.js/io.kubernetes.js.models/V1AzureFileVolumeSource', 'io.kubernetes.js/io.kubernetes.js.models/V1CephFSVolumeSource', 'io.kubernetes.js/io.kubernetes.js.models/V1CinderVolumeSource', 'io.kubernetes.js/io.kubernetes.js.models/V1FCVolumeSource', 'io.kubernetes.js/io.kubernetes.js.models/V1FlexVolumeSource', 'io.kubernetes.js/io.kubernetes.js.models/V1FlockerVolumeSource', 'io.kubernetes.js/io.kubernetes.js.models/V1GCEPersistentDiskVolumeSource', 'io.kubernetes.js/io.kubernetes.js.models/V1GlusterfsVolumeSource', 'io.kubernetes.js/io.kubernetes.js.models/V1HostPathVolumeSource', 'io.kubernetes.js/io.kubernetes.js.models/V1ISCSIVolumeSource', 'io.kubernetes.js/io.kubernetes.js.models/V1NFSVolumeSource', 'io.kubernetes.js/io.kubernetes.js.models/V1ObjectReference', 'io.kubernetes.js/io.kubernetes.js.models/V1PhotonPersistentDiskVolumeSource', 'io.kubernetes.js/io.kubernetes.js.models/V1PortworxVolumeSource', 'io.kubernetes.js/io.kubernetes.js.models/V1QuobyteVolumeSource', 'io.kubernetes.js/io.kubernetes.js.models/V1RBDVolumeSource', 'io.kubernetes.js/io.kubernetes.js.models/V1ScaleIOVolumeSource', 'io.kubernetes.js/io.kubernetes.js.models/V1VsphereVirtualDiskVolumeSource'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1AWSElasticBlockStoreVolumeSource'), require('./V1AzureDiskVolumeSource'), require('./V1AzureFileVolumeSource'), require('./V1CephFSVolumeSource'), require('./V1CinderVolumeSource'), require('./V1FCVolumeSource'), require('./V1FlexVolumeSource'), require('./V1FlockerVolumeSource'), require('./V1GCEPersistentDiskVolumeSource'), require('./V1GlusterfsVolumeSource'), require('./V1HostPathVolumeSource'), require('./V1ISCSIVolumeSource'), require('./V1NFSVolumeSource'), require('./V1ObjectReference'), require('./V1PhotonPersistentDiskVolumeSource'), require('./V1PortworxVolumeSource'), require('./V1QuobyteVolumeSource'), require('./V1RBDVolumeSource'), require('./V1ScaleIOVolumeSource'), require('./V1VsphereVirtualDiskVolumeSource')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1PersistentVolumeSpec = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1AWSElasticBlockStoreVolumeSource, root.KubernetesJsClient.V1AzureDiskVolumeSource, root.KubernetesJsClient.V1AzureFileVolumeSource, root.KubernetesJsClient.V1CephFSVolumeSource, root.KubernetesJsClient.V1CinderVolumeSource, root.KubernetesJsClient.V1FCVolumeSource, root.KubernetesJsClient.V1FlexVolumeSource, root.KubernetesJsClient.V1FlockerVolumeSource, root.KubernetesJsClient.V1GCEPersistentDiskVolumeSource, root.KubernetesJsClient.V1GlusterfsVolumeSource, root.KubernetesJsClient.V1HostPathVolumeSource, root.KubernetesJsClient.V1ISCSIVolumeSource, root.KubernetesJsClient.V1NFSVolumeSource, root.KubernetesJsClient.V1ObjectReference, root.KubernetesJsClient.V1PhotonPersistentDiskVolumeSource, root.KubernetesJsClient.V1PortworxVolumeSource, root.KubernetesJsClient.V1QuobyteVolumeSource, root.KubernetesJsClient.V1RBDVolumeSource, root.KubernetesJsClient.V1ScaleIOVolumeSource, root.KubernetesJsClient.V1VsphereVirtualDiskVolumeSource); - } -}(this, function(ApiClient, V1AWSElasticBlockStoreVolumeSource, V1AzureDiskVolumeSource, V1AzureFileVolumeSource, V1CephFSVolumeSource, V1CinderVolumeSource, V1FCVolumeSource, V1FlexVolumeSource, V1FlockerVolumeSource, V1GCEPersistentDiskVolumeSource, V1GlusterfsVolumeSource, V1HostPathVolumeSource, V1ISCSIVolumeSource, V1NFSVolumeSource, V1ObjectReference, V1PhotonPersistentDiskVolumeSource, V1PortworxVolumeSource, V1QuobyteVolumeSource, V1RBDVolumeSource, V1ScaleIOVolumeSource, V1VsphereVirtualDiskVolumeSource) { - 'use strict'; - - - - - /** - * The V1PersistentVolumeSpec model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1PersistentVolumeSpec - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1PersistentVolumeSpec. - * PersistentVolumeSpec is the specification of a persistent volume. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1PersistentVolumeSpec - * @class - */ - var exports = function() { - var _this = this; - - - - - - - - - - - - - - - - - - - - - - - - - - }; - - /** - * Constructs a V1PersistentVolumeSpec from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1PersistentVolumeSpec} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1PersistentVolumeSpec} The populated V1PersistentVolumeSpec instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('accessModes')) { - obj['accessModes'] = ApiClient.convertToType(data['accessModes'], ['String']); - } - if (data.hasOwnProperty('awsElasticBlockStore')) { - obj['awsElasticBlockStore'] = V1AWSElasticBlockStoreVolumeSource.constructFromObject(data['awsElasticBlockStore']); - } - if (data.hasOwnProperty('azureDisk')) { - obj['azureDisk'] = V1AzureDiskVolumeSource.constructFromObject(data['azureDisk']); - } - if (data.hasOwnProperty('azureFile')) { - obj['azureFile'] = V1AzureFileVolumeSource.constructFromObject(data['azureFile']); - } - if (data.hasOwnProperty('capacity')) { - obj['capacity'] = ApiClient.convertToType(data['capacity'], {'String': 'String'}); - } - if (data.hasOwnProperty('cephfs')) { - obj['cephfs'] = V1CephFSVolumeSource.constructFromObject(data['cephfs']); - } - if (data.hasOwnProperty('cinder')) { - obj['cinder'] = V1CinderVolumeSource.constructFromObject(data['cinder']); - } - if (data.hasOwnProperty('claimRef')) { - obj['claimRef'] = V1ObjectReference.constructFromObject(data['claimRef']); - } - if (data.hasOwnProperty('fc')) { - obj['fc'] = V1FCVolumeSource.constructFromObject(data['fc']); - } - if (data.hasOwnProperty('flexVolume')) { - obj['flexVolume'] = V1FlexVolumeSource.constructFromObject(data['flexVolume']); - } - if (data.hasOwnProperty('flocker')) { - obj['flocker'] = V1FlockerVolumeSource.constructFromObject(data['flocker']); - } - if (data.hasOwnProperty('gcePersistentDisk')) { - obj['gcePersistentDisk'] = V1GCEPersistentDiskVolumeSource.constructFromObject(data['gcePersistentDisk']); - } - if (data.hasOwnProperty('glusterfs')) { - obj['glusterfs'] = V1GlusterfsVolumeSource.constructFromObject(data['glusterfs']); - } - if (data.hasOwnProperty('hostPath')) { - obj['hostPath'] = V1HostPathVolumeSource.constructFromObject(data['hostPath']); - } - if (data.hasOwnProperty('iscsi')) { - obj['iscsi'] = V1ISCSIVolumeSource.constructFromObject(data['iscsi']); - } - if (data.hasOwnProperty('nfs')) { - obj['nfs'] = V1NFSVolumeSource.constructFromObject(data['nfs']); - } - if (data.hasOwnProperty('persistentVolumeReclaimPolicy')) { - obj['persistentVolumeReclaimPolicy'] = ApiClient.convertToType(data['persistentVolumeReclaimPolicy'], 'String'); - } - if (data.hasOwnProperty('photonPersistentDisk')) { - obj['photonPersistentDisk'] = V1PhotonPersistentDiskVolumeSource.constructFromObject(data['photonPersistentDisk']); - } - if (data.hasOwnProperty('portworxVolume')) { - obj['portworxVolume'] = V1PortworxVolumeSource.constructFromObject(data['portworxVolume']); - } - if (data.hasOwnProperty('quobyte')) { - obj['quobyte'] = V1QuobyteVolumeSource.constructFromObject(data['quobyte']); - } - if (data.hasOwnProperty('rbd')) { - obj['rbd'] = V1RBDVolumeSource.constructFromObject(data['rbd']); - } - if (data.hasOwnProperty('scaleIO')) { - obj['scaleIO'] = V1ScaleIOVolumeSource.constructFromObject(data['scaleIO']); - } - if (data.hasOwnProperty('storageClassName')) { - obj['storageClassName'] = ApiClient.convertToType(data['storageClassName'], 'String'); - } - if (data.hasOwnProperty('vsphereVolume')) { - obj['vsphereVolume'] = V1VsphereVirtualDiskVolumeSource.constructFromObject(data['vsphereVolume']); - } - } - return obj; - } - - /** - * AccessModes contains all ways the volume can be mounted. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#access-modes - * @member {Array.} accessModes - */ - exports.prototype['accessModes'] = undefined; - /** - * AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: http://kubernetes.io/docs/user-guide/volumes#awselasticblockstore - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1AWSElasticBlockStoreVolumeSource} awsElasticBlockStore - */ - exports.prototype['awsElasticBlockStore'] = undefined; - /** - * AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1AzureDiskVolumeSource} azureDisk - */ - exports.prototype['azureDisk'] = undefined; - /** - * AzureFile represents an Azure File Service mount on the host and bind mount to the pod. - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1AzureFileVolumeSource} azureFile - */ - exports.prototype['azureFile'] = undefined; - /** - * A description of the persistent volume's resources and capacity. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#capacity - * @member {Object.} capacity - */ - exports.prototype['capacity'] = undefined; - /** - * CephFS represents a Ceph FS mount on the host that shares a pod's lifetime - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1CephFSVolumeSource} cephfs - */ - exports.prototype['cephfs'] = undefined; - /** - * Cinder represents a cinder volume attached and mounted on kubelets host machine More info: http://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1CinderVolumeSource} cinder - */ - exports.prototype['cinder'] = undefined; - /** - * ClaimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim. Expected to be non-nil when bound. claim.VolumeName is the authoritative bind between PV and PVC. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#binding - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1ObjectReference} claimRef - */ - exports.prototype['claimRef'] = undefined; - /** - * FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1FCVolumeSource} fc - */ - exports.prototype['fc'] = undefined; - /** - * FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. This is an alpha feature and may change in future. - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1FlexVolumeSource} flexVolume - */ - exports.prototype['flexVolume'] = undefined; - /** - * Flocker represents a Flocker volume attached to a kubelet's host machine and exposed to the pod for its usage. This depends on the Flocker control service being running - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1FlockerVolumeSource} flocker - */ - exports.prototype['flocker'] = undefined; - /** - * GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin. More info: http://kubernetes.io/docs/user-guide/volumes#gcepersistentdisk - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1GCEPersistentDiskVolumeSource} gcePersistentDisk - */ - exports.prototype['gcePersistentDisk'] = undefined; - /** - * Glusterfs represents a Glusterfs volume that is attached to a host and exposed to the pod. Provisioned by an admin. More info: http://releases.k8s.io/HEAD/examples/volumes/glusterfs/README.md - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1GlusterfsVolumeSource} glusterfs - */ - exports.prototype['glusterfs'] = undefined; - /** - * HostPath represents a directory on the host. Provisioned by a developer or tester. This is useful for single-node development and testing only! On-host storage is not supported in any way and WILL NOT WORK in a multi-node cluster. More info: http://kubernetes.io/docs/user-guide/volumes#hostpath - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1HostPathVolumeSource} hostPath - */ - exports.prototype['hostPath'] = undefined; - /** - * ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin. - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1ISCSIVolumeSource} iscsi - */ - exports.prototype['iscsi'] = undefined; - /** - * NFS represents an NFS mount on the host. Provisioned by an admin. More info: http://kubernetes.io/docs/user-guide/volumes#nfs - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1NFSVolumeSource} nfs - */ - exports.prototype['nfs'] = undefined; - /** - * What happens to a persistent volume when released from its claim. Valid options are Retain (default) and Recycle. Recycling must be supported by the volume plugin underlying this persistent volume. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#recycling-policy - * @member {String} persistentVolumeReclaimPolicy - */ - exports.prototype['persistentVolumeReclaimPolicy'] = undefined; - /** - * PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1PhotonPersistentDiskVolumeSource} photonPersistentDisk - */ - exports.prototype['photonPersistentDisk'] = undefined; - /** - * PortworxVolume represents a portworx volume attached and mounted on kubelets host machine - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1PortworxVolumeSource} portworxVolume - */ - exports.prototype['portworxVolume'] = undefined; - /** - * Quobyte represents a Quobyte mount on the host that shares a pod's lifetime - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1QuobyteVolumeSource} quobyte - */ - exports.prototype['quobyte'] = undefined; - /** - * RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: http://releases.k8s.io/HEAD/examples/volumes/rbd/README.md - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1RBDVolumeSource} rbd - */ - exports.prototype['rbd'] = undefined; - /** - * ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1ScaleIOVolumeSource} scaleIO - */ - exports.prototype['scaleIO'] = undefined; - /** - * Name of StorageClass to which this persistent volume belongs. Empty value means that this volume does not belong to any StorageClass. - * @member {String} storageClassName - */ - exports.prototype['storageClassName'] = undefined; - /** - * VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1VsphereVirtualDiskVolumeSource} vsphereVolume - */ - exports.prototype['vsphereVolume'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1PersistentVolumeStatus.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1PersistentVolumeStatus.js deleted file mode 100644 index ebef0e3430..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1PersistentVolumeStatus.js +++ /dev/null @@ -1,99 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1PersistentVolumeStatus = factory(root.KubernetesJsClient.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - - /** - * The V1PersistentVolumeStatus model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1PersistentVolumeStatus - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1PersistentVolumeStatus. - * PersistentVolumeStatus is the current status of a persistent volume. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1PersistentVolumeStatus - * @class - */ - var exports = function() { - var _this = this; - - - - - }; - - /** - * Constructs a V1PersistentVolumeStatus from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1PersistentVolumeStatus} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1PersistentVolumeStatus} The populated V1PersistentVolumeStatus instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('message')) { - obj['message'] = ApiClient.convertToType(data['message'], 'String'); - } - if (data.hasOwnProperty('phase')) { - obj['phase'] = ApiClient.convertToType(data['phase'], 'String'); - } - if (data.hasOwnProperty('reason')) { - obj['reason'] = ApiClient.convertToType(data['reason'], 'String'); - } - } - return obj; - } - - /** - * A human-readable message indicating details about why the volume is in this state. - * @member {String} message - */ - exports.prototype['message'] = undefined; - /** - * Phase indicates if a volume is available, bound to a claim, or released by a claim. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#phase - * @member {String} phase - */ - exports.prototype['phase'] = undefined; - /** - * Reason is a brief CamelCase string that describes any failure and is meant for machine parsing and tidy display in the CLI. - * @member {String} reason - */ - exports.prototype['reason'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1PhotonPersistentDiskVolumeSource.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1PhotonPersistentDiskVolumeSource.js deleted file mode 100644 index c68a26c29b..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1PhotonPersistentDiskVolumeSource.js +++ /dev/null @@ -1,91 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1PhotonPersistentDiskVolumeSource = factory(root.KubernetesJsClient.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - - /** - * The V1PhotonPersistentDiskVolumeSource model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1PhotonPersistentDiskVolumeSource - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1PhotonPersistentDiskVolumeSource. - * Represents a Photon Controller persistent disk resource. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1PhotonPersistentDiskVolumeSource - * @class - * @param pdID {String} ID that identifies Photon Controller persistent disk - */ - var exports = function(pdID) { - var _this = this; - - - _this['pdID'] = pdID; - }; - - /** - * Constructs a V1PhotonPersistentDiskVolumeSource from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1PhotonPersistentDiskVolumeSource} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1PhotonPersistentDiskVolumeSource} The populated V1PhotonPersistentDiskVolumeSource instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('fsType')) { - obj['fsType'] = ApiClient.convertToType(data['fsType'], 'String'); - } - if (data.hasOwnProperty('pdID')) { - obj['pdID'] = ApiClient.convertToType(data['pdID'], 'String'); - } - } - return obj; - } - - /** - * Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. - * @member {String} fsType - */ - exports.prototype['fsType'] = undefined; - /** - * ID that identifies Photon Controller persistent disk - * @member {String} pdID - */ - exports.prototype['pdID'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1Pod.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1Pod.js deleted file mode 100644 index ee6cdec5a3..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1Pod.js +++ /dev/null @@ -1,117 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1ObjectMeta', 'io.kubernetes.js/io.kubernetes.js.models/V1PodSpec', 'io.kubernetes.js/io.kubernetes.js.models/V1PodStatus'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1ObjectMeta'), require('./V1PodSpec'), require('./V1PodStatus')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1Pod = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1ObjectMeta, root.KubernetesJsClient.V1PodSpec, root.KubernetesJsClient.V1PodStatus); - } -}(this, function(ApiClient, V1ObjectMeta, V1PodSpec, V1PodStatus) { - 'use strict'; - - - - - /** - * The V1Pod model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1Pod - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1Pod. - * Pod is a collection of containers that can run on a host. This resource is created by clients and scheduled onto hosts. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1Pod - * @class - */ - var exports = function() { - var _this = this; - - - - - - - }; - - /** - * Constructs a V1Pod from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Pod} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1Pod} The populated V1Pod instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('apiVersion')) { - obj['apiVersion'] = ApiClient.convertToType(data['apiVersion'], 'String'); - } - if (data.hasOwnProperty('kind')) { - obj['kind'] = ApiClient.convertToType(data['kind'], 'String'); - } - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = V1ObjectMeta.constructFromObject(data['metadata']); - } - if (data.hasOwnProperty('spec')) { - obj['spec'] = V1PodSpec.constructFromObject(data['spec']); - } - if (data.hasOwnProperty('status')) { - obj['status'] = V1PodStatus.constructFromObject(data['status']); - } - } - return obj; - } - - /** - * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - * @member {String} apiVersion - */ - exports.prototype['apiVersion'] = undefined; - /** - * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - * @member {String} kind - */ - exports.prototype['kind'] = undefined; - /** - * Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1ObjectMeta} metadata - */ - exports.prototype['metadata'] = undefined; - /** - * Specification of the desired behavior of the pod. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1PodSpec} spec - */ - exports.prototype['spec'] = undefined; - /** - * Most recently observed status of the pod. This data may not be up to date. Populated by the system. Read-only. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1PodStatus} status - */ - exports.prototype['status'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1PodAffinity.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1PodAffinity.js deleted file mode 100644 index dfc75b6244..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1PodAffinity.js +++ /dev/null @@ -1,90 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1PodAffinityTerm', 'io.kubernetes.js/io.kubernetes.js.models/V1WeightedPodAffinityTerm'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1PodAffinityTerm'), require('./V1WeightedPodAffinityTerm')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1PodAffinity = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1PodAffinityTerm, root.KubernetesJsClient.V1WeightedPodAffinityTerm); - } -}(this, function(ApiClient, V1PodAffinityTerm, V1WeightedPodAffinityTerm) { - 'use strict'; - - - - - /** - * The V1PodAffinity model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1PodAffinity - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1PodAffinity. - * Pod affinity is a group of inter pod affinity scheduling rules. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1PodAffinity - * @class - */ - var exports = function() { - var _this = this; - - - - }; - - /** - * Constructs a V1PodAffinity from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1PodAffinity} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1PodAffinity} The populated V1PodAffinity instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('preferredDuringSchedulingIgnoredDuringExecution')) { - obj['preferredDuringSchedulingIgnoredDuringExecution'] = ApiClient.convertToType(data['preferredDuringSchedulingIgnoredDuringExecution'], [V1WeightedPodAffinityTerm]); - } - if (data.hasOwnProperty('requiredDuringSchedulingIgnoredDuringExecution')) { - obj['requiredDuringSchedulingIgnoredDuringExecution'] = ApiClient.convertToType(data['requiredDuringSchedulingIgnoredDuringExecution'], [V1PodAffinityTerm]); - } - } - return obj; - } - - /** - * The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - * @member {Array.} preferredDuringSchedulingIgnoredDuringExecution - */ - exports.prototype['preferredDuringSchedulingIgnoredDuringExecution'] = undefined; - /** - * NOT YET IMPLEMENTED. TODO: Uncomment field once it is implemented. If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system will try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. RequiredDuringSchedulingRequiredDuringExecution []PodAffinityTerm `json:\"requiredDuringSchedulingRequiredDuringExecution,omitempty\"` If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - * @member {Array.} requiredDuringSchedulingIgnoredDuringExecution - */ - exports.prototype['requiredDuringSchedulingIgnoredDuringExecution'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1PodAffinityTerm.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1PodAffinityTerm.js deleted file mode 100644 index 9b96772cf4..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1PodAffinityTerm.js +++ /dev/null @@ -1,99 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1LabelSelector'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1LabelSelector')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1PodAffinityTerm = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1LabelSelector); - } -}(this, function(ApiClient, V1LabelSelector) { - 'use strict'; - - - - - /** - * The V1PodAffinityTerm model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1PodAffinityTerm - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1PodAffinityTerm. - * Defines a set of pods (namely those matching the labelSelector relative to the given namespace(s)) that this pod should be co-located (affinity) or not co-located (anti-affinity) with, where co-located is defined as running on a node whose value of the label with key <topologyKey> tches that of any node on which a pod of the set of pods is running - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1PodAffinityTerm - * @class - */ - var exports = function() { - var _this = this; - - - - - }; - - /** - * Constructs a V1PodAffinityTerm from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1PodAffinityTerm} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1PodAffinityTerm} The populated V1PodAffinityTerm instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('labelSelector')) { - obj['labelSelector'] = V1LabelSelector.constructFromObject(data['labelSelector']); - } - if (data.hasOwnProperty('namespaces')) { - obj['namespaces'] = ApiClient.convertToType(data['namespaces'], ['String']); - } - if (data.hasOwnProperty('topologyKey')) { - obj['topologyKey'] = ApiClient.convertToType(data['topologyKey'], 'String'); - } - } - return obj; - } - - /** - * A label query over a set of resources, in this case pods. - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1LabelSelector} labelSelector - */ - exports.prototype['labelSelector'] = undefined; - /** - * namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means \"this pod's namespace\" - * @member {Array.} namespaces - */ - exports.prototype['namespaces'] = undefined; - /** - * This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. For PreferredDuringScheduling pod anti-affinity, empty topologyKey is interpreted as \"all topologies\" (\"all topologies\" here means all the topologyKeys indicated by scheduler command-line argument --failure-domains); for affinity and for RequiredDuringScheduling pod anti-affinity, empty topologyKey is not allowed. - * @member {String} topologyKey - */ - exports.prototype['topologyKey'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1PodAntiAffinity.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1PodAntiAffinity.js deleted file mode 100644 index 8bd6de9f23..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1PodAntiAffinity.js +++ /dev/null @@ -1,90 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1PodAffinityTerm', 'io.kubernetes.js/io.kubernetes.js.models/V1WeightedPodAffinityTerm'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1PodAffinityTerm'), require('./V1WeightedPodAffinityTerm')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1PodAntiAffinity = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1PodAffinityTerm, root.KubernetesJsClient.V1WeightedPodAffinityTerm); - } -}(this, function(ApiClient, V1PodAffinityTerm, V1WeightedPodAffinityTerm) { - 'use strict'; - - - - - /** - * The V1PodAntiAffinity model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1PodAntiAffinity - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1PodAntiAffinity. - * Pod anti affinity is a group of inter pod anti affinity scheduling rules. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1PodAntiAffinity - * @class - */ - var exports = function() { - var _this = this; - - - - }; - - /** - * Constructs a V1PodAntiAffinity from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1PodAntiAffinity} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1PodAntiAffinity} The populated V1PodAntiAffinity instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('preferredDuringSchedulingIgnoredDuringExecution')) { - obj['preferredDuringSchedulingIgnoredDuringExecution'] = ApiClient.convertToType(data['preferredDuringSchedulingIgnoredDuringExecution'], [V1WeightedPodAffinityTerm]); - } - if (data.hasOwnProperty('requiredDuringSchedulingIgnoredDuringExecution')) { - obj['requiredDuringSchedulingIgnoredDuringExecution'] = ApiClient.convertToType(data['requiredDuringSchedulingIgnoredDuringExecution'], [V1PodAffinityTerm]); - } - } - return obj; - } - - /** - * The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - * @member {Array.} preferredDuringSchedulingIgnoredDuringExecution - */ - exports.prototype['preferredDuringSchedulingIgnoredDuringExecution'] = undefined; - /** - * NOT YET IMPLEMENTED. TODO: Uncomment field once it is implemented. If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system will try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. RequiredDuringSchedulingRequiredDuringExecution []PodAffinityTerm `json:\"requiredDuringSchedulingRequiredDuringExecution,omitempty\"` If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - * @member {Array.} requiredDuringSchedulingIgnoredDuringExecution - */ - exports.prototype['requiredDuringSchedulingIgnoredDuringExecution'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1PodCondition.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1PodCondition.js deleted file mode 100644 index defef33f4e..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1PodCondition.js +++ /dev/null @@ -1,128 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1PodCondition = factory(root.KubernetesJsClient.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - - /** - * The V1PodCondition model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1PodCondition - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1PodCondition. - * PodCondition contains details for the current condition of this pod. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1PodCondition - * @class - * @param status {String} Status is the status of the condition. Can be True, False, Unknown. More info: http://kubernetes.io/docs/user-guide/pod-states#pod-conditions - * @param type {String} Type is the type of the condition. Currently only Ready. More info: http://kubernetes.io/docs/user-guide/pod-states#pod-conditions - */ - var exports = function(status, type) { - var _this = this; - - - - - - _this['status'] = status; - _this['type'] = type; - }; - - /** - * Constructs a V1PodCondition from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1PodCondition} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1PodCondition} The populated V1PodCondition instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('lastProbeTime')) { - obj['lastProbeTime'] = ApiClient.convertToType(data['lastProbeTime'], 'Date'); - } - if (data.hasOwnProperty('lastTransitionTime')) { - obj['lastTransitionTime'] = ApiClient.convertToType(data['lastTransitionTime'], 'Date'); - } - if (data.hasOwnProperty('message')) { - obj['message'] = ApiClient.convertToType(data['message'], 'String'); - } - if (data.hasOwnProperty('reason')) { - obj['reason'] = ApiClient.convertToType(data['reason'], 'String'); - } - if (data.hasOwnProperty('status')) { - obj['status'] = ApiClient.convertToType(data['status'], 'String'); - } - if (data.hasOwnProperty('type')) { - obj['type'] = ApiClient.convertToType(data['type'], 'String'); - } - } - return obj; - } - - /** - * Last time we probed the condition. - * @member {Date} lastProbeTime - */ - exports.prototype['lastProbeTime'] = undefined; - /** - * Last time the condition transitioned from one status to another. - * @member {Date} lastTransitionTime - */ - exports.prototype['lastTransitionTime'] = undefined; - /** - * Human-readable message indicating details about last transition. - * @member {String} message - */ - exports.prototype['message'] = undefined; - /** - * Unique, one-word, CamelCase reason for the condition's last transition. - * @member {String} reason - */ - exports.prototype['reason'] = undefined; - /** - * Status is the status of the condition. Can be True, False, Unknown. More info: http://kubernetes.io/docs/user-guide/pod-states#pod-conditions - * @member {String} status - */ - exports.prototype['status'] = undefined; - /** - * Type is the type of the condition. Currently only Ready. More info: http://kubernetes.io/docs/user-guide/pod-states#pod-conditions - * @member {String} type - */ - exports.prototype['type'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1PodList.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1PodList.js deleted file mode 100644 index 53afdc9d35..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1PodList.js +++ /dev/null @@ -1,109 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1ListMeta', 'io.kubernetes.js/io.kubernetes.js.models/V1Pod'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1ListMeta'), require('./V1Pod')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1PodList = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1ListMeta, root.KubernetesJsClient.V1Pod); - } -}(this, function(ApiClient, V1ListMeta, V1Pod) { - 'use strict'; - - - - - /** - * The V1PodList model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1PodList - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1PodList. - * PodList is a list of Pods. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1PodList - * @class - * @param items {Array.} List of pods. More info: http://kubernetes.io/docs/user-guide/pods - */ - var exports = function(items) { - var _this = this; - - - _this['items'] = items; - - - }; - - /** - * Constructs a V1PodList from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1PodList} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1PodList} The populated V1PodList instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('apiVersion')) { - obj['apiVersion'] = ApiClient.convertToType(data['apiVersion'], 'String'); - } - if (data.hasOwnProperty('items')) { - obj['items'] = ApiClient.convertToType(data['items'], [V1Pod]); - } - if (data.hasOwnProperty('kind')) { - obj['kind'] = ApiClient.convertToType(data['kind'], 'String'); - } - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = V1ListMeta.constructFromObject(data['metadata']); - } - } - return obj; - } - - /** - * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - * @member {String} apiVersion - */ - exports.prototype['apiVersion'] = undefined; - /** - * List of pods. More info: http://kubernetes.io/docs/user-guide/pods - * @member {Array.} items - */ - exports.prototype['items'] = undefined; - /** - * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - * @member {String} kind - */ - exports.prototype['kind'] = undefined; - /** - * Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1ListMeta} metadata - */ - exports.prototype['metadata'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1PodSecurityContext.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1PodSecurityContext.js deleted file mode 100644 index fc9a0d00b0..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1PodSecurityContext.js +++ /dev/null @@ -1,117 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1SELinuxOptions'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1SELinuxOptions')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1PodSecurityContext = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1SELinuxOptions); - } -}(this, function(ApiClient, V1SELinuxOptions) { - 'use strict'; - - - - - /** - * The V1PodSecurityContext model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1PodSecurityContext - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1PodSecurityContext. - * PodSecurityContext holds pod-level security attributes and common container settings. Some fields are also present in container.securityContext. Field values of container.securityContext take precedence over field values of PodSecurityContext. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1PodSecurityContext - * @class - */ - var exports = function() { - var _this = this; - - - - - - - }; - - /** - * Constructs a V1PodSecurityContext from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1PodSecurityContext} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1PodSecurityContext} The populated V1PodSecurityContext instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('fsGroup')) { - obj['fsGroup'] = ApiClient.convertToType(data['fsGroup'], 'Number'); - } - if (data.hasOwnProperty('runAsNonRoot')) { - obj['runAsNonRoot'] = ApiClient.convertToType(data['runAsNonRoot'], 'Boolean'); - } - if (data.hasOwnProperty('runAsUser')) { - obj['runAsUser'] = ApiClient.convertToType(data['runAsUser'], 'Number'); - } - if (data.hasOwnProperty('seLinuxOptions')) { - obj['seLinuxOptions'] = V1SELinuxOptions.constructFromObject(data['seLinuxOptions']); - } - if (data.hasOwnProperty('supplementalGroups')) { - obj['supplementalGroups'] = ApiClient.convertToType(data['supplementalGroups'], ['Number']); - } - } - return obj; - } - - /** - * A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- If unset, the Kubelet will not modify the ownership and permissions of any volume. - * @member {Number} fsGroup - */ - exports.prototype['fsGroup'] = undefined; - /** - * Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * @member {Boolean} runAsNonRoot - */ - exports.prototype['runAsNonRoot'] = undefined; - /** - * The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * @member {Number} runAsUser - */ - exports.prototype['runAsUser'] = undefined; - /** - * The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1SELinuxOptions} seLinuxOptions - */ - exports.prototype['seLinuxOptions'] = undefined; - /** - * A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. - * @member {Array.} supplementalGroups - */ - exports.prototype['supplementalGroups'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1PodSpec.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1PodSpec.js deleted file mode 100644 index 37ad77ac56..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1PodSpec.js +++ /dev/null @@ -1,271 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1Affinity', 'io.kubernetes.js/io.kubernetes.js.models/V1Container', 'io.kubernetes.js/io.kubernetes.js.models/V1LocalObjectReference', 'io.kubernetes.js/io.kubernetes.js.models/V1PodSecurityContext', 'io.kubernetes.js/io.kubernetes.js.models/V1Toleration', 'io.kubernetes.js/io.kubernetes.js.models/V1Volume'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1Affinity'), require('./V1Container'), require('./V1LocalObjectReference'), require('./V1PodSecurityContext'), require('./V1Toleration'), require('./V1Volume')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1PodSpec = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1Affinity, root.KubernetesJsClient.V1Container, root.KubernetesJsClient.V1LocalObjectReference, root.KubernetesJsClient.V1PodSecurityContext, root.KubernetesJsClient.V1Toleration, root.KubernetesJsClient.V1Volume); - } -}(this, function(ApiClient, V1Affinity, V1Container, V1LocalObjectReference, V1PodSecurityContext, V1Toleration, V1Volume) { - 'use strict'; - - - - - /** - * The V1PodSpec model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1PodSpec - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1PodSpec. - * PodSpec is a description of a pod. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1PodSpec - * @class - * @param containers {Array.} List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/containers - */ - var exports = function(containers) { - var _this = this; - - - - - _this['containers'] = containers; - - - - - - - - - - - - - - - - - - - }; - - /** - * Constructs a V1PodSpec from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1PodSpec} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1PodSpec} The populated V1PodSpec instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('activeDeadlineSeconds')) { - obj['activeDeadlineSeconds'] = ApiClient.convertToType(data['activeDeadlineSeconds'], 'Number'); - } - if (data.hasOwnProperty('affinity')) { - obj['affinity'] = V1Affinity.constructFromObject(data['affinity']); - } - if (data.hasOwnProperty('automountServiceAccountToken')) { - obj['automountServiceAccountToken'] = ApiClient.convertToType(data['automountServiceAccountToken'], 'Boolean'); - } - if (data.hasOwnProperty('containers')) { - obj['containers'] = ApiClient.convertToType(data['containers'], [V1Container]); - } - if (data.hasOwnProperty('dnsPolicy')) { - obj['dnsPolicy'] = ApiClient.convertToType(data['dnsPolicy'], 'String'); - } - if (data.hasOwnProperty('hostIPC')) { - obj['hostIPC'] = ApiClient.convertToType(data['hostIPC'], 'Boolean'); - } - if (data.hasOwnProperty('hostNetwork')) { - obj['hostNetwork'] = ApiClient.convertToType(data['hostNetwork'], 'Boolean'); - } - if (data.hasOwnProperty('hostPID')) { - obj['hostPID'] = ApiClient.convertToType(data['hostPID'], 'Boolean'); - } - if (data.hasOwnProperty('hostname')) { - obj['hostname'] = ApiClient.convertToType(data['hostname'], 'String'); - } - if (data.hasOwnProperty('imagePullSecrets')) { - obj['imagePullSecrets'] = ApiClient.convertToType(data['imagePullSecrets'], [V1LocalObjectReference]); - } - if (data.hasOwnProperty('initContainers')) { - obj['initContainers'] = ApiClient.convertToType(data['initContainers'], [V1Container]); - } - if (data.hasOwnProperty('nodeName')) { - obj['nodeName'] = ApiClient.convertToType(data['nodeName'], 'String'); - } - if (data.hasOwnProperty('nodeSelector')) { - obj['nodeSelector'] = ApiClient.convertToType(data['nodeSelector'], {'String': 'String'}); - } - if (data.hasOwnProperty('restartPolicy')) { - obj['restartPolicy'] = ApiClient.convertToType(data['restartPolicy'], 'String'); - } - if (data.hasOwnProperty('schedulerName')) { - obj['schedulerName'] = ApiClient.convertToType(data['schedulerName'], 'String'); - } - if (data.hasOwnProperty('securityContext')) { - obj['securityContext'] = V1PodSecurityContext.constructFromObject(data['securityContext']); - } - if (data.hasOwnProperty('serviceAccount')) { - obj['serviceAccount'] = ApiClient.convertToType(data['serviceAccount'], 'String'); - } - if (data.hasOwnProperty('serviceAccountName')) { - obj['serviceAccountName'] = ApiClient.convertToType(data['serviceAccountName'], 'String'); - } - if (data.hasOwnProperty('subdomain')) { - obj['subdomain'] = ApiClient.convertToType(data['subdomain'], 'String'); - } - if (data.hasOwnProperty('terminationGracePeriodSeconds')) { - obj['terminationGracePeriodSeconds'] = ApiClient.convertToType(data['terminationGracePeriodSeconds'], 'Number'); - } - if (data.hasOwnProperty('tolerations')) { - obj['tolerations'] = ApiClient.convertToType(data['tolerations'], [V1Toleration]); - } - if (data.hasOwnProperty('volumes')) { - obj['volumes'] = ApiClient.convertToType(data['volumes'], [V1Volume]); - } - } - return obj; - } - - /** - * Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. - * @member {Number} activeDeadlineSeconds - */ - exports.prototype['activeDeadlineSeconds'] = undefined; - /** - * If specified, the pod's scheduling constraints - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1Affinity} affinity - */ - exports.prototype['affinity'] = undefined; - /** - * AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. - * @member {Boolean} automountServiceAccountToken - */ - exports.prototype['automountServiceAccountToken'] = undefined; - /** - * List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/containers - * @member {Array.} containers - */ - exports.prototype['containers'] = undefined; - /** - * Set DNS policy for containers within the pod. One of 'ClusterFirstWithHostNet', 'ClusterFirst' or 'Default'. Defaults to \"ClusterFirst\". To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. - * @member {String} dnsPolicy - */ - exports.prototype['dnsPolicy'] = undefined; - /** - * Use the host's ipc namespace. Optional: Default to false. - * @member {Boolean} hostIPC - */ - exports.prototype['hostIPC'] = undefined; - /** - * Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. - * @member {Boolean} hostNetwork - */ - exports.prototype['hostNetwork'] = undefined; - /** - * Use the host's pid namespace. Optional: Default to false. - * @member {Boolean} hostPID - */ - exports.prototype['hostPID'] = undefined; - /** - * Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. - * @member {String} hostname - */ - exports.prototype['hostname'] = undefined; - /** - * ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: http://kubernetes.io/docs/user-guide/images#specifying-imagepullsecrets-on-a-pod - * @member {Array.} imagePullSecrets - */ - exports.prototype['imagePullSecrets'] = undefined; - /** - * List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, or Liveness probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/containers - * @member {Array.} initContainers - */ - exports.prototype['initContainers'] = undefined; - /** - * NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. - * @member {String} nodeName - */ - exports.prototype['nodeName'] = undefined; - /** - * NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: http://kubernetes.io/docs/user-guide/node-selection/README - * @member {Object.} nodeSelector - */ - exports.prototype['nodeSelector'] = undefined; - /** - * Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: http://kubernetes.io/docs/user-guide/pod-states#restartpolicy - * @member {String} restartPolicy - */ - exports.prototype['restartPolicy'] = undefined; - /** - * If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. - * @member {String} schedulerName - */ - exports.prototype['schedulerName'] = undefined; - /** - * SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1PodSecurityContext} securityContext - */ - exports.prototype['securityContext'] = undefined; - /** - * DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. - * @member {String} serviceAccount - */ - exports.prototype['serviceAccount'] = undefined; - /** - * ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: http://releases.k8s.io/HEAD/docs/design/service_accounts.md - * @member {String} serviceAccountName - */ - exports.prototype['serviceAccountName'] = undefined; - /** - * If specified, the fully qualified Pod hostname will be \"...svc.\". If not specified, the pod will not have a domainname at all. - * @member {String} subdomain - */ - exports.prototype['subdomain'] = undefined; - /** - * Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. - * @member {Number} terminationGracePeriodSeconds - */ - exports.prototype['terminationGracePeriodSeconds'] = undefined; - /** - * If specified, the pod's tolerations. - * @member {Array.} tolerations - */ - exports.prototype['tolerations'] = undefined; - /** - * List of volumes that can be mounted by containers belonging to the pod. More info: http://kubernetes.io/docs/user-guide/volumes - * @member {Array.} volumes - */ - exports.prototype['volumes'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1PodStatus.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1PodStatus.js deleted file mode 100644 index 937ff406c2..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1PodStatus.js +++ /dev/null @@ -1,162 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1ContainerStatus', 'io.kubernetes.js/io.kubernetes.js.models/V1PodCondition'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1ContainerStatus'), require('./V1PodCondition')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1PodStatus = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1ContainerStatus, root.KubernetesJsClient.V1PodCondition); - } -}(this, function(ApiClient, V1ContainerStatus, V1PodCondition) { - 'use strict'; - - - - - /** - * The V1PodStatus model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1PodStatus - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1PodStatus. - * PodStatus represents information about the status of a pod. Status may trail the actual state of a system. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1PodStatus - * @class - */ - var exports = function() { - var _this = this; - - - - - - - - - - - - }; - - /** - * Constructs a V1PodStatus from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1PodStatus} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1PodStatus} The populated V1PodStatus instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('conditions')) { - obj['conditions'] = ApiClient.convertToType(data['conditions'], [V1PodCondition]); - } - if (data.hasOwnProperty('containerStatuses')) { - obj['containerStatuses'] = ApiClient.convertToType(data['containerStatuses'], [V1ContainerStatus]); - } - if (data.hasOwnProperty('hostIP')) { - obj['hostIP'] = ApiClient.convertToType(data['hostIP'], 'String'); - } - if (data.hasOwnProperty('initContainerStatuses')) { - obj['initContainerStatuses'] = ApiClient.convertToType(data['initContainerStatuses'], [V1ContainerStatus]); - } - if (data.hasOwnProperty('message')) { - obj['message'] = ApiClient.convertToType(data['message'], 'String'); - } - if (data.hasOwnProperty('phase')) { - obj['phase'] = ApiClient.convertToType(data['phase'], 'String'); - } - if (data.hasOwnProperty('podIP')) { - obj['podIP'] = ApiClient.convertToType(data['podIP'], 'String'); - } - if (data.hasOwnProperty('qosClass')) { - obj['qosClass'] = ApiClient.convertToType(data['qosClass'], 'String'); - } - if (data.hasOwnProperty('reason')) { - obj['reason'] = ApiClient.convertToType(data['reason'], 'String'); - } - if (data.hasOwnProperty('startTime')) { - obj['startTime'] = ApiClient.convertToType(data['startTime'], 'Date'); - } - } - return obj; - } - - /** - * Current service state of pod. More info: http://kubernetes.io/docs/user-guide/pod-states#pod-conditions - * @member {Array.} conditions - */ - exports.prototype['conditions'] = undefined; - /** - * The list has one entry per container in the manifest. Each entry is currently the output of `docker inspect`. More info: http://kubernetes.io/docs/user-guide/pod-states#container-statuses - * @member {Array.} containerStatuses - */ - exports.prototype['containerStatuses'] = undefined; - /** - * IP address of the host to which the pod is assigned. Empty if not yet scheduled. - * @member {String} hostIP - */ - exports.prototype['hostIP'] = undefined; - /** - * The list has one entry per init container in the manifest. The most recent successful init container will have ready = true, the most recently started container will have startTime set. More info: http://kubernetes.io/docs/user-guide/pod-states#container-statuses - * @member {Array.} initContainerStatuses - */ - exports.prototype['initContainerStatuses'] = undefined; - /** - * A human readable message indicating details about why the pod is in this condition. - * @member {String} message - */ - exports.prototype['message'] = undefined; - /** - * Current condition of the pod. More info: http://kubernetes.io/docs/user-guide/pod-states#pod-phase - * @member {String} phase - */ - exports.prototype['phase'] = undefined; - /** - * IP address allocated to the pod. Routable at least within the cluster. Empty if not yet allocated. - * @member {String} podIP - */ - exports.prototype['podIP'] = undefined; - /** - * The Quality of Service (QOS) classification assigned to the pod based on resource requirements See PodQOSClass type for available QOS classes More info: https://github.com/kubernetes/kubernetes/blob/master/docs/design/resource-qos.md - * @member {String} qosClass - */ - exports.prototype['qosClass'] = undefined; - /** - * A brief CamelCase message indicating details about why the pod is in this state. e.g. 'OutOfDisk' - * @member {String} reason - */ - exports.prototype['reason'] = undefined; - /** - * RFC 3339 date and time at which the object was acknowledged by the Kubelet. This is before the Kubelet pulled the container image(s) for the pod. - * @member {Date} startTime - */ - exports.prototype['startTime'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1PodTemplate.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1PodTemplate.js deleted file mode 100644 index b0711837ca..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1PodTemplate.js +++ /dev/null @@ -1,108 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1ObjectMeta', 'io.kubernetes.js/io.kubernetes.js.models/V1PodTemplateSpec'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1ObjectMeta'), require('./V1PodTemplateSpec')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1PodTemplate = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1ObjectMeta, root.KubernetesJsClient.V1PodTemplateSpec); - } -}(this, function(ApiClient, V1ObjectMeta, V1PodTemplateSpec) { - 'use strict'; - - - - - /** - * The V1PodTemplate model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1PodTemplate - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1PodTemplate. - * PodTemplate describes a template for creating copies of a predefined pod. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1PodTemplate - * @class - */ - var exports = function() { - var _this = this; - - - - - - }; - - /** - * Constructs a V1PodTemplate from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1PodTemplate} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1PodTemplate} The populated V1PodTemplate instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('apiVersion')) { - obj['apiVersion'] = ApiClient.convertToType(data['apiVersion'], 'String'); - } - if (data.hasOwnProperty('kind')) { - obj['kind'] = ApiClient.convertToType(data['kind'], 'String'); - } - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = V1ObjectMeta.constructFromObject(data['metadata']); - } - if (data.hasOwnProperty('template')) { - obj['template'] = V1PodTemplateSpec.constructFromObject(data['template']); - } - } - return obj; - } - - /** - * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - * @member {String} apiVersion - */ - exports.prototype['apiVersion'] = undefined; - /** - * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - * @member {String} kind - */ - exports.prototype['kind'] = undefined; - /** - * Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1ObjectMeta} metadata - */ - exports.prototype['metadata'] = undefined; - /** - * Template defines the pods that will be created from this pod template. http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1PodTemplateSpec} template - */ - exports.prototype['template'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1PodTemplateList.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1PodTemplateList.js deleted file mode 100644 index 5fb5fba079..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1PodTemplateList.js +++ /dev/null @@ -1,109 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1ListMeta', 'io.kubernetes.js/io.kubernetes.js.models/V1PodTemplate'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1ListMeta'), require('./V1PodTemplate')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1PodTemplateList = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1ListMeta, root.KubernetesJsClient.V1PodTemplate); - } -}(this, function(ApiClient, V1ListMeta, V1PodTemplate) { - 'use strict'; - - - - - /** - * The V1PodTemplateList model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1PodTemplateList - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1PodTemplateList. - * PodTemplateList is a list of PodTemplates. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1PodTemplateList - * @class - * @param items {Array.} List of pod templates - */ - var exports = function(items) { - var _this = this; - - - _this['items'] = items; - - - }; - - /** - * Constructs a V1PodTemplateList from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1PodTemplateList} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1PodTemplateList} The populated V1PodTemplateList instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('apiVersion')) { - obj['apiVersion'] = ApiClient.convertToType(data['apiVersion'], 'String'); - } - if (data.hasOwnProperty('items')) { - obj['items'] = ApiClient.convertToType(data['items'], [V1PodTemplate]); - } - if (data.hasOwnProperty('kind')) { - obj['kind'] = ApiClient.convertToType(data['kind'], 'String'); - } - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = V1ListMeta.constructFromObject(data['metadata']); - } - } - return obj; - } - - /** - * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - * @member {String} apiVersion - */ - exports.prototype['apiVersion'] = undefined; - /** - * List of pod templates - * @member {Array.} items - */ - exports.prototype['items'] = undefined; - /** - * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - * @member {String} kind - */ - exports.prototype['kind'] = undefined; - /** - * Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1ListMeta} metadata - */ - exports.prototype['metadata'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1PodTemplateSpec.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1PodTemplateSpec.js deleted file mode 100644 index af4aee845d..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1PodTemplateSpec.js +++ /dev/null @@ -1,90 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1ObjectMeta', 'io.kubernetes.js/io.kubernetes.js.models/V1PodSpec'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1ObjectMeta'), require('./V1PodSpec')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1PodTemplateSpec = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1ObjectMeta, root.KubernetesJsClient.V1PodSpec); - } -}(this, function(ApiClient, V1ObjectMeta, V1PodSpec) { - 'use strict'; - - - - - /** - * The V1PodTemplateSpec model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1PodTemplateSpec - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1PodTemplateSpec. - * PodTemplateSpec describes the data a pod should have when created from a template - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1PodTemplateSpec - * @class - */ - var exports = function() { - var _this = this; - - - - }; - - /** - * Constructs a V1PodTemplateSpec from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1PodTemplateSpec} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1PodTemplateSpec} The populated V1PodTemplateSpec instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = V1ObjectMeta.constructFromObject(data['metadata']); - } - if (data.hasOwnProperty('spec')) { - obj['spec'] = V1PodSpec.constructFromObject(data['spec']); - } - } - return obj; - } - - /** - * Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1ObjectMeta} metadata - */ - exports.prototype['metadata'] = undefined; - /** - * Specification of the desired behavior of the pod. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1PodSpec} spec - */ - exports.prototype['spec'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1PortworxVolumeSource.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1PortworxVolumeSource.js deleted file mode 100644 index 6a8875179b..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1PortworxVolumeSource.js +++ /dev/null @@ -1,100 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1PortworxVolumeSource = factory(root.KubernetesJsClient.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - - /** - * The V1PortworxVolumeSource model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1PortworxVolumeSource - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1PortworxVolumeSource. - * PortworxVolumeSource represents a Portworx volume resource. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1PortworxVolumeSource - * @class - * @param volumeID {String} VolumeID uniquely identifies a Portworx volume - */ - var exports = function(volumeID) { - var _this = this; - - - - _this['volumeID'] = volumeID; - }; - - /** - * Constructs a V1PortworxVolumeSource from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1PortworxVolumeSource} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1PortworxVolumeSource} The populated V1PortworxVolumeSource instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('fsType')) { - obj['fsType'] = ApiClient.convertToType(data['fsType'], 'String'); - } - if (data.hasOwnProperty('readOnly')) { - obj['readOnly'] = ApiClient.convertToType(data['readOnly'], 'Boolean'); - } - if (data.hasOwnProperty('volumeID')) { - obj['volumeID'] = ApiClient.convertToType(data['volumeID'], 'String'); - } - } - return obj; - } - - /** - * FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\". Implicitly inferred to be \"ext4\" if unspecified. - * @member {String} fsType - */ - exports.prototype['fsType'] = undefined; - /** - * Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * @member {Boolean} readOnly - */ - exports.prototype['readOnly'] = undefined; - /** - * VolumeID uniquely identifies a Portworx volume - * @member {String} volumeID - */ - exports.prototype['volumeID'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1Preconditions.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1Preconditions.js deleted file mode 100644 index 32b22766b7..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1Preconditions.js +++ /dev/null @@ -1,81 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1Preconditions = factory(root.KubernetesJsClient.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - - /** - * The V1Preconditions model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1Preconditions - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1Preconditions. - * Preconditions must be fulfilled before an operation (update, delete, etc.) is carried out. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1Preconditions - * @class - */ - var exports = function() { - var _this = this; - - - }; - - /** - * Constructs a V1Preconditions from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Preconditions} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1Preconditions} The populated V1Preconditions instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('uid')) { - obj['uid'] = ApiClient.convertToType(data['uid'], 'String'); - } - } - return obj; - } - - /** - * Specifies the target UID. - * @member {String} uid - */ - exports.prototype['uid'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1PreferredSchedulingTerm.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1PreferredSchedulingTerm.js deleted file mode 100644 index 0f96850284..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1PreferredSchedulingTerm.js +++ /dev/null @@ -1,92 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1NodeSelectorTerm'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1NodeSelectorTerm')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1PreferredSchedulingTerm = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1NodeSelectorTerm); - } -}(this, function(ApiClient, V1NodeSelectorTerm) { - 'use strict'; - - - - - /** - * The V1PreferredSchedulingTerm model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1PreferredSchedulingTerm - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1PreferredSchedulingTerm. - * An empty preferred scheduling term matches all objects with implicit weight 0 (i.e. it's a no-op). A null preferred scheduling term matches no objects (i.e. is also a no-op). - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1PreferredSchedulingTerm - * @class - * @param preference {module:io.kubernetes.js/io.kubernetes.js.models/V1NodeSelectorTerm} A node selector term, associated with the corresponding weight. - * @param weight {Number} Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. - */ - var exports = function(preference, weight) { - var _this = this; - - _this['preference'] = preference; - _this['weight'] = weight; - }; - - /** - * Constructs a V1PreferredSchedulingTerm from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1PreferredSchedulingTerm} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1PreferredSchedulingTerm} The populated V1PreferredSchedulingTerm instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('preference')) { - obj['preference'] = V1NodeSelectorTerm.constructFromObject(data['preference']); - } - if (data.hasOwnProperty('weight')) { - obj['weight'] = ApiClient.convertToType(data['weight'], 'Number'); - } - } - return obj; - } - - /** - * A node selector term, associated with the corresponding weight. - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1NodeSelectorTerm} preference - */ - exports.prototype['preference'] = undefined; - /** - * Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. - * @member {Number} weight - */ - exports.prototype['weight'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1Probe.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1Probe.js deleted file mode 100644 index b1bb6f49c5..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1Probe.js +++ /dev/null @@ -1,144 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1ExecAction', 'io.kubernetes.js/io.kubernetes.js.models/V1HTTPGetAction', 'io.kubernetes.js/io.kubernetes.js.models/V1TCPSocketAction'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1ExecAction'), require('./V1HTTPGetAction'), require('./V1TCPSocketAction')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1Probe = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1ExecAction, root.KubernetesJsClient.V1HTTPGetAction, root.KubernetesJsClient.V1TCPSocketAction); - } -}(this, function(ApiClient, V1ExecAction, V1HTTPGetAction, V1TCPSocketAction) { - 'use strict'; - - - - - /** - * The V1Probe model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1Probe - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1Probe. - * Probe describes a health check to be performed against a container to determine whether it is alive or ready to receive traffic. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1Probe - * @class - */ - var exports = function() { - var _this = this; - - - - - - - - - - }; - - /** - * Constructs a V1Probe from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Probe} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1Probe} The populated V1Probe instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('exec')) { - obj['exec'] = V1ExecAction.constructFromObject(data['exec']); - } - if (data.hasOwnProperty('failureThreshold')) { - obj['failureThreshold'] = ApiClient.convertToType(data['failureThreshold'], 'Number'); - } - if (data.hasOwnProperty('httpGet')) { - obj['httpGet'] = V1HTTPGetAction.constructFromObject(data['httpGet']); - } - if (data.hasOwnProperty('initialDelaySeconds')) { - obj['initialDelaySeconds'] = ApiClient.convertToType(data['initialDelaySeconds'], 'Number'); - } - if (data.hasOwnProperty('periodSeconds')) { - obj['periodSeconds'] = ApiClient.convertToType(data['periodSeconds'], 'Number'); - } - if (data.hasOwnProperty('successThreshold')) { - obj['successThreshold'] = ApiClient.convertToType(data['successThreshold'], 'Number'); - } - if (data.hasOwnProperty('tcpSocket')) { - obj['tcpSocket'] = V1TCPSocketAction.constructFromObject(data['tcpSocket']); - } - if (data.hasOwnProperty('timeoutSeconds')) { - obj['timeoutSeconds'] = ApiClient.convertToType(data['timeoutSeconds'], 'Number'); - } - } - return obj; - } - - /** - * One and only one of the following should be specified. Exec specifies the action to take. - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1ExecAction} exec - */ - exports.prototype['exec'] = undefined; - /** - * Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. - * @member {Number} failureThreshold - */ - exports.prototype['failureThreshold'] = undefined; - /** - * HTTPGet specifies the http request to perform. - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1HTTPGetAction} httpGet - */ - exports.prototype['httpGet'] = undefined; - /** - * Number of seconds after the container has started before liveness probes are initiated. More info: http://kubernetes.io/docs/user-guide/pod-states#container-probes - * @member {Number} initialDelaySeconds - */ - exports.prototype['initialDelaySeconds'] = undefined; - /** - * How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. - * @member {Number} periodSeconds - */ - exports.prototype['periodSeconds'] = undefined; - /** - * Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness. Minimum value is 1. - * @member {Number} successThreshold - */ - exports.prototype['successThreshold'] = undefined; - /** - * TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1TCPSocketAction} tcpSocket - */ - exports.prototype['tcpSocket'] = undefined; - /** - * Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: http://kubernetes.io/docs/user-guide/pod-states#container-probes - * @member {Number} timeoutSeconds - */ - exports.prototype['timeoutSeconds'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1ProjectedVolumeSource.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1ProjectedVolumeSource.js deleted file mode 100644 index 16b12f820a..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1ProjectedVolumeSource.js +++ /dev/null @@ -1,91 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1VolumeProjection'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1VolumeProjection')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1ProjectedVolumeSource = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1VolumeProjection); - } -}(this, function(ApiClient, V1VolumeProjection) { - 'use strict'; - - - - - /** - * The V1ProjectedVolumeSource model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1ProjectedVolumeSource - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1ProjectedVolumeSource. - * Represents a projected volume source - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1ProjectedVolumeSource - * @class - * @param sources {Array.} list of volume projections - */ - var exports = function(sources) { - var _this = this; - - - _this['sources'] = sources; - }; - - /** - * Constructs a V1ProjectedVolumeSource from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1ProjectedVolumeSource} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1ProjectedVolumeSource} The populated V1ProjectedVolumeSource instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('defaultMode')) { - obj['defaultMode'] = ApiClient.convertToType(data['defaultMode'], 'Number'); - } - if (data.hasOwnProperty('sources')) { - obj['sources'] = ApiClient.convertToType(data['sources'], [V1VolumeProjection]); - } - } - return obj; - } - - /** - * Mode bits to use on created files by default. Must be a value between 0 and 0777. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. - * @member {Number} defaultMode - */ - exports.prototype['defaultMode'] = undefined; - /** - * list of volume projections - * @member {Array.} sources - */ - exports.prototype['sources'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1QuobyteVolumeSource.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1QuobyteVolumeSource.js deleted file mode 100644 index 4743f526a9..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1QuobyteVolumeSource.js +++ /dev/null @@ -1,119 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1QuobyteVolumeSource = factory(root.KubernetesJsClient.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - - /** - * The V1QuobyteVolumeSource model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1QuobyteVolumeSource - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1QuobyteVolumeSource. - * Represents a Quobyte mount that lasts the lifetime of a pod. Quobyte volumes do not support ownership management or SELinux relabeling. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1QuobyteVolumeSource - * @class - * @param registry {String} Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes - * @param volume {String} Volume is a string that references an already created Quobyte volume by name. - */ - var exports = function(registry, volume) { - var _this = this; - - - - _this['registry'] = registry; - - _this['volume'] = volume; - }; - - /** - * Constructs a V1QuobyteVolumeSource from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1QuobyteVolumeSource} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1QuobyteVolumeSource} The populated V1QuobyteVolumeSource instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('group')) { - obj['group'] = ApiClient.convertToType(data['group'], 'String'); - } - if (data.hasOwnProperty('readOnly')) { - obj['readOnly'] = ApiClient.convertToType(data['readOnly'], 'Boolean'); - } - if (data.hasOwnProperty('registry')) { - obj['registry'] = ApiClient.convertToType(data['registry'], 'String'); - } - if (data.hasOwnProperty('user')) { - obj['user'] = ApiClient.convertToType(data['user'], 'String'); - } - if (data.hasOwnProperty('volume')) { - obj['volume'] = ApiClient.convertToType(data['volume'], 'String'); - } - } - return obj; - } - - /** - * Group to map volume access to Default is no group - * @member {String} group - */ - exports.prototype['group'] = undefined; - /** - * ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. - * @member {Boolean} readOnly - */ - exports.prototype['readOnly'] = undefined; - /** - * Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes - * @member {String} registry - */ - exports.prototype['registry'] = undefined; - /** - * User to map volume access to Defaults to serivceaccount user - * @member {String} user - */ - exports.prototype['user'] = undefined; - /** - * Volume is a string that references an already created Quobyte volume by name. - * @member {String} volume - */ - exports.prototype['volume'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1RBDVolumeSource.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1RBDVolumeSource.js deleted file mode 100644 index 8fb673eccd..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1RBDVolumeSource.js +++ /dev/null @@ -1,146 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1LocalObjectReference'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1LocalObjectReference')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1RBDVolumeSource = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1LocalObjectReference); - } -}(this, function(ApiClient, V1LocalObjectReference) { - 'use strict'; - - - - - /** - * The V1RBDVolumeSource model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1RBDVolumeSource - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1RBDVolumeSource. - * Represents a Rados Block Device mount that lasts the lifetime of a pod. RBD volumes support ownership management and SELinux relabeling. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1RBDVolumeSource - * @class - * @param image {String} The rados image name. More info: http://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it - * @param monitors {Array.} A collection of Ceph monitors. More info: http://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it - */ - var exports = function(image, monitors) { - var _this = this; - - - _this['image'] = image; - - _this['monitors'] = monitors; - - - - - }; - - /** - * Constructs a V1RBDVolumeSource from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1RBDVolumeSource} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1RBDVolumeSource} The populated V1RBDVolumeSource instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('fsType')) { - obj['fsType'] = ApiClient.convertToType(data['fsType'], 'String'); - } - if (data.hasOwnProperty('image')) { - obj['image'] = ApiClient.convertToType(data['image'], 'String'); - } - if (data.hasOwnProperty('keyring')) { - obj['keyring'] = ApiClient.convertToType(data['keyring'], 'String'); - } - if (data.hasOwnProperty('monitors')) { - obj['monitors'] = ApiClient.convertToType(data['monitors'], ['String']); - } - if (data.hasOwnProperty('pool')) { - obj['pool'] = ApiClient.convertToType(data['pool'], 'String'); - } - if (data.hasOwnProperty('readOnly')) { - obj['readOnly'] = ApiClient.convertToType(data['readOnly'], 'Boolean'); - } - if (data.hasOwnProperty('secretRef')) { - obj['secretRef'] = V1LocalObjectReference.constructFromObject(data['secretRef']); - } - if (data.hasOwnProperty('user')) { - obj['user'] = ApiClient.convertToType(data['user'], 'String'); - } - } - return obj; - } - - /** - * Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: http://kubernetes.io/docs/user-guide/volumes#rbd - * @member {String} fsType - */ - exports.prototype['fsType'] = undefined; - /** - * The rados image name. More info: http://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it - * @member {String} image - */ - exports.prototype['image'] = undefined; - /** - * Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: http://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it - * @member {String} keyring - */ - exports.prototype['keyring'] = undefined; - /** - * A collection of Ceph monitors. More info: http://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it - * @member {Array.} monitors - */ - exports.prototype['monitors'] = undefined; - /** - * The rados pool name. Default is rbd. More info: http://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it. - * @member {String} pool - */ - exports.prototype['pool'] = undefined; - /** - * ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: http://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it - * @member {Boolean} readOnly - */ - exports.prototype['readOnly'] = undefined; - /** - * SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: http://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1LocalObjectReference} secretRef - */ - exports.prototype['secretRef'] = undefined; - /** - * The rados user name. Default is admin. More info: http://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it - * @member {String} user - */ - exports.prototype['user'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1ReplicationController.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1ReplicationController.js deleted file mode 100644 index ef6e2c1f03..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1ReplicationController.js +++ /dev/null @@ -1,117 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1ObjectMeta', 'io.kubernetes.js/io.kubernetes.js.models/V1ReplicationControllerSpec', 'io.kubernetes.js/io.kubernetes.js.models/V1ReplicationControllerStatus'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1ObjectMeta'), require('./V1ReplicationControllerSpec'), require('./V1ReplicationControllerStatus')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1ReplicationController = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1ObjectMeta, root.KubernetesJsClient.V1ReplicationControllerSpec, root.KubernetesJsClient.V1ReplicationControllerStatus); - } -}(this, function(ApiClient, V1ObjectMeta, V1ReplicationControllerSpec, V1ReplicationControllerStatus) { - 'use strict'; - - - - - /** - * The V1ReplicationController model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1ReplicationController - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1ReplicationController. - * ReplicationController represents the configuration of a replication controller. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1ReplicationController - * @class - */ - var exports = function() { - var _this = this; - - - - - - - }; - - /** - * Constructs a V1ReplicationController from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1ReplicationController} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1ReplicationController} The populated V1ReplicationController instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('apiVersion')) { - obj['apiVersion'] = ApiClient.convertToType(data['apiVersion'], 'String'); - } - if (data.hasOwnProperty('kind')) { - obj['kind'] = ApiClient.convertToType(data['kind'], 'String'); - } - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = V1ObjectMeta.constructFromObject(data['metadata']); - } - if (data.hasOwnProperty('spec')) { - obj['spec'] = V1ReplicationControllerSpec.constructFromObject(data['spec']); - } - if (data.hasOwnProperty('status')) { - obj['status'] = V1ReplicationControllerStatus.constructFromObject(data['status']); - } - } - return obj; - } - - /** - * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - * @member {String} apiVersion - */ - exports.prototype['apiVersion'] = undefined; - /** - * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - * @member {String} kind - */ - exports.prototype['kind'] = undefined; - /** - * If the Labels of a ReplicationController are empty, they are defaulted to be the same as the Pod(s) that the replication controller manages. Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1ObjectMeta} metadata - */ - exports.prototype['metadata'] = undefined; - /** - * Spec defines the specification of the desired behavior of the replication controller. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1ReplicationControllerSpec} spec - */ - exports.prototype['spec'] = undefined; - /** - * Status is the most recently observed status of the replication controller. This data may be out of date by some window of time. Populated by the system. Read-only. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1ReplicationControllerStatus} status - */ - exports.prototype['status'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1ReplicationControllerCondition.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1ReplicationControllerCondition.js deleted file mode 100644 index 82708d800e..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1ReplicationControllerCondition.js +++ /dev/null @@ -1,119 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1ReplicationControllerCondition = factory(root.KubernetesJsClient.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - - /** - * The V1ReplicationControllerCondition model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1ReplicationControllerCondition - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1ReplicationControllerCondition. - * ReplicationControllerCondition describes the state of a replication controller at a certain point. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1ReplicationControllerCondition - * @class - * @param status {String} Status of the condition, one of True, False, Unknown. - * @param type {String} Type of replication controller condition. - */ - var exports = function(status, type) { - var _this = this; - - - - - _this['status'] = status; - _this['type'] = type; - }; - - /** - * Constructs a V1ReplicationControllerCondition from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1ReplicationControllerCondition} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1ReplicationControllerCondition} The populated V1ReplicationControllerCondition instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('lastTransitionTime')) { - obj['lastTransitionTime'] = ApiClient.convertToType(data['lastTransitionTime'], 'Date'); - } - if (data.hasOwnProperty('message')) { - obj['message'] = ApiClient.convertToType(data['message'], 'String'); - } - if (data.hasOwnProperty('reason')) { - obj['reason'] = ApiClient.convertToType(data['reason'], 'String'); - } - if (data.hasOwnProperty('status')) { - obj['status'] = ApiClient.convertToType(data['status'], 'String'); - } - if (data.hasOwnProperty('type')) { - obj['type'] = ApiClient.convertToType(data['type'], 'String'); - } - } - return obj; - } - - /** - * The last time the condition transitioned from one status to another. - * @member {Date} lastTransitionTime - */ - exports.prototype['lastTransitionTime'] = undefined; - /** - * A human readable message indicating details about the transition. - * @member {String} message - */ - exports.prototype['message'] = undefined; - /** - * The reason for the condition's last transition. - * @member {String} reason - */ - exports.prototype['reason'] = undefined; - /** - * Status of the condition, one of True, False, Unknown. - * @member {String} status - */ - exports.prototype['status'] = undefined; - /** - * Type of replication controller condition. - * @member {String} type - */ - exports.prototype['type'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1ReplicationControllerList.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1ReplicationControllerList.js deleted file mode 100644 index 430a7b9cd0..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1ReplicationControllerList.js +++ /dev/null @@ -1,109 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1ListMeta', 'io.kubernetes.js/io.kubernetes.js.models/V1ReplicationController'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1ListMeta'), require('./V1ReplicationController')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1ReplicationControllerList = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1ListMeta, root.KubernetesJsClient.V1ReplicationController); - } -}(this, function(ApiClient, V1ListMeta, V1ReplicationController) { - 'use strict'; - - - - - /** - * The V1ReplicationControllerList model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1ReplicationControllerList - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1ReplicationControllerList. - * ReplicationControllerList is a collection of replication controllers. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1ReplicationControllerList - * @class - * @param items {Array.} List of replication controllers. More info: http://kubernetes.io/docs/user-guide/replication-controller - */ - var exports = function(items) { - var _this = this; - - - _this['items'] = items; - - - }; - - /** - * Constructs a V1ReplicationControllerList from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1ReplicationControllerList} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1ReplicationControllerList} The populated V1ReplicationControllerList instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('apiVersion')) { - obj['apiVersion'] = ApiClient.convertToType(data['apiVersion'], 'String'); - } - if (data.hasOwnProperty('items')) { - obj['items'] = ApiClient.convertToType(data['items'], [V1ReplicationController]); - } - if (data.hasOwnProperty('kind')) { - obj['kind'] = ApiClient.convertToType(data['kind'], 'String'); - } - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = V1ListMeta.constructFromObject(data['metadata']); - } - } - return obj; - } - - /** - * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - * @member {String} apiVersion - */ - exports.prototype['apiVersion'] = undefined; - /** - * List of replication controllers. More info: http://kubernetes.io/docs/user-guide/replication-controller - * @member {Array.} items - */ - exports.prototype['items'] = undefined; - /** - * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - * @member {String} kind - */ - exports.prototype['kind'] = undefined; - /** - * Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1ListMeta} metadata - */ - exports.prototype['metadata'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1ReplicationControllerSpec.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1ReplicationControllerSpec.js deleted file mode 100644 index 3f0e74b12f..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1ReplicationControllerSpec.js +++ /dev/null @@ -1,108 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1PodTemplateSpec'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1PodTemplateSpec')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1ReplicationControllerSpec = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1PodTemplateSpec); - } -}(this, function(ApiClient, V1PodTemplateSpec) { - 'use strict'; - - - - - /** - * The V1ReplicationControllerSpec model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1ReplicationControllerSpec - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1ReplicationControllerSpec. - * ReplicationControllerSpec is the specification of a replication controller. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1ReplicationControllerSpec - * @class - */ - var exports = function() { - var _this = this; - - - - - - }; - - /** - * Constructs a V1ReplicationControllerSpec from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1ReplicationControllerSpec} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1ReplicationControllerSpec} The populated V1ReplicationControllerSpec instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('minReadySeconds')) { - obj['minReadySeconds'] = ApiClient.convertToType(data['minReadySeconds'], 'Number'); - } - if (data.hasOwnProperty('replicas')) { - obj['replicas'] = ApiClient.convertToType(data['replicas'], 'Number'); - } - if (data.hasOwnProperty('selector')) { - obj['selector'] = ApiClient.convertToType(data['selector'], {'String': 'String'}); - } - if (data.hasOwnProperty('template')) { - obj['template'] = V1PodTemplateSpec.constructFromObject(data['template']); - } - } - return obj; - } - - /** - * Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) - * @member {Number} minReadySeconds - */ - exports.prototype['minReadySeconds'] = undefined; - /** - * Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: http://kubernetes.io/docs/user-guide/replication-controller#what-is-a-replication-controller - * @member {Number} replicas - */ - exports.prototype['replicas'] = undefined; - /** - * Selector is a label query over pods that should match the Replicas count. If Selector is empty, it is defaulted to the labels present on the Pod template. Label keys and values that must match in order to be controlled by this replication controller, if empty defaulted to labels on Pod template. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors - * @member {Object.} selector - */ - exports.prototype['selector'] = undefined; - /** - * Template is the object that describes the pod that will be created if insufficient replicas are detected. This takes precedence over a TemplateRef. More info: http://kubernetes.io/docs/user-guide/replication-controller#pod-template - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1PodTemplateSpec} template - */ - exports.prototype['template'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1ReplicationControllerStatus.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1ReplicationControllerStatus.js deleted file mode 100644 index 11f6fbcc6e..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1ReplicationControllerStatus.js +++ /dev/null @@ -1,127 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1ReplicationControllerCondition'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1ReplicationControllerCondition')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1ReplicationControllerStatus = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1ReplicationControllerCondition); - } -}(this, function(ApiClient, V1ReplicationControllerCondition) { - 'use strict'; - - - - - /** - * The V1ReplicationControllerStatus model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1ReplicationControllerStatus - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1ReplicationControllerStatus. - * ReplicationControllerStatus represents the current status of a replication controller. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1ReplicationControllerStatus - * @class - * @param replicas {Number} Replicas is the most recently oberved number of replicas. More info: http://kubernetes.io/docs/user-guide/replication-controller#what-is-a-replication-controller - */ - var exports = function(replicas) { - var _this = this; - - - - - - - _this['replicas'] = replicas; - }; - - /** - * Constructs a V1ReplicationControllerStatus from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1ReplicationControllerStatus} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1ReplicationControllerStatus} The populated V1ReplicationControllerStatus instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('availableReplicas')) { - obj['availableReplicas'] = ApiClient.convertToType(data['availableReplicas'], 'Number'); - } - if (data.hasOwnProperty('conditions')) { - obj['conditions'] = ApiClient.convertToType(data['conditions'], [V1ReplicationControllerCondition]); - } - if (data.hasOwnProperty('fullyLabeledReplicas')) { - obj['fullyLabeledReplicas'] = ApiClient.convertToType(data['fullyLabeledReplicas'], 'Number'); - } - if (data.hasOwnProperty('observedGeneration')) { - obj['observedGeneration'] = ApiClient.convertToType(data['observedGeneration'], 'Number'); - } - if (data.hasOwnProperty('readyReplicas')) { - obj['readyReplicas'] = ApiClient.convertToType(data['readyReplicas'], 'Number'); - } - if (data.hasOwnProperty('replicas')) { - obj['replicas'] = ApiClient.convertToType(data['replicas'], 'Number'); - } - } - return obj; - } - - /** - * The number of available replicas (ready for at least minReadySeconds) for this replication controller. - * @member {Number} availableReplicas - */ - exports.prototype['availableReplicas'] = undefined; - /** - * Represents the latest available observations of a replication controller's current state. - * @member {Array.} conditions - */ - exports.prototype['conditions'] = undefined; - /** - * The number of pods that have labels matching the labels of the pod template of the replication controller. - * @member {Number} fullyLabeledReplicas - */ - exports.prototype['fullyLabeledReplicas'] = undefined; - /** - * ObservedGeneration reflects the generation of the most recently observed replication controller. - * @member {Number} observedGeneration - */ - exports.prototype['observedGeneration'] = undefined; - /** - * The number of ready replicas for this replication controller. - * @member {Number} readyReplicas - */ - exports.prototype['readyReplicas'] = undefined; - /** - * Replicas is the most recently oberved number of replicas. More info: http://kubernetes.io/docs/user-guide/replication-controller#what-is-a-replication-controller - * @member {Number} replicas - */ - exports.prototype['replicas'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1ResourceAttributes.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1ResourceAttributes.js deleted file mode 100644 index 016940b281..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1ResourceAttributes.js +++ /dev/null @@ -1,135 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1ResourceAttributes = factory(root.KubernetesJsClient.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - - /** - * The V1ResourceAttributes model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1ResourceAttributes - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1ResourceAttributes. - * ResourceAttributes includes the authorization attributes available for resource requests to the Authorizer interface - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1ResourceAttributes - * @class - */ - var exports = function() { - var _this = this; - - - - - - - - - }; - - /** - * Constructs a V1ResourceAttributes from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1ResourceAttributes} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1ResourceAttributes} The populated V1ResourceAttributes instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('group')) { - obj['group'] = ApiClient.convertToType(data['group'], 'String'); - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - } - if (data.hasOwnProperty('namespace')) { - obj['namespace'] = ApiClient.convertToType(data['namespace'], 'String'); - } - if (data.hasOwnProperty('resource')) { - obj['resource'] = ApiClient.convertToType(data['resource'], 'String'); - } - if (data.hasOwnProperty('subresource')) { - obj['subresource'] = ApiClient.convertToType(data['subresource'], 'String'); - } - if (data.hasOwnProperty('verb')) { - obj['verb'] = ApiClient.convertToType(data['verb'], 'String'); - } - if (data.hasOwnProperty('version')) { - obj['version'] = ApiClient.convertToType(data['version'], 'String'); - } - } - return obj; - } - - /** - * Group is the API Group of the Resource. \"*\" means all. - * @member {String} group - */ - exports.prototype['group'] = undefined; - /** - * Name is the name of the resource being requested for a \"get\" or deleted for a \"delete\". \"\" (empty) means all. - * @member {String} name - */ - exports.prototype['name'] = undefined; - /** - * Namespace is the namespace of the action being requested. Currently, there is no distinction between no namespace and all namespaces \"\" (empty) is defaulted for LocalSubjectAccessReviews \"\" (empty) is empty for cluster-scoped resources \"\" (empty) means \"all\" for namespace scoped resources from a SubjectAccessReview or SelfSubjectAccessReview - * @member {String} namespace - */ - exports.prototype['namespace'] = undefined; - /** - * Resource is one of the existing resource types. \"*\" means all. - * @member {String} resource - */ - exports.prototype['resource'] = undefined; - /** - * Subresource is one of the existing resource types. \"\" means none. - * @member {String} subresource - */ - exports.prototype['subresource'] = undefined; - /** - * Verb is a kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy. \"*\" means all. - * @member {String} verb - */ - exports.prototype['verb'] = undefined; - /** - * Version is the API Version of the Resource. \"*\" means all. - * @member {String} version - */ - exports.prototype['version'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1ResourceFieldSelector.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1ResourceFieldSelector.js deleted file mode 100644 index f9a1dc2dab..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1ResourceFieldSelector.js +++ /dev/null @@ -1,100 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1ResourceFieldSelector = factory(root.KubernetesJsClient.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - - /** - * The V1ResourceFieldSelector model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1ResourceFieldSelector - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1ResourceFieldSelector. - * ResourceFieldSelector represents container resources (cpu, memory) and their output format - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1ResourceFieldSelector - * @class - * @param resource {String} Required: resource to select - */ - var exports = function(resource) { - var _this = this; - - - - _this['resource'] = resource; - }; - - /** - * Constructs a V1ResourceFieldSelector from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1ResourceFieldSelector} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1ResourceFieldSelector} The populated V1ResourceFieldSelector instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('containerName')) { - obj['containerName'] = ApiClient.convertToType(data['containerName'], 'String'); - } - if (data.hasOwnProperty('divisor')) { - obj['divisor'] = ApiClient.convertToType(data['divisor'], 'String'); - } - if (data.hasOwnProperty('resource')) { - obj['resource'] = ApiClient.convertToType(data['resource'], 'String'); - } - } - return obj; - } - - /** - * Container name: required for volumes, optional for env vars - * @member {String} containerName - */ - exports.prototype['containerName'] = undefined; - /** - * Specifies the output format of the exposed resources, defaults to \"1\" - * @member {String} divisor - */ - exports.prototype['divisor'] = undefined; - /** - * Required: resource to select - * @member {String} resource - */ - exports.prototype['resource'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1ResourceQuota.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1ResourceQuota.js deleted file mode 100644 index b108dbebb5..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1ResourceQuota.js +++ /dev/null @@ -1,117 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1ObjectMeta', 'io.kubernetes.js/io.kubernetes.js.models/V1ResourceQuotaSpec', 'io.kubernetes.js/io.kubernetes.js.models/V1ResourceQuotaStatus'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1ObjectMeta'), require('./V1ResourceQuotaSpec'), require('./V1ResourceQuotaStatus')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1ResourceQuota = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1ObjectMeta, root.KubernetesJsClient.V1ResourceQuotaSpec, root.KubernetesJsClient.V1ResourceQuotaStatus); - } -}(this, function(ApiClient, V1ObjectMeta, V1ResourceQuotaSpec, V1ResourceQuotaStatus) { - 'use strict'; - - - - - /** - * The V1ResourceQuota model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1ResourceQuota - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1ResourceQuota. - * ResourceQuota sets aggregate quota restrictions enforced per namespace - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1ResourceQuota - * @class - */ - var exports = function() { - var _this = this; - - - - - - - }; - - /** - * Constructs a V1ResourceQuota from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1ResourceQuota} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1ResourceQuota} The populated V1ResourceQuota instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('apiVersion')) { - obj['apiVersion'] = ApiClient.convertToType(data['apiVersion'], 'String'); - } - if (data.hasOwnProperty('kind')) { - obj['kind'] = ApiClient.convertToType(data['kind'], 'String'); - } - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = V1ObjectMeta.constructFromObject(data['metadata']); - } - if (data.hasOwnProperty('spec')) { - obj['spec'] = V1ResourceQuotaSpec.constructFromObject(data['spec']); - } - if (data.hasOwnProperty('status')) { - obj['status'] = V1ResourceQuotaStatus.constructFromObject(data['status']); - } - } - return obj; - } - - /** - * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - * @member {String} apiVersion - */ - exports.prototype['apiVersion'] = undefined; - /** - * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - * @member {String} kind - */ - exports.prototype['kind'] = undefined; - /** - * Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1ObjectMeta} metadata - */ - exports.prototype['metadata'] = undefined; - /** - * Spec defines the desired quota. http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1ResourceQuotaSpec} spec - */ - exports.prototype['spec'] = undefined; - /** - * Status defines the actual enforced quota and its current usage. http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1ResourceQuotaStatus} status - */ - exports.prototype['status'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1ResourceQuotaList.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1ResourceQuotaList.js deleted file mode 100644 index a14a7597a1..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1ResourceQuotaList.js +++ /dev/null @@ -1,109 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1ListMeta', 'io.kubernetes.js/io.kubernetes.js.models/V1ResourceQuota'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1ListMeta'), require('./V1ResourceQuota')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1ResourceQuotaList = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1ListMeta, root.KubernetesJsClient.V1ResourceQuota); - } -}(this, function(ApiClient, V1ListMeta, V1ResourceQuota) { - 'use strict'; - - - - - /** - * The V1ResourceQuotaList model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1ResourceQuotaList - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1ResourceQuotaList. - * ResourceQuotaList is a list of ResourceQuota items. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1ResourceQuotaList - * @class - * @param items {Array.} Items is a list of ResourceQuota objects. More info: http://releases.k8s.io/HEAD/docs/design/admission_control_resource_quota.md#admissioncontrol-plugin-resourcequota - */ - var exports = function(items) { - var _this = this; - - - _this['items'] = items; - - - }; - - /** - * Constructs a V1ResourceQuotaList from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1ResourceQuotaList} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1ResourceQuotaList} The populated V1ResourceQuotaList instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('apiVersion')) { - obj['apiVersion'] = ApiClient.convertToType(data['apiVersion'], 'String'); - } - if (data.hasOwnProperty('items')) { - obj['items'] = ApiClient.convertToType(data['items'], [V1ResourceQuota]); - } - if (data.hasOwnProperty('kind')) { - obj['kind'] = ApiClient.convertToType(data['kind'], 'String'); - } - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = V1ListMeta.constructFromObject(data['metadata']); - } - } - return obj; - } - - /** - * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - * @member {String} apiVersion - */ - exports.prototype['apiVersion'] = undefined; - /** - * Items is a list of ResourceQuota objects. More info: http://releases.k8s.io/HEAD/docs/design/admission_control_resource_quota.md#admissioncontrol-plugin-resourcequota - * @member {Array.} items - */ - exports.prototype['items'] = undefined; - /** - * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - * @member {String} kind - */ - exports.prototype['kind'] = undefined; - /** - * Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1ListMeta} metadata - */ - exports.prototype['metadata'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1ResourceQuotaSpec.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1ResourceQuotaSpec.js deleted file mode 100644 index 4562c03af6..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1ResourceQuotaSpec.js +++ /dev/null @@ -1,90 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1ResourceQuotaSpec = factory(root.KubernetesJsClient.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - - /** - * The V1ResourceQuotaSpec model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1ResourceQuotaSpec - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1ResourceQuotaSpec. - * ResourceQuotaSpec defines the desired hard limits to enforce for Quota. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1ResourceQuotaSpec - * @class - */ - var exports = function() { - var _this = this; - - - - }; - - /** - * Constructs a V1ResourceQuotaSpec from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1ResourceQuotaSpec} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1ResourceQuotaSpec} The populated V1ResourceQuotaSpec instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('hard')) { - obj['hard'] = ApiClient.convertToType(data['hard'], {'String': 'String'}); - } - if (data.hasOwnProperty('scopes')) { - obj['scopes'] = ApiClient.convertToType(data['scopes'], ['String']); - } - } - return obj; - } - - /** - * Hard is the set of desired hard limits for each named resource. More info: http://releases.k8s.io/HEAD/docs/design/admission_control_resource_quota.md#admissioncontrol-plugin-resourcequota - * @member {Object.} hard - */ - exports.prototype['hard'] = undefined; - /** - * A collection of filters that must match each object tracked by a quota. If not specified, the quota matches all objects. - * @member {Array.} scopes - */ - exports.prototype['scopes'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1ResourceQuotaStatus.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1ResourceQuotaStatus.js deleted file mode 100644 index 1a3fca5327..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1ResourceQuotaStatus.js +++ /dev/null @@ -1,90 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1ResourceQuotaStatus = factory(root.KubernetesJsClient.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - - /** - * The V1ResourceQuotaStatus model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1ResourceQuotaStatus - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1ResourceQuotaStatus. - * ResourceQuotaStatus defines the enforced hard limits and observed use. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1ResourceQuotaStatus - * @class - */ - var exports = function() { - var _this = this; - - - - }; - - /** - * Constructs a V1ResourceQuotaStatus from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1ResourceQuotaStatus} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1ResourceQuotaStatus} The populated V1ResourceQuotaStatus instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('hard')) { - obj['hard'] = ApiClient.convertToType(data['hard'], {'String': 'String'}); - } - if (data.hasOwnProperty('used')) { - obj['used'] = ApiClient.convertToType(data['used'], {'String': 'String'}); - } - } - return obj; - } - - /** - * Hard is the set of enforced hard limits for each named resource. More info: http://releases.k8s.io/HEAD/docs/design/admission_control_resource_quota.md#admissioncontrol-plugin-resourcequota - * @member {Object.} hard - */ - exports.prototype['hard'] = undefined; - /** - * Used is the current observed total usage of the resource in the namespace. - * @member {Object.} used - */ - exports.prototype['used'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1ResourceRequirements.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1ResourceRequirements.js deleted file mode 100644 index 43e3a60d72..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1ResourceRequirements.js +++ /dev/null @@ -1,90 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1ResourceRequirements = factory(root.KubernetesJsClient.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - - /** - * The V1ResourceRequirements model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1ResourceRequirements - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1ResourceRequirements. - * ResourceRequirements describes the compute resource requirements. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1ResourceRequirements - * @class - */ - var exports = function() { - var _this = this; - - - - }; - - /** - * Constructs a V1ResourceRequirements from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1ResourceRequirements} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1ResourceRequirements} The populated V1ResourceRequirements instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('limits')) { - obj['limits'] = ApiClient.convertToType(data['limits'], {'String': 'String'}); - } - if (data.hasOwnProperty('requests')) { - obj['requests'] = ApiClient.convertToType(data['requests'], {'String': 'String'}); - } - } - return obj; - } - - /** - * Limits describes the maximum amount of compute resources allowed. More info: http://kubernetes.io/docs/user-guide/compute-resources/ - * @member {Object.} limits - */ - exports.prototype['limits'] = undefined; - /** - * Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: http://kubernetes.io/docs/user-guide/compute-resources/ - * @member {Object.} requests - */ - exports.prototype['requests'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1SELinuxOptions.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1SELinuxOptions.js deleted file mode 100644 index 1009fc81e2..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1SELinuxOptions.js +++ /dev/null @@ -1,108 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1SELinuxOptions = factory(root.KubernetesJsClient.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - - /** - * The V1SELinuxOptions model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1SELinuxOptions - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1SELinuxOptions. - * SELinuxOptions are the labels to be applied to the container - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1SELinuxOptions - * @class - */ - var exports = function() { - var _this = this; - - - - - - }; - - /** - * Constructs a V1SELinuxOptions from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1SELinuxOptions} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1SELinuxOptions} The populated V1SELinuxOptions instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('level')) { - obj['level'] = ApiClient.convertToType(data['level'], 'String'); - } - if (data.hasOwnProperty('role')) { - obj['role'] = ApiClient.convertToType(data['role'], 'String'); - } - if (data.hasOwnProperty('type')) { - obj['type'] = ApiClient.convertToType(data['type'], 'String'); - } - if (data.hasOwnProperty('user')) { - obj['user'] = ApiClient.convertToType(data['user'], 'String'); - } - } - return obj; - } - - /** - * Level is SELinux level label that applies to the container. - * @member {String} level - */ - exports.prototype['level'] = undefined; - /** - * Role is a SELinux role label that applies to the container. - * @member {String} role - */ - exports.prototype['role'] = undefined; - /** - * Type is a SELinux type label that applies to the container. - * @member {String} type - */ - exports.prototype['type'] = undefined; - /** - * User is a SELinux user label that applies to the container. - * @member {String} user - */ - exports.prototype['user'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1Scale.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1Scale.js deleted file mode 100644 index 258dc2185e..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1Scale.js +++ /dev/null @@ -1,117 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1ObjectMeta', 'io.kubernetes.js/io.kubernetes.js.models/V1ScaleSpec', 'io.kubernetes.js/io.kubernetes.js.models/V1ScaleStatus'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1ObjectMeta'), require('./V1ScaleSpec'), require('./V1ScaleStatus')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1Scale = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1ObjectMeta, root.KubernetesJsClient.V1ScaleSpec, root.KubernetesJsClient.V1ScaleStatus); - } -}(this, function(ApiClient, V1ObjectMeta, V1ScaleSpec, V1ScaleStatus) { - 'use strict'; - - - - - /** - * The V1Scale model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1Scale - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1Scale. - * Scale represents a scaling request for a resource. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1Scale - * @class - */ - var exports = function() { - var _this = this; - - - - - - - }; - - /** - * Constructs a V1Scale from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Scale} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1Scale} The populated V1Scale instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('apiVersion')) { - obj['apiVersion'] = ApiClient.convertToType(data['apiVersion'], 'String'); - } - if (data.hasOwnProperty('kind')) { - obj['kind'] = ApiClient.convertToType(data['kind'], 'String'); - } - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = V1ObjectMeta.constructFromObject(data['metadata']); - } - if (data.hasOwnProperty('spec')) { - obj['spec'] = V1ScaleSpec.constructFromObject(data['spec']); - } - if (data.hasOwnProperty('status')) { - obj['status'] = V1ScaleStatus.constructFromObject(data['status']); - } - } - return obj; - } - - /** - * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - * @member {String} apiVersion - */ - exports.prototype['apiVersion'] = undefined; - /** - * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - * @member {String} kind - */ - exports.prototype['kind'] = undefined; - /** - * Standard object metadata; More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata. - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1ObjectMeta} metadata - */ - exports.prototype['metadata'] = undefined; - /** - * defines the behavior of the scale. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status. - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1ScaleSpec} spec - */ - exports.prototype['spec'] = undefined; - /** - * current status of the scale. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status. Read-only. - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1ScaleStatus} status - */ - exports.prototype['status'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1ScaleIOVolumeSource.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1ScaleIOVolumeSource.js deleted file mode 100644 index 5f953032bb..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1ScaleIOVolumeSource.js +++ /dev/null @@ -1,165 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1LocalObjectReference'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1LocalObjectReference')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1ScaleIOVolumeSource = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1LocalObjectReference); - } -}(this, function(ApiClient, V1LocalObjectReference) { - 'use strict'; - - - - - /** - * The V1ScaleIOVolumeSource model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1ScaleIOVolumeSource - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1ScaleIOVolumeSource. - * ScaleIOVolumeSource represents a persistent ScaleIO volume - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1ScaleIOVolumeSource - * @class - * @param gateway {String} The host address of the ScaleIO API Gateway. - * @param secretRef {module:io.kubernetes.js/io.kubernetes.js.models/V1LocalObjectReference} SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. - * @param system {String} The name of the storage system as configured in ScaleIO. - */ - var exports = function(gateway, secretRef, system) { - var _this = this; - - - _this['gateway'] = gateway; - - - _this['secretRef'] = secretRef; - - - - _this['system'] = system; - - }; - - /** - * Constructs a V1ScaleIOVolumeSource from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1ScaleIOVolumeSource} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1ScaleIOVolumeSource} The populated V1ScaleIOVolumeSource instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('fsType')) { - obj['fsType'] = ApiClient.convertToType(data['fsType'], 'String'); - } - if (data.hasOwnProperty('gateway')) { - obj['gateway'] = ApiClient.convertToType(data['gateway'], 'String'); - } - if (data.hasOwnProperty('protectionDomain')) { - obj['protectionDomain'] = ApiClient.convertToType(data['protectionDomain'], 'String'); - } - if (data.hasOwnProperty('readOnly')) { - obj['readOnly'] = ApiClient.convertToType(data['readOnly'], 'Boolean'); - } - if (data.hasOwnProperty('secretRef')) { - obj['secretRef'] = V1LocalObjectReference.constructFromObject(data['secretRef']); - } - if (data.hasOwnProperty('sslEnabled')) { - obj['sslEnabled'] = ApiClient.convertToType(data['sslEnabled'], 'Boolean'); - } - if (data.hasOwnProperty('storageMode')) { - obj['storageMode'] = ApiClient.convertToType(data['storageMode'], 'String'); - } - if (data.hasOwnProperty('storagePool')) { - obj['storagePool'] = ApiClient.convertToType(data['storagePool'], 'String'); - } - if (data.hasOwnProperty('system')) { - obj['system'] = ApiClient.convertToType(data['system'], 'String'); - } - if (data.hasOwnProperty('volumeName')) { - obj['volumeName'] = ApiClient.convertToType(data['volumeName'], 'String'); - } - } - return obj; - } - - /** - * Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. - * @member {String} fsType - */ - exports.prototype['fsType'] = undefined; - /** - * The host address of the ScaleIO API Gateway. - * @member {String} gateway - */ - exports.prototype['gateway'] = undefined; - /** - * The name of the Protection Domain for the configured storage (defaults to \"default\"). - * @member {String} protectionDomain - */ - exports.prototype['protectionDomain'] = undefined; - /** - * Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * @member {Boolean} readOnly - */ - exports.prototype['readOnly'] = undefined; - /** - * SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1LocalObjectReference} secretRef - */ - exports.prototype['secretRef'] = undefined; - /** - * Flag to enable/disable SSL communication with Gateway, default false - * @member {Boolean} sslEnabled - */ - exports.prototype['sslEnabled'] = undefined; - /** - * Indicates whether the storage for a volume should be thick or thin (defaults to \"thin\"). - * @member {String} storageMode - */ - exports.prototype['storageMode'] = undefined; - /** - * The Storage Pool associated with the protection domain (defaults to \"default\"). - * @member {String} storagePool - */ - exports.prototype['storagePool'] = undefined; - /** - * The name of the storage system as configured in ScaleIO. - * @member {String} system - */ - exports.prototype['system'] = undefined; - /** - * The name of a volume already created in the ScaleIO system that is associated with this volume source. - * @member {String} volumeName - */ - exports.prototype['volumeName'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1ScaleSpec.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1ScaleSpec.js deleted file mode 100644 index d47ab435b4..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1ScaleSpec.js +++ /dev/null @@ -1,81 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1ScaleSpec = factory(root.KubernetesJsClient.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - - /** - * The V1ScaleSpec model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1ScaleSpec - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1ScaleSpec. - * ScaleSpec describes the attributes of a scale subresource. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1ScaleSpec - * @class - */ - var exports = function() { - var _this = this; - - - }; - - /** - * Constructs a V1ScaleSpec from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1ScaleSpec} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1ScaleSpec} The populated V1ScaleSpec instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('replicas')) { - obj['replicas'] = ApiClient.convertToType(data['replicas'], 'Number'); - } - } - return obj; - } - - /** - * desired number of instances for the scaled object. - * @member {Number} replicas - */ - exports.prototype['replicas'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1ScaleStatus.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1ScaleStatus.js deleted file mode 100644 index 872055bdf3..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1ScaleStatus.js +++ /dev/null @@ -1,91 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1ScaleStatus = factory(root.KubernetesJsClient.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - - /** - * The V1ScaleStatus model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1ScaleStatus - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1ScaleStatus. - * ScaleStatus represents the current status of a scale subresource. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1ScaleStatus - * @class - * @param replicas {Number} actual number of observed instances of the scaled object. - */ - var exports = function(replicas) { - var _this = this; - - _this['replicas'] = replicas; - - }; - - /** - * Constructs a V1ScaleStatus from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1ScaleStatus} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1ScaleStatus} The populated V1ScaleStatus instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('replicas')) { - obj['replicas'] = ApiClient.convertToType(data['replicas'], 'Number'); - } - if (data.hasOwnProperty('selector')) { - obj['selector'] = ApiClient.convertToType(data['selector'], 'String'); - } - } - return obj; - } - - /** - * actual number of observed instances of the scaled object. - * @member {Number} replicas - */ - exports.prototype['replicas'] = undefined; - /** - * label query over pods that should match the replicas count. This is same as the label selector but in the string format to avoid introspection by clients. The string will be in the same format as the query-param syntax. More info about label selectors: http://kubernetes.io/docs/user-guide/labels#label-selectors - * @member {String} selector - */ - exports.prototype['selector'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1Secret.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1Secret.js deleted file mode 100644 index 994df71775..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1Secret.js +++ /dev/null @@ -1,126 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1ObjectMeta'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1ObjectMeta')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1Secret = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1ObjectMeta); - } -}(this, function(ApiClient, V1ObjectMeta) { - 'use strict'; - - - - - /** - * The V1Secret model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1Secret - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1Secret. - * Secret holds secret data of a certain type. The total bytes of the values in the Data field must be less than MaxSecretSize bytes. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1Secret - * @class - */ - var exports = function() { - var _this = this; - - - - - - - - }; - - /** - * Constructs a V1Secret from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Secret} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1Secret} The populated V1Secret instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('apiVersion')) { - obj['apiVersion'] = ApiClient.convertToType(data['apiVersion'], 'String'); - } - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], {'String': 'String'}); - } - if (data.hasOwnProperty('kind')) { - obj['kind'] = ApiClient.convertToType(data['kind'], 'String'); - } - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = V1ObjectMeta.constructFromObject(data['metadata']); - } - if (data.hasOwnProperty('stringData')) { - obj['stringData'] = ApiClient.convertToType(data['stringData'], {'String': 'String'}); - } - if (data.hasOwnProperty('type')) { - obj['type'] = ApiClient.convertToType(data['type'], 'String'); - } - } - return obj; - } - - /** - * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - * @member {String} apiVersion - */ - exports.prototype['apiVersion'] = undefined; - /** - * Data contains the secret data. Each key must be a valid DNS_SUBDOMAIN or leading dot followed by valid DNS_SUBDOMAIN. The serialized form of the secret data is a base64 encoded string, representing the arbitrary (possibly non-string) data value here. Described in https://tools.ietf.org/html/rfc4648#section-4 - * @member {Object.} data - */ - exports.prototype['data'] = undefined; - /** - * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - * @member {String} kind - */ - exports.prototype['kind'] = undefined; - /** - * Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1ObjectMeta} metadata - */ - exports.prototype['metadata'] = undefined; - /** - * stringData allows specifying non-binary secret data in string form. It is provided as a write-only convenience method. All keys and values are merged into the data field on write, overwriting any existing values. It is never output when reading from the API. - * @member {Object.} stringData - */ - exports.prototype['stringData'] = undefined; - /** - * Used to facilitate programmatic handling of secret data. - * @member {String} type - */ - exports.prototype['type'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1SecretEnvSource.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1SecretEnvSource.js deleted file mode 100644 index cd74d9d641..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1SecretEnvSource.js +++ /dev/null @@ -1,90 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1SecretEnvSource = factory(root.KubernetesJsClient.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - - /** - * The V1SecretEnvSource model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1SecretEnvSource - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1SecretEnvSource. - * SecretEnvSource selects a Secret to populate the environment variables with. The contents of the target Secret's Data field will represent the key-value pairs as environment variables. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1SecretEnvSource - * @class - */ - var exports = function() { - var _this = this; - - - - }; - - /** - * Constructs a V1SecretEnvSource from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1SecretEnvSource} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1SecretEnvSource} The populated V1SecretEnvSource instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - } - if (data.hasOwnProperty('optional')) { - obj['optional'] = ApiClient.convertToType(data['optional'], 'Boolean'); - } - } - return obj; - } - - /** - * Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * @member {String} name - */ - exports.prototype['name'] = undefined; - /** - * Specify whether the Secret must be defined - * @member {Boolean} optional - */ - exports.prototype['optional'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1SecretKeySelector.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1SecretKeySelector.js deleted file mode 100644 index 5d6ac64cf9..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1SecretKeySelector.js +++ /dev/null @@ -1,100 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1SecretKeySelector = factory(root.KubernetesJsClient.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - - /** - * The V1SecretKeySelector model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1SecretKeySelector - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1SecretKeySelector. - * SecretKeySelector selects a key of a Secret. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1SecretKeySelector - * @class - * @param key {String} The key of the secret to select from. Must be a valid secret key. - */ - var exports = function(key) { - var _this = this; - - _this['key'] = key; - - - }; - - /** - * Constructs a V1SecretKeySelector from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1SecretKeySelector} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1SecretKeySelector} The populated V1SecretKeySelector instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('key')) { - obj['key'] = ApiClient.convertToType(data['key'], 'String'); - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - } - if (data.hasOwnProperty('optional')) { - obj['optional'] = ApiClient.convertToType(data['optional'], 'Boolean'); - } - } - return obj; - } - - /** - * The key of the secret to select from. Must be a valid secret key. - * @member {String} key - */ - exports.prototype['key'] = undefined; - /** - * Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * @member {String} name - */ - exports.prototype['name'] = undefined; - /** - * Specify whether the Secret or it's key must be defined - * @member {Boolean} optional - */ - exports.prototype['optional'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1SecretList.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1SecretList.js deleted file mode 100644 index 69a12e006a..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1SecretList.js +++ /dev/null @@ -1,109 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1ListMeta', 'io.kubernetes.js/io.kubernetes.js.models/V1Secret'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1ListMeta'), require('./V1Secret')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1SecretList = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1ListMeta, root.KubernetesJsClient.V1Secret); - } -}(this, function(ApiClient, V1ListMeta, V1Secret) { - 'use strict'; - - - - - /** - * The V1SecretList model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1SecretList - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1SecretList. - * SecretList is a list of Secret. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1SecretList - * @class - * @param items {Array.} Items is a list of secret objects. More info: http://kubernetes.io/docs/user-guide/secrets - */ - var exports = function(items) { - var _this = this; - - - _this['items'] = items; - - - }; - - /** - * Constructs a V1SecretList from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1SecretList} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1SecretList} The populated V1SecretList instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('apiVersion')) { - obj['apiVersion'] = ApiClient.convertToType(data['apiVersion'], 'String'); - } - if (data.hasOwnProperty('items')) { - obj['items'] = ApiClient.convertToType(data['items'], [V1Secret]); - } - if (data.hasOwnProperty('kind')) { - obj['kind'] = ApiClient.convertToType(data['kind'], 'String'); - } - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = V1ListMeta.constructFromObject(data['metadata']); - } - } - return obj; - } - - /** - * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - * @member {String} apiVersion - */ - exports.prototype['apiVersion'] = undefined; - /** - * Items is a list of secret objects. More info: http://kubernetes.io/docs/user-guide/secrets - * @member {Array.} items - */ - exports.prototype['items'] = undefined; - /** - * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - * @member {String} kind - */ - exports.prototype['kind'] = undefined; - /** - * Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1ListMeta} metadata - */ - exports.prototype['metadata'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1SecretProjection.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1SecretProjection.js deleted file mode 100644 index e6d6abef06..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1SecretProjection.js +++ /dev/null @@ -1,99 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1KeyToPath'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1KeyToPath')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1SecretProjection = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1KeyToPath); - } -}(this, function(ApiClient, V1KeyToPath) { - 'use strict'; - - - - - /** - * The V1SecretProjection model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1SecretProjection - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1SecretProjection. - * Adapts a secret into a projected volume. The contents of the target Secret's Data field will be presented in a projected volume as files using the keys in the Data field as the file names. Note that this is identical to a secret volume source without the default mode. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1SecretProjection - * @class - */ - var exports = function() { - var _this = this; - - - - - }; - - /** - * Constructs a V1SecretProjection from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1SecretProjection} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1SecretProjection} The populated V1SecretProjection instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('items')) { - obj['items'] = ApiClient.convertToType(data['items'], [V1KeyToPath]); - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - } - if (data.hasOwnProperty('optional')) { - obj['optional'] = ApiClient.convertToType(data['optional'], 'Boolean'); - } - } - return obj; - } - - /** - * If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * @member {Array.} items - */ - exports.prototype['items'] = undefined; - /** - * Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * @member {String} name - */ - exports.prototype['name'] = undefined; - /** - * Specify whether the Secret or its key must be defined - * @member {Boolean} optional - */ - exports.prototype['optional'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1SecretVolumeSource.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1SecretVolumeSource.js deleted file mode 100644 index 8fda17f447..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1SecretVolumeSource.js +++ /dev/null @@ -1,108 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1KeyToPath'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1KeyToPath')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1SecretVolumeSource = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1KeyToPath); - } -}(this, function(ApiClient, V1KeyToPath) { - 'use strict'; - - - - - /** - * The V1SecretVolumeSource model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1SecretVolumeSource - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1SecretVolumeSource. - * Adapts a Secret into a volume. The contents of the target Secret's Data field will be presented in a volume as files using the keys in the Data field as the file names. Secret volumes support ownership management and SELinux relabeling. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1SecretVolumeSource - * @class - */ - var exports = function() { - var _this = this; - - - - - - }; - - /** - * Constructs a V1SecretVolumeSource from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1SecretVolumeSource} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1SecretVolumeSource} The populated V1SecretVolumeSource instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('defaultMode')) { - obj['defaultMode'] = ApiClient.convertToType(data['defaultMode'], 'Number'); - } - if (data.hasOwnProperty('items')) { - obj['items'] = ApiClient.convertToType(data['items'], [V1KeyToPath]); - } - if (data.hasOwnProperty('optional')) { - obj['optional'] = ApiClient.convertToType(data['optional'], 'Boolean'); - } - if (data.hasOwnProperty('secretName')) { - obj['secretName'] = ApiClient.convertToType(data['secretName'], 'String'); - } - } - return obj; - } - - /** - * Optional: mode bits to use on created files by default. Must be a value between 0 and 0777. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. - * @member {Number} defaultMode - */ - exports.prototype['defaultMode'] = undefined; - /** - * If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * @member {Array.} items - */ - exports.prototype['items'] = undefined; - /** - * Specify whether the Secret or it's keys must be defined - * @member {Boolean} optional - */ - exports.prototype['optional'] = undefined; - /** - * Name of the secret in the pod's namespace to use. More info: http://kubernetes.io/docs/user-guide/volumes#secrets - * @member {String} secretName - */ - exports.prototype['secretName'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1SecurityContext.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1SecurityContext.js deleted file mode 100644 index a91a7f3b7f..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1SecurityContext.js +++ /dev/null @@ -1,126 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1Capabilities', 'io.kubernetes.js/io.kubernetes.js.models/V1SELinuxOptions'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1Capabilities'), require('./V1SELinuxOptions')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1SecurityContext = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1Capabilities, root.KubernetesJsClient.V1SELinuxOptions); - } -}(this, function(ApiClient, V1Capabilities, V1SELinuxOptions) { - 'use strict'; - - - - - /** - * The V1SecurityContext model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1SecurityContext - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1SecurityContext. - * SecurityContext holds security configuration that will be applied to a container. Some fields are present in both SecurityContext and PodSecurityContext. When both are set, the values in SecurityContext take precedence. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1SecurityContext - * @class - */ - var exports = function() { - var _this = this; - - - - - - - - }; - - /** - * Constructs a V1SecurityContext from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1SecurityContext} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1SecurityContext} The populated V1SecurityContext instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('capabilities')) { - obj['capabilities'] = V1Capabilities.constructFromObject(data['capabilities']); - } - if (data.hasOwnProperty('privileged')) { - obj['privileged'] = ApiClient.convertToType(data['privileged'], 'Boolean'); - } - if (data.hasOwnProperty('readOnlyRootFilesystem')) { - obj['readOnlyRootFilesystem'] = ApiClient.convertToType(data['readOnlyRootFilesystem'], 'Boolean'); - } - if (data.hasOwnProperty('runAsNonRoot')) { - obj['runAsNonRoot'] = ApiClient.convertToType(data['runAsNonRoot'], 'Boolean'); - } - if (data.hasOwnProperty('runAsUser')) { - obj['runAsUser'] = ApiClient.convertToType(data['runAsUser'], 'Number'); - } - if (data.hasOwnProperty('seLinuxOptions')) { - obj['seLinuxOptions'] = V1SELinuxOptions.constructFromObject(data['seLinuxOptions']); - } - } - return obj; - } - - /** - * The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1Capabilities} capabilities - */ - exports.prototype['capabilities'] = undefined; - /** - * Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. - * @member {Boolean} privileged - */ - exports.prototype['privileged'] = undefined; - /** - * Whether this container has a read-only root filesystem. Default is false. - * @member {Boolean} readOnlyRootFilesystem - */ - exports.prototype['readOnlyRootFilesystem'] = undefined; - /** - * Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * @member {Boolean} runAsNonRoot - */ - exports.prototype['runAsNonRoot'] = undefined; - /** - * The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * @member {Number} runAsUser - */ - exports.prototype['runAsUser'] = undefined; - /** - * The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1SELinuxOptions} seLinuxOptions - */ - exports.prototype['seLinuxOptions'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1SelfSubjectAccessReview.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1SelfSubjectAccessReview.js deleted file mode 100644 index dd09025b17..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1SelfSubjectAccessReview.js +++ /dev/null @@ -1,117 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1ObjectMeta', 'io.kubernetes.js/io.kubernetes.js.models/V1SelfSubjectAccessReviewSpec', 'io.kubernetes.js/io.kubernetes.js.models/V1SubjectAccessReviewStatus'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1ObjectMeta'), require('./V1SelfSubjectAccessReviewSpec'), require('./V1SubjectAccessReviewStatus')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1SelfSubjectAccessReview = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1ObjectMeta, root.KubernetesJsClient.V1SelfSubjectAccessReviewSpec, root.KubernetesJsClient.V1SubjectAccessReviewStatus); - } -}(this, function(ApiClient, V1ObjectMeta, V1SelfSubjectAccessReviewSpec, V1SubjectAccessReviewStatus) { - 'use strict'; - - - - - /** - * The V1SelfSubjectAccessReview model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1SelfSubjectAccessReview - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1SelfSubjectAccessReview. - * SelfSubjectAccessReview checks whether or the current user can perform an action. Not filling in a spec.namespace means \"in all namespaces\". Self is a special case, because users should always be able to check whether they can perform an action - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1SelfSubjectAccessReview - * @class - * @param spec {module:io.kubernetes.js/io.kubernetes.js.models/V1SelfSubjectAccessReviewSpec} Spec holds information about the request being evaluated. user and groups must be empty - */ - var exports = function(spec) { - var _this = this; - - - - - _this['spec'] = spec; - - }; - - /** - * Constructs a V1SelfSubjectAccessReview from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1SelfSubjectAccessReview} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1SelfSubjectAccessReview} The populated V1SelfSubjectAccessReview instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('apiVersion')) { - obj['apiVersion'] = ApiClient.convertToType(data['apiVersion'], 'String'); - } - if (data.hasOwnProperty('kind')) { - obj['kind'] = ApiClient.convertToType(data['kind'], 'String'); - } - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = V1ObjectMeta.constructFromObject(data['metadata']); - } - if (data.hasOwnProperty('spec')) { - obj['spec'] = V1SelfSubjectAccessReviewSpec.constructFromObject(data['spec']); - } - if (data.hasOwnProperty('status')) { - obj['status'] = V1SubjectAccessReviewStatus.constructFromObject(data['status']); - } - } - return obj; - } - - /** - * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - * @member {String} apiVersion - */ - exports.prototype['apiVersion'] = undefined; - /** - * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - * @member {String} kind - */ - exports.prototype['kind'] = undefined; - /** - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1ObjectMeta} metadata - */ - exports.prototype['metadata'] = undefined; - /** - * Spec holds information about the request being evaluated. user and groups must be empty - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1SelfSubjectAccessReviewSpec} spec - */ - exports.prototype['spec'] = undefined; - /** - * Status is filled in by the server and indicates whether the request is allowed or not - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1SubjectAccessReviewStatus} status - */ - exports.prototype['status'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1SelfSubjectAccessReviewSpec.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1SelfSubjectAccessReviewSpec.js deleted file mode 100644 index 8903951e24..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1SelfSubjectAccessReviewSpec.js +++ /dev/null @@ -1,90 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1NonResourceAttributes', 'io.kubernetes.js/io.kubernetes.js.models/V1ResourceAttributes'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1NonResourceAttributes'), require('./V1ResourceAttributes')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1SelfSubjectAccessReviewSpec = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1NonResourceAttributes, root.KubernetesJsClient.V1ResourceAttributes); - } -}(this, function(ApiClient, V1NonResourceAttributes, V1ResourceAttributes) { - 'use strict'; - - - - - /** - * The V1SelfSubjectAccessReviewSpec model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1SelfSubjectAccessReviewSpec - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1SelfSubjectAccessReviewSpec. - * SelfSubjectAccessReviewSpec is a description of the access request. Exactly one of ResourceAuthorizationAttributes and NonResourceAuthorizationAttributes must be set - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1SelfSubjectAccessReviewSpec - * @class - */ - var exports = function() { - var _this = this; - - - - }; - - /** - * Constructs a V1SelfSubjectAccessReviewSpec from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1SelfSubjectAccessReviewSpec} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1SelfSubjectAccessReviewSpec} The populated V1SelfSubjectAccessReviewSpec instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('nonResourceAttributes')) { - obj['nonResourceAttributes'] = V1NonResourceAttributes.constructFromObject(data['nonResourceAttributes']); - } - if (data.hasOwnProperty('resourceAttributes')) { - obj['resourceAttributes'] = V1ResourceAttributes.constructFromObject(data['resourceAttributes']); - } - } - return obj; - } - - /** - * NonResourceAttributes describes information for a non-resource access request - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1NonResourceAttributes} nonResourceAttributes - */ - exports.prototype['nonResourceAttributes'] = undefined; - /** - * ResourceAuthorizationAttributes describes information for a resource access request - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1ResourceAttributes} resourceAttributes - */ - exports.prototype['resourceAttributes'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1ServerAddressByClientCIDR.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1ServerAddressByClientCIDR.js deleted file mode 100644 index d70220979e..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1ServerAddressByClientCIDR.js +++ /dev/null @@ -1,92 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1ServerAddressByClientCIDR = factory(root.KubernetesJsClient.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - - /** - * The V1ServerAddressByClientCIDR model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1ServerAddressByClientCIDR - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1ServerAddressByClientCIDR. - * ServerAddressByClientCIDR helps the client to determine the server address that they should use, depending on the clientCIDR that they match. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1ServerAddressByClientCIDR - * @class - * @param clientCIDR {String} The CIDR with which clients can match their IP to figure out the server address that they should use. - * @param serverAddress {String} Address of this server, suitable for a client that matches the above CIDR. This can be a hostname, hostname:port, IP or IP:port. - */ - var exports = function(clientCIDR, serverAddress) { - var _this = this; - - _this['clientCIDR'] = clientCIDR; - _this['serverAddress'] = serverAddress; - }; - - /** - * Constructs a V1ServerAddressByClientCIDR from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1ServerAddressByClientCIDR} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1ServerAddressByClientCIDR} The populated V1ServerAddressByClientCIDR instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('clientCIDR')) { - obj['clientCIDR'] = ApiClient.convertToType(data['clientCIDR'], 'String'); - } - if (data.hasOwnProperty('serverAddress')) { - obj['serverAddress'] = ApiClient.convertToType(data['serverAddress'], 'String'); - } - } - return obj; - } - - /** - * The CIDR with which clients can match their IP to figure out the server address that they should use. - * @member {String} clientCIDR - */ - exports.prototype['clientCIDR'] = undefined; - /** - * Address of this server, suitable for a client that matches the above CIDR. This can be a hostname, hostname:port, IP or IP:port. - * @member {String} serverAddress - */ - exports.prototype['serverAddress'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1Service.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1Service.js deleted file mode 100644 index 11a00fb9fe..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1Service.js +++ /dev/null @@ -1,117 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1ObjectMeta', 'io.kubernetes.js/io.kubernetes.js.models/V1ServiceSpec', 'io.kubernetes.js/io.kubernetes.js.models/V1ServiceStatus'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1ObjectMeta'), require('./V1ServiceSpec'), require('./V1ServiceStatus')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1Service = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1ObjectMeta, root.KubernetesJsClient.V1ServiceSpec, root.KubernetesJsClient.V1ServiceStatus); - } -}(this, function(ApiClient, V1ObjectMeta, V1ServiceSpec, V1ServiceStatus) { - 'use strict'; - - - - - /** - * The V1Service model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1Service - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1Service. - * Service is a named abstraction of software service (for example, mysql) consisting of local port (for example 3306) that the proxy listens on, and the selector that determines which pods will answer requests sent through the proxy. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1Service - * @class - */ - var exports = function() { - var _this = this; - - - - - - - }; - - /** - * Constructs a V1Service from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Service} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1Service} The populated V1Service instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('apiVersion')) { - obj['apiVersion'] = ApiClient.convertToType(data['apiVersion'], 'String'); - } - if (data.hasOwnProperty('kind')) { - obj['kind'] = ApiClient.convertToType(data['kind'], 'String'); - } - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = V1ObjectMeta.constructFromObject(data['metadata']); - } - if (data.hasOwnProperty('spec')) { - obj['spec'] = V1ServiceSpec.constructFromObject(data['spec']); - } - if (data.hasOwnProperty('status')) { - obj['status'] = V1ServiceStatus.constructFromObject(data['status']); - } - } - return obj; - } - - /** - * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - * @member {String} apiVersion - */ - exports.prototype['apiVersion'] = undefined; - /** - * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - * @member {String} kind - */ - exports.prototype['kind'] = undefined; - /** - * Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1ObjectMeta} metadata - */ - exports.prototype['metadata'] = undefined; - /** - * Spec defines the behavior of a service. http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1ServiceSpec} spec - */ - exports.prototype['spec'] = undefined; - /** - * Most recently observed status of the service. Populated by the system. Read-only. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1ServiceStatus} status - */ - exports.prototype['status'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1ServiceAccount.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1ServiceAccount.js deleted file mode 100644 index 063079b0a2..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1ServiceAccount.js +++ /dev/null @@ -1,126 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1LocalObjectReference', 'io.kubernetes.js/io.kubernetes.js.models/V1ObjectMeta', 'io.kubernetes.js/io.kubernetes.js.models/V1ObjectReference'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1LocalObjectReference'), require('./V1ObjectMeta'), require('./V1ObjectReference')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1ServiceAccount = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1LocalObjectReference, root.KubernetesJsClient.V1ObjectMeta, root.KubernetesJsClient.V1ObjectReference); - } -}(this, function(ApiClient, V1LocalObjectReference, V1ObjectMeta, V1ObjectReference) { - 'use strict'; - - - - - /** - * The V1ServiceAccount model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1ServiceAccount - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1ServiceAccount. - * ServiceAccount binds together: * a name, understood by users, and perhaps by peripheral systems, for an identity * a principal that can be authenticated and authorized * a set of secrets - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1ServiceAccount - * @class - */ - var exports = function() { - var _this = this; - - - - - - - - }; - - /** - * Constructs a V1ServiceAccount from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1ServiceAccount} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1ServiceAccount} The populated V1ServiceAccount instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('apiVersion')) { - obj['apiVersion'] = ApiClient.convertToType(data['apiVersion'], 'String'); - } - if (data.hasOwnProperty('automountServiceAccountToken')) { - obj['automountServiceAccountToken'] = ApiClient.convertToType(data['automountServiceAccountToken'], 'Boolean'); - } - if (data.hasOwnProperty('imagePullSecrets')) { - obj['imagePullSecrets'] = ApiClient.convertToType(data['imagePullSecrets'], [V1LocalObjectReference]); - } - if (data.hasOwnProperty('kind')) { - obj['kind'] = ApiClient.convertToType(data['kind'], 'String'); - } - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = V1ObjectMeta.constructFromObject(data['metadata']); - } - if (data.hasOwnProperty('secrets')) { - obj['secrets'] = ApiClient.convertToType(data['secrets'], [V1ObjectReference]); - } - } - return obj; - } - - /** - * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - * @member {String} apiVersion - */ - exports.prototype['apiVersion'] = undefined; - /** - * AutomountServiceAccountToken indicates whether pods running as this service account should have an API token automatically mounted. Can be overridden at the pod level. - * @member {Boolean} automountServiceAccountToken - */ - exports.prototype['automountServiceAccountToken'] = undefined; - /** - * ImagePullSecrets is a list of references to secrets in the same namespace to use for pulling any images in pods that reference this ServiceAccount. ImagePullSecrets are distinct from Secrets because Secrets can be mounted in the pod, but ImagePullSecrets are only accessed by the kubelet. More info: http://kubernetes.io/docs/user-guide/secrets#manually-specifying-an-imagepullsecret - * @member {Array.} imagePullSecrets - */ - exports.prototype['imagePullSecrets'] = undefined; - /** - * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - * @member {String} kind - */ - exports.prototype['kind'] = undefined; - /** - * Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1ObjectMeta} metadata - */ - exports.prototype['metadata'] = undefined; - /** - * Secrets is the list of secrets allowed to be used by pods running using this ServiceAccount. More info: http://kubernetes.io/docs/user-guide/secrets - * @member {Array.} secrets - */ - exports.prototype['secrets'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1ServiceAccountList.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1ServiceAccountList.js deleted file mode 100644 index cdf2ae66cd..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1ServiceAccountList.js +++ /dev/null @@ -1,109 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1ListMeta', 'io.kubernetes.js/io.kubernetes.js.models/V1ServiceAccount'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1ListMeta'), require('./V1ServiceAccount')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1ServiceAccountList = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1ListMeta, root.KubernetesJsClient.V1ServiceAccount); - } -}(this, function(ApiClient, V1ListMeta, V1ServiceAccount) { - 'use strict'; - - - - - /** - * The V1ServiceAccountList model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1ServiceAccountList - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1ServiceAccountList. - * ServiceAccountList is a list of ServiceAccount objects - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1ServiceAccountList - * @class - * @param items {Array.} List of ServiceAccounts. More info: http://releases.k8s.io/HEAD/docs/design/service_accounts.md#service-accounts - */ - var exports = function(items) { - var _this = this; - - - _this['items'] = items; - - - }; - - /** - * Constructs a V1ServiceAccountList from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1ServiceAccountList} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1ServiceAccountList} The populated V1ServiceAccountList instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('apiVersion')) { - obj['apiVersion'] = ApiClient.convertToType(data['apiVersion'], 'String'); - } - if (data.hasOwnProperty('items')) { - obj['items'] = ApiClient.convertToType(data['items'], [V1ServiceAccount]); - } - if (data.hasOwnProperty('kind')) { - obj['kind'] = ApiClient.convertToType(data['kind'], 'String'); - } - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = V1ListMeta.constructFromObject(data['metadata']); - } - } - return obj; - } - - /** - * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - * @member {String} apiVersion - */ - exports.prototype['apiVersion'] = undefined; - /** - * List of ServiceAccounts. More info: http://releases.k8s.io/HEAD/docs/design/service_accounts.md#service-accounts - * @member {Array.} items - */ - exports.prototype['items'] = undefined; - /** - * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - * @member {String} kind - */ - exports.prototype['kind'] = undefined; - /** - * Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1ListMeta} metadata - */ - exports.prototype['metadata'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1ServiceList.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1ServiceList.js deleted file mode 100644 index bd88a41c73..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1ServiceList.js +++ /dev/null @@ -1,109 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1ListMeta', 'io.kubernetes.js/io.kubernetes.js.models/V1Service'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1ListMeta'), require('./V1Service')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1ServiceList = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1ListMeta, root.KubernetesJsClient.V1Service); - } -}(this, function(ApiClient, V1ListMeta, V1Service) { - 'use strict'; - - - - - /** - * The V1ServiceList model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1ServiceList - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1ServiceList. - * ServiceList holds a list of services. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1ServiceList - * @class - * @param items {Array.} List of services - */ - var exports = function(items) { - var _this = this; - - - _this['items'] = items; - - - }; - - /** - * Constructs a V1ServiceList from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1ServiceList} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1ServiceList} The populated V1ServiceList instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('apiVersion')) { - obj['apiVersion'] = ApiClient.convertToType(data['apiVersion'], 'String'); - } - if (data.hasOwnProperty('items')) { - obj['items'] = ApiClient.convertToType(data['items'], [V1Service]); - } - if (data.hasOwnProperty('kind')) { - obj['kind'] = ApiClient.convertToType(data['kind'], 'String'); - } - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = V1ListMeta.constructFromObject(data['metadata']); - } - } - return obj; - } - - /** - * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - * @member {String} apiVersion - */ - exports.prototype['apiVersion'] = undefined; - /** - * List of services - * @member {Array.} items - */ - exports.prototype['items'] = undefined; - /** - * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - * @member {String} kind - */ - exports.prototype['kind'] = undefined; - /** - * Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1ListMeta} metadata - */ - exports.prototype['metadata'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1ServicePort.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1ServicePort.js deleted file mode 100644 index d6cf18754a..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1ServicePort.js +++ /dev/null @@ -1,118 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1ServicePort = factory(root.KubernetesJsClient.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - - /** - * The V1ServicePort model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1ServicePort - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1ServicePort. - * ServicePort contains information on service's port. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1ServicePort - * @class - * @param port {Number} The port that will be exposed by this service. - */ - var exports = function(port) { - var _this = this; - - - - _this['port'] = port; - - - }; - - /** - * Constructs a V1ServicePort from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1ServicePort} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1ServicePort} The populated V1ServicePort instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - } - if (data.hasOwnProperty('nodePort')) { - obj['nodePort'] = ApiClient.convertToType(data['nodePort'], 'Number'); - } - if (data.hasOwnProperty('port')) { - obj['port'] = ApiClient.convertToType(data['port'], 'Number'); - } - if (data.hasOwnProperty('protocol')) { - obj['protocol'] = ApiClient.convertToType(data['protocol'], 'String'); - } - if (data.hasOwnProperty('targetPort')) { - obj['targetPort'] = ApiClient.convertToType(data['targetPort'], 'String'); - } - } - return obj; - } - - /** - * The name of this port within the service. This must be a DNS_LABEL. All ports within a ServiceSpec must have unique names. This maps to the 'Name' field in EndpointPort objects. Optional if only one ServicePort is defined on this service. - * @member {String} name - */ - exports.prototype['name'] = undefined; - /** - * The port on each node on which this service is exposed when type=NodePort or LoadBalancer. Usually assigned by the system. If specified, it will be allocated to the service if unused or else creation of the service will fail. Default is to auto-allocate a port if the ServiceType of this Service requires one. More info: http://kubernetes.io/docs/user-guide/services#type--nodeport - * @member {Number} nodePort - */ - exports.prototype['nodePort'] = undefined; - /** - * The port that will be exposed by this service. - * @member {Number} port - */ - exports.prototype['port'] = undefined; - /** - * The IP protocol for this port. Supports \"TCP\" and \"UDP\". Default is TCP. - * @member {String} protocol - */ - exports.prototype['protocol'] = undefined; - /** - * Number or name of the port to access on the pods targeted by the service. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. If this is a string, it will be looked up as a named port in the target Pod's container ports. If this is not specified, the value of the 'port' field is used (an identity map). This field is ignored for services with clusterIP=None, and should be omitted or set equal to the 'port' field. More info: http://kubernetes.io/docs/user-guide/services#defining-a-service - * @member {String} targetPort - */ - exports.prototype['targetPort'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1ServiceSpec.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1ServiceSpec.js deleted file mode 100644 index d38ea0c47d..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1ServiceSpec.js +++ /dev/null @@ -1,162 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1ServicePort'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1ServicePort')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1ServiceSpec = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1ServicePort); - } -}(this, function(ApiClient, V1ServicePort) { - 'use strict'; - - - - - /** - * The V1ServiceSpec model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1ServiceSpec - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1ServiceSpec. - * ServiceSpec describes the attributes that a user creates on a service. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1ServiceSpec - * @class - */ - var exports = function() { - var _this = this; - - - - - - - - - - - - }; - - /** - * Constructs a V1ServiceSpec from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1ServiceSpec} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1ServiceSpec} The populated V1ServiceSpec instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('clusterIP')) { - obj['clusterIP'] = ApiClient.convertToType(data['clusterIP'], 'String'); - } - if (data.hasOwnProperty('deprecatedPublicIPs')) { - obj['deprecatedPublicIPs'] = ApiClient.convertToType(data['deprecatedPublicIPs'], ['String']); - } - if (data.hasOwnProperty('externalIPs')) { - obj['externalIPs'] = ApiClient.convertToType(data['externalIPs'], ['String']); - } - if (data.hasOwnProperty('externalName')) { - obj['externalName'] = ApiClient.convertToType(data['externalName'], 'String'); - } - if (data.hasOwnProperty('loadBalancerIP')) { - obj['loadBalancerIP'] = ApiClient.convertToType(data['loadBalancerIP'], 'String'); - } - if (data.hasOwnProperty('loadBalancerSourceRanges')) { - obj['loadBalancerSourceRanges'] = ApiClient.convertToType(data['loadBalancerSourceRanges'], ['String']); - } - if (data.hasOwnProperty('ports')) { - obj['ports'] = ApiClient.convertToType(data['ports'], [V1ServicePort]); - } - if (data.hasOwnProperty('selector')) { - obj['selector'] = ApiClient.convertToType(data['selector'], {'String': 'String'}); - } - if (data.hasOwnProperty('sessionAffinity')) { - obj['sessionAffinity'] = ApiClient.convertToType(data['sessionAffinity'], 'String'); - } - if (data.hasOwnProperty('type')) { - obj['type'] = ApiClient.convertToType(data['type'], 'String'); - } - } - return obj; - } - - /** - * clusterIP is the IP address of the service and is usually assigned randomly by the master. If an address is specified manually and is not in use by others, it will be allocated to the service; otherwise, creation of the service will fail. This field can not be changed through updates. Valid values are \"None\", empty string (\"\"), or a valid IP address. \"None\" can be specified for headless services when proxying is not required. Only applies to types ClusterIP, NodePort, and LoadBalancer. Ignored if type is ExternalName. More info: http://kubernetes.io/docs/user-guide/services#virtual-ips-and-service-proxies - * @member {String} clusterIP - */ - exports.prototype['clusterIP'] = undefined; - /** - * deprecatedPublicIPs is deprecated and replaced by the externalIPs field with almost the exact same semantics. This field is retained in the v1 API for compatibility until at least 8/20/2016. It will be removed from any new API revisions. If both deprecatedPublicIPs *and* externalIPs are set, deprecatedPublicIPs is used. - * @member {Array.} deprecatedPublicIPs - */ - exports.prototype['deprecatedPublicIPs'] = undefined; - /** - * externalIPs is a list of IP addresses for which nodes in the cluster will also accept traffic for this service. These IPs are not managed by Kubernetes. The user is responsible for ensuring that traffic arrives at a node with this IP. A common example is external load-balancers that are not part of the Kubernetes system. A previous form of this functionality exists as the deprecatedPublicIPs field. When using this field, callers should also clear the deprecatedPublicIPs field. - * @member {Array.} externalIPs - */ - exports.prototype['externalIPs'] = undefined; - /** - * externalName is the external reference that kubedns or equivalent will return as a CNAME record for this service. No proxying will be involved. Must be a valid DNS name and requires Type to be ExternalName. - * @member {String} externalName - */ - exports.prototype['externalName'] = undefined; - /** - * Only applies to Service Type: LoadBalancer LoadBalancer will get created with the IP specified in this field. This feature depends on whether the underlying cloud-provider supports specifying the loadBalancerIP when a load balancer is created. This field will be ignored if the cloud-provider does not support the feature. - * @member {String} loadBalancerIP - */ - exports.prototype['loadBalancerIP'] = undefined; - /** - * If specified and supported by the platform, this will restrict traffic through the cloud-provider load-balancer will be restricted to the specified client IPs. This field will be ignored if the cloud-provider does not support the feature.\" More info: http://kubernetes.io/docs/user-guide/services-firewalls - * @member {Array.} loadBalancerSourceRanges - */ - exports.prototype['loadBalancerSourceRanges'] = undefined; - /** - * The list of ports that are exposed by this service. More info: http://kubernetes.io/docs/user-guide/services#virtual-ips-and-service-proxies - * @member {Array.} ports - */ - exports.prototype['ports'] = undefined; - /** - * Route service traffic to pods with label keys and values matching this selector. If empty or not present, the service is assumed to have an external process managing its endpoints, which Kubernetes will not modify. Only applies to types ClusterIP, NodePort, and LoadBalancer. Ignored if type is ExternalName. More info: http://kubernetes.io/docs/user-guide/services#overview - * @member {Object.} selector - */ - exports.prototype['selector'] = undefined; - /** - * Supports \"ClientIP\" and \"None\". Used to maintain session affinity. Enable client IP based session affinity. Must be ClientIP or None. Defaults to None. More info: http://kubernetes.io/docs/user-guide/services#virtual-ips-and-service-proxies - * @member {String} sessionAffinity - */ - exports.prototype['sessionAffinity'] = undefined; - /** - * type determines how the Service is exposed. Defaults to ClusterIP. Valid options are ExternalName, ClusterIP, NodePort, and LoadBalancer. \"ExternalName\" maps to the specified externalName. \"ClusterIP\" allocates a cluster-internal IP address for load-balancing to endpoints. Endpoints are determined by the selector or if that is not specified, by manual construction of an Endpoints object. If clusterIP is \"None\", no virtual IP is allocated and the endpoints are published as a set of endpoints rather than a stable IP. \"NodePort\" builds on ClusterIP and allocates a port on every node which routes to the clusterIP. \"LoadBalancer\" builds on NodePort and creates an external load-balancer (if supported in the current cloud) which routes to the clusterIP. More info: http://kubernetes.io/docs/user-guide/services#overview - * @member {String} type - */ - exports.prototype['type'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1ServiceStatus.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1ServiceStatus.js deleted file mode 100644 index 684174571a..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1ServiceStatus.js +++ /dev/null @@ -1,81 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1LoadBalancerStatus'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1LoadBalancerStatus')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1ServiceStatus = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1LoadBalancerStatus); - } -}(this, function(ApiClient, V1LoadBalancerStatus) { - 'use strict'; - - - - - /** - * The V1ServiceStatus model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1ServiceStatus - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1ServiceStatus. - * ServiceStatus represents the current status of a service. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1ServiceStatus - * @class - */ - var exports = function() { - var _this = this; - - - }; - - /** - * Constructs a V1ServiceStatus from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1ServiceStatus} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1ServiceStatus} The populated V1ServiceStatus instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('loadBalancer')) { - obj['loadBalancer'] = V1LoadBalancerStatus.constructFromObject(data['loadBalancer']); - } - } - return obj; - } - - /** - * LoadBalancer contains the current status of the load-balancer, if one is present. - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1LoadBalancerStatus} loadBalancer - */ - exports.prototype['loadBalancer'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1Status.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1Status.js deleted file mode 100644 index 9821186fe4..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1Status.js +++ /dev/null @@ -1,144 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1ListMeta', 'io.kubernetes.js/io.kubernetes.js.models/V1StatusDetails'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1ListMeta'), require('./V1StatusDetails')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1Status = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1ListMeta, root.KubernetesJsClient.V1StatusDetails); - } -}(this, function(ApiClient, V1ListMeta, V1StatusDetails) { - 'use strict'; - - - - - /** - * The V1Status model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1Status - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1Status. - * Status is a return value for calls that don't return other objects. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1Status - * @class - */ - var exports = function() { - var _this = this; - - - - - - - - - - }; - - /** - * Constructs a V1Status from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Status} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1Status} The populated V1Status instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('apiVersion')) { - obj['apiVersion'] = ApiClient.convertToType(data['apiVersion'], 'String'); - } - if (data.hasOwnProperty('code')) { - obj['code'] = ApiClient.convertToType(data['code'], 'Number'); - } - if (data.hasOwnProperty('details')) { - obj['details'] = V1StatusDetails.constructFromObject(data['details']); - } - if (data.hasOwnProperty('kind')) { - obj['kind'] = ApiClient.convertToType(data['kind'], 'String'); - } - if (data.hasOwnProperty('message')) { - obj['message'] = ApiClient.convertToType(data['message'], 'String'); - } - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = V1ListMeta.constructFromObject(data['metadata']); - } - if (data.hasOwnProperty('reason')) { - obj['reason'] = ApiClient.convertToType(data['reason'], 'String'); - } - if (data.hasOwnProperty('status')) { - obj['status'] = ApiClient.convertToType(data['status'], 'String'); - } - } - return obj; - } - - /** - * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - * @member {String} apiVersion - */ - exports.prototype['apiVersion'] = undefined; - /** - * Suggested HTTP return code for this status, 0 if not set. - * @member {Number} code - */ - exports.prototype['code'] = undefined; - /** - * Extended data associated with the reason. Each reason may define its own extended details. This field is optional and the data returned is not guaranteed to conform to any schema except that defined by the reason type. - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1StatusDetails} details - */ - exports.prototype['details'] = undefined; - /** - * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - * @member {String} kind - */ - exports.prototype['kind'] = undefined; - /** - * A human-readable description of the status of this operation. - * @member {String} message - */ - exports.prototype['message'] = undefined; - /** - * Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1ListMeta} metadata - */ - exports.prototype['metadata'] = undefined; - /** - * A machine-readable description of why this operation is in the \"Failure\" status. If this value is empty there is no information available. A Reason clarifies an HTTP status code but does not override it. - * @member {String} reason - */ - exports.prototype['reason'] = undefined; - /** - * Status of the operation. One of: \"Success\" or \"Failure\". More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status - * @member {String} status - */ - exports.prototype['status'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1StatusCause.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1StatusCause.js deleted file mode 100644 index dde049497c..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1StatusCause.js +++ /dev/null @@ -1,99 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1StatusCause = factory(root.KubernetesJsClient.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - - /** - * The V1StatusCause model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1StatusCause - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1StatusCause. - * StatusCause provides more information about an api.Status failure, including cases when multiple errors are encountered. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1StatusCause - * @class - */ - var exports = function() { - var _this = this; - - - - - }; - - /** - * Constructs a V1StatusCause from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1StatusCause} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1StatusCause} The populated V1StatusCause instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('field')) { - obj['field'] = ApiClient.convertToType(data['field'], 'String'); - } - if (data.hasOwnProperty('message')) { - obj['message'] = ApiClient.convertToType(data['message'], 'String'); - } - if (data.hasOwnProperty('reason')) { - obj['reason'] = ApiClient.convertToType(data['reason'], 'String'); - } - } - return obj; - } - - /** - * The field of the resource that has caused this error, as named by its JSON serialization. May include dot and postfix notation for nested attributes. Arrays are zero-indexed. Fields may appear more than once in an array of causes due to fields having multiple errors. Optional. Examples: \"name\" - the field \"name\" on the current resource \"items[0].name\" - the field \"name\" on the first array entry in \"items\" - * @member {String} field - */ - exports.prototype['field'] = undefined; - /** - * A human-readable description of the cause of the error. This field may be presented as-is to a reader. - * @member {String} message - */ - exports.prototype['message'] = undefined; - /** - * A machine-readable description of the cause of the error. If this value is empty there is no information available. - * @member {String} reason - */ - exports.prototype['reason'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1StatusDetails.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1StatusDetails.js deleted file mode 100644 index 249eb9e027..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1StatusDetails.js +++ /dev/null @@ -1,117 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1StatusCause'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1StatusCause')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1StatusDetails = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1StatusCause); - } -}(this, function(ApiClient, V1StatusCause) { - 'use strict'; - - - - - /** - * The V1StatusDetails model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1StatusDetails - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1StatusDetails. - * StatusDetails is a set of additional properties that MAY be set by the server to provide additional information about a response. The Reason field of a Status object defines what attributes will be set. Clients must ignore fields that do not match the defined type of each attribute, and should assume that any attribute may be empty, invalid, or under defined. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1StatusDetails - * @class - */ - var exports = function() { - var _this = this; - - - - - - - }; - - /** - * Constructs a V1StatusDetails from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1StatusDetails} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1StatusDetails} The populated V1StatusDetails instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('causes')) { - obj['causes'] = ApiClient.convertToType(data['causes'], [V1StatusCause]); - } - if (data.hasOwnProperty('group')) { - obj['group'] = ApiClient.convertToType(data['group'], 'String'); - } - if (data.hasOwnProperty('kind')) { - obj['kind'] = ApiClient.convertToType(data['kind'], 'String'); - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - } - if (data.hasOwnProperty('retryAfterSeconds')) { - obj['retryAfterSeconds'] = ApiClient.convertToType(data['retryAfterSeconds'], 'Number'); - } - } - return obj; - } - - /** - * The Causes array includes more details associated with the StatusReason failure. Not all StatusReasons may provide detailed causes. - * @member {Array.} causes - */ - exports.prototype['causes'] = undefined; - /** - * The group attribute of the resource associated with the status StatusReason. - * @member {String} group - */ - exports.prototype['group'] = undefined; - /** - * The kind attribute of the resource associated with the status StatusReason. On some operations may differ from the requested resource Kind. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - * @member {String} kind - */ - exports.prototype['kind'] = undefined; - /** - * The name attribute of the resource associated with the status StatusReason (when there is a single name which can be described). - * @member {String} name - */ - exports.prototype['name'] = undefined; - /** - * If specified, the time in seconds before the operation should be retried. - * @member {Number} retryAfterSeconds - */ - exports.prototype['retryAfterSeconds'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1StorageClass.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1StorageClass.js deleted file mode 100644 index 8b1ee0de8d..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1StorageClass.js +++ /dev/null @@ -1,118 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1ObjectMeta'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1ObjectMeta')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1StorageClass = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1ObjectMeta); - } -}(this, function(ApiClient, V1ObjectMeta) { - 'use strict'; - - - - - /** - * The V1StorageClass model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1StorageClass - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1StorageClass. - * StorageClass describes the parameters for a class of storage for which PersistentVolumes can be dynamically provisioned. StorageClasses are non-namespaced; the name of the storage class according to etcd is in ObjectMeta.Name. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1StorageClass - * @class - * @param provisioner {String} Provisioner indicates the type of the provisioner. - */ - var exports = function(provisioner) { - var _this = this; - - - - - - _this['provisioner'] = provisioner; - }; - - /** - * Constructs a V1StorageClass from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1StorageClass} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1StorageClass} The populated V1StorageClass instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('apiVersion')) { - obj['apiVersion'] = ApiClient.convertToType(data['apiVersion'], 'String'); - } - if (data.hasOwnProperty('kind')) { - obj['kind'] = ApiClient.convertToType(data['kind'], 'String'); - } - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = V1ObjectMeta.constructFromObject(data['metadata']); - } - if (data.hasOwnProperty('parameters')) { - obj['parameters'] = ApiClient.convertToType(data['parameters'], {'String': 'String'}); - } - if (data.hasOwnProperty('provisioner')) { - obj['provisioner'] = ApiClient.convertToType(data['provisioner'], 'String'); - } - } - return obj; - } - - /** - * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - * @member {String} apiVersion - */ - exports.prototype['apiVersion'] = undefined; - /** - * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - * @member {String} kind - */ - exports.prototype['kind'] = undefined; - /** - * Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1ObjectMeta} metadata - */ - exports.prototype['metadata'] = undefined; - /** - * Parameters holds the parameters for the provisioner that should create volumes of this storage class. - * @member {Object.} parameters - */ - exports.prototype['parameters'] = undefined; - /** - * Provisioner indicates the type of the provisioner. - * @member {String} provisioner - */ - exports.prototype['provisioner'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1StorageClassList.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1StorageClassList.js deleted file mode 100644 index 9615ea9322..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1StorageClassList.js +++ /dev/null @@ -1,109 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1ListMeta', 'io.kubernetes.js/io.kubernetes.js.models/V1StorageClass'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1ListMeta'), require('./V1StorageClass')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1StorageClassList = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1ListMeta, root.KubernetesJsClient.V1StorageClass); - } -}(this, function(ApiClient, V1ListMeta, V1StorageClass) { - 'use strict'; - - - - - /** - * The V1StorageClassList model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1StorageClassList - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1StorageClassList. - * StorageClassList is a collection of storage classes. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1StorageClassList - * @class - * @param items {Array.} Items is the list of StorageClasses - */ - var exports = function(items) { - var _this = this; - - - _this['items'] = items; - - - }; - - /** - * Constructs a V1StorageClassList from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1StorageClassList} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1StorageClassList} The populated V1StorageClassList instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('apiVersion')) { - obj['apiVersion'] = ApiClient.convertToType(data['apiVersion'], 'String'); - } - if (data.hasOwnProperty('items')) { - obj['items'] = ApiClient.convertToType(data['items'], [V1StorageClass]); - } - if (data.hasOwnProperty('kind')) { - obj['kind'] = ApiClient.convertToType(data['kind'], 'String'); - } - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = V1ListMeta.constructFromObject(data['metadata']); - } - } - return obj; - } - - /** - * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - * @member {String} apiVersion - */ - exports.prototype['apiVersion'] = undefined; - /** - * Items is the list of StorageClasses - * @member {Array.} items - */ - exports.prototype['items'] = undefined; - /** - * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - * @member {String} kind - */ - exports.prototype['kind'] = undefined; - /** - * Standard list metadata More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1ListMeta} metadata - */ - exports.prototype['metadata'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1SubjectAccessReview.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1SubjectAccessReview.js deleted file mode 100644 index 6916e048ef..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1SubjectAccessReview.js +++ /dev/null @@ -1,117 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1ObjectMeta', 'io.kubernetes.js/io.kubernetes.js.models/V1SubjectAccessReviewSpec', 'io.kubernetes.js/io.kubernetes.js.models/V1SubjectAccessReviewStatus'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1ObjectMeta'), require('./V1SubjectAccessReviewSpec'), require('./V1SubjectAccessReviewStatus')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1SubjectAccessReview = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1ObjectMeta, root.KubernetesJsClient.V1SubjectAccessReviewSpec, root.KubernetesJsClient.V1SubjectAccessReviewStatus); - } -}(this, function(ApiClient, V1ObjectMeta, V1SubjectAccessReviewSpec, V1SubjectAccessReviewStatus) { - 'use strict'; - - - - - /** - * The V1SubjectAccessReview model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1SubjectAccessReview - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1SubjectAccessReview. - * SubjectAccessReview checks whether or not a user or group can perform an action. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1SubjectAccessReview - * @class - * @param spec {module:io.kubernetes.js/io.kubernetes.js.models/V1SubjectAccessReviewSpec} Spec holds information about the request being evaluated - */ - var exports = function(spec) { - var _this = this; - - - - - _this['spec'] = spec; - - }; - - /** - * Constructs a V1SubjectAccessReview from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1SubjectAccessReview} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1SubjectAccessReview} The populated V1SubjectAccessReview instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('apiVersion')) { - obj['apiVersion'] = ApiClient.convertToType(data['apiVersion'], 'String'); - } - if (data.hasOwnProperty('kind')) { - obj['kind'] = ApiClient.convertToType(data['kind'], 'String'); - } - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = V1ObjectMeta.constructFromObject(data['metadata']); - } - if (data.hasOwnProperty('spec')) { - obj['spec'] = V1SubjectAccessReviewSpec.constructFromObject(data['spec']); - } - if (data.hasOwnProperty('status')) { - obj['status'] = V1SubjectAccessReviewStatus.constructFromObject(data['status']); - } - } - return obj; - } - - /** - * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - * @member {String} apiVersion - */ - exports.prototype['apiVersion'] = undefined; - /** - * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - * @member {String} kind - */ - exports.prototype['kind'] = undefined; - /** - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1ObjectMeta} metadata - */ - exports.prototype['metadata'] = undefined; - /** - * Spec holds information about the request being evaluated - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1SubjectAccessReviewSpec} spec - */ - exports.prototype['spec'] = undefined; - /** - * Status is filled in by the server and indicates whether the request is allowed or not - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1SubjectAccessReviewStatus} status - */ - exports.prototype['status'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1SubjectAccessReviewSpec.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1SubjectAccessReviewSpec.js deleted file mode 100644 index 59d94c23e1..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1SubjectAccessReviewSpec.js +++ /dev/null @@ -1,117 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1NonResourceAttributes', 'io.kubernetes.js/io.kubernetes.js.models/V1ResourceAttributes'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1NonResourceAttributes'), require('./V1ResourceAttributes')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1SubjectAccessReviewSpec = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1NonResourceAttributes, root.KubernetesJsClient.V1ResourceAttributes); - } -}(this, function(ApiClient, V1NonResourceAttributes, V1ResourceAttributes) { - 'use strict'; - - - - - /** - * The V1SubjectAccessReviewSpec model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1SubjectAccessReviewSpec - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1SubjectAccessReviewSpec. - * SubjectAccessReviewSpec is a description of the access request. Exactly one of ResourceAuthorizationAttributes and NonResourceAuthorizationAttributes must be set - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1SubjectAccessReviewSpec - * @class - */ - var exports = function() { - var _this = this; - - - - - - - }; - - /** - * Constructs a V1SubjectAccessReviewSpec from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1SubjectAccessReviewSpec} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1SubjectAccessReviewSpec} The populated V1SubjectAccessReviewSpec instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('extra')) { - obj['extra'] = ApiClient.convertToType(data['extra'], {'String': ['String']}); - } - if (data.hasOwnProperty('groups')) { - obj['groups'] = ApiClient.convertToType(data['groups'], ['String']); - } - if (data.hasOwnProperty('nonResourceAttributes')) { - obj['nonResourceAttributes'] = V1NonResourceAttributes.constructFromObject(data['nonResourceAttributes']); - } - if (data.hasOwnProperty('resourceAttributes')) { - obj['resourceAttributes'] = V1ResourceAttributes.constructFromObject(data['resourceAttributes']); - } - if (data.hasOwnProperty('user')) { - obj['user'] = ApiClient.convertToType(data['user'], 'String'); - } - } - return obj; - } - - /** - * Extra corresponds to the user.Info.GetExtra() method from the authenticator. Since that is input to the authorizer it needs a reflection here. - * @member {Object.>} extra - */ - exports.prototype['extra'] = undefined; - /** - * Groups is the groups you're testing for. - * @member {Array.} groups - */ - exports.prototype['groups'] = undefined; - /** - * NonResourceAttributes describes information for a non-resource access request - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1NonResourceAttributes} nonResourceAttributes - */ - exports.prototype['nonResourceAttributes'] = undefined; - /** - * ResourceAuthorizationAttributes describes information for a resource access request - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1ResourceAttributes} resourceAttributes - */ - exports.prototype['resourceAttributes'] = undefined; - /** - * User is the user you're testing for. If you specify \"User\" but not \"Groups\", then is it interpreted as \"What if User were not a member of any groups - * @member {String} user - */ - exports.prototype['user'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1SubjectAccessReviewStatus.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1SubjectAccessReviewStatus.js deleted file mode 100644 index f6a5842e9b..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1SubjectAccessReviewStatus.js +++ /dev/null @@ -1,100 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1SubjectAccessReviewStatus = factory(root.KubernetesJsClient.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - - /** - * The V1SubjectAccessReviewStatus model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1SubjectAccessReviewStatus - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1SubjectAccessReviewStatus. - * SubjectAccessReviewStatus - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1SubjectAccessReviewStatus - * @class - * @param allowed {Boolean} Allowed is required. True if the action would be allowed, false otherwise. - */ - var exports = function(allowed) { - var _this = this; - - _this['allowed'] = allowed; - - - }; - - /** - * Constructs a V1SubjectAccessReviewStatus from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1SubjectAccessReviewStatus} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1SubjectAccessReviewStatus} The populated V1SubjectAccessReviewStatus instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('allowed')) { - obj['allowed'] = ApiClient.convertToType(data['allowed'], 'Boolean'); - } - if (data.hasOwnProperty('evaluationError')) { - obj['evaluationError'] = ApiClient.convertToType(data['evaluationError'], 'String'); - } - if (data.hasOwnProperty('reason')) { - obj['reason'] = ApiClient.convertToType(data['reason'], 'String'); - } - } - return obj; - } - - /** - * Allowed is required. True if the action would be allowed, false otherwise. - * @member {Boolean} allowed - */ - exports.prototype['allowed'] = undefined; - /** - * EvaluationError is an indication that some error occurred during the authorization check. It is entirely possible to get an error and be able to continue determine authorization status in spite of it. For instance, RBAC can be missing a role, but enough roles are still present and bound to reason about the request. - * @member {String} evaluationError - */ - exports.prototype['evaluationError'] = undefined; - /** - * Reason is optional. It indicates why a request was allowed or denied. - * @member {String} reason - */ - exports.prototype['reason'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1TCPSocketAction.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1TCPSocketAction.js deleted file mode 100644 index 0c91f83990..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1TCPSocketAction.js +++ /dev/null @@ -1,82 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1TCPSocketAction = factory(root.KubernetesJsClient.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - - /** - * The V1TCPSocketAction model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1TCPSocketAction - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1TCPSocketAction. - * TCPSocketAction describes an action based on opening a socket - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1TCPSocketAction - * @class - * @param port {String} Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - */ - var exports = function(port) { - var _this = this; - - _this['port'] = port; - }; - - /** - * Constructs a V1TCPSocketAction from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1TCPSocketAction} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1TCPSocketAction} The populated V1TCPSocketAction instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('port')) { - obj['port'] = ApiClient.convertToType(data['port'], 'String'); - } - } - return obj; - } - - /** - * Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - * @member {String} port - */ - exports.prototype['port'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1Taint.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1Taint.js deleted file mode 100644 index 9163dcf159..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1Taint.js +++ /dev/null @@ -1,110 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1Taint = factory(root.KubernetesJsClient.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - - /** - * The V1Taint model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1Taint - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1Taint. - * The node this Taint is attached to has the effect \"effect\" on any pod that that does not tolerate the Taint. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1Taint - * @class - * @param effect {String} Required. The effect of the taint on pods that do not tolerate the taint. Valid effects are NoSchedule, PreferNoSchedule and NoExecute. - * @param key {String} Required. The taint key to be applied to a node. - */ - var exports = function(effect, key) { - var _this = this; - - _this['effect'] = effect; - _this['key'] = key; - - - }; - - /** - * Constructs a V1Taint from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Taint} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1Taint} The populated V1Taint instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('effect')) { - obj['effect'] = ApiClient.convertToType(data['effect'], 'String'); - } - if (data.hasOwnProperty('key')) { - obj['key'] = ApiClient.convertToType(data['key'], 'String'); - } - if (data.hasOwnProperty('timeAdded')) { - obj['timeAdded'] = ApiClient.convertToType(data['timeAdded'], 'Date'); - } - if (data.hasOwnProperty('value')) { - obj['value'] = ApiClient.convertToType(data['value'], 'String'); - } - } - return obj; - } - - /** - * Required. The effect of the taint on pods that do not tolerate the taint. Valid effects are NoSchedule, PreferNoSchedule and NoExecute. - * @member {String} effect - */ - exports.prototype['effect'] = undefined; - /** - * Required. The taint key to be applied to a node. - * @member {String} key - */ - exports.prototype['key'] = undefined; - /** - * TimeAdded represents the time at which the taint was added. It is only written for NoExecute taints. - * @member {Date} timeAdded - */ - exports.prototype['timeAdded'] = undefined; - /** - * Required. The taint value corresponding to the taint key. - * @member {String} value - */ - exports.prototype['value'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1TokenReview.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1TokenReview.js deleted file mode 100644 index 6b62f265e4..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1TokenReview.js +++ /dev/null @@ -1,117 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1ObjectMeta', 'io.kubernetes.js/io.kubernetes.js.models/V1TokenReviewSpec', 'io.kubernetes.js/io.kubernetes.js.models/V1TokenReviewStatus'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1ObjectMeta'), require('./V1TokenReviewSpec'), require('./V1TokenReviewStatus')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1TokenReview = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1ObjectMeta, root.KubernetesJsClient.V1TokenReviewSpec, root.KubernetesJsClient.V1TokenReviewStatus); - } -}(this, function(ApiClient, V1ObjectMeta, V1TokenReviewSpec, V1TokenReviewStatus) { - 'use strict'; - - - - - /** - * The V1TokenReview model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1TokenReview - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1TokenReview. - * TokenReview attempts to authenticate a token to a known user. Note: TokenReview requests may be cached by the webhook token authenticator plugin in the kube-apiserver. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1TokenReview - * @class - * @param spec {module:io.kubernetes.js/io.kubernetes.js.models/V1TokenReviewSpec} Spec holds information about the request being evaluated - */ - var exports = function(spec) { - var _this = this; - - - - - _this['spec'] = spec; - - }; - - /** - * Constructs a V1TokenReview from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1TokenReview} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1TokenReview} The populated V1TokenReview instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('apiVersion')) { - obj['apiVersion'] = ApiClient.convertToType(data['apiVersion'], 'String'); - } - if (data.hasOwnProperty('kind')) { - obj['kind'] = ApiClient.convertToType(data['kind'], 'String'); - } - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = V1ObjectMeta.constructFromObject(data['metadata']); - } - if (data.hasOwnProperty('spec')) { - obj['spec'] = V1TokenReviewSpec.constructFromObject(data['spec']); - } - if (data.hasOwnProperty('status')) { - obj['status'] = V1TokenReviewStatus.constructFromObject(data['status']); - } - } - return obj; - } - - /** - * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - * @member {String} apiVersion - */ - exports.prototype['apiVersion'] = undefined; - /** - * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - * @member {String} kind - */ - exports.prototype['kind'] = undefined; - /** - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1ObjectMeta} metadata - */ - exports.prototype['metadata'] = undefined; - /** - * Spec holds information about the request being evaluated - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1TokenReviewSpec} spec - */ - exports.prototype['spec'] = undefined; - /** - * Status is filled in by the server and indicates whether the request can be authenticated. - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1TokenReviewStatus} status - */ - exports.prototype['status'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1TokenReviewSpec.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1TokenReviewSpec.js deleted file mode 100644 index aa63e0b7c6..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1TokenReviewSpec.js +++ /dev/null @@ -1,81 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1TokenReviewSpec = factory(root.KubernetesJsClient.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - - /** - * The V1TokenReviewSpec model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1TokenReviewSpec - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1TokenReviewSpec. - * TokenReviewSpec is a description of the token authentication request. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1TokenReviewSpec - * @class - */ - var exports = function() { - var _this = this; - - - }; - - /** - * Constructs a V1TokenReviewSpec from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1TokenReviewSpec} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1TokenReviewSpec} The populated V1TokenReviewSpec instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('token')) { - obj['token'] = ApiClient.convertToType(data['token'], 'String'); - } - } - return obj; - } - - /** - * Token is the opaque bearer token. - * @member {String} token - */ - exports.prototype['token'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1TokenReviewStatus.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1TokenReviewStatus.js deleted file mode 100644 index abaf7e615e..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1TokenReviewStatus.js +++ /dev/null @@ -1,99 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1UserInfo'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1UserInfo')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1TokenReviewStatus = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1UserInfo); - } -}(this, function(ApiClient, V1UserInfo) { - 'use strict'; - - - - - /** - * The V1TokenReviewStatus model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1TokenReviewStatus - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1TokenReviewStatus. - * TokenReviewStatus is the result of the token authentication request. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1TokenReviewStatus - * @class - */ - var exports = function() { - var _this = this; - - - - - }; - - /** - * Constructs a V1TokenReviewStatus from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1TokenReviewStatus} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1TokenReviewStatus} The populated V1TokenReviewStatus instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('authenticated')) { - obj['authenticated'] = ApiClient.convertToType(data['authenticated'], 'Boolean'); - } - if (data.hasOwnProperty('error')) { - obj['error'] = ApiClient.convertToType(data['error'], 'String'); - } - if (data.hasOwnProperty('user')) { - obj['user'] = V1UserInfo.constructFromObject(data['user']); - } - } - return obj; - } - - /** - * Authenticated indicates that the token was associated with a known user. - * @member {Boolean} authenticated - */ - exports.prototype['authenticated'] = undefined; - /** - * Error indicates that the token couldn't be checked - * @member {String} error - */ - exports.prototype['error'] = undefined; - /** - * User is the UserInfo associated with the provided token. - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1UserInfo} user - */ - exports.prototype['user'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1Toleration.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1Toleration.js deleted file mode 100644 index efb3ab5958..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1Toleration.js +++ /dev/null @@ -1,117 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1Toleration = factory(root.KubernetesJsClient.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - - /** - * The V1Toleration model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1Toleration - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1Toleration. - * The pod this Toleration is attached to tolerates any taint that matches the triple <key,value,effect> using the matching operator <operator>. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1Toleration - * @class - */ - var exports = function() { - var _this = this; - - - - - - - }; - - /** - * Constructs a V1Toleration from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Toleration} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1Toleration} The populated V1Toleration instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('effect')) { - obj['effect'] = ApiClient.convertToType(data['effect'], 'String'); - } - if (data.hasOwnProperty('key')) { - obj['key'] = ApiClient.convertToType(data['key'], 'String'); - } - if (data.hasOwnProperty('operator')) { - obj['operator'] = ApiClient.convertToType(data['operator'], 'String'); - } - if (data.hasOwnProperty('tolerationSeconds')) { - obj['tolerationSeconds'] = ApiClient.convertToType(data['tolerationSeconds'], 'Number'); - } - if (data.hasOwnProperty('value')) { - obj['value'] = ApiClient.convertToType(data['value'], 'String'); - } - } - return obj; - } - - /** - * Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. - * @member {String} effect - */ - exports.prototype['effect'] = undefined; - /** - * Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. - * @member {String} key - */ - exports.prototype['key'] = undefined; - /** - * Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. - * @member {String} operator - */ - exports.prototype['operator'] = undefined; - /** - * TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. - * @member {Number} tolerationSeconds - */ - exports.prototype['tolerationSeconds'] = undefined; - /** - * Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. - * @member {String} value - */ - exports.prototype['value'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1UserInfo.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1UserInfo.js deleted file mode 100644 index 6136e1f8a4..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1UserInfo.js +++ /dev/null @@ -1,108 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1UserInfo = factory(root.KubernetesJsClient.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - - /** - * The V1UserInfo model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1UserInfo - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1UserInfo. - * UserInfo holds the information about the user needed to implement the user.Info interface. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1UserInfo - * @class - */ - var exports = function() { - var _this = this; - - - - - - }; - - /** - * Constructs a V1UserInfo from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1UserInfo} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1UserInfo} The populated V1UserInfo instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('extra')) { - obj['extra'] = ApiClient.convertToType(data['extra'], {'String': ['String']}); - } - if (data.hasOwnProperty('groups')) { - obj['groups'] = ApiClient.convertToType(data['groups'], ['String']); - } - if (data.hasOwnProperty('uid')) { - obj['uid'] = ApiClient.convertToType(data['uid'], 'String'); - } - if (data.hasOwnProperty('username')) { - obj['username'] = ApiClient.convertToType(data['username'], 'String'); - } - } - return obj; - } - - /** - * Any additional information provided by the authenticator. - * @member {Object.>} extra - */ - exports.prototype['extra'] = undefined; - /** - * The names of groups this user is a part of. - * @member {Array.} groups - */ - exports.prototype['groups'] = undefined; - /** - * A unique value that identifies this user across time. If this user is deleted and another user by the same name is added, they will have different UIDs. - * @member {String} uid - */ - exports.prototype['uid'] = undefined; - /** - * The name that uniquely identifies this user among all active users. - * @member {String} username - */ - exports.prototype['username'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1Volume.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1Volume.js deleted file mode 100644 index 7641af4cc2..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1Volume.js +++ /dev/null @@ -1,316 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1AWSElasticBlockStoreVolumeSource', 'io.kubernetes.js/io.kubernetes.js.models/V1AzureDiskVolumeSource', 'io.kubernetes.js/io.kubernetes.js.models/V1AzureFileVolumeSource', 'io.kubernetes.js/io.kubernetes.js.models/V1CephFSVolumeSource', 'io.kubernetes.js/io.kubernetes.js.models/V1CinderVolumeSource', 'io.kubernetes.js/io.kubernetes.js.models/V1ConfigMapVolumeSource', 'io.kubernetes.js/io.kubernetes.js.models/V1DownwardAPIVolumeSource', 'io.kubernetes.js/io.kubernetes.js.models/V1EmptyDirVolumeSource', 'io.kubernetes.js/io.kubernetes.js.models/V1FCVolumeSource', 'io.kubernetes.js/io.kubernetes.js.models/V1FlexVolumeSource', 'io.kubernetes.js/io.kubernetes.js.models/V1FlockerVolumeSource', 'io.kubernetes.js/io.kubernetes.js.models/V1GCEPersistentDiskVolumeSource', 'io.kubernetes.js/io.kubernetes.js.models/V1GitRepoVolumeSource', 'io.kubernetes.js/io.kubernetes.js.models/V1GlusterfsVolumeSource', 'io.kubernetes.js/io.kubernetes.js.models/V1HostPathVolumeSource', 'io.kubernetes.js/io.kubernetes.js.models/V1ISCSIVolumeSource', 'io.kubernetes.js/io.kubernetes.js.models/V1NFSVolumeSource', 'io.kubernetes.js/io.kubernetes.js.models/V1PersistentVolumeClaimVolumeSource', 'io.kubernetes.js/io.kubernetes.js.models/V1PhotonPersistentDiskVolumeSource', 'io.kubernetes.js/io.kubernetes.js.models/V1PortworxVolumeSource', 'io.kubernetes.js/io.kubernetes.js.models/V1ProjectedVolumeSource', 'io.kubernetes.js/io.kubernetes.js.models/V1QuobyteVolumeSource', 'io.kubernetes.js/io.kubernetes.js.models/V1RBDVolumeSource', 'io.kubernetes.js/io.kubernetes.js.models/V1ScaleIOVolumeSource', 'io.kubernetes.js/io.kubernetes.js.models/V1SecretVolumeSource', 'io.kubernetes.js/io.kubernetes.js.models/V1VsphereVirtualDiskVolumeSource'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1AWSElasticBlockStoreVolumeSource'), require('./V1AzureDiskVolumeSource'), require('./V1AzureFileVolumeSource'), require('./V1CephFSVolumeSource'), require('./V1CinderVolumeSource'), require('./V1ConfigMapVolumeSource'), require('./V1DownwardAPIVolumeSource'), require('./V1EmptyDirVolumeSource'), require('./V1FCVolumeSource'), require('./V1FlexVolumeSource'), require('./V1FlockerVolumeSource'), require('./V1GCEPersistentDiskVolumeSource'), require('./V1GitRepoVolumeSource'), require('./V1GlusterfsVolumeSource'), require('./V1HostPathVolumeSource'), require('./V1ISCSIVolumeSource'), require('./V1NFSVolumeSource'), require('./V1PersistentVolumeClaimVolumeSource'), require('./V1PhotonPersistentDiskVolumeSource'), require('./V1PortworxVolumeSource'), require('./V1ProjectedVolumeSource'), require('./V1QuobyteVolumeSource'), require('./V1RBDVolumeSource'), require('./V1ScaleIOVolumeSource'), require('./V1SecretVolumeSource'), require('./V1VsphereVirtualDiskVolumeSource')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1Volume = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1AWSElasticBlockStoreVolumeSource, root.KubernetesJsClient.V1AzureDiskVolumeSource, root.KubernetesJsClient.V1AzureFileVolumeSource, root.KubernetesJsClient.V1CephFSVolumeSource, root.KubernetesJsClient.V1CinderVolumeSource, root.KubernetesJsClient.V1ConfigMapVolumeSource, root.KubernetesJsClient.V1DownwardAPIVolumeSource, root.KubernetesJsClient.V1EmptyDirVolumeSource, root.KubernetesJsClient.V1FCVolumeSource, root.KubernetesJsClient.V1FlexVolumeSource, root.KubernetesJsClient.V1FlockerVolumeSource, root.KubernetesJsClient.V1GCEPersistentDiskVolumeSource, root.KubernetesJsClient.V1GitRepoVolumeSource, root.KubernetesJsClient.V1GlusterfsVolumeSource, root.KubernetesJsClient.V1HostPathVolumeSource, root.KubernetesJsClient.V1ISCSIVolumeSource, root.KubernetesJsClient.V1NFSVolumeSource, root.KubernetesJsClient.V1PersistentVolumeClaimVolumeSource, root.KubernetesJsClient.V1PhotonPersistentDiskVolumeSource, root.KubernetesJsClient.V1PortworxVolumeSource, root.KubernetesJsClient.V1ProjectedVolumeSource, root.KubernetesJsClient.V1QuobyteVolumeSource, root.KubernetesJsClient.V1RBDVolumeSource, root.KubernetesJsClient.V1ScaleIOVolumeSource, root.KubernetesJsClient.V1SecretVolumeSource, root.KubernetesJsClient.V1VsphereVirtualDiskVolumeSource); - } -}(this, function(ApiClient, V1AWSElasticBlockStoreVolumeSource, V1AzureDiskVolumeSource, V1AzureFileVolumeSource, V1CephFSVolumeSource, V1CinderVolumeSource, V1ConfigMapVolumeSource, V1DownwardAPIVolumeSource, V1EmptyDirVolumeSource, V1FCVolumeSource, V1FlexVolumeSource, V1FlockerVolumeSource, V1GCEPersistentDiskVolumeSource, V1GitRepoVolumeSource, V1GlusterfsVolumeSource, V1HostPathVolumeSource, V1ISCSIVolumeSource, V1NFSVolumeSource, V1PersistentVolumeClaimVolumeSource, V1PhotonPersistentDiskVolumeSource, V1PortworxVolumeSource, V1ProjectedVolumeSource, V1QuobyteVolumeSource, V1RBDVolumeSource, V1ScaleIOVolumeSource, V1SecretVolumeSource, V1VsphereVirtualDiskVolumeSource) { - 'use strict'; - - - - - /** - * The V1Volume model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1Volume - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1Volume. - * Volume represents a named volume in a pod that may be accessed by any container in the pod. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1Volume - * @class - * @param name {String} Volume's name. Must be a DNS_LABEL and unique within the pod. More info: http://kubernetes.io/docs/user-guide/identifiers#names - */ - var exports = function(name) { - var _this = this; - - - - - - - - - - - - - - - - - - _this['name'] = name; - - - - - - - - - - - }; - - /** - * Constructs a V1Volume from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1Volume} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1Volume} The populated V1Volume instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('awsElasticBlockStore')) { - obj['awsElasticBlockStore'] = V1AWSElasticBlockStoreVolumeSource.constructFromObject(data['awsElasticBlockStore']); - } - if (data.hasOwnProperty('azureDisk')) { - obj['azureDisk'] = V1AzureDiskVolumeSource.constructFromObject(data['azureDisk']); - } - if (data.hasOwnProperty('azureFile')) { - obj['azureFile'] = V1AzureFileVolumeSource.constructFromObject(data['azureFile']); - } - if (data.hasOwnProperty('cephfs')) { - obj['cephfs'] = V1CephFSVolumeSource.constructFromObject(data['cephfs']); - } - if (data.hasOwnProperty('cinder')) { - obj['cinder'] = V1CinderVolumeSource.constructFromObject(data['cinder']); - } - if (data.hasOwnProperty('configMap')) { - obj['configMap'] = V1ConfigMapVolumeSource.constructFromObject(data['configMap']); - } - if (data.hasOwnProperty('downwardAPI')) { - obj['downwardAPI'] = V1DownwardAPIVolumeSource.constructFromObject(data['downwardAPI']); - } - if (data.hasOwnProperty('emptyDir')) { - obj['emptyDir'] = V1EmptyDirVolumeSource.constructFromObject(data['emptyDir']); - } - if (data.hasOwnProperty('fc')) { - obj['fc'] = V1FCVolumeSource.constructFromObject(data['fc']); - } - if (data.hasOwnProperty('flexVolume')) { - obj['flexVolume'] = V1FlexVolumeSource.constructFromObject(data['flexVolume']); - } - if (data.hasOwnProperty('flocker')) { - obj['flocker'] = V1FlockerVolumeSource.constructFromObject(data['flocker']); - } - if (data.hasOwnProperty('gcePersistentDisk')) { - obj['gcePersistentDisk'] = V1GCEPersistentDiskVolumeSource.constructFromObject(data['gcePersistentDisk']); - } - if (data.hasOwnProperty('gitRepo')) { - obj['gitRepo'] = V1GitRepoVolumeSource.constructFromObject(data['gitRepo']); - } - if (data.hasOwnProperty('glusterfs')) { - obj['glusterfs'] = V1GlusterfsVolumeSource.constructFromObject(data['glusterfs']); - } - if (data.hasOwnProperty('hostPath')) { - obj['hostPath'] = V1HostPathVolumeSource.constructFromObject(data['hostPath']); - } - if (data.hasOwnProperty('iscsi')) { - obj['iscsi'] = V1ISCSIVolumeSource.constructFromObject(data['iscsi']); - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - } - if (data.hasOwnProperty('nfs')) { - obj['nfs'] = V1NFSVolumeSource.constructFromObject(data['nfs']); - } - if (data.hasOwnProperty('persistentVolumeClaim')) { - obj['persistentVolumeClaim'] = V1PersistentVolumeClaimVolumeSource.constructFromObject(data['persistentVolumeClaim']); - } - if (data.hasOwnProperty('photonPersistentDisk')) { - obj['photonPersistentDisk'] = V1PhotonPersistentDiskVolumeSource.constructFromObject(data['photonPersistentDisk']); - } - if (data.hasOwnProperty('portworxVolume')) { - obj['portworxVolume'] = V1PortworxVolumeSource.constructFromObject(data['portworxVolume']); - } - if (data.hasOwnProperty('projected')) { - obj['projected'] = V1ProjectedVolumeSource.constructFromObject(data['projected']); - } - if (data.hasOwnProperty('quobyte')) { - obj['quobyte'] = V1QuobyteVolumeSource.constructFromObject(data['quobyte']); - } - if (data.hasOwnProperty('rbd')) { - obj['rbd'] = V1RBDVolumeSource.constructFromObject(data['rbd']); - } - if (data.hasOwnProperty('scaleIO')) { - obj['scaleIO'] = V1ScaleIOVolumeSource.constructFromObject(data['scaleIO']); - } - if (data.hasOwnProperty('secret')) { - obj['secret'] = V1SecretVolumeSource.constructFromObject(data['secret']); - } - if (data.hasOwnProperty('vsphereVolume')) { - obj['vsphereVolume'] = V1VsphereVirtualDiskVolumeSource.constructFromObject(data['vsphereVolume']); - } - } - return obj; - } - - /** - * AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: http://kubernetes.io/docs/user-guide/volumes#awselasticblockstore - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1AWSElasticBlockStoreVolumeSource} awsElasticBlockStore - */ - exports.prototype['awsElasticBlockStore'] = undefined; - /** - * AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1AzureDiskVolumeSource} azureDisk - */ - exports.prototype['azureDisk'] = undefined; - /** - * AzureFile represents an Azure File Service mount on the host and bind mount to the pod. - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1AzureFileVolumeSource} azureFile - */ - exports.prototype['azureFile'] = undefined; - /** - * CephFS represents a Ceph FS mount on the host that shares a pod's lifetime - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1CephFSVolumeSource} cephfs - */ - exports.prototype['cephfs'] = undefined; - /** - * Cinder represents a cinder volume attached and mounted on kubelets host machine More info: http://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1CinderVolumeSource} cinder - */ - exports.prototype['cinder'] = undefined; - /** - * ConfigMap represents a configMap that should populate this volume - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1ConfigMapVolumeSource} configMap - */ - exports.prototype['configMap'] = undefined; - /** - * DownwardAPI represents downward API about the pod that should populate this volume - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1DownwardAPIVolumeSource} downwardAPI - */ - exports.prototype['downwardAPI'] = undefined; - /** - * EmptyDir represents a temporary directory that shares a pod's lifetime. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1EmptyDirVolumeSource} emptyDir - */ - exports.prototype['emptyDir'] = undefined; - /** - * FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1FCVolumeSource} fc - */ - exports.prototype['fc'] = undefined; - /** - * FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. This is an alpha feature and may change in future. - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1FlexVolumeSource} flexVolume - */ - exports.prototype['flexVolume'] = undefined; - /** - * Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1FlockerVolumeSource} flocker - */ - exports.prototype['flocker'] = undefined; - /** - * GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: http://kubernetes.io/docs/user-guide/volumes#gcepersistentdisk - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1GCEPersistentDiskVolumeSource} gcePersistentDisk - */ - exports.prototype['gcePersistentDisk'] = undefined; - /** - * GitRepo represents a git repository at a particular revision. - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1GitRepoVolumeSource} gitRepo - */ - exports.prototype['gitRepo'] = undefined; - /** - * Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: http://releases.k8s.io/HEAD/examples/volumes/glusterfs/README.md - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1GlusterfsVolumeSource} glusterfs - */ - exports.prototype['glusterfs'] = undefined; - /** - * HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: http://kubernetes.io/docs/user-guide/volumes#hostpath - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1HostPathVolumeSource} hostPath - */ - exports.prototype['hostPath'] = undefined; - /** - * ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: http://releases.k8s.io/HEAD/examples/volumes/iscsi/README.md - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1ISCSIVolumeSource} iscsi - */ - exports.prototype['iscsi'] = undefined; - /** - * Volume's name. Must be a DNS_LABEL and unique within the pod. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * @member {String} name - */ - exports.prototype['name'] = undefined; - /** - * NFS represents an NFS mount on the host that shares a pod's lifetime More info: http://kubernetes.io/docs/user-guide/volumes#nfs - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1NFSVolumeSource} nfs - */ - exports.prototype['nfs'] = undefined; - /** - * PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#persistentvolumeclaims - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1PersistentVolumeClaimVolumeSource} persistentVolumeClaim - */ - exports.prototype['persistentVolumeClaim'] = undefined; - /** - * PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1PhotonPersistentDiskVolumeSource} photonPersistentDisk - */ - exports.prototype['photonPersistentDisk'] = undefined; - /** - * PortworxVolume represents a portworx volume attached and mounted on kubelets host machine - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1PortworxVolumeSource} portworxVolume - */ - exports.prototype['portworxVolume'] = undefined; - /** - * Items for all in one resources secrets, configmaps, and downward API - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1ProjectedVolumeSource} projected - */ - exports.prototype['projected'] = undefined; - /** - * Quobyte represents a Quobyte mount on the host that shares a pod's lifetime - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1QuobyteVolumeSource} quobyte - */ - exports.prototype['quobyte'] = undefined; - /** - * RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: http://releases.k8s.io/HEAD/examples/volumes/rbd/README.md - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1RBDVolumeSource} rbd - */ - exports.prototype['rbd'] = undefined; - /** - * ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1ScaleIOVolumeSource} scaleIO - */ - exports.prototype['scaleIO'] = undefined; - /** - * Secret represents a secret that should populate this volume. More info: http://kubernetes.io/docs/user-guide/volumes#secrets - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1SecretVolumeSource} secret - */ - exports.prototype['secret'] = undefined; - /** - * VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1VsphereVirtualDiskVolumeSource} vsphereVolume - */ - exports.prototype['vsphereVolume'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1VolumeMount.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1VolumeMount.js deleted file mode 100644 index 4079555489..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1VolumeMount.js +++ /dev/null @@ -1,110 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1VolumeMount = factory(root.KubernetesJsClient.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - - /** - * The V1VolumeMount model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1VolumeMount - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1VolumeMount. - * VolumeMount describes a mounting of a Volume within a container. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1VolumeMount - * @class - * @param mountPath {String} Path within the container at which the volume should be mounted. Must not contain ':'. - * @param name {String} This must match the Name of a Volume. - */ - var exports = function(mountPath, name) { - var _this = this; - - _this['mountPath'] = mountPath; - _this['name'] = name; - - - }; - - /** - * Constructs a V1VolumeMount from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1VolumeMount} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1VolumeMount} The populated V1VolumeMount instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('mountPath')) { - obj['mountPath'] = ApiClient.convertToType(data['mountPath'], 'String'); - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - } - if (data.hasOwnProperty('readOnly')) { - obj['readOnly'] = ApiClient.convertToType(data['readOnly'], 'Boolean'); - } - if (data.hasOwnProperty('subPath')) { - obj['subPath'] = ApiClient.convertToType(data['subPath'], 'String'); - } - } - return obj; - } - - /** - * Path within the container at which the volume should be mounted. Must not contain ':'. - * @member {String} mountPath - */ - exports.prototype['mountPath'] = undefined; - /** - * This must match the Name of a Volume. - * @member {String} name - */ - exports.prototype['name'] = undefined; - /** - * Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. - * @member {Boolean} readOnly - */ - exports.prototype['readOnly'] = undefined; - /** - * Path within the volume from which the container's volume should be mounted. Defaults to \"\" (volume's root). - * @member {String} subPath - */ - exports.prototype['subPath'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1VolumeProjection.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1VolumeProjection.js deleted file mode 100644 index fe0cb2fc04..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1VolumeProjection.js +++ /dev/null @@ -1,99 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1ConfigMapProjection', 'io.kubernetes.js/io.kubernetes.js.models/V1DownwardAPIProjection', 'io.kubernetes.js/io.kubernetes.js.models/V1SecretProjection'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1ConfigMapProjection'), require('./V1DownwardAPIProjection'), require('./V1SecretProjection')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1VolumeProjection = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1ConfigMapProjection, root.KubernetesJsClient.V1DownwardAPIProjection, root.KubernetesJsClient.V1SecretProjection); - } -}(this, function(ApiClient, V1ConfigMapProjection, V1DownwardAPIProjection, V1SecretProjection) { - 'use strict'; - - - - - /** - * The V1VolumeProjection model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1VolumeProjection - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1VolumeProjection. - * Projection that may be projected along with other supported volume types - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1VolumeProjection - * @class - */ - var exports = function() { - var _this = this; - - - - - }; - - /** - * Constructs a V1VolumeProjection from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1VolumeProjection} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1VolumeProjection} The populated V1VolumeProjection instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('configMap')) { - obj['configMap'] = V1ConfigMapProjection.constructFromObject(data['configMap']); - } - if (data.hasOwnProperty('downwardAPI')) { - obj['downwardAPI'] = V1DownwardAPIProjection.constructFromObject(data['downwardAPI']); - } - if (data.hasOwnProperty('secret')) { - obj['secret'] = V1SecretProjection.constructFromObject(data['secret']); - } - } - return obj; - } - - /** - * information about the configMap data to project - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1ConfigMapProjection} configMap - */ - exports.prototype['configMap'] = undefined; - /** - * information about the downwardAPI data to project - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1DownwardAPIProjection} downwardAPI - */ - exports.prototype['downwardAPI'] = undefined; - /** - * information about the secret data to project - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1SecretProjection} secret - */ - exports.prototype['secret'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1VsphereVirtualDiskVolumeSource.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1VsphereVirtualDiskVolumeSource.js deleted file mode 100644 index c582d1cbb9..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1VsphereVirtualDiskVolumeSource.js +++ /dev/null @@ -1,91 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1VsphereVirtualDiskVolumeSource = factory(root.KubernetesJsClient.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - - /** - * The V1VsphereVirtualDiskVolumeSource model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1VsphereVirtualDiskVolumeSource - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1VsphereVirtualDiskVolumeSource. - * Represents a vSphere volume resource. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1VsphereVirtualDiskVolumeSource - * @class - * @param volumePath {String} Path that identifies vSphere volume vmdk - */ - var exports = function(volumePath) { - var _this = this; - - - _this['volumePath'] = volumePath; - }; - - /** - * Constructs a V1VsphereVirtualDiskVolumeSource from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1VsphereVirtualDiskVolumeSource} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1VsphereVirtualDiskVolumeSource} The populated V1VsphereVirtualDiskVolumeSource instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('fsType')) { - obj['fsType'] = ApiClient.convertToType(data['fsType'], 'String'); - } - if (data.hasOwnProperty('volumePath')) { - obj['volumePath'] = ApiClient.convertToType(data['volumePath'], 'String'); - } - } - return obj; - } - - /** - * Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. - * @member {String} fsType - */ - exports.prototype['fsType'] = undefined; - /** - * Path that identifies vSphere volume vmdk - * @member {String} volumePath - */ - exports.prototype['volumePath'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1WatchEvent.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1WatchEvent.js deleted file mode 100644 index 1569b3e9b0..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1WatchEvent.js +++ /dev/null @@ -1,91 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/RuntimeRawExtension'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./RuntimeRawExtension')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1WatchEvent = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.RuntimeRawExtension); - } -}(this, function(ApiClient, RuntimeRawExtension) { - 'use strict'; - - - - - /** - * The V1WatchEvent model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1WatchEvent - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1WatchEvent. - * Event represents a single event to a watched resource. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1WatchEvent - * @class - * @param _object {module:io.kubernetes.js/io.kubernetes.js.models/RuntimeRawExtension} Object is: * If Type is Added or Modified: the new state of the object. * If Type is Deleted: the state of the object immediately before deletion. * If Type is Error: *Status is recommended; other types may make sense depending on context. - * @param type {String} - */ - var exports = function(_object, type) { - var _this = this; - - _this['object'] = _object; - _this['type'] = type; - }; - - /** - * Constructs a V1WatchEvent from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1WatchEvent} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1WatchEvent} The populated V1WatchEvent instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('object')) { - obj['object'] = RuntimeRawExtension.constructFromObject(data['object']); - } - if (data.hasOwnProperty('type')) { - obj['type'] = ApiClient.convertToType(data['type'], 'String'); - } - } - return obj; - } - - /** - * Object is: * If Type is Added or Modified: the new state of the object. * If Type is Deleted: the state of the object immediately before deletion. * If Type is Error: *Status is recommended; other types may make sense depending on context. - * @member {module:io.kubernetes.js/io.kubernetes.js.models/RuntimeRawExtension} object - */ - exports.prototype['object'] = undefined; - /** - * @member {String} type - */ - exports.prototype['type'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1WeightedPodAffinityTerm.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1WeightedPodAffinityTerm.js deleted file mode 100644 index ff7617317d..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1WeightedPodAffinityTerm.js +++ /dev/null @@ -1,92 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1PodAffinityTerm'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1PodAffinityTerm')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1WeightedPodAffinityTerm = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1PodAffinityTerm); - } -}(this, function(ApiClient, V1PodAffinityTerm) { - 'use strict'; - - - - - /** - * The V1WeightedPodAffinityTerm model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1WeightedPodAffinityTerm - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1WeightedPodAffinityTerm. - * The weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s) - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1WeightedPodAffinityTerm - * @class - * @param podAffinityTerm {module:io.kubernetes.js/io.kubernetes.js.models/V1PodAffinityTerm} Required. A pod affinity term, associated with the corresponding weight. - * @param weight {Number} weight associated with matching the corresponding podAffinityTerm, in the range 1-100. - */ - var exports = function(podAffinityTerm, weight) { - var _this = this; - - _this['podAffinityTerm'] = podAffinityTerm; - _this['weight'] = weight; - }; - - /** - * Constructs a V1WeightedPodAffinityTerm from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1WeightedPodAffinityTerm} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1WeightedPodAffinityTerm} The populated V1WeightedPodAffinityTerm instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('podAffinityTerm')) { - obj['podAffinityTerm'] = V1PodAffinityTerm.constructFromObject(data['podAffinityTerm']); - } - if (data.hasOwnProperty('weight')) { - obj['weight'] = ApiClient.convertToType(data['weight'], 'Number'); - } - } - return obj; - } - - /** - * Required. A pod affinity term, associated with the corresponding weight. - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1PodAffinityTerm} podAffinityTerm - */ - exports.prototype['podAffinityTerm'] = undefined; - /** - * weight associated with matching the corresponding podAffinityTerm, in the range 1-100. - * @member {Number} weight - */ - exports.prototype['weight'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1alpha1ClusterRole.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1alpha1ClusterRole.js deleted file mode 100644 index 9f3b167d2e..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1alpha1ClusterRole.js +++ /dev/null @@ -1,109 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1ObjectMeta', 'io.kubernetes.js/io.kubernetes.js.models/V1alpha1PolicyRule'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1ObjectMeta'), require('./V1alpha1PolicyRule')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1alpha1ClusterRole = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1ObjectMeta, root.KubernetesJsClient.V1alpha1PolicyRule); - } -}(this, function(ApiClient, V1ObjectMeta, V1alpha1PolicyRule) { - 'use strict'; - - - - - /** - * The V1alpha1ClusterRole model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1alpha1ClusterRole - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1alpha1ClusterRole. - * ClusterRole is a cluster level, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding or ClusterRoleBinding. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1alpha1ClusterRole - * @class - * @param rules {Array.} Rules holds all the PolicyRules for this ClusterRole - */ - var exports = function(rules) { - var _this = this; - - - - - _this['rules'] = rules; - }; - - /** - * Constructs a V1alpha1ClusterRole from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1alpha1ClusterRole} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1alpha1ClusterRole} The populated V1alpha1ClusterRole instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('apiVersion')) { - obj['apiVersion'] = ApiClient.convertToType(data['apiVersion'], 'String'); - } - if (data.hasOwnProperty('kind')) { - obj['kind'] = ApiClient.convertToType(data['kind'], 'String'); - } - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = V1ObjectMeta.constructFromObject(data['metadata']); - } - if (data.hasOwnProperty('rules')) { - obj['rules'] = ApiClient.convertToType(data['rules'], [V1alpha1PolicyRule]); - } - } - return obj; - } - - /** - * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - * @member {String} apiVersion - */ - exports.prototype['apiVersion'] = undefined; - /** - * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - * @member {String} kind - */ - exports.prototype['kind'] = undefined; - /** - * Standard object's metadata. - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1ObjectMeta} metadata - */ - exports.prototype['metadata'] = undefined; - /** - * Rules holds all the PolicyRules for this ClusterRole - * @member {Array.} rules - */ - exports.prototype['rules'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1alpha1ClusterRoleBinding.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1alpha1ClusterRoleBinding.js deleted file mode 100644 index 1ff35b48fc..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1alpha1ClusterRoleBinding.js +++ /dev/null @@ -1,119 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1ObjectMeta', 'io.kubernetes.js/io.kubernetes.js.models/V1alpha1RoleRef', 'io.kubernetes.js/io.kubernetes.js.models/V1alpha1Subject'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1ObjectMeta'), require('./V1alpha1RoleRef'), require('./V1alpha1Subject')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1alpha1ClusterRoleBinding = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1ObjectMeta, root.KubernetesJsClient.V1alpha1RoleRef, root.KubernetesJsClient.V1alpha1Subject); - } -}(this, function(ApiClient, V1ObjectMeta, V1alpha1RoleRef, V1alpha1Subject) { - 'use strict'; - - - - - /** - * The V1alpha1ClusterRoleBinding model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1alpha1ClusterRoleBinding - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1alpha1ClusterRoleBinding. - * ClusterRoleBinding references a ClusterRole, but not contain it. It can reference a ClusterRole in the global namespace, and adds who information via Subject. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1alpha1ClusterRoleBinding - * @class - * @param roleRef {module:io.kubernetes.js/io.kubernetes.js.models/V1alpha1RoleRef} RoleRef can only reference a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. - * @param subjects {Array.} Subjects holds references to the objects the role applies to. - */ - var exports = function(roleRef, subjects) { - var _this = this; - - - - - _this['roleRef'] = roleRef; - _this['subjects'] = subjects; - }; - - /** - * Constructs a V1alpha1ClusterRoleBinding from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1alpha1ClusterRoleBinding} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1alpha1ClusterRoleBinding} The populated V1alpha1ClusterRoleBinding instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('apiVersion')) { - obj['apiVersion'] = ApiClient.convertToType(data['apiVersion'], 'String'); - } - if (data.hasOwnProperty('kind')) { - obj['kind'] = ApiClient.convertToType(data['kind'], 'String'); - } - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = V1ObjectMeta.constructFromObject(data['metadata']); - } - if (data.hasOwnProperty('roleRef')) { - obj['roleRef'] = V1alpha1RoleRef.constructFromObject(data['roleRef']); - } - if (data.hasOwnProperty('subjects')) { - obj['subjects'] = ApiClient.convertToType(data['subjects'], [V1alpha1Subject]); - } - } - return obj; - } - - /** - * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - * @member {String} apiVersion - */ - exports.prototype['apiVersion'] = undefined; - /** - * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - * @member {String} kind - */ - exports.prototype['kind'] = undefined; - /** - * Standard object's metadata. - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1ObjectMeta} metadata - */ - exports.prototype['metadata'] = undefined; - /** - * RoleRef can only reference a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1alpha1RoleRef} roleRef - */ - exports.prototype['roleRef'] = undefined; - /** - * Subjects holds references to the objects the role applies to. - * @member {Array.} subjects - */ - exports.prototype['subjects'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1alpha1ClusterRoleBindingList.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1alpha1ClusterRoleBindingList.js deleted file mode 100644 index f020902a89..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1alpha1ClusterRoleBindingList.js +++ /dev/null @@ -1,109 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1ListMeta', 'io.kubernetes.js/io.kubernetes.js.models/V1alpha1ClusterRoleBinding'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1ListMeta'), require('./V1alpha1ClusterRoleBinding')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1alpha1ClusterRoleBindingList = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1ListMeta, root.KubernetesJsClient.V1alpha1ClusterRoleBinding); - } -}(this, function(ApiClient, V1ListMeta, V1alpha1ClusterRoleBinding) { - 'use strict'; - - - - - /** - * The V1alpha1ClusterRoleBindingList model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1alpha1ClusterRoleBindingList - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1alpha1ClusterRoleBindingList. - * ClusterRoleBindingList is a collection of ClusterRoleBindings - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1alpha1ClusterRoleBindingList - * @class - * @param items {Array.} Items is a list of ClusterRoleBindings - */ - var exports = function(items) { - var _this = this; - - - _this['items'] = items; - - - }; - - /** - * Constructs a V1alpha1ClusterRoleBindingList from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1alpha1ClusterRoleBindingList} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1alpha1ClusterRoleBindingList} The populated V1alpha1ClusterRoleBindingList instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('apiVersion')) { - obj['apiVersion'] = ApiClient.convertToType(data['apiVersion'], 'String'); - } - if (data.hasOwnProperty('items')) { - obj['items'] = ApiClient.convertToType(data['items'], [V1alpha1ClusterRoleBinding]); - } - if (data.hasOwnProperty('kind')) { - obj['kind'] = ApiClient.convertToType(data['kind'], 'String'); - } - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = V1ListMeta.constructFromObject(data['metadata']); - } - } - return obj; - } - - /** - * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - * @member {String} apiVersion - */ - exports.prototype['apiVersion'] = undefined; - /** - * Items is a list of ClusterRoleBindings - * @member {Array.} items - */ - exports.prototype['items'] = undefined; - /** - * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - * @member {String} kind - */ - exports.prototype['kind'] = undefined; - /** - * Standard object's metadata. - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1ListMeta} metadata - */ - exports.prototype['metadata'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1alpha1ClusterRoleList.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1alpha1ClusterRoleList.js deleted file mode 100644 index 608aba1058..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1alpha1ClusterRoleList.js +++ /dev/null @@ -1,109 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1ListMeta', 'io.kubernetes.js/io.kubernetes.js.models/V1alpha1ClusterRole'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1ListMeta'), require('./V1alpha1ClusterRole')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1alpha1ClusterRoleList = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1ListMeta, root.KubernetesJsClient.V1alpha1ClusterRole); - } -}(this, function(ApiClient, V1ListMeta, V1alpha1ClusterRole) { - 'use strict'; - - - - - /** - * The V1alpha1ClusterRoleList model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1alpha1ClusterRoleList - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1alpha1ClusterRoleList. - * ClusterRoleList is a collection of ClusterRoles - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1alpha1ClusterRoleList - * @class - * @param items {Array.} Items is a list of ClusterRoles - */ - var exports = function(items) { - var _this = this; - - - _this['items'] = items; - - - }; - - /** - * Constructs a V1alpha1ClusterRoleList from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1alpha1ClusterRoleList} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1alpha1ClusterRoleList} The populated V1alpha1ClusterRoleList instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('apiVersion')) { - obj['apiVersion'] = ApiClient.convertToType(data['apiVersion'], 'String'); - } - if (data.hasOwnProperty('items')) { - obj['items'] = ApiClient.convertToType(data['items'], [V1alpha1ClusterRole]); - } - if (data.hasOwnProperty('kind')) { - obj['kind'] = ApiClient.convertToType(data['kind'], 'String'); - } - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = V1ListMeta.constructFromObject(data['metadata']); - } - } - return obj; - } - - /** - * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - * @member {String} apiVersion - */ - exports.prototype['apiVersion'] = undefined; - /** - * Items is a list of ClusterRoles - * @member {Array.} items - */ - exports.prototype['items'] = undefined; - /** - * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - * @member {String} kind - */ - exports.prototype['kind'] = undefined; - /** - * Standard object's metadata. - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1ListMeta} metadata - */ - exports.prototype['metadata'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1alpha1PodPreset.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1alpha1PodPreset.js deleted file mode 100644 index 279e76f6e7..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1alpha1PodPreset.js +++ /dev/null @@ -1,106 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1ObjectMeta', 'io.kubernetes.js/io.kubernetes.js.models/V1alpha1PodPresetSpec'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1ObjectMeta'), require('./V1alpha1PodPresetSpec')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1alpha1PodPreset = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1ObjectMeta, root.KubernetesJsClient.V1alpha1PodPresetSpec); - } -}(this, function(ApiClient, V1ObjectMeta, V1alpha1PodPresetSpec) { - 'use strict'; - - - - - /** - * The V1alpha1PodPreset model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1alpha1PodPreset - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1alpha1PodPreset. - * PodPreset is a policy resource that defines additional runtime requirements for a Pod. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1alpha1PodPreset - * @class - */ - var exports = function() { - var _this = this; - - - - - - }; - - /** - * Constructs a V1alpha1PodPreset from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1alpha1PodPreset} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1alpha1PodPreset} The populated V1alpha1PodPreset instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('apiVersion')) { - obj['apiVersion'] = ApiClient.convertToType(data['apiVersion'], 'String'); - } - if (data.hasOwnProperty('kind')) { - obj['kind'] = ApiClient.convertToType(data['kind'], 'String'); - } - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = V1ObjectMeta.constructFromObject(data['metadata']); - } - if (data.hasOwnProperty('spec')) { - obj['spec'] = V1alpha1PodPresetSpec.constructFromObject(data['spec']); - } - } - return obj; - } - - /** - * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - * @member {String} apiVersion - */ - exports.prototype['apiVersion'] = undefined; - /** - * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - * @member {String} kind - */ - exports.prototype['kind'] = undefined; - /** - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1ObjectMeta} metadata - */ - exports.prototype['metadata'] = undefined; - /** - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1alpha1PodPresetSpec} spec - */ - exports.prototype['spec'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1alpha1PodPresetList.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1alpha1PodPresetList.js deleted file mode 100644 index d1533ec11a..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1alpha1PodPresetList.js +++ /dev/null @@ -1,109 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1ListMeta', 'io.kubernetes.js/io.kubernetes.js.models/V1alpha1PodPreset'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1ListMeta'), require('./V1alpha1PodPreset')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1alpha1PodPresetList = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1ListMeta, root.KubernetesJsClient.V1alpha1PodPreset); - } -}(this, function(ApiClient, V1ListMeta, V1alpha1PodPreset) { - 'use strict'; - - - - - /** - * The V1alpha1PodPresetList model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1alpha1PodPresetList - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1alpha1PodPresetList. - * PodPresetList is a list of PodPreset objects. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1alpha1PodPresetList - * @class - * @param items {Array.} Items is a list of schema objects. - */ - var exports = function(items) { - var _this = this; - - - _this['items'] = items; - - - }; - - /** - * Constructs a V1alpha1PodPresetList from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1alpha1PodPresetList} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1alpha1PodPresetList} The populated V1alpha1PodPresetList instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('apiVersion')) { - obj['apiVersion'] = ApiClient.convertToType(data['apiVersion'], 'String'); - } - if (data.hasOwnProperty('items')) { - obj['items'] = ApiClient.convertToType(data['items'], [V1alpha1PodPreset]); - } - if (data.hasOwnProperty('kind')) { - obj['kind'] = ApiClient.convertToType(data['kind'], 'String'); - } - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = V1ListMeta.constructFromObject(data['metadata']); - } - } - return obj; - } - - /** - * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - * @member {String} apiVersion - */ - exports.prototype['apiVersion'] = undefined; - /** - * Items is a list of schema objects. - * @member {Array.} items - */ - exports.prototype['items'] = undefined; - /** - * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - * @member {String} kind - */ - exports.prototype['kind'] = undefined; - /** - * Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1ListMeta} metadata - */ - exports.prototype['metadata'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1alpha1PodPresetSpec.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1alpha1PodPresetSpec.js deleted file mode 100644 index dbc1cb605e..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1alpha1PodPresetSpec.js +++ /dev/null @@ -1,117 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1EnvFromSource', 'io.kubernetes.js/io.kubernetes.js.models/V1EnvVar', 'io.kubernetes.js/io.kubernetes.js.models/V1LabelSelector', 'io.kubernetes.js/io.kubernetes.js.models/V1Volume', 'io.kubernetes.js/io.kubernetes.js.models/V1VolumeMount'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1EnvFromSource'), require('./V1EnvVar'), require('./V1LabelSelector'), require('./V1Volume'), require('./V1VolumeMount')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1alpha1PodPresetSpec = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1EnvFromSource, root.KubernetesJsClient.V1EnvVar, root.KubernetesJsClient.V1LabelSelector, root.KubernetesJsClient.V1Volume, root.KubernetesJsClient.V1VolumeMount); - } -}(this, function(ApiClient, V1EnvFromSource, V1EnvVar, V1LabelSelector, V1Volume, V1VolumeMount) { - 'use strict'; - - - - - /** - * The V1alpha1PodPresetSpec model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1alpha1PodPresetSpec - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1alpha1PodPresetSpec. - * PodPresetSpec is a description of a pod injection policy. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1alpha1PodPresetSpec - * @class - */ - var exports = function() { - var _this = this; - - - - - - - }; - - /** - * Constructs a V1alpha1PodPresetSpec from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1alpha1PodPresetSpec} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1alpha1PodPresetSpec} The populated V1alpha1PodPresetSpec instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('env')) { - obj['env'] = ApiClient.convertToType(data['env'], [V1EnvVar]); - } - if (data.hasOwnProperty('envFrom')) { - obj['envFrom'] = ApiClient.convertToType(data['envFrom'], [V1EnvFromSource]); - } - if (data.hasOwnProperty('selector')) { - obj['selector'] = V1LabelSelector.constructFromObject(data['selector']); - } - if (data.hasOwnProperty('volumeMounts')) { - obj['volumeMounts'] = ApiClient.convertToType(data['volumeMounts'], [V1VolumeMount]); - } - if (data.hasOwnProperty('volumes')) { - obj['volumes'] = ApiClient.convertToType(data['volumes'], [V1Volume]); - } - } - return obj; - } - - /** - * Env defines the collection of EnvVar to inject into containers. - * @member {Array.} env - */ - exports.prototype['env'] = undefined; - /** - * EnvFrom defines the collection of EnvFromSource to inject into containers. - * @member {Array.} envFrom - */ - exports.prototype['envFrom'] = undefined; - /** - * Selector is a label query over a set of resources, in this case pods. Required. - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1LabelSelector} selector - */ - exports.prototype['selector'] = undefined; - /** - * VolumeMounts defines the collection of VolumeMount to inject into containers. - * @member {Array.} volumeMounts - */ - exports.prototype['volumeMounts'] = undefined; - /** - * Volumes defines the collection of Volume to inject into the pod. - * @member {Array.} volumes - */ - exports.prototype['volumes'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1alpha1PolicyRule.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1alpha1PolicyRule.js deleted file mode 100644 index bfa3e3830a..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1alpha1PolicyRule.js +++ /dev/null @@ -1,118 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1alpha1PolicyRule = factory(root.KubernetesJsClient.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - - /** - * The V1alpha1PolicyRule model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1alpha1PolicyRule - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1alpha1PolicyRule. - * PolicyRule holds information that describes a policy rule, but does not contain information about who the rule applies to or which namespace the rule applies to. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1alpha1PolicyRule - * @class - * @param verbs {Array.} Verbs is a list of Verbs that apply to ALL the ResourceKinds and AttributeRestrictions contained in this rule. VerbAll represents all kinds. - */ - var exports = function(verbs) { - var _this = this; - - - - - - _this['verbs'] = verbs; - }; - - /** - * Constructs a V1alpha1PolicyRule from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1alpha1PolicyRule} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1alpha1PolicyRule} The populated V1alpha1PolicyRule instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('apiGroups')) { - obj['apiGroups'] = ApiClient.convertToType(data['apiGroups'], ['String']); - } - if (data.hasOwnProperty('nonResourceURLs')) { - obj['nonResourceURLs'] = ApiClient.convertToType(data['nonResourceURLs'], ['String']); - } - if (data.hasOwnProperty('resourceNames')) { - obj['resourceNames'] = ApiClient.convertToType(data['resourceNames'], ['String']); - } - if (data.hasOwnProperty('resources')) { - obj['resources'] = ApiClient.convertToType(data['resources'], ['String']); - } - if (data.hasOwnProperty('verbs')) { - obj['verbs'] = ApiClient.convertToType(data['verbs'], ['String']); - } - } - return obj; - } - - /** - * APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. - * @member {Array.} apiGroups - */ - exports.prototype['apiGroups'] = undefined; - /** - * NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path This name is intentionally different than the internal type so that the DefaultConvert works nicely and because the ordering may be different. Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules can either apply to API resources (such as \"pods\" or \"secrets\") or non-resource URL paths (such as \"/api\"), but not both. - * @member {Array.} nonResourceURLs - */ - exports.prototype['nonResourceURLs'] = undefined; - /** - * ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. - * @member {Array.} resourceNames - */ - exports.prototype['resourceNames'] = undefined; - /** - * Resources is a list of resources this rule applies to. ResourceAll represents all resources. - * @member {Array.} resources - */ - exports.prototype['resources'] = undefined; - /** - * Verbs is a list of Verbs that apply to ALL the ResourceKinds and AttributeRestrictions contained in this rule. VerbAll represents all kinds. - * @member {Array.} verbs - */ - exports.prototype['verbs'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1alpha1Role.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1alpha1Role.js deleted file mode 100644 index 253dcb5c5a..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1alpha1Role.js +++ /dev/null @@ -1,109 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1ObjectMeta', 'io.kubernetes.js/io.kubernetes.js.models/V1alpha1PolicyRule'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1ObjectMeta'), require('./V1alpha1PolicyRule')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1alpha1Role = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1ObjectMeta, root.KubernetesJsClient.V1alpha1PolicyRule); - } -}(this, function(ApiClient, V1ObjectMeta, V1alpha1PolicyRule) { - 'use strict'; - - - - - /** - * The V1alpha1Role model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1alpha1Role - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1alpha1Role. - * Role is a namespaced, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1alpha1Role - * @class - * @param rules {Array.} Rules holds all the PolicyRules for this Role - */ - var exports = function(rules) { - var _this = this; - - - - - _this['rules'] = rules; - }; - - /** - * Constructs a V1alpha1Role from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1alpha1Role} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1alpha1Role} The populated V1alpha1Role instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('apiVersion')) { - obj['apiVersion'] = ApiClient.convertToType(data['apiVersion'], 'String'); - } - if (data.hasOwnProperty('kind')) { - obj['kind'] = ApiClient.convertToType(data['kind'], 'String'); - } - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = V1ObjectMeta.constructFromObject(data['metadata']); - } - if (data.hasOwnProperty('rules')) { - obj['rules'] = ApiClient.convertToType(data['rules'], [V1alpha1PolicyRule]); - } - } - return obj; - } - - /** - * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - * @member {String} apiVersion - */ - exports.prototype['apiVersion'] = undefined; - /** - * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - * @member {String} kind - */ - exports.prototype['kind'] = undefined; - /** - * Standard object's metadata. - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1ObjectMeta} metadata - */ - exports.prototype['metadata'] = undefined; - /** - * Rules holds all the PolicyRules for this Role - * @member {Array.} rules - */ - exports.prototype['rules'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1alpha1RoleBinding.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1alpha1RoleBinding.js deleted file mode 100644 index 0ed335dfec..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1alpha1RoleBinding.js +++ /dev/null @@ -1,119 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1ObjectMeta', 'io.kubernetes.js/io.kubernetes.js.models/V1alpha1RoleRef', 'io.kubernetes.js/io.kubernetes.js.models/V1alpha1Subject'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1ObjectMeta'), require('./V1alpha1RoleRef'), require('./V1alpha1Subject')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1alpha1RoleBinding = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1ObjectMeta, root.KubernetesJsClient.V1alpha1RoleRef, root.KubernetesJsClient.V1alpha1Subject); - } -}(this, function(ApiClient, V1ObjectMeta, V1alpha1RoleRef, V1alpha1Subject) { - 'use strict'; - - - - - /** - * The V1alpha1RoleBinding model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1alpha1RoleBinding - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1alpha1RoleBinding. - * RoleBinding references a role, but does not contain it. It can reference a Role in the same namespace or a ClusterRole in the global namespace. It adds who information via Subjects and namespace information by which namespace it exists in. RoleBindings in a given namespace only have effect in that namespace. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1alpha1RoleBinding - * @class - * @param roleRef {module:io.kubernetes.js/io.kubernetes.js.models/V1alpha1RoleRef} RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. - * @param subjects {Array.} Subjects holds references to the objects the role applies to. - */ - var exports = function(roleRef, subjects) { - var _this = this; - - - - - _this['roleRef'] = roleRef; - _this['subjects'] = subjects; - }; - - /** - * Constructs a V1alpha1RoleBinding from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1alpha1RoleBinding} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1alpha1RoleBinding} The populated V1alpha1RoleBinding instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('apiVersion')) { - obj['apiVersion'] = ApiClient.convertToType(data['apiVersion'], 'String'); - } - if (data.hasOwnProperty('kind')) { - obj['kind'] = ApiClient.convertToType(data['kind'], 'String'); - } - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = V1ObjectMeta.constructFromObject(data['metadata']); - } - if (data.hasOwnProperty('roleRef')) { - obj['roleRef'] = V1alpha1RoleRef.constructFromObject(data['roleRef']); - } - if (data.hasOwnProperty('subjects')) { - obj['subjects'] = ApiClient.convertToType(data['subjects'], [V1alpha1Subject]); - } - } - return obj; - } - - /** - * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - * @member {String} apiVersion - */ - exports.prototype['apiVersion'] = undefined; - /** - * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - * @member {String} kind - */ - exports.prototype['kind'] = undefined; - /** - * Standard object's metadata. - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1ObjectMeta} metadata - */ - exports.prototype['metadata'] = undefined; - /** - * RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1alpha1RoleRef} roleRef - */ - exports.prototype['roleRef'] = undefined; - /** - * Subjects holds references to the objects the role applies to. - * @member {Array.} subjects - */ - exports.prototype['subjects'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1alpha1RoleBindingList.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1alpha1RoleBindingList.js deleted file mode 100644 index 3456692911..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1alpha1RoleBindingList.js +++ /dev/null @@ -1,109 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1ListMeta', 'io.kubernetes.js/io.kubernetes.js.models/V1alpha1RoleBinding'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1ListMeta'), require('./V1alpha1RoleBinding')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1alpha1RoleBindingList = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1ListMeta, root.KubernetesJsClient.V1alpha1RoleBinding); - } -}(this, function(ApiClient, V1ListMeta, V1alpha1RoleBinding) { - 'use strict'; - - - - - /** - * The V1alpha1RoleBindingList model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1alpha1RoleBindingList - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1alpha1RoleBindingList. - * RoleBindingList is a collection of RoleBindings - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1alpha1RoleBindingList - * @class - * @param items {Array.} Items is a list of RoleBindings - */ - var exports = function(items) { - var _this = this; - - - _this['items'] = items; - - - }; - - /** - * Constructs a V1alpha1RoleBindingList from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1alpha1RoleBindingList} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1alpha1RoleBindingList} The populated V1alpha1RoleBindingList instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('apiVersion')) { - obj['apiVersion'] = ApiClient.convertToType(data['apiVersion'], 'String'); - } - if (data.hasOwnProperty('items')) { - obj['items'] = ApiClient.convertToType(data['items'], [V1alpha1RoleBinding]); - } - if (data.hasOwnProperty('kind')) { - obj['kind'] = ApiClient.convertToType(data['kind'], 'String'); - } - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = V1ListMeta.constructFromObject(data['metadata']); - } - } - return obj; - } - - /** - * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - * @member {String} apiVersion - */ - exports.prototype['apiVersion'] = undefined; - /** - * Items is a list of RoleBindings - * @member {Array.} items - */ - exports.prototype['items'] = undefined; - /** - * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - * @member {String} kind - */ - exports.prototype['kind'] = undefined; - /** - * Standard object's metadata. - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1ListMeta} metadata - */ - exports.prototype['metadata'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1alpha1RoleList.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1alpha1RoleList.js deleted file mode 100644 index 3521ad121f..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1alpha1RoleList.js +++ /dev/null @@ -1,109 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1ListMeta', 'io.kubernetes.js/io.kubernetes.js.models/V1alpha1Role'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1ListMeta'), require('./V1alpha1Role')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1alpha1RoleList = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1ListMeta, root.KubernetesJsClient.V1alpha1Role); - } -}(this, function(ApiClient, V1ListMeta, V1alpha1Role) { - 'use strict'; - - - - - /** - * The V1alpha1RoleList model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1alpha1RoleList - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1alpha1RoleList. - * RoleList is a collection of Roles - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1alpha1RoleList - * @class - * @param items {Array.} Items is a list of Roles - */ - var exports = function(items) { - var _this = this; - - - _this['items'] = items; - - - }; - - /** - * Constructs a V1alpha1RoleList from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1alpha1RoleList} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1alpha1RoleList} The populated V1alpha1RoleList instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('apiVersion')) { - obj['apiVersion'] = ApiClient.convertToType(data['apiVersion'], 'String'); - } - if (data.hasOwnProperty('items')) { - obj['items'] = ApiClient.convertToType(data['items'], [V1alpha1Role]); - } - if (data.hasOwnProperty('kind')) { - obj['kind'] = ApiClient.convertToType(data['kind'], 'String'); - } - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = V1ListMeta.constructFromObject(data['metadata']); - } - } - return obj; - } - - /** - * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - * @member {String} apiVersion - */ - exports.prototype['apiVersion'] = undefined; - /** - * Items is a list of Roles - * @member {Array.} items - */ - exports.prototype['items'] = undefined; - /** - * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - * @member {String} kind - */ - exports.prototype['kind'] = undefined; - /** - * Standard object's metadata. - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1ListMeta} metadata - */ - exports.prototype['metadata'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1alpha1RoleRef.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1alpha1RoleRef.js deleted file mode 100644 index 7dc6685fcc..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1alpha1RoleRef.js +++ /dev/null @@ -1,102 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1alpha1RoleRef = factory(root.KubernetesJsClient.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - - /** - * The V1alpha1RoleRef model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1alpha1RoleRef - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1alpha1RoleRef. - * RoleRef contains information that points to the role being used - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1alpha1RoleRef - * @class - * @param apiGroup {String} APIGroup is the group for the resource being referenced - * @param kind {String} Kind is the type of resource being referenced - * @param name {String} Name is the name of resource being referenced - */ - var exports = function(apiGroup, kind, name) { - var _this = this; - - _this['apiGroup'] = apiGroup; - _this['kind'] = kind; - _this['name'] = name; - }; - - /** - * Constructs a V1alpha1RoleRef from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1alpha1RoleRef} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1alpha1RoleRef} The populated V1alpha1RoleRef instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('apiGroup')) { - obj['apiGroup'] = ApiClient.convertToType(data['apiGroup'], 'String'); - } - if (data.hasOwnProperty('kind')) { - obj['kind'] = ApiClient.convertToType(data['kind'], 'String'); - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - } - } - return obj; - } - - /** - * APIGroup is the group for the resource being referenced - * @member {String} apiGroup - */ - exports.prototype['apiGroup'] = undefined; - /** - * Kind is the type of resource being referenced - * @member {String} kind - */ - exports.prototype['kind'] = undefined; - /** - * Name is the name of resource being referenced - * @member {String} name - */ - exports.prototype['name'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1alpha1Subject.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1alpha1Subject.js deleted file mode 100644 index 6cc7669ae2..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1alpha1Subject.js +++ /dev/null @@ -1,110 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1alpha1Subject = factory(root.KubernetesJsClient.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - - /** - * The V1alpha1Subject model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1alpha1Subject - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1alpha1Subject. - * Subject contains a reference to the object or user identities a role binding applies to. This can either hold a direct API object reference, or a value for non-objects such as user and group names. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1alpha1Subject - * @class - * @param kind {String} Kind of object being referenced. Values defined by this API group are \"User\", \"Group\", and \"ServiceAccount\". If the Authorizer does not recognized the kind value, the Authorizer should report an error. - * @param name {String} Name of the object being referenced. - */ - var exports = function(kind, name) { - var _this = this; - - - _this['kind'] = kind; - _this['name'] = name; - - }; - - /** - * Constructs a V1alpha1Subject from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1alpha1Subject} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1alpha1Subject} The populated V1alpha1Subject instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('apiVersion')) { - obj['apiVersion'] = ApiClient.convertToType(data['apiVersion'], 'String'); - } - if (data.hasOwnProperty('kind')) { - obj['kind'] = ApiClient.convertToType(data['kind'], 'String'); - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - } - if (data.hasOwnProperty('namespace')) { - obj['namespace'] = ApiClient.convertToType(data['namespace'], 'String'); - } - } - return obj; - } - - /** - * APIVersion holds the API group and version of the referenced subject. Defaults to \"v1\" for ServiceAccount subjects. Defaults to \"rbac.authorization.k8s.io/v1alpha1\" for User and Group subjects. - * @member {String} apiVersion - */ - exports.prototype['apiVersion'] = undefined; - /** - * Kind of object being referenced. Values defined by this API group are \"User\", \"Group\", and \"ServiceAccount\". If the Authorizer does not recognized the kind value, the Authorizer should report an error. - * @member {String} kind - */ - exports.prototype['kind'] = undefined; - /** - * Name of the object being referenced. - * @member {String} name - */ - exports.prototype['name'] = undefined; - /** - * Namespace of the referenced object. If the object kind is non-namespace, such as \"User\" or \"Group\", and this value is not empty the Authorizer should report an error. - * @member {String} namespace - */ - exports.prototype['namespace'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1APIVersion.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1APIVersion.js deleted file mode 100644 index c9592b5751..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1APIVersion.js +++ /dev/null @@ -1,81 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1beta1APIVersion = factory(root.KubernetesJsClient.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - - /** - * The V1beta1APIVersion model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1beta1APIVersion - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1beta1APIVersion. - * An APIVersion represents a single concrete version of an object model. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1beta1APIVersion - * @class - */ - var exports = function() { - var _this = this; - - - }; - - /** - * Constructs a V1beta1APIVersion from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1APIVersion} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1APIVersion} The populated V1beta1APIVersion instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - } - } - return obj; - } - - /** - * Name of this version (e.g. 'v1'). - * @member {String} name - */ - exports.prototype['name'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1CertificateSigningRequest.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1CertificateSigningRequest.js deleted file mode 100644 index c201fed684..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1CertificateSigningRequest.js +++ /dev/null @@ -1,116 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1ObjectMeta', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1CertificateSigningRequestSpec', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1CertificateSigningRequestStatus'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1ObjectMeta'), require('./V1beta1CertificateSigningRequestSpec'), require('./V1beta1CertificateSigningRequestStatus')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1beta1CertificateSigningRequest = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1ObjectMeta, root.KubernetesJsClient.V1beta1CertificateSigningRequestSpec, root.KubernetesJsClient.V1beta1CertificateSigningRequestStatus); - } -}(this, function(ApiClient, V1ObjectMeta, V1beta1CertificateSigningRequestSpec, V1beta1CertificateSigningRequestStatus) { - 'use strict'; - - - - - /** - * The V1beta1CertificateSigningRequest model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1beta1CertificateSigningRequest - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1beta1CertificateSigningRequest. - * Describes a certificate signing request - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1beta1CertificateSigningRequest - * @class - */ - var exports = function() { - var _this = this; - - - - - - - }; - - /** - * Constructs a V1beta1CertificateSigningRequest from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1CertificateSigningRequest} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1CertificateSigningRequest} The populated V1beta1CertificateSigningRequest instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('apiVersion')) { - obj['apiVersion'] = ApiClient.convertToType(data['apiVersion'], 'String'); - } - if (data.hasOwnProperty('kind')) { - obj['kind'] = ApiClient.convertToType(data['kind'], 'String'); - } - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = V1ObjectMeta.constructFromObject(data['metadata']); - } - if (data.hasOwnProperty('spec')) { - obj['spec'] = V1beta1CertificateSigningRequestSpec.constructFromObject(data['spec']); - } - if (data.hasOwnProperty('status')) { - obj['status'] = V1beta1CertificateSigningRequestStatus.constructFromObject(data['status']); - } - } - return obj; - } - - /** - * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - * @member {String} apiVersion - */ - exports.prototype['apiVersion'] = undefined; - /** - * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - * @member {String} kind - */ - exports.prototype['kind'] = undefined; - /** - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1ObjectMeta} metadata - */ - exports.prototype['metadata'] = undefined; - /** - * The certificate request itself and any additional information. - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1CertificateSigningRequestSpec} spec - */ - exports.prototype['spec'] = undefined; - /** - * Derived information about the request. - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1CertificateSigningRequestStatus} status - */ - exports.prototype['status'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1CertificateSigningRequestCondition.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1CertificateSigningRequestCondition.js deleted file mode 100644 index bcb46a7996..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1CertificateSigningRequestCondition.js +++ /dev/null @@ -1,108 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1beta1CertificateSigningRequestCondition = factory(root.KubernetesJsClient.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - - /** - * The V1beta1CertificateSigningRequestCondition model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1beta1CertificateSigningRequestCondition - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1beta1CertificateSigningRequestCondition. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1beta1CertificateSigningRequestCondition - * @class - * @param type {String} request approval state, currently Approved or Denied. - */ - var exports = function(type) { - var _this = this; - - - - - _this['type'] = type; - }; - - /** - * Constructs a V1beta1CertificateSigningRequestCondition from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1CertificateSigningRequestCondition} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1CertificateSigningRequestCondition} The populated V1beta1CertificateSigningRequestCondition instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('lastUpdateTime')) { - obj['lastUpdateTime'] = ApiClient.convertToType(data['lastUpdateTime'], 'Date'); - } - if (data.hasOwnProperty('message')) { - obj['message'] = ApiClient.convertToType(data['message'], 'String'); - } - if (data.hasOwnProperty('reason')) { - obj['reason'] = ApiClient.convertToType(data['reason'], 'String'); - } - if (data.hasOwnProperty('type')) { - obj['type'] = ApiClient.convertToType(data['type'], 'String'); - } - } - return obj; - } - - /** - * timestamp for the last update to this condition - * @member {Date} lastUpdateTime - */ - exports.prototype['lastUpdateTime'] = undefined; - /** - * human readable message with details about the request state - * @member {String} message - */ - exports.prototype['message'] = undefined; - /** - * brief reason for the request state - * @member {String} reason - */ - exports.prototype['reason'] = undefined; - /** - * request approval state, currently Approved or Denied. - * @member {String} type - */ - exports.prototype['type'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1CertificateSigningRequestList.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1CertificateSigningRequestList.js deleted file mode 100644 index bbbc3416f8..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1CertificateSigningRequestList.js +++ /dev/null @@ -1,106 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1ListMeta', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1CertificateSigningRequest'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1ListMeta'), require('./V1beta1CertificateSigningRequest')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1beta1CertificateSigningRequestList = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1ListMeta, root.KubernetesJsClient.V1beta1CertificateSigningRequest); - } -}(this, function(ApiClient, V1ListMeta, V1beta1CertificateSigningRequest) { - 'use strict'; - - - - - /** - * The V1beta1CertificateSigningRequestList model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1beta1CertificateSigningRequestList - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1beta1CertificateSigningRequestList. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1beta1CertificateSigningRequestList - * @class - * @param items {Array.} - */ - var exports = function(items) { - var _this = this; - - - _this['items'] = items; - - - }; - - /** - * Constructs a V1beta1CertificateSigningRequestList from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1CertificateSigningRequestList} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1CertificateSigningRequestList} The populated V1beta1CertificateSigningRequestList instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('apiVersion')) { - obj['apiVersion'] = ApiClient.convertToType(data['apiVersion'], 'String'); - } - if (data.hasOwnProperty('items')) { - obj['items'] = ApiClient.convertToType(data['items'], [V1beta1CertificateSigningRequest]); - } - if (data.hasOwnProperty('kind')) { - obj['kind'] = ApiClient.convertToType(data['kind'], 'String'); - } - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = V1ListMeta.constructFromObject(data['metadata']); - } - } - return obj; - } - - /** - * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - * @member {String} apiVersion - */ - exports.prototype['apiVersion'] = undefined; - /** - * @member {Array.} items - */ - exports.prototype['items'] = undefined; - /** - * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - * @member {String} kind - */ - exports.prototype['kind'] = undefined; - /** - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1ListMeta} metadata - */ - exports.prototype['metadata'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1CertificateSigningRequestSpec.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1CertificateSigningRequestSpec.js deleted file mode 100644 index a090318aac..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1CertificateSigningRequestSpec.js +++ /dev/null @@ -1,127 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1beta1CertificateSigningRequestSpec = factory(root.KubernetesJsClient.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - - /** - * The V1beta1CertificateSigningRequestSpec model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1beta1CertificateSigningRequestSpec - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1beta1CertificateSigningRequestSpec. - * This information is immutable after the request is created. Only the Request and Usages fields can be set on creation, other fields are derived by Kubernetes and cannot be modified by users. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1beta1CertificateSigningRequestSpec - * @class - * @param request {String} Base64-encoded PKCS#10 CSR data - */ - var exports = function(request) { - var _this = this; - - - - _this['request'] = request; - - - - }; - - /** - * Constructs a V1beta1CertificateSigningRequestSpec from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1CertificateSigningRequestSpec} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1CertificateSigningRequestSpec} The populated V1beta1CertificateSigningRequestSpec instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('extra')) { - obj['extra'] = ApiClient.convertToType(data['extra'], {'String': ['String']}); - } - if (data.hasOwnProperty('groups')) { - obj['groups'] = ApiClient.convertToType(data['groups'], ['String']); - } - if (data.hasOwnProperty('request')) { - obj['request'] = ApiClient.convertToType(data['request'], 'String'); - } - if (data.hasOwnProperty('uid')) { - obj['uid'] = ApiClient.convertToType(data['uid'], 'String'); - } - if (data.hasOwnProperty('usages')) { - obj['usages'] = ApiClient.convertToType(data['usages'], ['String']); - } - if (data.hasOwnProperty('username')) { - obj['username'] = ApiClient.convertToType(data['username'], 'String'); - } - } - return obj; - } - - /** - * Extra information about the requesting user. See user.Info interface for details. - * @member {Object.>} extra - */ - exports.prototype['extra'] = undefined; - /** - * Group information about the requesting user. See user.Info interface for details. - * @member {Array.} groups - */ - exports.prototype['groups'] = undefined; - /** - * Base64-encoded PKCS#10 CSR data - * @member {String} request - */ - exports.prototype['request'] = undefined; - /** - * UID information about the requesting user. See user.Info interface for details. - * @member {String} uid - */ - exports.prototype['uid'] = undefined; - /** - * allowedUsages specifies a set of usage contexts the key will be valid for. See: https://tools.ietf.org/html/rfc5280#section-4.2.1.3 https://tools.ietf.org/html/rfc5280#section-4.2.1.12 - * @member {Array.} usages - */ - exports.prototype['usages'] = undefined; - /** - * Information about the requesting user. See user.Info interface for details. - * @member {String} username - */ - exports.prototype['username'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1CertificateSigningRequestStatus.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1CertificateSigningRequestStatus.js deleted file mode 100644 index 1d0be0c908..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1CertificateSigningRequestStatus.js +++ /dev/null @@ -1,89 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1CertificateSigningRequestCondition'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1beta1CertificateSigningRequestCondition')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1beta1CertificateSigningRequestStatus = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1beta1CertificateSigningRequestCondition); - } -}(this, function(ApiClient, V1beta1CertificateSigningRequestCondition) { - 'use strict'; - - - - - /** - * The V1beta1CertificateSigningRequestStatus model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1beta1CertificateSigningRequestStatus - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1beta1CertificateSigningRequestStatus. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1beta1CertificateSigningRequestStatus - * @class - */ - var exports = function() { - var _this = this; - - - - }; - - /** - * Constructs a V1beta1CertificateSigningRequestStatus from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1CertificateSigningRequestStatus} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1CertificateSigningRequestStatus} The populated V1beta1CertificateSigningRequestStatus instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('certificate')) { - obj['certificate'] = ApiClient.convertToType(data['certificate'], 'String'); - } - if (data.hasOwnProperty('conditions')) { - obj['conditions'] = ApiClient.convertToType(data['conditions'], [V1beta1CertificateSigningRequestCondition]); - } - } - return obj; - } - - /** - * If request was approved, the controller will place the issued certificate here. - * @member {String} certificate - */ - exports.prototype['certificate'] = undefined; - /** - * Conditions applied to the request, such as approval or denial. - * @member {Array.} conditions - */ - exports.prototype['conditions'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1ClusterRole.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1ClusterRole.js deleted file mode 100644 index d00696d467..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1ClusterRole.js +++ /dev/null @@ -1,109 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1ObjectMeta', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1PolicyRule'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1ObjectMeta'), require('./V1beta1PolicyRule')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1beta1ClusterRole = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1ObjectMeta, root.KubernetesJsClient.V1beta1PolicyRule); - } -}(this, function(ApiClient, V1ObjectMeta, V1beta1PolicyRule) { - 'use strict'; - - - - - /** - * The V1beta1ClusterRole model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1beta1ClusterRole - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1beta1ClusterRole. - * ClusterRole is a cluster level, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding or ClusterRoleBinding. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1beta1ClusterRole - * @class - * @param rules {Array.} Rules holds all the PolicyRules for this ClusterRole - */ - var exports = function(rules) { - var _this = this; - - - - - _this['rules'] = rules; - }; - - /** - * Constructs a V1beta1ClusterRole from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1ClusterRole} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1ClusterRole} The populated V1beta1ClusterRole instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('apiVersion')) { - obj['apiVersion'] = ApiClient.convertToType(data['apiVersion'], 'String'); - } - if (data.hasOwnProperty('kind')) { - obj['kind'] = ApiClient.convertToType(data['kind'], 'String'); - } - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = V1ObjectMeta.constructFromObject(data['metadata']); - } - if (data.hasOwnProperty('rules')) { - obj['rules'] = ApiClient.convertToType(data['rules'], [V1beta1PolicyRule]); - } - } - return obj; - } - - /** - * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - * @member {String} apiVersion - */ - exports.prototype['apiVersion'] = undefined; - /** - * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - * @member {String} kind - */ - exports.prototype['kind'] = undefined; - /** - * Standard object's metadata. - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1ObjectMeta} metadata - */ - exports.prototype['metadata'] = undefined; - /** - * Rules holds all the PolicyRules for this ClusterRole - * @member {Array.} rules - */ - exports.prototype['rules'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1ClusterRoleBinding.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1ClusterRoleBinding.js deleted file mode 100644 index 95b0ba98cc..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1ClusterRoleBinding.js +++ /dev/null @@ -1,119 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1ObjectMeta', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1RoleRef', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1Subject'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1ObjectMeta'), require('./V1beta1RoleRef'), require('./V1beta1Subject')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1beta1ClusterRoleBinding = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1ObjectMeta, root.KubernetesJsClient.V1beta1RoleRef, root.KubernetesJsClient.V1beta1Subject); - } -}(this, function(ApiClient, V1ObjectMeta, V1beta1RoleRef, V1beta1Subject) { - 'use strict'; - - - - - /** - * The V1beta1ClusterRoleBinding model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1beta1ClusterRoleBinding - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1beta1ClusterRoleBinding. - * ClusterRoleBinding references a ClusterRole, but not contain it. It can reference a ClusterRole in the global namespace, and adds who information via Subject. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1beta1ClusterRoleBinding - * @class - * @param roleRef {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1RoleRef} RoleRef can only reference a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. - * @param subjects {Array.} Subjects holds references to the objects the role applies to. - */ - var exports = function(roleRef, subjects) { - var _this = this; - - - - - _this['roleRef'] = roleRef; - _this['subjects'] = subjects; - }; - - /** - * Constructs a V1beta1ClusterRoleBinding from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1ClusterRoleBinding} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1ClusterRoleBinding} The populated V1beta1ClusterRoleBinding instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('apiVersion')) { - obj['apiVersion'] = ApiClient.convertToType(data['apiVersion'], 'String'); - } - if (data.hasOwnProperty('kind')) { - obj['kind'] = ApiClient.convertToType(data['kind'], 'String'); - } - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = V1ObjectMeta.constructFromObject(data['metadata']); - } - if (data.hasOwnProperty('roleRef')) { - obj['roleRef'] = V1beta1RoleRef.constructFromObject(data['roleRef']); - } - if (data.hasOwnProperty('subjects')) { - obj['subjects'] = ApiClient.convertToType(data['subjects'], [V1beta1Subject]); - } - } - return obj; - } - - /** - * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - * @member {String} apiVersion - */ - exports.prototype['apiVersion'] = undefined; - /** - * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - * @member {String} kind - */ - exports.prototype['kind'] = undefined; - /** - * Standard object's metadata. - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1ObjectMeta} metadata - */ - exports.prototype['metadata'] = undefined; - /** - * RoleRef can only reference a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1RoleRef} roleRef - */ - exports.prototype['roleRef'] = undefined; - /** - * Subjects holds references to the objects the role applies to. - * @member {Array.} subjects - */ - exports.prototype['subjects'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1ClusterRoleBindingList.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1ClusterRoleBindingList.js deleted file mode 100644 index 5aa7b1c0b6..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1ClusterRoleBindingList.js +++ /dev/null @@ -1,109 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1ListMeta', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1ClusterRoleBinding'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1ListMeta'), require('./V1beta1ClusterRoleBinding')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1beta1ClusterRoleBindingList = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1ListMeta, root.KubernetesJsClient.V1beta1ClusterRoleBinding); - } -}(this, function(ApiClient, V1ListMeta, V1beta1ClusterRoleBinding) { - 'use strict'; - - - - - /** - * The V1beta1ClusterRoleBindingList model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1beta1ClusterRoleBindingList - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1beta1ClusterRoleBindingList. - * ClusterRoleBindingList is a collection of ClusterRoleBindings - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1beta1ClusterRoleBindingList - * @class - * @param items {Array.} Items is a list of ClusterRoleBindings - */ - var exports = function(items) { - var _this = this; - - - _this['items'] = items; - - - }; - - /** - * Constructs a V1beta1ClusterRoleBindingList from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1ClusterRoleBindingList} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1ClusterRoleBindingList} The populated V1beta1ClusterRoleBindingList instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('apiVersion')) { - obj['apiVersion'] = ApiClient.convertToType(data['apiVersion'], 'String'); - } - if (data.hasOwnProperty('items')) { - obj['items'] = ApiClient.convertToType(data['items'], [V1beta1ClusterRoleBinding]); - } - if (data.hasOwnProperty('kind')) { - obj['kind'] = ApiClient.convertToType(data['kind'], 'String'); - } - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = V1ListMeta.constructFromObject(data['metadata']); - } - } - return obj; - } - - /** - * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - * @member {String} apiVersion - */ - exports.prototype['apiVersion'] = undefined; - /** - * Items is a list of ClusterRoleBindings - * @member {Array.} items - */ - exports.prototype['items'] = undefined; - /** - * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - * @member {String} kind - */ - exports.prototype['kind'] = undefined; - /** - * Standard object's metadata. - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1ListMeta} metadata - */ - exports.prototype['metadata'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1ClusterRoleList.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1ClusterRoleList.js deleted file mode 100644 index 6ac0e0d2f6..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1ClusterRoleList.js +++ /dev/null @@ -1,109 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1ListMeta', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1ClusterRole'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1ListMeta'), require('./V1beta1ClusterRole')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1beta1ClusterRoleList = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1ListMeta, root.KubernetesJsClient.V1beta1ClusterRole); - } -}(this, function(ApiClient, V1ListMeta, V1beta1ClusterRole) { - 'use strict'; - - - - - /** - * The V1beta1ClusterRoleList model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1beta1ClusterRoleList - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1beta1ClusterRoleList. - * ClusterRoleList is a collection of ClusterRoles - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1beta1ClusterRoleList - * @class - * @param items {Array.} Items is a list of ClusterRoles - */ - var exports = function(items) { - var _this = this; - - - _this['items'] = items; - - - }; - - /** - * Constructs a V1beta1ClusterRoleList from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1ClusterRoleList} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1ClusterRoleList} The populated V1beta1ClusterRoleList instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('apiVersion')) { - obj['apiVersion'] = ApiClient.convertToType(data['apiVersion'], 'String'); - } - if (data.hasOwnProperty('items')) { - obj['items'] = ApiClient.convertToType(data['items'], [V1beta1ClusterRole]); - } - if (data.hasOwnProperty('kind')) { - obj['kind'] = ApiClient.convertToType(data['kind'], 'String'); - } - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = V1ListMeta.constructFromObject(data['metadata']); - } - } - return obj; - } - - /** - * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - * @member {String} apiVersion - */ - exports.prototype['apiVersion'] = undefined; - /** - * Items is a list of ClusterRoles - * @member {Array.} items - */ - exports.prototype['items'] = undefined; - /** - * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - * @member {String} kind - */ - exports.prototype['kind'] = undefined; - /** - * Standard object's metadata. - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1ListMeta} metadata - */ - exports.prototype['metadata'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1DaemonSet.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1DaemonSet.js deleted file mode 100644 index 1fa05dab7e..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1DaemonSet.js +++ /dev/null @@ -1,117 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1ObjectMeta', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1DaemonSetSpec', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1DaemonSetStatus'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1ObjectMeta'), require('./V1beta1DaemonSetSpec'), require('./V1beta1DaemonSetStatus')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1beta1DaemonSet = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1ObjectMeta, root.KubernetesJsClient.V1beta1DaemonSetSpec, root.KubernetesJsClient.V1beta1DaemonSetStatus); - } -}(this, function(ApiClient, V1ObjectMeta, V1beta1DaemonSetSpec, V1beta1DaemonSetStatus) { - 'use strict'; - - - - - /** - * The V1beta1DaemonSet model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1beta1DaemonSet - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1beta1DaemonSet. - * DaemonSet represents the configuration of a daemon set. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1beta1DaemonSet - * @class - */ - var exports = function() { - var _this = this; - - - - - - - }; - - /** - * Constructs a V1beta1DaemonSet from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1DaemonSet} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1DaemonSet} The populated V1beta1DaemonSet instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('apiVersion')) { - obj['apiVersion'] = ApiClient.convertToType(data['apiVersion'], 'String'); - } - if (data.hasOwnProperty('kind')) { - obj['kind'] = ApiClient.convertToType(data['kind'], 'String'); - } - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = V1ObjectMeta.constructFromObject(data['metadata']); - } - if (data.hasOwnProperty('spec')) { - obj['spec'] = V1beta1DaemonSetSpec.constructFromObject(data['spec']); - } - if (data.hasOwnProperty('status')) { - obj['status'] = V1beta1DaemonSetStatus.constructFromObject(data['status']); - } - } - return obj; - } - - /** - * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - * @member {String} apiVersion - */ - exports.prototype['apiVersion'] = undefined; - /** - * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - * @member {String} kind - */ - exports.prototype['kind'] = undefined; - /** - * Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1ObjectMeta} metadata - */ - exports.prototype['metadata'] = undefined; - /** - * The desired behavior of this daemon set. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1DaemonSetSpec} spec - */ - exports.prototype['spec'] = undefined; - /** - * The current status of this daemon set. This data may be out of date by some window of time. Populated by the system. Read-only. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1DaemonSetStatus} status - */ - exports.prototype['status'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1DaemonSetList.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1DaemonSetList.js deleted file mode 100644 index f1eb4e6411..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1DaemonSetList.js +++ /dev/null @@ -1,109 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1ListMeta', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1DaemonSet'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1ListMeta'), require('./V1beta1DaemonSet')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1beta1DaemonSetList = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1ListMeta, root.KubernetesJsClient.V1beta1DaemonSet); - } -}(this, function(ApiClient, V1ListMeta, V1beta1DaemonSet) { - 'use strict'; - - - - - /** - * The V1beta1DaemonSetList model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1beta1DaemonSetList - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1beta1DaemonSetList. - * DaemonSetList is a collection of daemon sets. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1beta1DaemonSetList - * @class - * @param items {Array.} A list of daemon sets. - */ - var exports = function(items) { - var _this = this; - - - _this['items'] = items; - - - }; - - /** - * Constructs a V1beta1DaemonSetList from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1DaemonSetList} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1DaemonSetList} The populated V1beta1DaemonSetList instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('apiVersion')) { - obj['apiVersion'] = ApiClient.convertToType(data['apiVersion'], 'String'); - } - if (data.hasOwnProperty('items')) { - obj['items'] = ApiClient.convertToType(data['items'], [V1beta1DaemonSet]); - } - if (data.hasOwnProperty('kind')) { - obj['kind'] = ApiClient.convertToType(data['kind'], 'String'); - } - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = V1ListMeta.constructFromObject(data['metadata']); - } - } - return obj; - } - - /** - * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - * @member {String} apiVersion - */ - exports.prototype['apiVersion'] = undefined; - /** - * A list of daemon sets. - * @member {Array.} items - */ - exports.prototype['items'] = undefined; - /** - * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - * @member {String} kind - */ - exports.prototype['kind'] = undefined; - /** - * Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1ListMeta} metadata - */ - exports.prototype['metadata'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1DaemonSetSpec.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1DaemonSetSpec.js deleted file mode 100644 index d98736304e..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1DaemonSetSpec.js +++ /dev/null @@ -1,118 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1LabelSelector', 'io.kubernetes.js/io.kubernetes.js.models/V1PodTemplateSpec', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1DaemonSetUpdateStrategy'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1LabelSelector'), require('./V1PodTemplateSpec'), require('./V1beta1DaemonSetUpdateStrategy')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1beta1DaemonSetSpec = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1LabelSelector, root.KubernetesJsClient.V1PodTemplateSpec, root.KubernetesJsClient.V1beta1DaemonSetUpdateStrategy); - } -}(this, function(ApiClient, V1LabelSelector, V1PodTemplateSpec, V1beta1DaemonSetUpdateStrategy) { - 'use strict'; - - - - - /** - * The V1beta1DaemonSetSpec model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1beta1DaemonSetSpec - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1beta1DaemonSetSpec. - * DaemonSetSpec is the specification of a daemon set. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1beta1DaemonSetSpec - * @class - * @param template {module:io.kubernetes.js/io.kubernetes.js.models/V1PodTemplateSpec} An object that describes the pod that will be created. The DaemonSet will create exactly one copy of this pod on every node that matches the template's node selector (or on every node if no node selector is specified). More info: http://kubernetes.io/docs/user-guide/replication-controller#pod-template - */ - var exports = function(template) { - var _this = this; - - - - _this['template'] = template; - - - }; - - /** - * Constructs a V1beta1DaemonSetSpec from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1DaemonSetSpec} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1DaemonSetSpec} The populated V1beta1DaemonSetSpec instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('minReadySeconds')) { - obj['minReadySeconds'] = ApiClient.convertToType(data['minReadySeconds'], 'Number'); - } - if (data.hasOwnProperty('selector')) { - obj['selector'] = V1LabelSelector.constructFromObject(data['selector']); - } - if (data.hasOwnProperty('template')) { - obj['template'] = V1PodTemplateSpec.constructFromObject(data['template']); - } - if (data.hasOwnProperty('templateGeneration')) { - obj['templateGeneration'] = ApiClient.convertToType(data['templateGeneration'], 'Number'); - } - if (data.hasOwnProperty('updateStrategy')) { - obj['updateStrategy'] = V1beta1DaemonSetUpdateStrategy.constructFromObject(data['updateStrategy']); - } - } - return obj; - } - - /** - * The minimum number of seconds for which a newly created DaemonSet pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready). - * @member {Number} minReadySeconds - */ - exports.prototype['minReadySeconds'] = undefined; - /** - * A label query over pods that are managed by the daemon set. Must match in order to be controlled. If empty, defaulted to labels on Pod template. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1LabelSelector} selector - */ - exports.prototype['selector'] = undefined; - /** - * An object that describes the pod that will be created. The DaemonSet will create exactly one copy of this pod on every node that matches the template's node selector (or on every node if no node selector is specified). More info: http://kubernetes.io/docs/user-guide/replication-controller#pod-template - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1PodTemplateSpec} template - */ - exports.prototype['template'] = undefined; - /** - * A sequence number representing a specific generation of the template. Populated by the system. It can be set only during the creation. - * @member {Number} templateGeneration - */ - exports.prototype['templateGeneration'] = undefined; - /** - * An update strategy to replace existing DaemonSet pods with new pods. - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1DaemonSetUpdateStrategy} updateStrategy - */ - exports.prototype['updateStrategy'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1DaemonSetStatus.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1DaemonSetStatus.js deleted file mode 100644 index 7e5576e8c0..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1DaemonSetStatus.js +++ /dev/null @@ -1,148 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1beta1DaemonSetStatus = factory(root.KubernetesJsClient.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - - /** - * The V1beta1DaemonSetStatus model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1beta1DaemonSetStatus - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1beta1DaemonSetStatus. - * DaemonSetStatus represents the current status of a daemon set. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1beta1DaemonSetStatus - * @class - * @param currentNumberScheduled {Number} The number of nodes that are running at least 1 daemon pod and are supposed to run the daemon pod. More info: http://releases.k8s.io/HEAD/docs/admin/daemons.md - * @param desiredNumberScheduled {Number} The total number of nodes that should be running the daemon pod (including nodes correctly running the daemon pod). More info: http://releases.k8s.io/HEAD/docs/admin/daemons.md - * @param numberMisscheduled {Number} The number of nodes that are running the daemon pod, but are not supposed to run the daemon pod. More info: http://releases.k8s.io/HEAD/docs/admin/daemons.md - * @param numberReady {Number} The number of nodes that should be running the daemon pod and have one or more of the daemon pod running and ready. - */ - var exports = function(currentNumberScheduled, desiredNumberScheduled, numberMisscheduled, numberReady) { - var _this = this; - - _this['currentNumberScheduled'] = currentNumberScheduled; - _this['desiredNumberScheduled'] = desiredNumberScheduled; - - _this['numberMisscheduled'] = numberMisscheduled; - _this['numberReady'] = numberReady; - - - - }; - - /** - * Constructs a V1beta1DaemonSetStatus from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1DaemonSetStatus} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1DaemonSetStatus} The populated V1beta1DaemonSetStatus instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('currentNumberScheduled')) { - obj['currentNumberScheduled'] = ApiClient.convertToType(data['currentNumberScheduled'], 'Number'); - } - if (data.hasOwnProperty('desiredNumberScheduled')) { - obj['desiredNumberScheduled'] = ApiClient.convertToType(data['desiredNumberScheduled'], 'Number'); - } - if (data.hasOwnProperty('numberAvailable')) { - obj['numberAvailable'] = ApiClient.convertToType(data['numberAvailable'], 'Number'); - } - if (data.hasOwnProperty('numberMisscheduled')) { - obj['numberMisscheduled'] = ApiClient.convertToType(data['numberMisscheduled'], 'Number'); - } - if (data.hasOwnProperty('numberReady')) { - obj['numberReady'] = ApiClient.convertToType(data['numberReady'], 'Number'); - } - if (data.hasOwnProperty('numberUnavailable')) { - obj['numberUnavailable'] = ApiClient.convertToType(data['numberUnavailable'], 'Number'); - } - if (data.hasOwnProperty('observedGeneration')) { - obj['observedGeneration'] = ApiClient.convertToType(data['observedGeneration'], 'Number'); - } - if (data.hasOwnProperty('updatedNumberScheduled')) { - obj['updatedNumberScheduled'] = ApiClient.convertToType(data['updatedNumberScheduled'], 'Number'); - } - } - return obj; - } - - /** - * The number of nodes that are running at least 1 daemon pod and are supposed to run the daemon pod. More info: http://releases.k8s.io/HEAD/docs/admin/daemons.md - * @member {Number} currentNumberScheduled - */ - exports.prototype['currentNumberScheduled'] = undefined; - /** - * The total number of nodes that should be running the daemon pod (including nodes correctly running the daemon pod). More info: http://releases.k8s.io/HEAD/docs/admin/daemons.md - * @member {Number} desiredNumberScheduled - */ - exports.prototype['desiredNumberScheduled'] = undefined; - /** - * The number of nodes that should be running the daemon pod and have one or more of the daemon pod running and available (ready for at least spec.minReadySeconds) - * @member {Number} numberAvailable - */ - exports.prototype['numberAvailable'] = undefined; - /** - * The number of nodes that are running the daemon pod, but are not supposed to run the daemon pod. More info: http://releases.k8s.io/HEAD/docs/admin/daemons.md - * @member {Number} numberMisscheduled - */ - exports.prototype['numberMisscheduled'] = undefined; - /** - * The number of nodes that should be running the daemon pod and have one or more of the daemon pod running and ready. - * @member {Number} numberReady - */ - exports.prototype['numberReady'] = undefined; - /** - * The number of nodes that should be running the daemon pod and have none of the daemon pod running and available (ready for at least spec.minReadySeconds) - * @member {Number} numberUnavailable - */ - exports.prototype['numberUnavailable'] = undefined; - /** - * The most recent generation observed by the daemon set controller. - * @member {Number} observedGeneration - */ - exports.prototype['observedGeneration'] = undefined; - /** - * The total number of nodes that are running updated daemon pod - * @member {Number} updatedNumberScheduled - */ - exports.prototype['updatedNumberScheduled'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1DaemonSetUpdateStrategy.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1DaemonSetUpdateStrategy.js deleted file mode 100644 index 351a341638..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1DaemonSetUpdateStrategy.js +++ /dev/null @@ -1,89 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1RollingUpdateDaemonSet'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1beta1RollingUpdateDaemonSet')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1beta1DaemonSetUpdateStrategy = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1beta1RollingUpdateDaemonSet); - } -}(this, function(ApiClient, V1beta1RollingUpdateDaemonSet) { - 'use strict'; - - - - - /** - * The V1beta1DaemonSetUpdateStrategy model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1beta1DaemonSetUpdateStrategy - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1beta1DaemonSetUpdateStrategy. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1beta1DaemonSetUpdateStrategy - * @class - */ - var exports = function() { - var _this = this; - - - - }; - - /** - * Constructs a V1beta1DaemonSetUpdateStrategy from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1DaemonSetUpdateStrategy} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1DaemonSetUpdateStrategy} The populated V1beta1DaemonSetUpdateStrategy instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('rollingUpdate')) { - obj['rollingUpdate'] = V1beta1RollingUpdateDaemonSet.constructFromObject(data['rollingUpdate']); - } - if (data.hasOwnProperty('type')) { - obj['type'] = ApiClient.convertToType(data['type'], 'String'); - } - } - return obj; - } - - /** - * Rolling update config params. Present only if type = \"RollingUpdate\". - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1RollingUpdateDaemonSet} rollingUpdate - */ - exports.prototype['rollingUpdate'] = undefined; - /** - * Type of daemon set update. Can be \"RollingUpdate\" or \"OnDelete\". Default is OnDelete. - * @member {String} type - */ - exports.prototype['type'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1Eviction.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1Eviction.js deleted file mode 100644 index f3a5bcd4db..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1Eviction.js +++ /dev/null @@ -1,108 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1DeleteOptions', 'io.kubernetes.js/io.kubernetes.js.models/V1ObjectMeta'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1DeleteOptions'), require('./V1ObjectMeta')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1beta1Eviction = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1DeleteOptions, root.KubernetesJsClient.V1ObjectMeta); - } -}(this, function(ApiClient, V1DeleteOptions, V1ObjectMeta) { - 'use strict'; - - - - - /** - * The V1beta1Eviction model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1beta1Eviction - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1beta1Eviction. - * Eviction evicts a pod from its node subject to certain policies and safety constraints. This is a subresource of Pod. A request to cause such an eviction is created by POSTing to .../pods/<pod name>/evictions. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1beta1Eviction - * @class - */ - var exports = function() { - var _this = this; - - - - - - }; - - /** - * Constructs a V1beta1Eviction from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1Eviction} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1Eviction} The populated V1beta1Eviction instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('apiVersion')) { - obj['apiVersion'] = ApiClient.convertToType(data['apiVersion'], 'String'); - } - if (data.hasOwnProperty('deleteOptions')) { - obj['deleteOptions'] = V1DeleteOptions.constructFromObject(data['deleteOptions']); - } - if (data.hasOwnProperty('kind')) { - obj['kind'] = ApiClient.convertToType(data['kind'], 'String'); - } - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = V1ObjectMeta.constructFromObject(data['metadata']); - } - } - return obj; - } - - /** - * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - * @member {String} apiVersion - */ - exports.prototype['apiVersion'] = undefined; - /** - * DeleteOptions may be provided - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1DeleteOptions} deleteOptions - */ - exports.prototype['deleteOptions'] = undefined; - /** - * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - * @member {String} kind - */ - exports.prototype['kind'] = undefined; - /** - * ObjectMeta describes the pod that is being evicted. - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1ObjectMeta} metadata - */ - exports.prototype['metadata'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1FSGroupStrategyOptions.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1FSGroupStrategyOptions.js deleted file mode 100644 index 62ee362398..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1FSGroupStrategyOptions.js +++ /dev/null @@ -1,90 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1IDRange'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1beta1IDRange')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1beta1FSGroupStrategyOptions = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1beta1IDRange); - } -}(this, function(ApiClient, V1beta1IDRange) { - 'use strict'; - - - - - /** - * The V1beta1FSGroupStrategyOptions model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1beta1FSGroupStrategyOptions - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1beta1FSGroupStrategyOptions. - * FSGroupStrategyOptions defines the strategy type and options used to create the strategy. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1beta1FSGroupStrategyOptions - * @class - */ - var exports = function() { - var _this = this; - - - - }; - - /** - * Constructs a V1beta1FSGroupStrategyOptions from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1FSGroupStrategyOptions} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1FSGroupStrategyOptions} The populated V1beta1FSGroupStrategyOptions instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('ranges')) { - obj['ranges'] = ApiClient.convertToType(data['ranges'], [V1beta1IDRange]); - } - if (data.hasOwnProperty('rule')) { - obj['rule'] = ApiClient.convertToType(data['rule'], 'String'); - } - } - return obj; - } - - /** - * Ranges are the allowed ranges of fs groups. If you would like to force a single fs group then supply a single range with the same start and end. - * @member {Array.} ranges - */ - exports.prototype['ranges'] = undefined; - /** - * Rule is the strategy that will dictate what FSGroup is used in the SecurityContext. - * @member {String} rule - */ - exports.prototype['rule'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1HTTPIngressPath.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1HTTPIngressPath.js deleted file mode 100644 index 78afb34c04..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1HTTPIngressPath.js +++ /dev/null @@ -1,91 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1IngressBackend'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1beta1IngressBackend')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1beta1HTTPIngressPath = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1beta1IngressBackend); - } -}(this, function(ApiClient, V1beta1IngressBackend) { - 'use strict'; - - - - - /** - * The V1beta1HTTPIngressPath model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1beta1HTTPIngressPath - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1beta1HTTPIngressPath. - * HTTPIngressPath associates a path regex with a backend. Incoming urls matching the path are forwarded to the backend. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1beta1HTTPIngressPath - * @class - * @param backend {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1IngressBackend} Backend defines the referenced service endpoint to which the traffic will be forwarded to. - */ - var exports = function(backend) { - var _this = this; - - _this['backend'] = backend; - - }; - - /** - * Constructs a V1beta1HTTPIngressPath from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1HTTPIngressPath} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1HTTPIngressPath} The populated V1beta1HTTPIngressPath instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('backend')) { - obj['backend'] = V1beta1IngressBackend.constructFromObject(data['backend']); - } - if (data.hasOwnProperty('path')) { - obj['path'] = ApiClient.convertToType(data['path'], 'String'); - } - } - return obj; - } - - /** - * Backend defines the referenced service endpoint to which the traffic will be forwarded to. - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1IngressBackend} backend - */ - exports.prototype['backend'] = undefined; - /** - * Path is an extended POSIX regex as defined by IEEE Std 1003.1, (i.e this follows the egrep/unix syntax, not the perl syntax) matched against the path of an incoming request. Currently it can contain characters disallowed from the conventional \"path\" part of a URL as defined by RFC 3986. Paths must begin with a '/'. If unspecified, the path defaults to a catch all sending traffic to the backend. - * @member {String} path - */ - exports.prototype['path'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1HTTPIngressRuleValue.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1HTTPIngressRuleValue.js deleted file mode 100644 index af39a6c491..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1HTTPIngressRuleValue.js +++ /dev/null @@ -1,82 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1HTTPIngressPath'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1beta1HTTPIngressPath')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1beta1HTTPIngressRuleValue = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1beta1HTTPIngressPath); - } -}(this, function(ApiClient, V1beta1HTTPIngressPath) { - 'use strict'; - - - - - /** - * The V1beta1HTTPIngressRuleValue model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1beta1HTTPIngressRuleValue - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1beta1HTTPIngressRuleValue. - * HTTPIngressRuleValue is a list of http selectors pointing to backends. In the example: http://<host>/<path>?<searchpart> -> backend where where parts of the url correspond to RFC 3986, this resource will be used to match against everything after the last '/' and before the first '?' or '#'. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1beta1HTTPIngressRuleValue - * @class - * @param paths {Array.} A collection of paths that map requests to backends. - */ - var exports = function(paths) { - var _this = this; - - _this['paths'] = paths; - }; - - /** - * Constructs a V1beta1HTTPIngressRuleValue from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1HTTPIngressRuleValue} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1HTTPIngressRuleValue} The populated V1beta1HTTPIngressRuleValue instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('paths')) { - obj['paths'] = ApiClient.convertToType(data['paths'], [V1beta1HTTPIngressPath]); - } - } - return obj; - } - - /** - * A collection of paths that map requests to backends. - * @member {Array.} paths - */ - exports.prototype['paths'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1HostPortRange.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1HostPortRange.js deleted file mode 100644 index 005f61d080..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1HostPortRange.js +++ /dev/null @@ -1,92 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1beta1HostPortRange = factory(root.KubernetesJsClient.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - - /** - * The V1beta1HostPortRange model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1beta1HostPortRange - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1beta1HostPortRange. - * Host Port Range defines a range of host ports that will be enabled by a policy for pods to use. It requires both the start and end to be defined. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1beta1HostPortRange - * @class - * @param max {Number} max is the end of the range, inclusive. - * @param min {Number} min is the start of the range, inclusive. - */ - var exports = function(max, min) { - var _this = this; - - _this['max'] = max; - _this['min'] = min; - }; - - /** - * Constructs a V1beta1HostPortRange from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1HostPortRange} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1HostPortRange} The populated V1beta1HostPortRange instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('max')) { - obj['max'] = ApiClient.convertToType(data['max'], 'Number'); - } - if (data.hasOwnProperty('min')) { - obj['min'] = ApiClient.convertToType(data['min'], 'Number'); - } - } - return obj; - } - - /** - * max is the end of the range, inclusive. - * @member {Number} max - */ - exports.prototype['max'] = undefined; - /** - * min is the start of the range, inclusive. - * @member {Number} min - */ - exports.prototype['min'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1IDRange.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1IDRange.js deleted file mode 100644 index 6e5a775f0b..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1IDRange.js +++ /dev/null @@ -1,92 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1beta1IDRange = factory(root.KubernetesJsClient.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - - /** - * The V1beta1IDRange model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1beta1IDRange - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1beta1IDRange. - * ID Range provides a min/max of an allowed range of IDs. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1beta1IDRange - * @class - * @param max {Number} Max is the end of the range, inclusive. - * @param min {Number} Min is the start of the range, inclusive. - */ - var exports = function(max, min) { - var _this = this; - - _this['max'] = max; - _this['min'] = min; - }; - - /** - * Constructs a V1beta1IDRange from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1IDRange} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1IDRange} The populated V1beta1IDRange instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('max')) { - obj['max'] = ApiClient.convertToType(data['max'], 'Number'); - } - if (data.hasOwnProperty('min')) { - obj['min'] = ApiClient.convertToType(data['min'], 'Number'); - } - } - return obj; - } - - /** - * Max is the end of the range, inclusive. - * @member {Number} max - */ - exports.prototype['max'] = undefined; - /** - * Min is the start of the range, inclusive. - * @member {Number} min - */ - exports.prototype['min'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1Ingress.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1Ingress.js deleted file mode 100644 index ce06cd00ad..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1Ingress.js +++ /dev/null @@ -1,117 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1ObjectMeta', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1IngressSpec', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1IngressStatus'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1ObjectMeta'), require('./V1beta1IngressSpec'), require('./V1beta1IngressStatus')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1beta1Ingress = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1ObjectMeta, root.KubernetesJsClient.V1beta1IngressSpec, root.KubernetesJsClient.V1beta1IngressStatus); - } -}(this, function(ApiClient, V1ObjectMeta, V1beta1IngressSpec, V1beta1IngressStatus) { - 'use strict'; - - - - - /** - * The V1beta1Ingress model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1beta1Ingress - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1beta1Ingress. - * Ingress is a collection of rules that allow inbound connections to reach the endpoints defined by a backend. An Ingress can be configured to give services externally-reachable urls, load balance traffic, terminate SSL, offer name based virtual hosting etc. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1beta1Ingress - * @class - */ - var exports = function() { - var _this = this; - - - - - - - }; - - /** - * Constructs a V1beta1Ingress from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1Ingress} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1Ingress} The populated V1beta1Ingress instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('apiVersion')) { - obj['apiVersion'] = ApiClient.convertToType(data['apiVersion'], 'String'); - } - if (data.hasOwnProperty('kind')) { - obj['kind'] = ApiClient.convertToType(data['kind'], 'String'); - } - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = V1ObjectMeta.constructFromObject(data['metadata']); - } - if (data.hasOwnProperty('spec')) { - obj['spec'] = V1beta1IngressSpec.constructFromObject(data['spec']); - } - if (data.hasOwnProperty('status')) { - obj['status'] = V1beta1IngressStatus.constructFromObject(data['status']); - } - } - return obj; - } - - /** - * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - * @member {String} apiVersion - */ - exports.prototype['apiVersion'] = undefined; - /** - * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - * @member {String} kind - */ - exports.prototype['kind'] = undefined; - /** - * Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1ObjectMeta} metadata - */ - exports.prototype['metadata'] = undefined; - /** - * Spec is the desired state of the Ingress. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1IngressSpec} spec - */ - exports.prototype['spec'] = undefined; - /** - * Status is the current state of the Ingress. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1IngressStatus} status - */ - exports.prototype['status'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1IngressBackend.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1IngressBackend.js deleted file mode 100644 index e1c4595aad..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1IngressBackend.js +++ /dev/null @@ -1,92 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1beta1IngressBackend = factory(root.KubernetesJsClient.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - - /** - * The V1beta1IngressBackend model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1beta1IngressBackend - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1beta1IngressBackend. - * IngressBackend describes all endpoints for a given service and port. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1beta1IngressBackend - * @class - * @param serviceName {String} Specifies the name of the referenced service. - * @param servicePort {String} Specifies the port of the referenced service. - */ - var exports = function(serviceName, servicePort) { - var _this = this; - - _this['serviceName'] = serviceName; - _this['servicePort'] = servicePort; - }; - - /** - * Constructs a V1beta1IngressBackend from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1IngressBackend} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1IngressBackend} The populated V1beta1IngressBackend instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('serviceName')) { - obj['serviceName'] = ApiClient.convertToType(data['serviceName'], 'String'); - } - if (data.hasOwnProperty('servicePort')) { - obj['servicePort'] = ApiClient.convertToType(data['servicePort'], 'String'); - } - } - return obj; - } - - /** - * Specifies the name of the referenced service. - * @member {String} serviceName - */ - exports.prototype['serviceName'] = undefined; - /** - * Specifies the port of the referenced service. - * @member {String} servicePort - */ - exports.prototype['servicePort'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1IngressList.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1IngressList.js deleted file mode 100644 index 6a5bd16855..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1IngressList.js +++ /dev/null @@ -1,109 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1ListMeta', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1Ingress'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1ListMeta'), require('./V1beta1Ingress')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1beta1IngressList = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1ListMeta, root.KubernetesJsClient.V1beta1Ingress); - } -}(this, function(ApiClient, V1ListMeta, V1beta1Ingress) { - 'use strict'; - - - - - /** - * The V1beta1IngressList model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1beta1IngressList - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1beta1IngressList. - * IngressList is a collection of Ingress. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1beta1IngressList - * @class - * @param items {Array.} Items is the list of Ingress. - */ - var exports = function(items) { - var _this = this; - - - _this['items'] = items; - - - }; - - /** - * Constructs a V1beta1IngressList from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1IngressList} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1IngressList} The populated V1beta1IngressList instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('apiVersion')) { - obj['apiVersion'] = ApiClient.convertToType(data['apiVersion'], 'String'); - } - if (data.hasOwnProperty('items')) { - obj['items'] = ApiClient.convertToType(data['items'], [V1beta1Ingress]); - } - if (data.hasOwnProperty('kind')) { - obj['kind'] = ApiClient.convertToType(data['kind'], 'String'); - } - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = V1ListMeta.constructFromObject(data['metadata']); - } - } - return obj; - } - - /** - * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - * @member {String} apiVersion - */ - exports.prototype['apiVersion'] = undefined; - /** - * Items is the list of Ingress. - * @member {Array.} items - */ - exports.prototype['items'] = undefined; - /** - * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - * @member {String} kind - */ - exports.prototype['kind'] = undefined; - /** - * Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1ListMeta} metadata - */ - exports.prototype['metadata'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1IngressRule.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1IngressRule.js deleted file mode 100644 index 2e641054e3..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1IngressRule.js +++ /dev/null @@ -1,89 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1HTTPIngressRuleValue'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1beta1HTTPIngressRuleValue')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1beta1IngressRule = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1beta1HTTPIngressRuleValue); - } -}(this, function(ApiClient, V1beta1HTTPIngressRuleValue) { - 'use strict'; - - - - - /** - * The V1beta1IngressRule model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1beta1IngressRule - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1beta1IngressRule. - * IngressRule represents the rules mapping the paths under a specified host to the related backend services. Incoming requests are first evaluated for a host match, then routed to the backend associated with the matching IngressRuleValue. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1beta1IngressRule - * @class - */ - var exports = function() { - var _this = this; - - - - }; - - /** - * Constructs a V1beta1IngressRule from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1IngressRule} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1IngressRule} The populated V1beta1IngressRule instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('host')) { - obj['host'] = ApiClient.convertToType(data['host'], 'String'); - } - if (data.hasOwnProperty('http')) { - obj['http'] = V1beta1HTTPIngressRuleValue.constructFromObject(data['http']); - } - } - return obj; - } - - /** - * Host is the fully qualified domain name of a network host, as defined by RFC 3986. Note the following deviations from the \"host\" part of the URI as defined in the RFC: 1. IPs are not allowed. Currently an IngressRuleValue can only apply to the IP in the Spec of the parent Ingress. 2. The `:` delimiter is not respected because ports are not allowed. Currently the port of an Ingress is implicitly :80 for http and :443 for https. Both these may change in the future. Incoming requests are matched against the host before the IngressRuleValue. If the host is unspecified, the Ingress routes all traffic based on the specified IngressRuleValue. - * @member {String} host - */ - exports.prototype['host'] = undefined; - /** - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1HTTPIngressRuleValue} http - */ - exports.prototype['http'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1IngressSpec.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1IngressSpec.js deleted file mode 100644 index 60864069a0..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1IngressSpec.js +++ /dev/null @@ -1,99 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1IngressBackend', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1IngressRule', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1IngressTLS'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1beta1IngressBackend'), require('./V1beta1IngressRule'), require('./V1beta1IngressTLS')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1beta1IngressSpec = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1beta1IngressBackend, root.KubernetesJsClient.V1beta1IngressRule, root.KubernetesJsClient.V1beta1IngressTLS); - } -}(this, function(ApiClient, V1beta1IngressBackend, V1beta1IngressRule, V1beta1IngressTLS) { - 'use strict'; - - - - - /** - * The V1beta1IngressSpec model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1beta1IngressSpec - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1beta1IngressSpec. - * IngressSpec describes the Ingress the user wishes to exist. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1beta1IngressSpec - * @class - */ - var exports = function() { - var _this = this; - - - - - }; - - /** - * Constructs a V1beta1IngressSpec from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1IngressSpec} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1IngressSpec} The populated V1beta1IngressSpec instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('backend')) { - obj['backend'] = V1beta1IngressBackend.constructFromObject(data['backend']); - } - if (data.hasOwnProperty('rules')) { - obj['rules'] = ApiClient.convertToType(data['rules'], [V1beta1IngressRule]); - } - if (data.hasOwnProperty('tls')) { - obj['tls'] = ApiClient.convertToType(data['tls'], [V1beta1IngressTLS]); - } - } - return obj; - } - - /** - * A default backend capable of servicing requests that don't match any rule. At least one of 'backend' or 'rules' must be specified. This field is optional to allow the loadbalancer controller or defaulting logic to specify a global default. - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1IngressBackend} backend - */ - exports.prototype['backend'] = undefined; - /** - * A list of host rules used to configure the Ingress. If unspecified, or no rule matches, all traffic is sent to the default backend. - * @member {Array.} rules - */ - exports.prototype['rules'] = undefined; - /** - * TLS configuration. Currently the Ingress only supports a single TLS port, 443. If multiple members of this list specify different hosts, they will be multiplexed on the same port according to the hostname specified through the SNI TLS extension, if the ingress controller fulfilling the ingress supports SNI. - * @member {Array.} tls - */ - exports.prototype['tls'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1IngressStatus.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1IngressStatus.js deleted file mode 100644 index a029e0fbe6..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1IngressStatus.js +++ /dev/null @@ -1,81 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1LoadBalancerStatus'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1LoadBalancerStatus')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1beta1IngressStatus = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1LoadBalancerStatus); - } -}(this, function(ApiClient, V1LoadBalancerStatus) { - 'use strict'; - - - - - /** - * The V1beta1IngressStatus model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1beta1IngressStatus - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1beta1IngressStatus. - * IngressStatus describe the current state of the Ingress. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1beta1IngressStatus - * @class - */ - var exports = function() { - var _this = this; - - - }; - - /** - * Constructs a V1beta1IngressStatus from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1IngressStatus} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1IngressStatus} The populated V1beta1IngressStatus instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('loadBalancer')) { - obj['loadBalancer'] = V1LoadBalancerStatus.constructFromObject(data['loadBalancer']); - } - } - return obj; - } - - /** - * LoadBalancer contains the current status of the load-balancer. - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1LoadBalancerStatus} loadBalancer - */ - exports.prototype['loadBalancer'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1IngressTLS.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1IngressTLS.js deleted file mode 100644 index c27f26de88..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1IngressTLS.js +++ /dev/null @@ -1,90 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1beta1IngressTLS = factory(root.KubernetesJsClient.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - - /** - * The V1beta1IngressTLS model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1beta1IngressTLS - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1beta1IngressTLS. - * IngressTLS describes the transport layer security associated with an Ingress. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1beta1IngressTLS - * @class - */ - var exports = function() { - var _this = this; - - - - }; - - /** - * Constructs a V1beta1IngressTLS from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1IngressTLS} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1IngressTLS} The populated V1beta1IngressTLS instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('hosts')) { - obj['hosts'] = ApiClient.convertToType(data['hosts'], ['String']); - } - if (data.hasOwnProperty('secretName')) { - obj['secretName'] = ApiClient.convertToType(data['secretName'], 'String'); - } - } - return obj; - } - - /** - * Hosts are a list of hosts included in the TLS certificate. The values in this list must match the name/s used in the tlsSecret. Defaults to the wildcard host setting for the loadbalancer controller fulfilling this Ingress, if left unspecified. - * @member {Array.} hosts - */ - exports.prototype['hosts'] = undefined; - /** - * SecretName is the name of the secret used to terminate SSL traffic on 443. Field is left optional to allow SSL routing based on SNI hostname alone. If the SNI host in a listener conflicts with the \"Host\" header field used by an IngressRule, the SNI host is used for termination and value of the Host header is used for routing. - * @member {String} secretName - */ - exports.prototype['secretName'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1LocalSubjectAccessReview.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1LocalSubjectAccessReview.js deleted file mode 100644 index 1bfc663fe6..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1LocalSubjectAccessReview.js +++ /dev/null @@ -1,117 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1ObjectMeta', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1SubjectAccessReviewSpec', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1SubjectAccessReviewStatus'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1ObjectMeta'), require('./V1beta1SubjectAccessReviewSpec'), require('./V1beta1SubjectAccessReviewStatus')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1beta1LocalSubjectAccessReview = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1ObjectMeta, root.KubernetesJsClient.V1beta1SubjectAccessReviewSpec, root.KubernetesJsClient.V1beta1SubjectAccessReviewStatus); - } -}(this, function(ApiClient, V1ObjectMeta, V1beta1SubjectAccessReviewSpec, V1beta1SubjectAccessReviewStatus) { - 'use strict'; - - - - - /** - * The V1beta1LocalSubjectAccessReview model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1beta1LocalSubjectAccessReview - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1beta1LocalSubjectAccessReview. - * LocalSubjectAccessReview checks whether or not a user or group can perform an action in a given namespace. Having a namespace scoped resource makes it much easier to grant namespace scoped policy that includes permissions checking. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1beta1LocalSubjectAccessReview - * @class - * @param spec {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1SubjectAccessReviewSpec} Spec holds information about the request being evaluated. spec.namespace must be equal to the namespace you made the request against. If empty, it is defaulted. - */ - var exports = function(spec) { - var _this = this; - - - - - _this['spec'] = spec; - - }; - - /** - * Constructs a V1beta1LocalSubjectAccessReview from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1LocalSubjectAccessReview} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1LocalSubjectAccessReview} The populated V1beta1LocalSubjectAccessReview instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('apiVersion')) { - obj['apiVersion'] = ApiClient.convertToType(data['apiVersion'], 'String'); - } - if (data.hasOwnProperty('kind')) { - obj['kind'] = ApiClient.convertToType(data['kind'], 'String'); - } - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = V1ObjectMeta.constructFromObject(data['metadata']); - } - if (data.hasOwnProperty('spec')) { - obj['spec'] = V1beta1SubjectAccessReviewSpec.constructFromObject(data['spec']); - } - if (data.hasOwnProperty('status')) { - obj['status'] = V1beta1SubjectAccessReviewStatus.constructFromObject(data['status']); - } - } - return obj; - } - - /** - * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - * @member {String} apiVersion - */ - exports.prototype['apiVersion'] = undefined; - /** - * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - * @member {String} kind - */ - exports.prototype['kind'] = undefined; - /** - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1ObjectMeta} metadata - */ - exports.prototype['metadata'] = undefined; - /** - * Spec holds information about the request being evaluated. spec.namespace must be equal to the namespace you made the request against. If empty, it is defaulted. - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1SubjectAccessReviewSpec} spec - */ - exports.prototype['spec'] = undefined; - /** - * Status is filled in by the server and indicates whether the request is allowed or not - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1SubjectAccessReviewStatus} status - */ - exports.prototype['status'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1NetworkPolicy.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1NetworkPolicy.js deleted file mode 100644 index 7f1cbc028b..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1NetworkPolicy.js +++ /dev/null @@ -1,107 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1ObjectMeta', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1NetworkPolicySpec'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1ObjectMeta'), require('./V1beta1NetworkPolicySpec')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1beta1NetworkPolicy = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1ObjectMeta, root.KubernetesJsClient.V1beta1NetworkPolicySpec); - } -}(this, function(ApiClient, V1ObjectMeta, V1beta1NetworkPolicySpec) { - 'use strict'; - - - - - /** - * The V1beta1NetworkPolicy model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1beta1NetworkPolicy - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1beta1NetworkPolicy. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1beta1NetworkPolicy - * @class - */ - var exports = function() { - var _this = this; - - - - - - }; - - /** - * Constructs a V1beta1NetworkPolicy from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1NetworkPolicy} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1NetworkPolicy} The populated V1beta1NetworkPolicy instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('apiVersion')) { - obj['apiVersion'] = ApiClient.convertToType(data['apiVersion'], 'String'); - } - if (data.hasOwnProperty('kind')) { - obj['kind'] = ApiClient.convertToType(data['kind'], 'String'); - } - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = V1ObjectMeta.constructFromObject(data['metadata']); - } - if (data.hasOwnProperty('spec')) { - obj['spec'] = V1beta1NetworkPolicySpec.constructFromObject(data['spec']); - } - } - return obj; - } - - /** - * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - * @member {String} apiVersion - */ - exports.prototype['apiVersion'] = undefined; - /** - * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - * @member {String} kind - */ - exports.prototype['kind'] = undefined; - /** - * Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1ObjectMeta} metadata - */ - exports.prototype['metadata'] = undefined; - /** - * Specification of the desired behavior for this NetworkPolicy. - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1NetworkPolicySpec} spec - */ - exports.prototype['spec'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1NetworkPolicyIngressRule.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1NetworkPolicyIngressRule.js deleted file mode 100644 index c44f91f785..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1NetworkPolicyIngressRule.js +++ /dev/null @@ -1,90 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1NetworkPolicyPeer', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1NetworkPolicyPort'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1beta1NetworkPolicyPeer'), require('./V1beta1NetworkPolicyPort')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1beta1NetworkPolicyIngressRule = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1beta1NetworkPolicyPeer, root.KubernetesJsClient.V1beta1NetworkPolicyPort); - } -}(this, function(ApiClient, V1beta1NetworkPolicyPeer, V1beta1NetworkPolicyPort) { - 'use strict'; - - - - - /** - * The V1beta1NetworkPolicyIngressRule model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1beta1NetworkPolicyIngressRule - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1beta1NetworkPolicyIngressRule. - * This NetworkPolicyIngressRule matches traffic if and only if the traffic matches both ports AND from. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1beta1NetworkPolicyIngressRule - * @class - */ - var exports = function() { - var _this = this; - - - - }; - - /** - * Constructs a V1beta1NetworkPolicyIngressRule from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1NetworkPolicyIngressRule} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1NetworkPolicyIngressRule} The populated V1beta1NetworkPolicyIngressRule instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('from')) { - obj['from'] = ApiClient.convertToType(data['from'], [V1beta1NetworkPolicyPeer]); - } - if (data.hasOwnProperty('ports')) { - obj['ports'] = ApiClient.convertToType(data['ports'], [V1beta1NetworkPolicyPort]); - } - } - return obj; - } - - /** - * List of sources which should be able to access the pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is not provided, this rule matches all sources (traffic not restricted by source). If this field is empty, this rule matches no sources (no traffic matches). If this field is present and contains at least on item, this rule allows traffic only if the traffic matches at least one item in the from list. - * @member {Array.} from - */ - exports.prototype['from'] = undefined; - /** - * List of ports which should be made accessible on the pods selected for this rule. Each item in this list is combined using a logical OR. If this field is not provided, this rule matches all ports (traffic not restricted by port). If this field is empty, this rule matches no ports (no traffic matches). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list. - * @member {Array.} ports - */ - exports.prototype['ports'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1NetworkPolicyList.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1NetworkPolicyList.js deleted file mode 100644 index 22f70b163b..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1NetworkPolicyList.js +++ /dev/null @@ -1,109 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1ListMeta', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1NetworkPolicy'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1ListMeta'), require('./V1beta1NetworkPolicy')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1beta1NetworkPolicyList = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1ListMeta, root.KubernetesJsClient.V1beta1NetworkPolicy); - } -}(this, function(ApiClient, V1ListMeta, V1beta1NetworkPolicy) { - 'use strict'; - - - - - /** - * The V1beta1NetworkPolicyList model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1beta1NetworkPolicyList - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1beta1NetworkPolicyList. - * Network Policy List is a list of NetworkPolicy objects. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1beta1NetworkPolicyList - * @class - * @param items {Array.} Items is a list of schema objects. - */ - var exports = function(items) { - var _this = this; - - - _this['items'] = items; - - - }; - - /** - * Constructs a V1beta1NetworkPolicyList from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1NetworkPolicyList} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1NetworkPolicyList} The populated V1beta1NetworkPolicyList instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('apiVersion')) { - obj['apiVersion'] = ApiClient.convertToType(data['apiVersion'], 'String'); - } - if (data.hasOwnProperty('items')) { - obj['items'] = ApiClient.convertToType(data['items'], [V1beta1NetworkPolicy]); - } - if (data.hasOwnProperty('kind')) { - obj['kind'] = ApiClient.convertToType(data['kind'], 'String'); - } - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = V1ListMeta.constructFromObject(data['metadata']); - } - } - return obj; - } - - /** - * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - * @member {String} apiVersion - */ - exports.prototype['apiVersion'] = undefined; - /** - * Items is a list of schema objects. - * @member {Array.} items - */ - exports.prototype['items'] = undefined; - /** - * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - * @member {String} kind - */ - exports.prototype['kind'] = undefined; - /** - * Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1ListMeta} metadata - */ - exports.prototype['metadata'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1NetworkPolicyPeer.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1NetworkPolicyPeer.js deleted file mode 100644 index 1c17ad4ee0..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1NetworkPolicyPeer.js +++ /dev/null @@ -1,89 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1LabelSelector'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1LabelSelector')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1beta1NetworkPolicyPeer = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1LabelSelector); - } -}(this, function(ApiClient, V1LabelSelector) { - 'use strict'; - - - - - /** - * The V1beta1NetworkPolicyPeer model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1beta1NetworkPolicyPeer - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1beta1NetworkPolicyPeer. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1beta1NetworkPolicyPeer - * @class - */ - var exports = function() { - var _this = this; - - - - }; - - /** - * Constructs a V1beta1NetworkPolicyPeer from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1NetworkPolicyPeer} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1NetworkPolicyPeer} The populated V1beta1NetworkPolicyPeer instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('namespaceSelector')) { - obj['namespaceSelector'] = V1LabelSelector.constructFromObject(data['namespaceSelector']); - } - if (data.hasOwnProperty('podSelector')) { - obj['podSelector'] = V1LabelSelector.constructFromObject(data['podSelector']); - } - } - return obj; - } - - /** - * Selects Namespaces using cluster scoped-labels. This matches all pods in all namespaces selected by this label selector. This field follows standard label selector semantics. If omitted, this selector selects no namespaces. If present but empty, this selector selects all namespaces. - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1LabelSelector} namespaceSelector - */ - exports.prototype['namespaceSelector'] = undefined; - /** - * This is a label selector which selects Pods in this namespace. This field follows standard label selector semantics. If not provided, this selector selects no pods. If present but empty, this selector selects all pods in this namespace. - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1LabelSelector} podSelector - */ - exports.prototype['podSelector'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1NetworkPolicyPort.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1NetworkPolicyPort.js deleted file mode 100644 index 8f670b4e04..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1NetworkPolicyPort.js +++ /dev/null @@ -1,89 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1beta1NetworkPolicyPort = factory(root.KubernetesJsClient.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - - /** - * The V1beta1NetworkPolicyPort model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1beta1NetworkPolicyPort - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1beta1NetworkPolicyPort. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1beta1NetworkPolicyPort - * @class - */ - var exports = function() { - var _this = this; - - - - }; - - /** - * Constructs a V1beta1NetworkPolicyPort from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1NetworkPolicyPort} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1NetworkPolicyPort} The populated V1beta1NetworkPolicyPort instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('port')) { - obj['port'] = ApiClient.convertToType(data['port'], 'String'); - } - if (data.hasOwnProperty('protocol')) { - obj['protocol'] = ApiClient.convertToType(data['protocol'], 'String'); - } - } - return obj; - } - - /** - * If specified, the port on the given protocol. This can either be a numerical or named port on a pod. If this field is not provided, this matches all port names and numbers. If present, only traffic on the specified protocol AND port will be matched. - * @member {String} port - */ - exports.prototype['port'] = undefined; - /** - * Optional. The protocol (TCP or UDP) which traffic must match. If not specified, this field defaults to TCP. - * @member {String} protocol - */ - exports.prototype['protocol'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1NetworkPolicySpec.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1NetworkPolicySpec.js deleted file mode 100644 index 1289916fdc..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1NetworkPolicySpec.js +++ /dev/null @@ -1,90 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1LabelSelector', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1NetworkPolicyIngressRule'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1LabelSelector'), require('./V1beta1NetworkPolicyIngressRule')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1beta1NetworkPolicySpec = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1LabelSelector, root.KubernetesJsClient.V1beta1NetworkPolicyIngressRule); - } -}(this, function(ApiClient, V1LabelSelector, V1beta1NetworkPolicyIngressRule) { - 'use strict'; - - - - - /** - * The V1beta1NetworkPolicySpec model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1beta1NetworkPolicySpec - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1beta1NetworkPolicySpec. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1beta1NetworkPolicySpec - * @class - * @param podSelector {module:io.kubernetes.js/io.kubernetes.js.models/V1LabelSelector} Selects the pods to which this NetworkPolicy object applies. The array of ingress rules is applied to any pods selected by this field. Multiple network policies can select the same set of pods. In this case, the ingress rules for each are combined additively. This field is NOT optional and follows standard label selector semantics. An empty podSelector matches all pods in this namespace. - */ - var exports = function(podSelector) { - var _this = this; - - - _this['podSelector'] = podSelector; - }; - - /** - * Constructs a V1beta1NetworkPolicySpec from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1NetworkPolicySpec} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1NetworkPolicySpec} The populated V1beta1NetworkPolicySpec instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('ingress')) { - obj['ingress'] = ApiClient.convertToType(data['ingress'], [V1beta1NetworkPolicyIngressRule]); - } - if (data.hasOwnProperty('podSelector')) { - obj['podSelector'] = V1LabelSelector.constructFromObject(data['podSelector']); - } - } - return obj; - } - - /** - * List of ingress rules to be applied to the selected pods. Traffic is allowed to a pod if namespace.networkPolicy.ingress.isolation is undefined and cluster policy allows it, OR if the traffic source is the pod's local node, OR if the traffic matches at least one ingress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy does not affect ingress isolation. If this field is present and contains at least one rule, this policy allows any traffic which matches at least one of the ingress rules in this list. - * @member {Array.} ingress - */ - exports.prototype['ingress'] = undefined; - /** - * Selects the pods to which this NetworkPolicy object applies. The array of ingress rules is applied to any pods selected by this field. Multiple network policies can select the same set of pods. In this case, the ingress rules for each are combined additively. This field is NOT optional and follows standard label selector semantics. An empty podSelector matches all pods in this namespace. - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1LabelSelector} podSelector - */ - exports.prototype['podSelector'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1NonResourceAttributes.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1NonResourceAttributes.js deleted file mode 100644 index 4738345560..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1NonResourceAttributes.js +++ /dev/null @@ -1,90 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1beta1NonResourceAttributes = factory(root.KubernetesJsClient.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - - /** - * The V1beta1NonResourceAttributes model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1beta1NonResourceAttributes - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1beta1NonResourceAttributes. - * NonResourceAttributes includes the authorization attributes available for non-resource requests to the Authorizer interface - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1beta1NonResourceAttributes - * @class - */ - var exports = function() { - var _this = this; - - - - }; - - /** - * Constructs a V1beta1NonResourceAttributes from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1NonResourceAttributes} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1NonResourceAttributes} The populated V1beta1NonResourceAttributes instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('path')) { - obj['path'] = ApiClient.convertToType(data['path'], 'String'); - } - if (data.hasOwnProperty('verb')) { - obj['verb'] = ApiClient.convertToType(data['verb'], 'String'); - } - } - return obj; - } - - /** - * Path is the URL path of the request - * @member {String} path - */ - exports.prototype['path'] = undefined; - /** - * Verb is the standard HTTP verb - * @member {String} verb - */ - exports.prototype['verb'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1PodDisruptionBudget.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1PodDisruptionBudget.js deleted file mode 100644 index 906ffb9d62..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1PodDisruptionBudget.js +++ /dev/null @@ -1,116 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1ObjectMeta', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1PodDisruptionBudgetSpec', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1PodDisruptionBudgetStatus'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1ObjectMeta'), require('./V1beta1PodDisruptionBudgetSpec'), require('./V1beta1PodDisruptionBudgetStatus')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1beta1PodDisruptionBudget = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1ObjectMeta, root.KubernetesJsClient.V1beta1PodDisruptionBudgetSpec, root.KubernetesJsClient.V1beta1PodDisruptionBudgetStatus); - } -}(this, function(ApiClient, V1ObjectMeta, V1beta1PodDisruptionBudgetSpec, V1beta1PodDisruptionBudgetStatus) { - 'use strict'; - - - - - /** - * The V1beta1PodDisruptionBudget model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1beta1PodDisruptionBudget - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1beta1PodDisruptionBudget. - * PodDisruptionBudget is an object to define the max disruption that can be caused to a collection of pods - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1beta1PodDisruptionBudget - * @class - */ - var exports = function() { - var _this = this; - - - - - - - }; - - /** - * Constructs a V1beta1PodDisruptionBudget from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1PodDisruptionBudget} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1PodDisruptionBudget} The populated V1beta1PodDisruptionBudget instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('apiVersion')) { - obj['apiVersion'] = ApiClient.convertToType(data['apiVersion'], 'String'); - } - if (data.hasOwnProperty('kind')) { - obj['kind'] = ApiClient.convertToType(data['kind'], 'String'); - } - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = V1ObjectMeta.constructFromObject(data['metadata']); - } - if (data.hasOwnProperty('spec')) { - obj['spec'] = V1beta1PodDisruptionBudgetSpec.constructFromObject(data['spec']); - } - if (data.hasOwnProperty('status')) { - obj['status'] = V1beta1PodDisruptionBudgetStatus.constructFromObject(data['status']); - } - } - return obj; - } - - /** - * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - * @member {String} apiVersion - */ - exports.prototype['apiVersion'] = undefined; - /** - * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - * @member {String} kind - */ - exports.prototype['kind'] = undefined; - /** - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1ObjectMeta} metadata - */ - exports.prototype['metadata'] = undefined; - /** - * Specification of the desired behavior of the PodDisruptionBudget. - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1PodDisruptionBudgetSpec} spec - */ - exports.prototype['spec'] = undefined; - /** - * Most recently observed status of the PodDisruptionBudget. - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1PodDisruptionBudgetStatus} status - */ - exports.prototype['status'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1PodDisruptionBudgetList.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1PodDisruptionBudgetList.js deleted file mode 100644 index 6b48a7911e..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1PodDisruptionBudgetList.js +++ /dev/null @@ -1,107 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1ListMeta', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1PodDisruptionBudget'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1ListMeta'), require('./V1beta1PodDisruptionBudget')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1beta1PodDisruptionBudgetList = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1ListMeta, root.KubernetesJsClient.V1beta1PodDisruptionBudget); - } -}(this, function(ApiClient, V1ListMeta, V1beta1PodDisruptionBudget) { - 'use strict'; - - - - - /** - * The V1beta1PodDisruptionBudgetList model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1beta1PodDisruptionBudgetList - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1beta1PodDisruptionBudgetList. - * PodDisruptionBudgetList is a collection of PodDisruptionBudgets. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1beta1PodDisruptionBudgetList - * @class - * @param items {Array.} - */ - var exports = function(items) { - var _this = this; - - - _this['items'] = items; - - - }; - - /** - * Constructs a V1beta1PodDisruptionBudgetList from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1PodDisruptionBudgetList} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1PodDisruptionBudgetList} The populated V1beta1PodDisruptionBudgetList instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('apiVersion')) { - obj['apiVersion'] = ApiClient.convertToType(data['apiVersion'], 'String'); - } - if (data.hasOwnProperty('items')) { - obj['items'] = ApiClient.convertToType(data['items'], [V1beta1PodDisruptionBudget]); - } - if (data.hasOwnProperty('kind')) { - obj['kind'] = ApiClient.convertToType(data['kind'], 'String'); - } - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = V1ListMeta.constructFromObject(data['metadata']); - } - } - return obj; - } - - /** - * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - * @member {String} apiVersion - */ - exports.prototype['apiVersion'] = undefined; - /** - * @member {Array.} items - */ - exports.prototype['items'] = undefined; - /** - * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - * @member {String} kind - */ - exports.prototype['kind'] = undefined; - /** - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1ListMeta} metadata - */ - exports.prototype['metadata'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1PodDisruptionBudgetSpec.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1PodDisruptionBudgetSpec.js deleted file mode 100644 index dc47044650..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1PodDisruptionBudgetSpec.js +++ /dev/null @@ -1,90 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1LabelSelector'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1LabelSelector')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1beta1PodDisruptionBudgetSpec = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1LabelSelector); - } -}(this, function(ApiClient, V1LabelSelector) { - 'use strict'; - - - - - /** - * The V1beta1PodDisruptionBudgetSpec model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1beta1PodDisruptionBudgetSpec - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1beta1PodDisruptionBudgetSpec. - * PodDisruptionBudgetSpec is a description of a PodDisruptionBudget. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1beta1PodDisruptionBudgetSpec - * @class - */ - var exports = function() { - var _this = this; - - - - }; - - /** - * Constructs a V1beta1PodDisruptionBudgetSpec from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1PodDisruptionBudgetSpec} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1PodDisruptionBudgetSpec} The populated V1beta1PodDisruptionBudgetSpec instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('minAvailable')) { - obj['minAvailable'] = ApiClient.convertToType(data['minAvailable'], 'String'); - } - if (data.hasOwnProperty('selector')) { - obj['selector'] = V1LabelSelector.constructFromObject(data['selector']); - } - } - return obj; - } - - /** - * An eviction is allowed if at least \"minAvailable\" pods selected by \"selector\" will still be available after the eviction, i.e. even in the absence of the evicted pod. So for example you can prevent all voluntary evictions by specifying \"100%\". - * @member {String} minAvailable - */ - exports.prototype['minAvailable'] = undefined; - /** - * Label query over pods whose evictions are managed by the disruption budget. - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1LabelSelector} selector - */ - exports.prototype['selector'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1PodDisruptionBudgetStatus.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1PodDisruptionBudgetStatus.js deleted file mode 100644 index f8a3df7d3a..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1PodDisruptionBudgetStatus.js +++ /dev/null @@ -1,131 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1beta1PodDisruptionBudgetStatus = factory(root.KubernetesJsClient.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - - /** - * The V1beta1PodDisruptionBudgetStatus model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1beta1PodDisruptionBudgetStatus - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1beta1PodDisruptionBudgetStatus. - * PodDisruptionBudgetStatus represents information about the status of a PodDisruptionBudget. Status may trail the actual state of a system. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1beta1PodDisruptionBudgetStatus - * @class - * @param currentHealthy {Number} current number of healthy pods - * @param desiredHealthy {Number} minimum desired number of healthy pods - * @param disruptedPods {Object.} DisruptedPods contains information about pods whose eviction was processed by the API server eviction subresource handler but has not yet been observed by the PodDisruptionBudget controller. A pod will be in this map from the time when the API server processed the eviction request to the time when the pod is seen by PDB controller as having been marked for deletion (or after a timeout). The key in the map is the name of the pod and the value is the time when the API server processed the eviction request. If the deletion didn't occur and a pod is still there it will be removed from the list automatically by PodDisruptionBudget controller after some time. If everything goes smooth this map should be empty for the most of the time. Large number of entries in the map may indicate problems with pod deletions. - * @param disruptionsAllowed {Number} Number of pod disruptions that are currently allowed. - * @param expectedPods {Number} total number of pods counted by this disruption budget - */ - var exports = function(currentHealthy, desiredHealthy, disruptedPods, disruptionsAllowed, expectedPods) { - var _this = this; - - _this['currentHealthy'] = currentHealthy; - _this['desiredHealthy'] = desiredHealthy; - _this['disruptedPods'] = disruptedPods; - _this['disruptionsAllowed'] = disruptionsAllowed; - _this['expectedPods'] = expectedPods; - - }; - - /** - * Constructs a V1beta1PodDisruptionBudgetStatus from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1PodDisruptionBudgetStatus} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1PodDisruptionBudgetStatus} The populated V1beta1PodDisruptionBudgetStatus instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('currentHealthy')) { - obj['currentHealthy'] = ApiClient.convertToType(data['currentHealthy'], 'Number'); - } - if (data.hasOwnProperty('desiredHealthy')) { - obj['desiredHealthy'] = ApiClient.convertToType(data['desiredHealthy'], 'Number'); - } - if (data.hasOwnProperty('disruptedPods')) { - obj['disruptedPods'] = ApiClient.convertToType(data['disruptedPods'], {'String': 'Date'}); - } - if (data.hasOwnProperty('disruptionsAllowed')) { - obj['disruptionsAllowed'] = ApiClient.convertToType(data['disruptionsAllowed'], 'Number'); - } - if (data.hasOwnProperty('expectedPods')) { - obj['expectedPods'] = ApiClient.convertToType(data['expectedPods'], 'Number'); - } - if (data.hasOwnProperty('observedGeneration')) { - obj['observedGeneration'] = ApiClient.convertToType(data['observedGeneration'], 'Number'); - } - } - return obj; - } - - /** - * current number of healthy pods - * @member {Number} currentHealthy - */ - exports.prototype['currentHealthy'] = undefined; - /** - * minimum desired number of healthy pods - * @member {Number} desiredHealthy - */ - exports.prototype['desiredHealthy'] = undefined; - /** - * DisruptedPods contains information about pods whose eviction was processed by the API server eviction subresource handler but has not yet been observed by the PodDisruptionBudget controller. A pod will be in this map from the time when the API server processed the eviction request to the time when the pod is seen by PDB controller as having been marked for deletion (or after a timeout). The key in the map is the name of the pod and the value is the time when the API server processed the eviction request. If the deletion didn't occur and a pod is still there it will be removed from the list automatically by PodDisruptionBudget controller after some time. If everything goes smooth this map should be empty for the most of the time. Large number of entries in the map may indicate problems with pod deletions. - * @member {Object.} disruptedPods - */ - exports.prototype['disruptedPods'] = undefined; - /** - * Number of pod disruptions that are currently allowed. - * @member {Number} disruptionsAllowed - */ - exports.prototype['disruptionsAllowed'] = undefined; - /** - * total number of pods counted by this disruption budget - * @member {Number} expectedPods - */ - exports.prototype['expectedPods'] = undefined; - /** - * Most recent generation observed when updating this PDB status. PodDisruptionsAllowed and other status informatio is valid only if observedGeneration equals to PDB's object generation. - * @member {Number} observedGeneration - */ - exports.prototype['observedGeneration'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1PodSecurityPolicy.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1PodSecurityPolicy.js deleted file mode 100644 index 7b00a22559..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1PodSecurityPolicy.js +++ /dev/null @@ -1,108 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1ObjectMeta', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1PodSecurityPolicySpec'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1ObjectMeta'), require('./V1beta1PodSecurityPolicySpec')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1beta1PodSecurityPolicy = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1ObjectMeta, root.KubernetesJsClient.V1beta1PodSecurityPolicySpec); - } -}(this, function(ApiClient, V1ObjectMeta, V1beta1PodSecurityPolicySpec) { - 'use strict'; - - - - - /** - * The V1beta1PodSecurityPolicy model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1beta1PodSecurityPolicy - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1beta1PodSecurityPolicy. - * Pod Security Policy governs the ability to make requests that affect the Security Context that will be applied to a pod and container. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1beta1PodSecurityPolicy - * @class - */ - var exports = function() { - var _this = this; - - - - - - }; - - /** - * Constructs a V1beta1PodSecurityPolicy from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1PodSecurityPolicy} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1PodSecurityPolicy} The populated V1beta1PodSecurityPolicy instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('apiVersion')) { - obj['apiVersion'] = ApiClient.convertToType(data['apiVersion'], 'String'); - } - if (data.hasOwnProperty('kind')) { - obj['kind'] = ApiClient.convertToType(data['kind'], 'String'); - } - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = V1ObjectMeta.constructFromObject(data['metadata']); - } - if (data.hasOwnProperty('spec')) { - obj['spec'] = V1beta1PodSecurityPolicySpec.constructFromObject(data['spec']); - } - } - return obj; - } - - /** - * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - * @member {String} apiVersion - */ - exports.prototype['apiVersion'] = undefined; - /** - * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - * @member {String} kind - */ - exports.prototype['kind'] = undefined; - /** - * Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1ObjectMeta} metadata - */ - exports.prototype['metadata'] = undefined; - /** - * spec defines the policy enforced. - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1PodSecurityPolicySpec} spec - */ - exports.prototype['spec'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1PodSecurityPolicyList.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1PodSecurityPolicyList.js deleted file mode 100644 index 1fb47ebcda..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1PodSecurityPolicyList.js +++ /dev/null @@ -1,109 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1ListMeta', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1PodSecurityPolicy'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1ListMeta'), require('./V1beta1PodSecurityPolicy')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1beta1PodSecurityPolicyList = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1ListMeta, root.KubernetesJsClient.V1beta1PodSecurityPolicy); - } -}(this, function(ApiClient, V1ListMeta, V1beta1PodSecurityPolicy) { - 'use strict'; - - - - - /** - * The V1beta1PodSecurityPolicyList model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1beta1PodSecurityPolicyList - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1beta1PodSecurityPolicyList. - * Pod Security Policy List is a list of PodSecurityPolicy objects. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1beta1PodSecurityPolicyList - * @class - * @param items {Array.} Items is a list of schema objects. - */ - var exports = function(items) { - var _this = this; - - - _this['items'] = items; - - - }; - - /** - * Constructs a V1beta1PodSecurityPolicyList from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1PodSecurityPolicyList} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1PodSecurityPolicyList} The populated V1beta1PodSecurityPolicyList instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('apiVersion')) { - obj['apiVersion'] = ApiClient.convertToType(data['apiVersion'], 'String'); - } - if (data.hasOwnProperty('items')) { - obj['items'] = ApiClient.convertToType(data['items'], [V1beta1PodSecurityPolicy]); - } - if (data.hasOwnProperty('kind')) { - obj['kind'] = ApiClient.convertToType(data['kind'], 'String'); - } - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = V1ListMeta.constructFromObject(data['metadata']); - } - } - return obj; - } - - /** - * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - * @member {String} apiVersion - */ - exports.prototype['apiVersion'] = undefined; - /** - * Items is a list of schema objects. - * @member {Array.} items - */ - exports.prototype['items'] = undefined; - /** - * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - * @member {String} kind - */ - exports.prototype['kind'] = undefined; - /** - * Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1ListMeta} metadata - */ - exports.prototype['metadata'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1PodSecurityPolicySpec.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1PodSecurityPolicySpec.js deleted file mode 100644 index e0ff7227aa..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1PodSecurityPolicySpec.js +++ /dev/null @@ -1,202 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1FSGroupStrategyOptions', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1HostPortRange', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1RunAsUserStrategyOptions', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1SELinuxStrategyOptions', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1SupplementalGroupsStrategyOptions'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1beta1FSGroupStrategyOptions'), require('./V1beta1HostPortRange'), require('./V1beta1RunAsUserStrategyOptions'), require('./V1beta1SELinuxStrategyOptions'), require('./V1beta1SupplementalGroupsStrategyOptions')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1beta1PodSecurityPolicySpec = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1beta1FSGroupStrategyOptions, root.KubernetesJsClient.V1beta1HostPortRange, root.KubernetesJsClient.V1beta1RunAsUserStrategyOptions, root.KubernetesJsClient.V1beta1SELinuxStrategyOptions, root.KubernetesJsClient.V1beta1SupplementalGroupsStrategyOptions); - } -}(this, function(ApiClient, V1beta1FSGroupStrategyOptions, V1beta1HostPortRange, V1beta1RunAsUserStrategyOptions, V1beta1SELinuxStrategyOptions, V1beta1SupplementalGroupsStrategyOptions) { - 'use strict'; - - - - - /** - * The V1beta1PodSecurityPolicySpec model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1beta1PodSecurityPolicySpec - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1beta1PodSecurityPolicySpec. - * Pod Security Policy Spec defines the policy enforced. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1beta1PodSecurityPolicySpec - * @class - * @param fsGroup {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1FSGroupStrategyOptions} FSGroup is the strategy that will dictate what fs group is used by the SecurityContext. - * @param runAsUser {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1RunAsUserStrategyOptions} runAsUser is the strategy that will dictate the allowable RunAsUser values that may be set. - * @param seLinux {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1SELinuxStrategyOptions} seLinux is the strategy that will dictate the allowable labels that may be set. - * @param supplementalGroups {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1SupplementalGroupsStrategyOptions} SupplementalGroups is the strategy that will dictate what supplemental groups are used by the SecurityContext. - */ - var exports = function(fsGroup, runAsUser, seLinux, supplementalGroups) { - var _this = this; - - - - _this['fsGroup'] = fsGroup; - - - - - - - - _this['runAsUser'] = runAsUser; - _this['seLinux'] = seLinux; - _this['supplementalGroups'] = supplementalGroups; - - }; - - /** - * Constructs a V1beta1PodSecurityPolicySpec from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1PodSecurityPolicySpec} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1PodSecurityPolicySpec} The populated V1beta1PodSecurityPolicySpec instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('allowedCapabilities')) { - obj['allowedCapabilities'] = ApiClient.convertToType(data['allowedCapabilities'], ['String']); - } - if (data.hasOwnProperty('defaultAddCapabilities')) { - obj['defaultAddCapabilities'] = ApiClient.convertToType(data['defaultAddCapabilities'], ['String']); - } - if (data.hasOwnProperty('fsGroup')) { - obj['fsGroup'] = V1beta1FSGroupStrategyOptions.constructFromObject(data['fsGroup']); - } - if (data.hasOwnProperty('hostIPC')) { - obj['hostIPC'] = ApiClient.convertToType(data['hostIPC'], 'Boolean'); - } - if (data.hasOwnProperty('hostNetwork')) { - obj['hostNetwork'] = ApiClient.convertToType(data['hostNetwork'], 'Boolean'); - } - if (data.hasOwnProperty('hostPID')) { - obj['hostPID'] = ApiClient.convertToType(data['hostPID'], 'Boolean'); - } - if (data.hasOwnProperty('hostPorts')) { - obj['hostPorts'] = ApiClient.convertToType(data['hostPorts'], [V1beta1HostPortRange]); - } - if (data.hasOwnProperty('privileged')) { - obj['privileged'] = ApiClient.convertToType(data['privileged'], 'Boolean'); - } - if (data.hasOwnProperty('readOnlyRootFilesystem')) { - obj['readOnlyRootFilesystem'] = ApiClient.convertToType(data['readOnlyRootFilesystem'], 'Boolean'); - } - if (data.hasOwnProperty('requiredDropCapabilities')) { - obj['requiredDropCapabilities'] = ApiClient.convertToType(data['requiredDropCapabilities'], ['String']); - } - if (data.hasOwnProperty('runAsUser')) { - obj['runAsUser'] = V1beta1RunAsUserStrategyOptions.constructFromObject(data['runAsUser']); - } - if (data.hasOwnProperty('seLinux')) { - obj['seLinux'] = V1beta1SELinuxStrategyOptions.constructFromObject(data['seLinux']); - } - if (data.hasOwnProperty('supplementalGroups')) { - obj['supplementalGroups'] = V1beta1SupplementalGroupsStrategyOptions.constructFromObject(data['supplementalGroups']); - } - if (data.hasOwnProperty('volumes')) { - obj['volumes'] = ApiClient.convertToType(data['volumes'], ['String']); - } - } - return obj; - } - - /** - * AllowedCapabilities is a list of capabilities that can be requested to add to the container. Capabilities in this field may be added at the pod author's discretion. You must not list a capability in both AllowedCapabilities and RequiredDropCapabilities. - * @member {Array.} allowedCapabilities - */ - exports.prototype['allowedCapabilities'] = undefined; - /** - * DefaultAddCapabilities is the default set of capabilities that will be added to the container unless the pod spec specifically drops the capability. You may not list a capabiility in both DefaultAddCapabilities and RequiredDropCapabilities. - * @member {Array.} defaultAddCapabilities - */ - exports.prototype['defaultAddCapabilities'] = undefined; - /** - * FSGroup is the strategy that will dictate what fs group is used by the SecurityContext. - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1FSGroupStrategyOptions} fsGroup - */ - exports.prototype['fsGroup'] = undefined; - /** - * hostIPC determines if the policy allows the use of HostIPC in the pod spec. - * @member {Boolean} hostIPC - */ - exports.prototype['hostIPC'] = undefined; - /** - * hostNetwork determines if the policy allows the use of HostNetwork in the pod spec. - * @member {Boolean} hostNetwork - */ - exports.prototype['hostNetwork'] = undefined; - /** - * hostPID determines if the policy allows the use of HostPID in the pod spec. - * @member {Boolean} hostPID - */ - exports.prototype['hostPID'] = undefined; - /** - * hostPorts determines which host port ranges are allowed to be exposed. - * @member {Array.} hostPorts - */ - exports.prototype['hostPorts'] = undefined; - /** - * privileged determines if a pod can request to be run as privileged. - * @member {Boolean} privileged - */ - exports.prototype['privileged'] = undefined; - /** - * ReadOnlyRootFilesystem when set to true will force containers to run with a read only root file system. If the container specifically requests to run with a non-read only root file system the PSP should deny the pod. If set to false the container may run with a read only root file system if it wishes but it will not be forced to. - * @member {Boolean} readOnlyRootFilesystem - */ - exports.prototype['readOnlyRootFilesystem'] = undefined; - /** - * RequiredDropCapabilities are the capabilities that will be dropped from the container. These are required to be dropped and cannot be added. - * @member {Array.} requiredDropCapabilities - */ - exports.prototype['requiredDropCapabilities'] = undefined; - /** - * runAsUser is the strategy that will dictate the allowable RunAsUser values that may be set. - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1RunAsUserStrategyOptions} runAsUser - */ - exports.prototype['runAsUser'] = undefined; - /** - * seLinux is the strategy that will dictate the allowable labels that may be set. - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1SELinuxStrategyOptions} seLinux - */ - exports.prototype['seLinux'] = undefined; - /** - * SupplementalGroups is the strategy that will dictate what supplemental groups are used by the SecurityContext. - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1SupplementalGroupsStrategyOptions} supplementalGroups - */ - exports.prototype['supplementalGroups'] = undefined; - /** - * volumes is a white list of allowed volume plugins. Empty indicates that all plugins may be used. - * @member {Array.} volumes - */ - exports.prototype['volumes'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1PolicyRule.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1PolicyRule.js deleted file mode 100644 index 39a59ec052..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1PolicyRule.js +++ /dev/null @@ -1,118 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1beta1PolicyRule = factory(root.KubernetesJsClient.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - - /** - * The V1beta1PolicyRule model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1beta1PolicyRule - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1beta1PolicyRule. - * PolicyRule holds information that describes a policy rule, but does not contain information about who the rule applies to or which namespace the rule applies to. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1beta1PolicyRule - * @class - * @param verbs {Array.} Verbs is a list of Verbs that apply to ALL the ResourceKinds and AttributeRestrictions contained in this rule. VerbAll represents all kinds. - */ - var exports = function(verbs) { - var _this = this; - - - - - - _this['verbs'] = verbs; - }; - - /** - * Constructs a V1beta1PolicyRule from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1PolicyRule} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1PolicyRule} The populated V1beta1PolicyRule instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('apiGroups')) { - obj['apiGroups'] = ApiClient.convertToType(data['apiGroups'], ['String']); - } - if (data.hasOwnProperty('nonResourceURLs')) { - obj['nonResourceURLs'] = ApiClient.convertToType(data['nonResourceURLs'], ['String']); - } - if (data.hasOwnProperty('resourceNames')) { - obj['resourceNames'] = ApiClient.convertToType(data['resourceNames'], ['String']); - } - if (data.hasOwnProperty('resources')) { - obj['resources'] = ApiClient.convertToType(data['resources'], ['String']); - } - if (data.hasOwnProperty('verbs')) { - obj['verbs'] = ApiClient.convertToType(data['verbs'], ['String']); - } - } - return obj; - } - - /** - * APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. - * @member {Array.} apiGroups - */ - exports.prototype['apiGroups'] = undefined; - /** - * NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules can either apply to API resources (such as \"pods\" or \"secrets\") or non-resource URL paths (such as \"/api\"), but not both. - * @member {Array.} nonResourceURLs - */ - exports.prototype['nonResourceURLs'] = undefined; - /** - * ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. - * @member {Array.} resourceNames - */ - exports.prototype['resourceNames'] = undefined; - /** - * Resources is a list of resources this rule applies to. ResourceAll represents all resources. - * @member {Array.} resources - */ - exports.prototype['resources'] = undefined; - /** - * Verbs is a list of Verbs that apply to ALL the ResourceKinds and AttributeRestrictions contained in this rule. VerbAll represents all kinds. - * @member {Array.} verbs - */ - exports.prototype['verbs'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1ReplicaSet.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1ReplicaSet.js deleted file mode 100644 index 206ff1a97c..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1ReplicaSet.js +++ /dev/null @@ -1,117 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1ObjectMeta', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1ReplicaSetSpec', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1ReplicaSetStatus'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1ObjectMeta'), require('./V1beta1ReplicaSetSpec'), require('./V1beta1ReplicaSetStatus')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1beta1ReplicaSet = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1ObjectMeta, root.KubernetesJsClient.V1beta1ReplicaSetSpec, root.KubernetesJsClient.V1beta1ReplicaSetStatus); - } -}(this, function(ApiClient, V1ObjectMeta, V1beta1ReplicaSetSpec, V1beta1ReplicaSetStatus) { - 'use strict'; - - - - - /** - * The V1beta1ReplicaSet model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1beta1ReplicaSet - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1beta1ReplicaSet. - * ReplicaSet represents the configuration of a ReplicaSet. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1beta1ReplicaSet - * @class - */ - var exports = function() { - var _this = this; - - - - - - - }; - - /** - * Constructs a V1beta1ReplicaSet from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1ReplicaSet} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1ReplicaSet} The populated V1beta1ReplicaSet instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('apiVersion')) { - obj['apiVersion'] = ApiClient.convertToType(data['apiVersion'], 'String'); - } - if (data.hasOwnProperty('kind')) { - obj['kind'] = ApiClient.convertToType(data['kind'], 'String'); - } - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = V1ObjectMeta.constructFromObject(data['metadata']); - } - if (data.hasOwnProperty('spec')) { - obj['spec'] = V1beta1ReplicaSetSpec.constructFromObject(data['spec']); - } - if (data.hasOwnProperty('status')) { - obj['status'] = V1beta1ReplicaSetStatus.constructFromObject(data['status']); - } - } - return obj; - } - - /** - * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - * @member {String} apiVersion - */ - exports.prototype['apiVersion'] = undefined; - /** - * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - * @member {String} kind - */ - exports.prototype['kind'] = undefined; - /** - * If the Labels of a ReplicaSet are empty, they are defaulted to be the same as the Pod(s) that the ReplicaSet manages. Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1ObjectMeta} metadata - */ - exports.prototype['metadata'] = undefined; - /** - * Spec defines the specification of the desired behavior of the ReplicaSet. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1ReplicaSetSpec} spec - */ - exports.prototype['spec'] = undefined; - /** - * Status is the most recently observed status of the ReplicaSet. This data may be out of date by some window of time. Populated by the system. Read-only. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1ReplicaSetStatus} status - */ - exports.prototype['status'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1ReplicaSetCondition.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1ReplicaSetCondition.js deleted file mode 100644 index 6918a9c012..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1ReplicaSetCondition.js +++ /dev/null @@ -1,119 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1beta1ReplicaSetCondition = factory(root.KubernetesJsClient.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - - /** - * The V1beta1ReplicaSetCondition model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1beta1ReplicaSetCondition - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1beta1ReplicaSetCondition. - * ReplicaSetCondition describes the state of a replica set at a certain point. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1beta1ReplicaSetCondition - * @class - * @param status {String} Status of the condition, one of True, False, Unknown. - * @param type {String} Type of replica set condition. - */ - var exports = function(status, type) { - var _this = this; - - - - - _this['status'] = status; - _this['type'] = type; - }; - - /** - * Constructs a V1beta1ReplicaSetCondition from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1ReplicaSetCondition} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1ReplicaSetCondition} The populated V1beta1ReplicaSetCondition instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('lastTransitionTime')) { - obj['lastTransitionTime'] = ApiClient.convertToType(data['lastTransitionTime'], 'Date'); - } - if (data.hasOwnProperty('message')) { - obj['message'] = ApiClient.convertToType(data['message'], 'String'); - } - if (data.hasOwnProperty('reason')) { - obj['reason'] = ApiClient.convertToType(data['reason'], 'String'); - } - if (data.hasOwnProperty('status')) { - obj['status'] = ApiClient.convertToType(data['status'], 'String'); - } - if (data.hasOwnProperty('type')) { - obj['type'] = ApiClient.convertToType(data['type'], 'String'); - } - } - return obj; - } - - /** - * The last time the condition transitioned from one status to another. - * @member {Date} lastTransitionTime - */ - exports.prototype['lastTransitionTime'] = undefined; - /** - * A human readable message indicating details about the transition. - * @member {String} message - */ - exports.prototype['message'] = undefined; - /** - * The reason for the condition's last transition. - * @member {String} reason - */ - exports.prototype['reason'] = undefined; - /** - * Status of the condition, one of True, False, Unknown. - * @member {String} status - */ - exports.prototype['status'] = undefined; - /** - * Type of replica set condition. - * @member {String} type - */ - exports.prototype['type'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1ReplicaSetList.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1ReplicaSetList.js deleted file mode 100644 index 587738355e..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1ReplicaSetList.js +++ /dev/null @@ -1,109 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1ListMeta', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1ReplicaSet'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1ListMeta'), require('./V1beta1ReplicaSet')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1beta1ReplicaSetList = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1ListMeta, root.KubernetesJsClient.V1beta1ReplicaSet); - } -}(this, function(ApiClient, V1ListMeta, V1beta1ReplicaSet) { - 'use strict'; - - - - - /** - * The V1beta1ReplicaSetList model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1beta1ReplicaSetList - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1beta1ReplicaSetList. - * ReplicaSetList is a collection of ReplicaSets. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1beta1ReplicaSetList - * @class - * @param items {Array.} List of ReplicaSets. More info: http://kubernetes.io/docs/user-guide/replication-controller - */ - var exports = function(items) { - var _this = this; - - - _this['items'] = items; - - - }; - - /** - * Constructs a V1beta1ReplicaSetList from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1ReplicaSetList} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1ReplicaSetList} The populated V1beta1ReplicaSetList instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('apiVersion')) { - obj['apiVersion'] = ApiClient.convertToType(data['apiVersion'], 'String'); - } - if (data.hasOwnProperty('items')) { - obj['items'] = ApiClient.convertToType(data['items'], [V1beta1ReplicaSet]); - } - if (data.hasOwnProperty('kind')) { - obj['kind'] = ApiClient.convertToType(data['kind'], 'String'); - } - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = V1ListMeta.constructFromObject(data['metadata']); - } - } - return obj; - } - - /** - * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - * @member {String} apiVersion - */ - exports.prototype['apiVersion'] = undefined; - /** - * List of ReplicaSets. More info: http://kubernetes.io/docs/user-guide/replication-controller - * @member {Array.} items - */ - exports.prototype['items'] = undefined; - /** - * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - * @member {String} kind - */ - exports.prototype['kind'] = undefined; - /** - * Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1ListMeta} metadata - */ - exports.prototype['metadata'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1ReplicaSetSpec.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1ReplicaSetSpec.js deleted file mode 100644 index 200aa72b12..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1ReplicaSetSpec.js +++ /dev/null @@ -1,108 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1LabelSelector', 'io.kubernetes.js/io.kubernetes.js.models/V1PodTemplateSpec'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1LabelSelector'), require('./V1PodTemplateSpec')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1beta1ReplicaSetSpec = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1LabelSelector, root.KubernetesJsClient.V1PodTemplateSpec); - } -}(this, function(ApiClient, V1LabelSelector, V1PodTemplateSpec) { - 'use strict'; - - - - - /** - * The V1beta1ReplicaSetSpec model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1beta1ReplicaSetSpec - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1beta1ReplicaSetSpec. - * ReplicaSetSpec is the specification of a ReplicaSet. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1beta1ReplicaSetSpec - * @class - */ - var exports = function() { - var _this = this; - - - - - - }; - - /** - * Constructs a V1beta1ReplicaSetSpec from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1ReplicaSetSpec} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1ReplicaSetSpec} The populated V1beta1ReplicaSetSpec instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('minReadySeconds')) { - obj['minReadySeconds'] = ApiClient.convertToType(data['minReadySeconds'], 'Number'); - } - if (data.hasOwnProperty('replicas')) { - obj['replicas'] = ApiClient.convertToType(data['replicas'], 'Number'); - } - if (data.hasOwnProperty('selector')) { - obj['selector'] = V1LabelSelector.constructFromObject(data['selector']); - } - if (data.hasOwnProperty('template')) { - obj['template'] = V1PodTemplateSpec.constructFromObject(data['template']); - } - } - return obj; - } - - /** - * Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) - * @member {Number} minReadySeconds - */ - exports.prototype['minReadySeconds'] = undefined; - /** - * Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: http://kubernetes.io/docs/user-guide/replication-controller#what-is-a-replication-controller - * @member {Number} replicas - */ - exports.prototype['replicas'] = undefined; - /** - * Selector is a label query over pods that should match the replica count. If the selector is empty, it is defaulted to the labels present on the pod template. Label keys and values that must match in order to be controlled by this replica set. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1LabelSelector} selector - */ - exports.prototype['selector'] = undefined; - /** - * Template is the object that describes the pod that will be created if insufficient replicas are detected. More info: http://kubernetes.io/docs/user-guide/replication-controller#pod-template - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1PodTemplateSpec} template - */ - exports.prototype['template'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1ReplicaSetStatus.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1ReplicaSetStatus.js deleted file mode 100644 index cd2210466a..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1ReplicaSetStatus.js +++ /dev/null @@ -1,127 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1ReplicaSetCondition'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1beta1ReplicaSetCondition')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1beta1ReplicaSetStatus = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1beta1ReplicaSetCondition); - } -}(this, function(ApiClient, V1beta1ReplicaSetCondition) { - 'use strict'; - - - - - /** - * The V1beta1ReplicaSetStatus model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1beta1ReplicaSetStatus - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1beta1ReplicaSetStatus. - * ReplicaSetStatus represents the current status of a ReplicaSet. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1beta1ReplicaSetStatus - * @class - * @param replicas {Number} Replicas is the most recently oberved number of replicas. More info: http://kubernetes.io/docs/user-guide/replication-controller#what-is-a-replication-controller - */ - var exports = function(replicas) { - var _this = this; - - - - - - - _this['replicas'] = replicas; - }; - - /** - * Constructs a V1beta1ReplicaSetStatus from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1ReplicaSetStatus} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1ReplicaSetStatus} The populated V1beta1ReplicaSetStatus instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('availableReplicas')) { - obj['availableReplicas'] = ApiClient.convertToType(data['availableReplicas'], 'Number'); - } - if (data.hasOwnProperty('conditions')) { - obj['conditions'] = ApiClient.convertToType(data['conditions'], [V1beta1ReplicaSetCondition]); - } - if (data.hasOwnProperty('fullyLabeledReplicas')) { - obj['fullyLabeledReplicas'] = ApiClient.convertToType(data['fullyLabeledReplicas'], 'Number'); - } - if (data.hasOwnProperty('observedGeneration')) { - obj['observedGeneration'] = ApiClient.convertToType(data['observedGeneration'], 'Number'); - } - if (data.hasOwnProperty('readyReplicas')) { - obj['readyReplicas'] = ApiClient.convertToType(data['readyReplicas'], 'Number'); - } - if (data.hasOwnProperty('replicas')) { - obj['replicas'] = ApiClient.convertToType(data['replicas'], 'Number'); - } - } - return obj; - } - - /** - * The number of available replicas (ready for at least minReadySeconds) for this replica set. - * @member {Number} availableReplicas - */ - exports.prototype['availableReplicas'] = undefined; - /** - * Represents the latest available observations of a replica set's current state. - * @member {Array.} conditions - */ - exports.prototype['conditions'] = undefined; - /** - * The number of pods that have labels matching the labels of the pod template of the replicaset. - * @member {Number} fullyLabeledReplicas - */ - exports.prototype['fullyLabeledReplicas'] = undefined; - /** - * ObservedGeneration reflects the generation of the most recently observed ReplicaSet. - * @member {Number} observedGeneration - */ - exports.prototype['observedGeneration'] = undefined; - /** - * The number of ready replicas for this replica set. - * @member {Number} readyReplicas - */ - exports.prototype['readyReplicas'] = undefined; - /** - * Replicas is the most recently oberved number of replicas. More info: http://kubernetes.io/docs/user-guide/replication-controller#what-is-a-replication-controller - * @member {Number} replicas - */ - exports.prototype['replicas'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1ResourceAttributes.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1ResourceAttributes.js deleted file mode 100644 index e38e3e1365..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1ResourceAttributes.js +++ /dev/null @@ -1,135 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1beta1ResourceAttributes = factory(root.KubernetesJsClient.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - - /** - * The V1beta1ResourceAttributes model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1beta1ResourceAttributes - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1beta1ResourceAttributes. - * ResourceAttributes includes the authorization attributes available for resource requests to the Authorizer interface - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1beta1ResourceAttributes - * @class - */ - var exports = function() { - var _this = this; - - - - - - - - - }; - - /** - * Constructs a V1beta1ResourceAttributes from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1ResourceAttributes} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1ResourceAttributes} The populated V1beta1ResourceAttributes instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('group')) { - obj['group'] = ApiClient.convertToType(data['group'], 'String'); - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - } - if (data.hasOwnProperty('namespace')) { - obj['namespace'] = ApiClient.convertToType(data['namespace'], 'String'); - } - if (data.hasOwnProperty('resource')) { - obj['resource'] = ApiClient.convertToType(data['resource'], 'String'); - } - if (data.hasOwnProperty('subresource')) { - obj['subresource'] = ApiClient.convertToType(data['subresource'], 'String'); - } - if (data.hasOwnProperty('verb')) { - obj['verb'] = ApiClient.convertToType(data['verb'], 'String'); - } - if (data.hasOwnProperty('version')) { - obj['version'] = ApiClient.convertToType(data['version'], 'String'); - } - } - return obj; - } - - /** - * Group is the API Group of the Resource. \"*\" means all. - * @member {String} group - */ - exports.prototype['group'] = undefined; - /** - * Name is the name of the resource being requested for a \"get\" or deleted for a \"delete\". \"\" (empty) means all. - * @member {String} name - */ - exports.prototype['name'] = undefined; - /** - * Namespace is the namespace of the action being requested. Currently, there is no distinction between no namespace and all namespaces \"\" (empty) is defaulted for LocalSubjectAccessReviews \"\" (empty) is empty for cluster-scoped resources \"\" (empty) means \"all\" for namespace scoped resources from a SubjectAccessReview or SelfSubjectAccessReview - * @member {String} namespace - */ - exports.prototype['namespace'] = undefined; - /** - * Resource is one of the existing resource types. \"*\" means all. - * @member {String} resource - */ - exports.prototype['resource'] = undefined; - /** - * Subresource is one of the existing resource types. \"\" means none. - * @member {String} subresource - */ - exports.prototype['subresource'] = undefined; - /** - * Verb is a kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy. \"*\" means all. - * @member {String} verb - */ - exports.prototype['verb'] = undefined; - /** - * Version is the API Version of the Resource. \"*\" means all. - * @member {String} version - */ - exports.prototype['version'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1Role.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1Role.js deleted file mode 100644 index 8f1f0f5cea..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1Role.js +++ /dev/null @@ -1,109 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1ObjectMeta', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1PolicyRule'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1ObjectMeta'), require('./V1beta1PolicyRule')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1beta1Role = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1ObjectMeta, root.KubernetesJsClient.V1beta1PolicyRule); - } -}(this, function(ApiClient, V1ObjectMeta, V1beta1PolicyRule) { - 'use strict'; - - - - - /** - * The V1beta1Role model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1beta1Role - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1beta1Role. - * Role is a namespaced, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1beta1Role - * @class - * @param rules {Array.} Rules holds all the PolicyRules for this Role - */ - var exports = function(rules) { - var _this = this; - - - - - _this['rules'] = rules; - }; - - /** - * Constructs a V1beta1Role from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1Role} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1Role} The populated V1beta1Role instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('apiVersion')) { - obj['apiVersion'] = ApiClient.convertToType(data['apiVersion'], 'String'); - } - if (data.hasOwnProperty('kind')) { - obj['kind'] = ApiClient.convertToType(data['kind'], 'String'); - } - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = V1ObjectMeta.constructFromObject(data['metadata']); - } - if (data.hasOwnProperty('rules')) { - obj['rules'] = ApiClient.convertToType(data['rules'], [V1beta1PolicyRule]); - } - } - return obj; - } - - /** - * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - * @member {String} apiVersion - */ - exports.prototype['apiVersion'] = undefined; - /** - * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - * @member {String} kind - */ - exports.prototype['kind'] = undefined; - /** - * Standard object's metadata. - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1ObjectMeta} metadata - */ - exports.prototype['metadata'] = undefined; - /** - * Rules holds all the PolicyRules for this Role - * @member {Array.} rules - */ - exports.prototype['rules'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1RoleBinding.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1RoleBinding.js deleted file mode 100644 index 2de585f948..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1RoleBinding.js +++ /dev/null @@ -1,119 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1ObjectMeta', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1RoleRef', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1Subject'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1ObjectMeta'), require('./V1beta1RoleRef'), require('./V1beta1Subject')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1beta1RoleBinding = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1ObjectMeta, root.KubernetesJsClient.V1beta1RoleRef, root.KubernetesJsClient.V1beta1Subject); - } -}(this, function(ApiClient, V1ObjectMeta, V1beta1RoleRef, V1beta1Subject) { - 'use strict'; - - - - - /** - * The V1beta1RoleBinding model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1beta1RoleBinding - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1beta1RoleBinding. - * RoleBinding references a role, but does not contain it. It can reference a Role in the same namespace or a ClusterRole in the global namespace. It adds who information via Subjects and namespace information by which namespace it exists in. RoleBindings in a given namespace only have effect in that namespace. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1beta1RoleBinding - * @class - * @param roleRef {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1RoleRef} RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. - * @param subjects {Array.} Subjects holds references to the objects the role applies to. - */ - var exports = function(roleRef, subjects) { - var _this = this; - - - - - _this['roleRef'] = roleRef; - _this['subjects'] = subjects; - }; - - /** - * Constructs a V1beta1RoleBinding from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1RoleBinding} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1RoleBinding} The populated V1beta1RoleBinding instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('apiVersion')) { - obj['apiVersion'] = ApiClient.convertToType(data['apiVersion'], 'String'); - } - if (data.hasOwnProperty('kind')) { - obj['kind'] = ApiClient.convertToType(data['kind'], 'String'); - } - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = V1ObjectMeta.constructFromObject(data['metadata']); - } - if (data.hasOwnProperty('roleRef')) { - obj['roleRef'] = V1beta1RoleRef.constructFromObject(data['roleRef']); - } - if (data.hasOwnProperty('subjects')) { - obj['subjects'] = ApiClient.convertToType(data['subjects'], [V1beta1Subject]); - } - } - return obj; - } - - /** - * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - * @member {String} apiVersion - */ - exports.prototype['apiVersion'] = undefined; - /** - * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - * @member {String} kind - */ - exports.prototype['kind'] = undefined; - /** - * Standard object's metadata. - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1ObjectMeta} metadata - */ - exports.prototype['metadata'] = undefined; - /** - * RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1RoleRef} roleRef - */ - exports.prototype['roleRef'] = undefined; - /** - * Subjects holds references to the objects the role applies to. - * @member {Array.} subjects - */ - exports.prototype['subjects'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1RoleBindingList.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1RoleBindingList.js deleted file mode 100644 index 2c9543147f..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1RoleBindingList.js +++ /dev/null @@ -1,109 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1ListMeta', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1RoleBinding'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1ListMeta'), require('./V1beta1RoleBinding')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1beta1RoleBindingList = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1ListMeta, root.KubernetesJsClient.V1beta1RoleBinding); - } -}(this, function(ApiClient, V1ListMeta, V1beta1RoleBinding) { - 'use strict'; - - - - - /** - * The V1beta1RoleBindingList model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1beta1RoleBindingList - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1beta1RoleBindingList. - * RoleBindingList is a collection of RoleBindings - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1beta1RoleBindingList - * @class - * @param items {Array.} Items is a list of RoleBindings - */ - var exports = function(items) { - var _this = this; - - - _this['items'] = items; - - - }; - - /** - * Constructs a V1beta1RoleBindingList from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1RoleBindingList} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1RoleBindingList} The populated V1beta1RoleBindingList instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('apiVersion')) { - obj['apiVersion'] = ApiClient.convertToType(data['apiVersion'], 'String'); - } - if (data.hasOwnProperty('items')) { - obj['items'] = ApiClient.convertToType(data['items'], [V1beta1RoleBinding]); - } - if (data.hasOwnProperty('kind')) { - obj['kind'] = ApiClient.convertToType(data['kind'], 'String'); - } - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = V1ListMeta.constructFromObject(data['metadata']); - } - } - return obj; - } - - /** - * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - * @member {String} apiVersion - */ - exports.prototype['apiVersion'] = undefined; - /** - * Items is a list of RoleBindings - * @member {Array.} items - */ - exports.prototype['items'] = undefined; - /** - * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - * @member {String} kind - */ - exports.prototype['kind'] = undefined; - /** - * Standard object's metadata. - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1ListMeta} metadata - */ - exports.prototype['metadata'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1RoleList.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1RoleList.js deleted file mode 100644 index a1c7ac3505..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1RoleList.js +++ /dev/null @@ -1,109 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1ListMeta', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1Role'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1ListMeta'), require('./V1beta1Role')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1beta1RoleList = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1ListMeta, root.KubernetesJsClient.V1beta1Role); - } -}(this, function(ApiClient, V1ListMeta, V1beta1Role) { - 'use strict'; - - - - - /** - * The V1beta1RoleList model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1beta1RoleList - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1beta1RoleList. - * RoleList is a collection of Roles - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1beta1RoleList - * @class - * @param items {Array.} Items is a list of Roles - */ - var exports = function(items) { - var _this = this; - - - _this['items'] = items; - - - }; - - /** - * Constructs a V1beta1RoleList from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1RoleList} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1RoleList} The populated V1beta1RoleList instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('apiVersion')) { - obj['apiVersion'] = ApiClient.convertToType(data['apiVersion'], 'String'); - } - if (data.hasOwnProperty('items')) { - obj['items'] = ApiClient.convertToType(data['items'], [V1beta1Role]); - } - if (data.hasOwnProperty('kind')) { - obj['kind'] = ApiClient.convertToType(data['kind'], 'String'); - } - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = V1ListMeta.constructFromObject(data['metadata']); - } - } - return obj; - } - - /** - * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - * @member {String} apiVersion - */ - exports.prototype['apiVersion'] = undefined; - /** - * Items is a list of Roles - * @member {Array.} items - */ - exports.prototype['items'] = undefined; - /** - * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - * @member {String} kind - */ - exports.prototype['kind'] = undefined; - /** - * Standard object's metadata. - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1ListMeta} metadata - */ - exports.prototype['metadata'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1RoleRef.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1RoleRef.js deleted file mode 100644 index 3ac329e5fb..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1RoleRef.js +++ /dev/null @@ -1,102 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1beta1RoleRef = factory(root.KubernetesJsClient.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - - /** - * The V1beta1RoleRef model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1beta1RoleRef - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1beta1RoleRef. - * RoleRef contains information that points to the role being used - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1beta1RoleRef - * @class - * @param apiGroup {String} APIGroup is the group for the resource being referenced - * @param kind {String} Kind is the type of resource being referenced - * @param name {String} Name is the name of resource being referenced - */ - var exports = function(apiGroup, kind, name) { - var _this = this; - - _this['apiGroup'] = apiGroup; - _this['kind'] = kind; - _this['name'] = name; - }; - - /** - * Constructs a V1beta1RoleRef from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1RoleRef} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1RoleRef} The populated V1beta1RoleRef instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('apiGroup')) { - obj['apiGroup'] = ApiClient.convertToType(data['apiGroup'], 'String'); - } - if (data.hasOwnProperty('kind')) { - obj['kind'] = ApiClient.convertToType(data['kind'], 'String'); - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - } - } - return obj; - } - - /** - * APIGroup is the group for the resource being referenced - * @member {String} apiGroup - */ - exports.prototype['apiGroup'] = undefined; - /** - * Kind is the type of resource being referenced - * @member {String} kind - */ - exports.prototype['kind'] = undefined; - /** - * Name is the name of resource being referenced - * @member {String} name - */ - exports.prototype['name'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1RollingUpdateDaemonSet.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1RollingUpdateDaemonSet.js deleted file mode 100644 index 6cf66099fc..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1RollingUpdateDaemonSet.js +++ /dev/null @@ -1,81 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1beta1RollingUpdateDaemonSet = factory(root.KubernetesJsClient.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - - /** - * The V1beta1RollingUpdateDaemonSet model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1beta1RollingUpdateDaemonSet - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1beta1RollingUpdateDaemonSet. - * Spec to control the desired behavior of daemon set rolling update. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1beta1RollingUpdateDaemonSet - * @class - */ - var exports = function() { - var _this = this; - - - }; - - /** - * Constructs a V1beta1RollingUpdateDaemonSet from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1RollingUpdateDaemonSet} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1RollingUpdateDaemonSet} The populated V1beta1RollingUpdateDaemonSet instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('maxUnavailable')) { - obj['maxUnavailable'] = ApiClient.convertToType(data['maxUnavailable'], 'String'); - } - } - return obj; - } - - /** - * The maximum number of DaemonSet pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of total number of DaemonSet pods at the start of the update (ex: 10%). Absolute number is calculated from percentage by rounding up. This cannot be 0. Default value is 1. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their pods stopped for an update at any given time. The update starts by stopping at most 30% of those DaemonSet pods and then brings up new DaemonSet pods in their place. Once the new pods are available, it then proceeds onto other DaemonSet pods, thus ensuring that at least 70% of original number of DaemonSet pods are available at all times during the update. - * @member {String} maxUnavailable - */ - exports.prototype['maxUnavailable'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1RunAsUserStrategyOptions.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1RunAsUserStrategyOptions.js deleted file mode 100644 index e5cd375c5a..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1RunAsUserStrategyOptions.js +++ /dev/null @@ -1,91 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1IDRange'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1beta1IDRange')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1beta1RunAsUserStrategyOptions = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1beta1IDRange); - } -}(this, function(ApiClient, V1beta1IDRange) { - 'use strict'; - - - - - /** - * The V1beta1RunAsUserStrategyOptions model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1beta1RunAsUserStrategyOptions - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1beta1RunAsUserStrategyOptions. - * Run A sUser Strategy Options defines the strategy type and any options used to create the strategy. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1beta1RunAsUserStrategyOptions - * @class - * @param rule {String} Rule is the strategy that will dictate the allowable RunAsUser values that may be set. - */ - var exports = function(rule) { - var _this = this; - - - _this['rule'] = rule; - }; - - /** - * Constructs a V1beta1RunAsUserStrategyOptions from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1RunAsUserStrategyOptions} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1RunAsUserStrategyOptions} The populated V1beta1RunAsUserStrategyOptions instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('ranges')) { - obj['ranges'] = ApiClient.convertToType(data['ranges'], [V1beta1IDRange]); - } - if (data.hasOwnProperty('rule')) { - obj['rule'] = ApiClient.convertToType(data['rule'], 'String'); - } - } - return obj; - } - - /** - * Ranges are the allowed ranges of uids that may be used. - * @member {Array.} ranges - */ - exports.prototype['ranges'] = undefined; - /** - * Rule is the strategy that will dictate the allowable RunAsUser values that may be set. - * @member {String} rule - */ - exports.prototype['rule'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1SELinuxStrategyOptions.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1SELinuxStrategyOptions.js deleted file mode 100644 index 966bb23802..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1SELinuxStrategyOptions.js +++ /dev/null @@ -1,91 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1SELinuxOptions'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1SELinuxOptions')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1beta1SELinuxStrategyOptions = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1SELinuxOptions); - } -}(this, function(ApiClient, V1SELinuxOptions) { - 'use strict'; - - - - - /** - * The V1beta1SELinuxStrategyOptions model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1beta1SELinuxStrategyOptions - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1beta1SELinuxStrategyOptions. - * SELinux Strategy Options defines the strategy type and any options used to create the strategy. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1beta1SELinuxStrategyOptions - * @class - * @param rule {String} type is the strategy that will dictate the allowable labels that may be set. - */ - var exports = function(rule) { - var _this = this; - - _this['rule'] = rule; - - }; - - /** - * Constructs a V1beta1SELinuxStrategyOptions from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1SELinuxStrategyOptions} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1SELinuxStrategyOptions} The populated V1beta1SELinuxStrategyOptions instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('rule')) { - obj['rule'] = ApiClient.convertToType(data['rule'], 'String'); - } - if (data.hasOwnProperty('seLinuxOptions')) { - obj['seLinuxOptions'] = V1SELinuxOptions.constructFromObject(data['seLinuxOptions']); - } - } - return obj; - } - - /** - * type is the strategy that will dictate the allowable labels that may be set. - * @member {String} rule - */ - exports.prototype['rule'] = undefined; - /** - * seLinuxOptions required to run as; required for MustRunAs More info: http://releases.k8s.io/HEAD/docs/design/security_context.md#security-context - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1SELinuxOptions} seLinuxOptions - */ - exports.prototype['seLinuxOptions'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1SelfSubjectAccessReview.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1SelfSubjectAccessReview.js deleted file mode 100644 index 45bc1b3a7e..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1SelfSubjectAccessReview.js +++ /dev/null @@ -1,117 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1ObjectMeta', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1SelfSubjectAccessReviewSpec', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1SubjectAccessReviewStatus'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1ObjectMeta'), require('./V1beta1SelfSubjectAccessReviewSpec'), require('./V1beta1SubjectAccessReviewStatus')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1beta1SelfSubjectAccessReview = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1ObjectMeta, root.KubernetesJsClient.V1beta1SelfSubjectAccessReviewSpec, root.KubernetesJsClient.V1beta1SubjectAccessReviewStatus); - } -}(this, function(ApiClient, V1ObjectMeta, V1beta1SelfSubjectAccessReviewSpec, V1beta1SubjectAccessReviewStatus) { - 'use strict'; - - - - - /** - * The V1beta1SelfSubjectAccessReview model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1beta1SelfSubjectAccessReview - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1beta1SelfSubjectAccessReview. - * SelfSubjectAccessReview checks whether or the current user can perform an action. Not filling in a spec.namespace means \"in all namespaces\". Self is a special case, because users should always be able to check whether they can perform an action - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1beta1SelfSubjectAccessReview - * @class - * @param spec {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1SelfSubjectAccessReviewSpec} Spec holds information about the request being evaluated. user and groups must be empty - */ - var exports = function(spec) { - var _this = this; - - - - - _this['spec'] = spec; - - }; - - /** - * Constructs a V1beta1SelfSubjectAccessReview from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1SelfSubjectAccessReview} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1SelfSubjectAccessReview} The populated V1beta1SelfSubjectAccessReview instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('apiVersion')) { - obj['apiVersion'] = ApiClient.convertToType(data['apiVersion'], 'String'); - } - if (data.hasOwnProperty('kind')) { - obj['kind'] = ApiClient.convertToType(data['kind'], 'String'); - } - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = V1ObjectMeta.constructFromObject(data['metadata']); - } - if (data.hasOwnProperty('spec')) { - obj['spec'] = V1beta1SelfSubjectAccessReviewSpec.constructFromObject(data['spec']); - } - if (data.hasOwnProperty('status')) { - obj['status'] = V1beta1SubjectAccessReviewStatus.constructFromObject(data['status']); - } - } - return obj; - } - - /** - * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - * @member {String} apiVersion - */ - exports.prototype['apiVersion'] = undefined; - /** - * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - * @member {String} kind - */ - exports.prototype['kind'] = undefined; - /** - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1ObjectMeta} metadata - */ - exports.prototype['metadata'] = undefined; - /** - * Spec holds information about the request being evaluated. user and groups must be empty - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1SelfSubjectAccessReviewSpec} spec - */ - exports.prototype['spec'] = undefined; - /** - * Status is filled in by the server and indicates whether the request is allowed or not - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1SubjectAccessReviewStatus} status - */ - exports.prototype['status'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1SelfSubjectAccessReviewSpec.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1SelfSubjectAccessReviewSpec.js deleted file mode 100644 index 0a3c32075d..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1SelfSubjectAccessReviewSpec.js +++ /dev/null @@ -1,90 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1NonResourceAttributes', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1ResourceAttributes'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1beta1NonResourceAttributes'), require('./V1beta1ResourceAttributes')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1beta1SelfSubjectAccessReviewSpec = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1beta1NonResourceAttributes, root.KubernetesJsClient.V1beta1ResourceAttributes); - } -}(this, function(ApiClient, V1beta1NonResourceAttributes, V1beta1ResourceAttributes) { - 'use strict'; - - - - - /** - * The V1beta1SelfSubjectAccessReviewSpec model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1beta1SelfSubjectAccessReviewSpec - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1beta1SelfSubjectAccessReviewSpec. - * SelfSubjectAccessReviewSpec is a description of the access request. Exactly one of ResourceAuthorizationAttributes and NonResourceAuthorizationAttributes must be set - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1beta1SelfSubjectAccessReviewSpec - * @class - */ - var exports = function() { - var _this = this; - - - - }; - - /** - * Constructs a V1beta1SelfSubjectAccessReviewSpec from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1SelfSubjectAccessReviewSpec} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1SelfSubjectAccessReviewSpec} The populated V1beta1SelfSubjectAccessReviewSpec instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('nonResourceAttributes')) { - obj['nonResourceAttributes'] = V1beta1NonResourceAttributes.constructFromObject(data['nonResourceAttributes']); - } - if (data.hasOwnProperty('resourceAttributes')) { - obj['resourceAttributes'] = V1beta1ResourceAttributes.constructFromObject(data['resourceAttributes']); - } - } - return obj; - } - - /** - * NonResourceAttributes describes information for a non-resource access request - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1NonResourceAttributes} nonResourceAttributes - */ - exports.prototype['nonResourceAttributes'] = undefined; - /** - * ResourceAuthorizationAttributes describes information for a resource access request - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1ResourceAttributes} resourceAttributes - */ - exports.prototype['resourceAttributes'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1StatefulSet.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1StatefulSet.js deleted file mode 100644 index aa6ba48acd..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1StatefulSet.js +++ /dev/null @@ -1,116 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1ObjectMeta', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1StatefulSetSpec', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1StatefulSetStatus'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1ObjectMeta'), require('./V1beta1StatefulSetSpec'), require('./V1beta1StatefulSetStatus')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1beta1StatefulSet = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1ObjectMeta, root.KubernetesJsClient.V1beta1StatefulSetSpec, root.KubernetesJsClient.V1beta1StatefulSetStatus); - } -}(this, function(ApiClient, V1ObjectMeta, V1beta1StatefulSetSpec, V1beta1StatefulSetStatus) { - 'use strict'; - - - - - /** - * The V1beta1StatefulSet model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1beta1StatefulSet - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1beta1StatefulSet. - * StatefulSet represents a set of pods with consistent identities. Identities are defined as: - Network: A single stable DNS and hostname. - Storage: As many VolumeClaims as requested. The StatefulSet guarantees that a given network identity will always map to the same storage identity. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1beta1StatefulSet - * @class - */ - var exports = function() { - var _this = this; - - - - - - - }; - - /** - * Constructs a V1beta1StatefulSet from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1StatefulSet} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1StatefulSet} The populated V1beta1StatefulSet instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('apiVersion')) { - obj['apiVersion'] = ApiClient.convertToType(data['apiVersion'], 'String'); - } - if (data.hasOwnProperty('kind')) { - obj['kind'] = ApiClient.convertToType(data['kind'], 'String'); - } - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = V1ObjectMeta.constructFromObject(data['metadata']); - } - if (data.hasOwnProperty('spec')) { - obj['spec'] = V1beta1StatefulSetSpec.constructFromObject(data['spec']); - } - if (data.hasOwnProperty('status')) { - obj['status'] = V1beta1StatefulSetStatus.constructFromObject(data['status']); - } - } - return obj; - } - - /** - * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - * @member {String} apiVersion - */ - exports.prototype['apiVersion'] = undefined; - /** - * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - * @member {String} kind - */ - exports.prototype['kind'] = undefined; - /** - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1ObjectMeta} metadata - */ - exports.prototype['metadata'] = undefined; - /** - * Spec defines the desired identities of pods in this set. - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1StatefulSetSpec} spec - */ - exports.prototype['spec'] = undefined; - /** - * Status is the current status of Pods in this StatefulSet. This data may be out of date by some window of time. - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1StatefulSetStatus} status - */ - exports.prototype['status'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1StatefulSetList.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1StatefulSetList.js deleted file mode 100644 index a2ccef69a2..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1StatefulSetList.js +++ /dev/null @@ -1,107 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1ListMeta', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1StatefulSet'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1ListMeta'), require('./V1beta1StatefulSet')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1beta1StatefulSetList = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1ListMeta, root.KubernetesJsClient.V1beta1StatefulSet); - } -}(this, function(ApiClient, V1ListMeta, V1beta1StatefulSet) { - 'use strict'; - - - - - /** - * The V1beta1StatefulSetList model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1beta1StatefulSetList - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1beta1StatefulSetList. - * StatefulSetList is a collection of StatefulSets. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1beta1StatefulSetList - * @class - * @param items {Array.} - */ - var exports = function(items) { - var _this = this; - - - _this['items'] = items; - - - }; - - /** - * Constructs a V1beta1StatefulSetList from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1StatefulSetList} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1StatefulSetList} The populated V1beta1StatefulSetList instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('apiVersion')) { - obj['apiVersion'] = ApiClient.convertToType(data['apiVersion'], 'String'); - } - if (data.hasOwnProperty('items')) { - obj['items'] = ApiClient.convertToType(data['items'], [V1beta1StatefulSet]); - } - if (data.hasOwnProperty('kind')) { - obj['kind'] = ApiClient.convertToType(data['kind'], 'String'); - } - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = V1ListMeta.constructFromObject(data['metadata']); - } - } - return obj; - } - - /** - * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - * @member {String} apiVersion - */ - exports.prototype['apiVersion'] = undefined; - /** - * @member {Array.} items - */ - exports.prototype['items'] = undefined; - /** - * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - * @member {String} kind - */ - exports.prototype['kind'] = undefined; - /** - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1ListMeta} metadata - */ - exports.prototype['metadata'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1StatefulSetSpec.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1StatefulSetSpec.js deleted file mode 100644 index 93586310ec..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1StatefulSetSpec.js +++ /dev/null @@ -1,119 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1LabelSelector', 'io.kubernetes.js/io.kubernetes.js.models/V1PersistentVolumeClaim', 'io.kubernetes.js/io.kubernetes.js.models/V1PodTemplateSpec'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1LabelSelector'), require('./V1PersistentVolumeClaim'), require('./V1PodTemplateSpec')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1beta1StatefulSetSpec = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1LabelSelector, root.KubernetesJsClient.V1PersistentVolumeClaim, root.KubernetesJsClient.V1PodTemplateSpec); - } -}(this, function(ApiClient, V1LabelSelector, V1PersistentVolumeClaim, V1PodTemplateSpec) { - 'use strict'; - - - - - /** - * The V1beta1StatefulSetSpec model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1beta1StatefulSetSpec - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1beta1StatefulSetSpec. - * A StatefulSetSpec is the specification of a StatefulSet. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1beta1StatefulSetSpec - * @class - * @param serviceName {String} ServiceName is the name of the service that governs this StatefulSet. This service must exist before the StatefulSet, and is responsible for the network identity of the set. Pods get DNS/hostnames that follow the pattern: pod-specific-string.serviceName.default.svc.cluster.local where \"pod-specific-string\" is managed by the StatefulSet controller. - * @param template {module:io.kubernetes.js/io.kubernetes.js.models/V1PodTemplateSpec} Template is the object that describes the pod that will be created if insufficient replicas are detected. Each pod stamped out by the StatefulSet will fulfill this Template, but have a unique identity from the rest of the StatefulSet. - */ - var exports = function(serviceName, template) { - var _this = this; - - - - _this['serviceName'] = serviceName; - _this['template'] = template; - - }; - - /** - * Constructs a V1beta1StatefulSetSpec from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1StatefulSetSpec} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1StatefulSetSpec} The populated V1beta1StatefulSetSpec instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('replicas')) { - obj['replicas'] = ApiClient.convertToType(data['replicas'], 'Number'); - } - if (data.hasOwnProperty('selector')) { - obj['selector'] = V1LabelSelector.constructFromObject(data['selector']); - } - if (data.hasOwnProperty('serviceName')) { - obj['serviceName'] = ApiClient.convertToType(data['serviceName'], 'String'); - } - if (data.hasOwnProperty('template')) { - obj['template'] = V1PodTemplateSpec.constructFromObject(data['template']); - } - if (data.hasOwnProperty('volumeClaimTemplates')) { - obj['volumeClaimTemplates'] = ApiClient.convertToType(data['volumeClaimTemplates'], [V1PersistentVolumeClaim]); - } - } - return obj; - } - - /** - * Replicas is the desired number of replicas of the given Template. These are replicas in the sense that they are instantiations of the same Template, but individual replicas also have a consistent identity. If unspecified, defaults to 1. - * @member {Number} replicas - */ - exports.prototype['replicas'] = undefined; - /** - * Selector is a label query over pods that should match the replica count. If empty, defaulted to labels on the pod template. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1LabelSelector} selector - */ - exports.prototype['selector'] = undefined; - /** - * ServiceName is the name of the service that governs this StatefulSet. This service must exist before the StatefulSet, and is responsible for the network identity of the set. Pods get DNS/hostnames that follow the pattern: pod-specific-string.serviceName.default.svc.cluster.local where \"pod-specific-string\" is managed by the StatefulSet controller. - * @member {String} serviceName - */ - exports.prototype['serviceName'] = undefined; - /** - * Template is the object that describes the pod that will be created if insufficient replicas are detected. Each pod stamped out by the StatefulSet will fulfill this Template, but have a unique identity from the rest of the StatefulSet. - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1PodTemplateSpec} template - */ - exports.prototype['template'] = undefined; - /** - * VolumeClaimTemplates is a list of claims that pods are allowed to reference. The StatefulSet controller is responsible for mapping network identities to claims in a way that maintains the identity of a pod. Every claim in this list must have at least one matching (by name) volumeMount in one container in the template. A claim in this list takes precedence over any volumes in the template, with the same name. - * @member {Array.} volumeClaimTemplates - */ - exports.prototype['volumeClaimTemplates'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1StatefulSetStatus.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1StatefulSetStatus.js deleted file mode 100644 index 74e5b08e98..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1StatefulSetStatus.js +++ /dev/null @@ -1,91 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1beta1StatefulSetStatus = factory(root.KubernetesJsClient.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - - /** - * The V1beta1StatefulSetStatus model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1beta1StatefulSetStatus - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1beta1StatefulSetStatus. - * StatefulSetStatus represents the current state of a StatefulSet. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1beta1StatefulSetStatus - * @class - * @param replicas {Number} Replicas is the number of actual replicas. - */ - var exports = function(replicas) { - var _this = this; - - - _this['replicas'] = replicas; - }; - - /** - * Constructs a V1beta1StatefulSetStatus from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1StatefulSetStatus} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1StatefulSetStatus} The populated V1beta1StatefulSetStatus instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('observedGeneration')) { - obj['observedGeneration'] = ApiClient.convertToType(data['observedGeneration'], 'Number'); - } - if (data.hasOwnProperty('replicas')) { - obj['replicas'] = ApiClient.convertToType(data['replicas'], 'Number'); - } - } - return obj; - } - - /** - * most recent generation observed by this StatefulSet. - * @member {Number} observedGeneration - */ - exports.prototype['observedGeneration'] = undefined; - /** - * Replicas is the number of actual replicas. - * @member {Number} replicas - */ - exports.prototype['replicas'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1StorageClass.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1StorageClass.js deleted file mode 100644 index 2d5285c1d3..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1StorageClass.js +++ /dev/null @@ -1,118 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1ObjectMeta'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1ObjectMeta')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1beta1StorageClass = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1ObjectMeta); - } -}(this, function(ApiClient, V1ObjectMeta) { - 'use strict'; - - - - - /** - * The V1beta1StorageClass model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1beta1StorageClass - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1beta1StorageClass. - * StorageClass describes the parameters for a class of storage for which PersistentVolumes can be dynamically provisioned. StorageClasses are non-namespaced; the name of the storage class according to etcd is in ObjectMeta.Name. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1beta1StorageClass - * @class - * @param provisioner {String} Provisioner indicates the type of the provisioner. - */ - var exports = function(provisioner) { - var _this = this; - - - - - - _this['provisioner'] = provisioner; - }; - - /** - * Constructs a V1beta1StorageClass from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1StorageClass} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1StorageClass} The populated V1beta1StorageClass instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('apiVersion')) { - obj['apiVersion'] = ApiClient.convertToType(data['apiVersion'], 'String'); - } - if (data.hasOwnProperty('kind')) { - obj['kind'] = ApiClient.convertToType(data['kind'], 'String'); - } - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = V1ObjectMeta.constructFromObject(data['metadata']); - } - if (data.hasOwnProperty('parameters')) { - obj['parameters'] = ApiClient.convertToType(data['parameters'], {'String': 'String'}); - } - if (data.hasOwnProperty('provisioner')) { - obj['provisioner'] = ApiClient.convertToType(data['provisioner'], 'String'); - } - } - return obj; - } - - /** - * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - * @member {String} apiVersion - */ - exports.prototype['apiVersion'] = undefined; - /** - * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - * @member {String} kind - */ - exports.prototype['kind'] = undefined; - /** - * Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1ObjectMeta} metadata - */ - exports.prototype['metadata'] = undefined; - /** - * Parameters holds the parameters for the provisioner that should create volumes of this storage class. - * @member {Object.} parameters - */ - exports.prototype['parameters'] = undefined; - /** - * Provisioner indicates the type of the provisioner. - * @member {String} provisioner - */ - exports.prototype['provisioner'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1StorageClassList.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1StorageClassList.js deleted file mode 100644 index 1d06fc5aaf..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1StorageClassList.js +++ /dev/null @@ -1,109 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1ListMeta', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1StorageClass'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1ListMeta'), require('./V1beta1StorageClass')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1beta1StorageClassList = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1ListMeta, root.KubernetesJsClient.V1beta1StorageClass); - } -}(this, function(ApiClient, V1ListMeta, V1beta1StorageClass) { - 'use strict'; - - - - - /** - * The V1beta1StorageClassList model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1beta1StorageClassList - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1beta1StorageClassList. - * StorageClassList is a collection of storage classes. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1beta1StorageClassList - * @class - * @param items {Array.} Items is the list of StorageClasses - */ - var exports = function(items) { - var _this = this; - - - _this['items'] = items; - - - }; - - /** - * Constructs a V1beta1StorageClassList from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1StorageClassList} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1StorageClassList} The populated V1beta1StorageClassList instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('apiVersion')) { - obj['apiVersion'] = ApiClient.convertToType(data['apiVersion'], 'String'); - } - if (data.hasOwnProperty('items')) { - obj['items'] = ApiClient.convertToType(data['items'], [V1beta1StorageClass]); - } - if (data.hasOwnProperty('kind')) { - obj['kind'] = ApiClient.convertToType(data['kind'], 'String'); - } - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = V1ListMeta.constructFromObject(data['metadata']); - } - } - return obj; - } - - /** - * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - * @member {String} apiVersion - */ - exports.prototype['apiVersion'] = undefined; - /** - * Items is the list of StorageClasses - * @member {Array.} items - */ - exports.prototype['items'] = undefined; - /** - * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - * @member {String} kind - */ - exports.prototype['kind'] = undefined; - /** - * Standard list metadata More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1ListMeta} metadata - */ - exports.prototype['metadata'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1Subject.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1Subject.js deleted file mode 100644 index 0b13d9513f..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1Subject.js +++ /dev/null @@ -1,110 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1beta1Subject = factory(root.KubernetesJsClient.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - - /** - * The V1beta1Subject model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1beta1Subject - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1beta1Subject. - * Subject contains a reference to the object or user identities a role binding applies to. This can either hold a direct API object reference, or a value for non-objects such as user and group names. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1beta1Subject - * @class - * @param kind {String} Kind of object being referenced. Values defined by this API group are \"User\", \"Group\", and \"ServiceAccount\". If the Authorizer does not recognized the kind value, the Authorizer should report an error. - * @param name {String} Name of the object being referenced. - */ - var exports = function(kind, name) { - var _this = this; - - - _this['kind'] = kind; - _this['name'] = name; - - }; - - /** - * Constructs a V1beta1Subject from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1Subject} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1Subject} The populated V1beta1Subject instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('apiGroup')) { - obj['apiGroup'] = ApiClient.convertToType(data['apiGroup'], 'String'); - } - if (data.hasOwnProperty('kind')) { - obj['kind'] = ApiClient.convertToType(data['kind'], 'String'); - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - } - if (data.hasOwnProperty('namespace')) { - obj['namespace'] = ApiClient.convertToType(data['namespace'], 'String'); - } - } - return obj; - } - - /** - * APIGroup holds the API group of the referenced subject. Defaults to \"\" for ServiceAccount subjects. Defaults to \"rbac.authorization.k8s.io\" for User and Group subjects. - * @member {String} apiGroup - */ - exports.prototype['apiGroup'] = undefined; - /** - * Kind of object being referenced. Values defined by this API group are \"User\", \"Group\", and \"ServiceAccount\". If the Authorizer does not recognized the kind value, the Authorizer should report an error. - * @member {String} kind - */ - exports.prototype['kind'] = undefined; - /** - * Name of the object being referenced. - * @member {String} name - */ - exports.prototype['name'] = undefined; - /** - * Namespace of the referenced object. If the object kind is non-namespace, such as \"User\" or \"Group\", and this value is not empty the Authorizer should report an error. - * @member {String} namespace - */ - exports.prototype['namespace'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1SubjectAccessReview.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1SubjectAccessReview.js deleted file mode 100644 index 4018d33d3a..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1SubjectAccessReview.js +++ /dev/null @@ -1,117 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1ObjectMeta', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1SubjectAccessReviewSpec', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1SubjectAccessReviewStatus'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1ObjectMeta'), require('./V1beta1SubjectAccessReviewSpec'), require('./V1beta1SubjectAccessReviewStatus')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1beta1SubjectAccessReview = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1ObjectMeta, root.KubernetesJsClient.V1beta1SubjectAccessReviewSpec, root.KubernetesJsClient.V1beta1SubjectAccessReviewStatus); - } -}(this, function(ApiClient, V1ObjectMeta, V1beta1SubjectAccessReviewSpec, V1beta1SubjectAccessReviewStatus) { - 'use strict'; - - - - - /** - * The V1beta1SubjectAccessReview model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1beta1SubjectAccessReview - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1beta1SubjectAccessReview. - * SubjectAccessReview checks whether or not a user or group can perform an action. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1beta1SubjectAccessReview - * @class - * @param spec {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1SubjectAccessReviewSpec} Spec holds information about the request being evaluated - */ - var exports = function(spec) { - var _this = this; - - - - - _this['spec'] = spec; - - }; - - /** - * Constructs a V1beta1SubjectAccessReview from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1SubjectAccessReview} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1SubjectAccessReview} The populated V1beta1SubjectAccessReview instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('apiVersion')) { - obj['apiVersion'] = ApiClient.convertToType(data['apiVersion'], 'String'); - } - if (data.hasOwnProperty('kind')) { - obj['kind'] = ApiClient.convertToType(data['kind'], 'String'); - } - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = V1ObjectMeta.constructFromObject(data['metadata']); - } - if (data.hasOwnProperty('spec')) { - obj['spec'] = V1beta1SubjectAccessReviewSpec.constructFromObject(data['spec']); - } - if (data.hasOwnProperty('status')) { - obj['status'] = V1beta1SubjectAccessReviewStatus.constructFromObject(data['status']); - } - } - return obj; - } - - /** - * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - * @member {String} apiVersion - */ - exports.prototype['apiVersion'] = undefined; - /** - * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - * @member {String} kind - */ - exports.prototype['kind'] = undefined; - /** - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1ObjectMeta} metadata - */ - exports.prototype['metadata'] = undefined; - /** - * Spec holds information about the request being evaluated - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1SubjectAccessReviewSpec} spec - */ - exports.prototype['spec'] = undefined; - /** - * Status is filled in by the server and indicates whether the request is allowed or not - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1SubjectAccessReviewStatus} status - */ - exports.prototype['status'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1SubjectAccessReviewSpec.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1SubjectAccessReviewSpec.js deleted file mode 100644 index 80885dafcf..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1SubjectAccessReviewSpec.js +++ /dev/null @@ -1,117 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1NonResourceAttributes', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1ResourceAttributes'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1beta1NonResourceAttributes'), require('./V1beta1ResourceAttributes')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1beta1SubjectAccessReviewSpec = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1beta1NonResourceAttributes, root.KubernetesJsClient.V1beta1ResourceAttributes); - } -}(this, function(ApiClient, V1beta1NonResourceAttributes, V1beta1ResourceAttributes) { - 'use strict'; - - - - - /** - * The V1beta1SubjectAccessReviewSpec model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1beta1SubjectAccessReviewSpec - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1beta1SubjectAccessReviewSpec. - * SubjectAccessReviewSpec is a description of the access request. Exactly one of ResourceAuthorizationAttributes and NonResourceAuthorizationAttributes must be set - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1beta1SubjectAccessReviewSpec - * @class - */ - var exports = function() { - var _this = this; - - - - - - - }; - - /** - * Constructs a V1beta1SubjectAccessReviewSpec from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1SubjectAccessReviewSpec} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1SubjectAccessReviewSpec} The populated V1beta1SubjectAccessReviewSpec instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('extra')) { - obj['extra'] = ApiClient.convertToType(data['extra'], {'String': ['String']}); - } - if (data.hasOwnProperty('group')) { - obj['group'] = ApiClient.convertToType(data['group'], ['String']); - } - if (data.hasOwnProperty('nonResourceAttributes')) { - obj['nonResourceAttributes'] = V1beta1NonResourceAttributes.constructFromObject(data['nonResourceAttributes']); - } - if (data.hasOwnProperty('resourceAttributes')) { - obj['resourceAttributes'] = V1beta1ResourceAttributes.constructFromObject(data['resourceAttributes']); - } - if (data.hasOwnProperty('user')) { - obj['user'] = ApiClient.convertToType(data['user'], 'String'); - } - } - return obj; - } - - /** - * Extra corresponds to the user.Info.GetExtra() method from the authenticator. Since that is input to the authorizer it needs a reflection here. - * @member {Object.>} extra - */ - exports.prototype['extra'] = undefined; - /** - * Groups is the groups you're testing for. - * @member {Array.} group - */ - exports.prototype['group'] = undefined; - /** - * NonResourceAttributes describes information for a non-resource access request - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1NonResourceAttributes} nonResourceAttributes - */ - exports.prototype['nonResourceAttributes'] = undefined; - /** - * ResourceAuthorizationAttributes describes information for a resource access request - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1ResourceAttributes} resourceAttributes - */ - exports.prototype['resourceAttributes'] = undefined; - /** - * User is the user you're testing for. If you specify \"User\" but not \"Group\", then is it interpreted as \"What if User were not a member of any groups - * @member {String} user - */ - exports.prototype['user'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1SubjectAccessReviewStatus.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1SubjectAccessReviewStatus.js deleted file mode 100644 index 8460f2a4fb..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1SubjectAccessReviewStatus.js +++ /dev/null @@ -1,100 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1beta1SubjectAccessReviewStatus = factory(root.KubernetesJsClient.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - - /** - * The V1beta1SubjectAccessReviewStatus model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1beta1SubjectAccessReviewStatus - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1beta1SubjectAccessReviewStatus. - * SubjectAccessReviewStatus - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1beta1SubjectAccessReviewStatus - * @class - * @param allowed {Boolean} Allowed is required. True if the action would be allowed, false otherwise. - */ - var exports = function(allowed) { - var _this = this; - - _this['allowed'] = allowed; - - - }; - - /** - * Constructs a V1beta1SubjectAccessReviewStatus from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1SubjectAccessReviewStatus} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1SubjectAccessReviewStatus} The populated V1beta1SubjectAccessReviewStatus instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('allowed')) { - obj['allowed'] = ApiClient.convertToType(data['allowed'], 'Boolean'); - } - if (data.hasOwnProperty('evaluationError')) { - obj['evaluationError'] = ApiClient.convertToType(data['evaluationError'], 'String'); - } - if (data.hasOwnProperty('reason')) { - obj['reason'] = ApiClient.convertToType(data['reason'], 'String'); - } - } - return obj; - } - - /** - * Allowed is required. True if the action would be allowed, false otherwise. - * @member {Boolean} allowed - */ - exports.prototype['allowed'] = undefined; - /** - * EvaluationError is an indication that some error occurred during the authorization check. It is entirely possible to get an error and be able to continue determine authorization status in spite of it. For instance, RBAC can be missing a role, but enough roles are still present and bound to reason about the request. - * @member {String} evaluationError - */ - exports.prototype['evaluationError'] = undefined; - /** - * Reason is optional. It indicates why a request was allowed or denied. - * @member {String} reason - */ - exports.prototype['reason'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1SupplementalGroupsStrategyOptions.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1SupplementalGroupsStrategyOptions.js deleted file mode 100644 index 3c076f2dcd..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1SupplementalGroupsStrategyOptions.js +++ /dev/null @@ -1,90 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1IDRange'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1beta1IDRange')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1beta1SupplementalGroupsStrategyOptions = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1beta1IDRange); - } -}(this, function(ApiClient, V1beta1IDRange) { - 'use strict'; - - - - - /** - * The V1beta1SupplementalGroupsStrategyOptions model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1beta1SupplementalGroupsStrategyOptions - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1beta1SupplementalGroupsStrategyOptions. - * SupplementalGroupsStrategyOptions defines the strategy type and options used to create the strategy. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1beta1SupplementalGroupsStrategyOptions - * @class - */ - var exports = function() { - var _this = this; - - - - }; - - /** - * Constructs a V1beta1SupplementalGroupsStrategyOptions from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1SupplementalGroupsStrategyOptions} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1SupplementalGroupsStrategyOptions} The populated V1beta1SupplementalGroupsStrategyOptions instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('ranges')) { - obj['ranges'] = ApiClient.convertToType(data['ranges'], [V1beta1IDRange]); - } - if (data.hasOwnProperty('rule')) { - obj['rule'] = ApiClient.convertToType(data['rule'], 'String'); - } - } - return obj; - } - - /** - * Ranges are the allowed ranges of supplemental groups. If you would like to force a single supplemental group then supply a single range with the same start and end. - * @member {Array.} ranges - */ - exports.prototype['ranges'] = undefined; - /** - * Rule is the strategy that will dictate what supplemental groups is used in the SecurityContext. - * @member {String} rule - */ - exports.prototype['rule'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1ThirdPartyResource.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1ThirdPartyResource.js deleted file mode 100644 index 0addb95b64..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1ThirdPartyResource.js +++ /dev/null @@ -1,117 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1ObjectMeta', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1APIVersion'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1ObjectMeta'), require('./V1beta1APIVersion')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1beta1ThirdPartyResource = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1ObjectMeta, root.KubernetesJsClient.V1beta1APIVersion); - } -}(this, function(ApiClient, V1ObjectMeta, V1beta1APIVersion) { - 'use strict'; - - - - - /** - * The V1beta1ThirdPartyResource model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1beta1ThirdPartyResource - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1beta1ThirdPartyResource. - * A ThirdPartyResource is a generic representation of a resource, it is used by add-ons and plugins to add new resource types to the API. It consists of one or more Versions of the api. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1beta1ThirdPartyResource - * @class - */ - var exports = function() { - var _this = this; - - - - - - - }; - - /** - * Constructs a V1beta1ThirdPartyResource from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1ThirdPartyResource} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1ThirdPartyResource} The populated V1beta1ThirdPartyResource instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('apiVersion')) { - obj['apiVersion'] = ApiClient.convertToType(data['apiVersion'], 'String'); - } - if (data.hasOwnProperty('description')) { - obj['description'] = ApiClient.convertToType(data['description'], 'String'); - } - if (data.hasOwnProperty('kind')) { - obj['kind'] = ApiClient.convertToType(data['kind'], 'String'); - } - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = V1ObjectMeta.constructFromObject(data['metadata']); - } - if (data.hasOwnProperty('versions')) { - obj['versions'] = ApiClient.convertToType(data['versions'], [V1beta1APIVersion]); - } - } - return obj; - } - - /** - * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - * @member {String} apiVersion - */ - exports.prototype['apiVersion'] = undefined; - /** - * Description is the description of this object. - * @member {String} description - */ - exports.prototype['description'] = undefined; - /** - * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - * @member {String} kind - */ - exports.prototype['kind'] = undefined; - /** - * Standard object metadata - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1ObjectMeta} metadata - */ - exports.prototype['metadata'] = undefined; - /** - * Versions are versions for this third party object - * @member {Array.} versions - */ - exports.prototype['versions'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1ThirdPartyResourceList.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1ThirdPartyResourceList.js deleted file mode 100644 index 2f85ff502a..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1ThirdPartyResourceList.js +++ /dev/null @@ -1,109 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1ListMeta', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1ThirdPartyResource'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1ListMeta'), require('./V1beta1ThirdPartyResource')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1beta1ThirdPartyResourceList = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1ListMeta, root.KubernetesJsClient.V1beta1ThirdPartyResource); - } -}(this, function(ApiClient, V1ListMeta, V1beta1ThirdPartyResource) { - 'use strict'; - - - - - /** - * The V1beta1ThirdPartyResourceList model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1beta1ThirdPartyResourceList - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1beta1ThirdPartyResourceList. - * ThirdPartyResourceList is a list of ThirdPartyResources. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1beta1ThirdPartyResourceList - * @class - * @param items {Array.} Items is the list of ThirdPartyResources. - */ - var exports = function(items) { - var _this = this; - - - _this['items'] = items; - - - }; - - /** - * Constructs a V1beta1ThirdPartyResourceList from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1ThirdPartyResourceList} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1ThirdPartyResourceList} The populated V1beta1ThirdPartyResourceList instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('apiVersion')) { - obj['apiVersion'] = ApiClient.convertToType(data['apiVersion'], 'String'); - } - if (data.hasOwnProperty('items')) { - obj['items'] = ApiClient.convertToType(data['items'], [V1beta1ThirdPartyResource]); - } - if (data.hasOwnProperty('kind')) { - obj['kind'] = ApiClient.convertToType(data['kind'], 'String'); - } - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = V1ListMeta.constructFromObject(data['metadata']); - } - } - return obj; - } - - /** - * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - * @member {String} apiVersion - */ - exports.prototype['apiVersion'] = undefined; - /** - * Items is the list of ThirdPartyResources. - * @member {Array.} items - */ - exports.prototype['items'] = undefined; - /** - * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - * @member {String} kind - */ - exports.prototype['kind'] = undefined; - /** - * Standard list metadata. - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1ListMeta} metadata - */ - exports.prototype['metadata'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1TokenReview.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1TokenReview.js deleted file mode 100644 index f62d634c4d..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1TokenReview.js +++ /dev/null @@ -1,117 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1ObjectMeta', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1TokenReviewSpec', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1TokenReviewStatus'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1ObjectMeta'), require('./V1beta1TokenReviewSpec'), require('./V1beta1TokenReviewStatus')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1beta1TokenReview = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1ObjectMeta, root.KubernetesJsClient.V1beta1TokenReviewSpec, root.KubernetesJsClient.V1beta1TokenReviewStatus); - } -}(this, function(ApiClient, V1ObjectMeta, V1beta1TokenReviewSpec, V1beta1TokenReviewStatus) { - 'use strict'; - - - - - /** - * The V1beta1TokenReview model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1beta1TokenReview - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1beta1TokenReview. - * TokenReview attempts to authenticate a token to a known user. Note: TokenReview requests may be cached by the webhook token authenticator plugin in the kube-apiserver. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1beta1TokenReview - * @class - * @param spec {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1TokenReviewSpec} Spec holds information about the request being evaluated - */ - var exports = function(spec) { - var _this = this; - - - - - _this['spec'] = spec; - - }; - - /** - * Constructs a V1beta1TokenReview from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1TokenReview} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1TokenReview} The populated V1beta1TokenReview instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('apiVersion')) { - obj['apiVersion'] = ApiClient.convertToType(data['apiVersion'], 'String'); - } - if (data.hasOwnProperty('kind')) { - obj['kind'] = ApiClient.convertToType(data['kind'], 'String'); - } - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = V1ObjectMeta.constructFromObject(data['metadata']); - } - if (data.hasOwnProperty('spec')) { - obj['spec'] = V1beta1TokenReviewSpec.constructFromObject(data['spec']); - } - if (data.hasOwnProperty('status')) { - obj['status'] = V1beta1TokenReviewStatus.constructFromObject(data['status']); - } - } - return obj; - } - - /** - * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - * @member {String} apiVersion - */ - exports.prototype['apiVersion'] = undefined; - /** - * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - * @member {String} kind - */ - exports.prototype['kind'] = undefined; - /** - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1ObjectMeta} metadata - */ - exports.prototype['metadata'] = undefined; - /** - * Spec holds information about the request being evaluated - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1TokenReviewSpec} spec - */ - exports.prototype['spec'] = undefined; - /** - * Status is filled in by the server and indicates whether the request can be authenticated. - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1TokenReviewStatus} status - */ - exports.prototype['status'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1TokenReviewSpec.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1TokenReviewSpec.js deleted file mode 100644 index cbaaa8dd45..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1TokenReviewSpec.js +++ /dev/null @@ -1,81 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1beta1TokenReviewSpec = factory(root.KubernetesJsClient.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - - /** - * The V1beta1TokenReviewSpec model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1beta1TokenReviewSpec - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1beta1TokenReviewSpec. - * TokenReviewSpec is a description of the token authentication request. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1beta1TokenReviewSpec - * @class - */ - var exports = function() { - var _this = this; - - - }; - - /** - * Constructs a V1beta1TokenReviewSpec from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1TokenReviewSpec} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1TokenReviewSpec} The populated V1beta1TokenReviewSpec instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('token')) { - obj['token'] = ApiClient.convertToType(data['token'], 'String'); - } - } - return obj; - } - - /** - * Token is the opaque bearer token. - * @member {String} token - */ - exports.prototype['token'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1TokenReviewStatus.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1TokenReviewStatus.js deleted file mode 100644 index d1f58e751a..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1TokenReviewStatus.js +++ /dev/null @@ -1,99 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1beta1UserInfo'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1beta1UserInfo')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1beta1TokenReviewStatus = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1beta1UserInfo); - } -}(this, function(ApiClient, V1beta1UserInfo) { - 'use strict'; - - - - - /** - * The V1beta1TokenReviewStatus model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1beta1TokenReviewStatus - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1beta1TokenReviewStatus. - * TokenReviewStatus is the result of the token authentication request. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1beta1TokenReviewStatus - * @class - */ - var exports = function() { - var _this = this; - - - - - }; - - /** - * Constructs a V1beta1TokenReviewStatus from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1TokenReviewStatus} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1TokenReviewStatus} The populated V1beta1TokenReviewStatus instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('authenticated')) { - obj['authenticated'] = ApiClient.convertToType(data['authenticated'], 'Boolean'); - } - if (data.hasOwnProperty('error')) { - obj['error'] = ApiClient.convertToType(data['error'], 'String'); - } - if (data.hasOwnProperty('user')) { - obj['user'] = V1beta1UserInfo.constructFromObject(data['user']); - } - } - return obj; - } - - /** - * Authenticated indicates that the token was associated with a known user. - * @member {Boolean} authenticated - */ - exports.prototype['authenticated'] = undefined; - /** - * Error indicates that the token couldn't be checked - * @member {String} error - */ - exports.prototype['error'] = undefined; - /** - * User is the UserInfo associated with the provided token. - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1UserInfo} user - */ - exports.prototype['user'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1UserInfo.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1UserInfo.js deleted file mode 100644 index 1d216a58df..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V1beta1UserInfo.js +++ /dev/null @@ -1,108 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V1beta1UserInfo = factory(root.KubernetesJsClient.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - - /** - * The V1beta1UserInfo model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V1beta1UserInfo - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V1beta1UserInfo. - * UserInfo holds the information about the user needed to implement the user.Info interface. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V1beta1UserInfo - * @class - */ - var exports = function() { - var _this = this; - - - - - - }; - - /** - * Constructs a V1beta1UserInfo from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1UserInfo} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V1beta1UserInfo} The populated V1beta1UserInfo instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('extra')) { - obj['extra'] = ApiClient.convertToType(data['extra'], {'String': ['String']}); - } - if (data.hasOwnProperty('groups')) { - obj['groups'] = ApiClient.convertToType(data['groups'], ['String']); - } - if (data.hasOwnProperty('uid')) { - obj['uid'] = ApiClient.convertToType(data['uid'], 'String'); - } - if (data.hasOwnProperty('username')) { - obj['username'] = ApiClient.convertToType(data['username'], 'String'); - } - } - return obj; - } - - /** - * Any additional information provided by the authenticator. - * @member {Object.>} extra - */ - exports.prototype['extra'] = undefined; - /** - * The names of groups this user is a part of. - * @member {Array.} groups - */ - exports.prototype['groups'] = undefined; - /** - * A unique value that identifies this user across time. If this user is deleted and another user by the same name is added, they will have different UIDs. - * @member {String} uid - */ - exports.prototype['uid'] = undefined; - /** - * The name that uniquely identifies this user among all active users. - * @member {String} username - */ - exports.prototype['username'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V2alpha1CronJob.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V2alpha1CronJob.js deleted file mode 100644 index fd1aa27f1d..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V2alpha1CronJob.js +++ /dev/null @@ -1,117 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1ObjectMeta', 'io.kubernetes.js/io.kubernetes.js.models/V2alpha1CronJobSpec', 'io.kubernetes.js/io.kubernetes.js.models/V2alpha1CronJobStatus'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1ObjectMeta'), require('./V2alpha1CronJobSpec'), require('./V2alpha1CronJobStatus')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V2alpha1CronJob = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1ObjectMeta, root.KubernetesJsClient.V2alpha1CronJobSpec, root.KubernetesJsClient.V2alpha1CronJobStatus); - } -}(this, function(ApiClient, V1ObjectMeta, V2alpha1CronJobSpec, V2alpha1CronJobStatus) { - 'use strict'; - - - - - /** - * The V2alpha1CronJob model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V2alpha1CronJob - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V2alpha1CronJob. - * CronJob represents the configuration of a single cron job. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V2alpha1CronJob - * @class - */ - var exports = function() { - var _this = this; - - - - - - - }; - - /** - * Constructs a V2alpha1CronJob from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V2alpha1CronJob} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V2alpha1CronJob} The populated V2alpha1CronJob instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('apiVersion')) { - obj['apiVersion'] = ApiClient.convertToType(data['apiVersion'], 'String'); - } - if (data.hasOwnProperty('kind')) { - obj['kind'] = ApiClient.convertToType(data['kind'], 'String'); - } - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = V1ObjectMeta.constructFromObject(data['metadata']); - } - if (data.hasOwnProperty('spec')) { - obj['spec'] = V2alpha1CronJobSpec.constructFromObject(data['spec']); - } - if (data.hasOwnProperty('status')) { - obj['status'] = V2alpha1CronJobStatus.constructFromObject(data['status']); - } - } - return obj; - } - - /** - * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - * @member {String} apiVersion - */ - exports.prototype['apiVersion'] = undefined; - /** - * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - * @member {String} kind - */ - exports.prototype['kind'] = undefined; - /** - * Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1ObjectMeta} metadata - */ - exports.prototype['metadata'] = undefined; - /** - * Spec is a structure defining the expected behavior of a job, including the schedule. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V2alpha1CronJobSpec} spec - */ - exports.prototype['spec'] = undefined; - /** - * Status is a structure describing current status of a job. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V2alpha1CronJobStatus} status - */ - exports.prototype['status'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V2alpha1CronJobList.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V2alpha1CronJobList.js deleted file mode 100644 index 970eb550f1..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V2alpha1CronJobList.js +++ /dev/null @@ -1,109 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1ListMeta', 'io.kubernetes.js/io.kubernetes.js.models/V2alpha1CronJob'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1ListMeta'), require('./V2alpha1CronJob')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V2alpha1CronJobList = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1ListMeta, root.KubernetesJsClient.V2alpha1CronJob); - } -}(this, function(ApiClient, V1ListMeta, V2alpha1CronJob) { - 'use strict'; - - - - - /** - * The V2alpha1CronJobList model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V2alpha1CronJobList - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V2alpha1CronJobList. - * CronJobList is a collection of cron jobs. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V2alpha1CronJobList - * @class - * @param items {Array.} Items is the list of CronJob. - */ - var exports = function(items) { - var _this = this; - - - _this['items'] = items; - - - }; - - /** - * Constructs a V2alpha1CronJobList from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V2alpha1CronJobList} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V2alpha1CronJobList} The populated V2alpha1CronJobList instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('apiVersion')) { - obj['apiVersion'] = ApiClient.convertToType(data['apiVersion'], 'String'); - } - if (data.hasOwnProperty('items')) { - obj['items'] = ApiClient.convertToType(data['items'], [V2alpha1CronJob]); - } - if (data.hasOwnProperty('kind')) { - obj['kind'] = ApiClient.convertToType(data['kind'], 'String'); - } - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = V1ListMeta.constructFromObject(data['metadata']); - } - } - return obj; - } - - /** - * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - * @member {String} apiVersion - */ - exports.prototype['apiVersion'] = undefined; - /** - * Items is the list of CronJob. - * @member {Array.} items - */ - exports.prototype['items'] = undefined; - /** - * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - * @member {String} kind - */ - exports.prototype['kind'] = undefined; - /** - * Standard list metadata More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1ListMeta} metadata - */ - exports.prototype['metadata'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V2alpha1CronJobSpec.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V2alpha1CronJobSpec.js deleted file mode 100644 index 88bacccc41..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V2alpha1CronJobSpec.js +++ /dev/null @@ -1,137 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V2alpha1JobTemplateSpec'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V2alpha1JobTemplateSpec')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V2alpha1CronJobSpec = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V2alpha1JobTemplateSpec); - } -}(this, function(ApiClient, V2alpha1JobTemplateSpec) { - 'use strict'; - - - - - /** - * The V2alpha1CronJobSpec model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V2alpha1CronJobSpec - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V2alpha1CronJobSpec. - * CronJobSpec describes how the job execution will look like and when it will actually run. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V2alpha1CronJobSpec - * @class - * @param jobTemplate {module:io.kubernetes.js/io.kubernetes.js.models/V2alpha1JobTemplateSpec} JobTemplate is the object that describes the job that will be created when executing a CronJob. - * @param schedule {String} Schedule contains the schedule in Cron format, see https://en.wikipedia.org/wiki/Cron. - */ - var exports = function(jobTemplate, schedule) { - var _this = this; - - - - _this['jobTemplate'] = jobTemplate; - _this['schedule'] = schedule; - - - - }; - - /** - * Constructs a V2alpha1CronJobSpec from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V2alpha1CronJobSpec} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V2alpha1CronJobSpec} The populated V2alpha1CronJobSpec instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('concurrencyPolicy')) { - obj['concurrencyPolicy'] = ApiClient.convertToType(data['concurrencyPolicy'], 'String'); - } - if (data.hasOwnProperty('failedJobsHistoryLimit')) { - obj['failedJobsHistoryLimit'] = ApiClient.convertToType(data['failedJobsHistoryLimit'], 'Number'); - } - if (data.hasOwnProperty('jobTemplate')) { - obj['jobTemplate'] = V2alpha1JobTemplateSpec.constructFromObject(data['jobTemplate']); - } - if (data.hasOwnProperty('schedule')) { - obj['schedule'] = ApiClient.convertToType(data['schedule'], 'String'); - } - if (data.hasOwnProperty('startingDeadlineSeconds')) { - obj['startingDeadlineSeconds'] = ApiClient.convertToType(data['startingDeadlineSeconds'], 'Number'); - } - if (data.hasOwnProperty('successfulJobsHistoryLimit')) { - obj['successfulJobsHistoryLimit'] = ApiClient.convertToType(data['successfulJobsHistoryLimit'], 'Number'); - } - if (data.hasOwnProperty('suspend')) { - obj['suspend'] = ApiClient.convertToType(data['suspend'], 'Boolean'); - } - } - return obj; - } - - /** - * ConcurrencyPolicy specifies how to treat concurrent executions of a Job. Defaults to Allow. - * @member {String} concurrencyPolicy - */ - exports.prototype['concurrencyPolicy'] = undefined; - /** - * The number of failed finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified. - * @member {Number} failedJobsHistoryLimit - */ - exports.prototype['failedJobsHistoryLimit'] = undefined; - /** - * JobTemplate is the object that describes the job that will be created when executing a CronJob. - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V2alpha1JobTemplateSpec} jobTemplate - */ - exports.prototype['jobTemplate'] = undefined; - /** - * Schedule contains the schedule in Cron format, see https://en.wikipedia.org/wiki/Cron. - * @member {String} schedule - */ - exports.prototype['schedule'] = undefined; - /** - * Optional deadline in seconds for starting the job if it misses scheduled time for any reason. Missed jobs executions will be counted as failed ones. - * @member {Number} startingDeadlineSeconds - */ - exports.prototype['startingDeadlineSeconds'] = undefined; - /** - * The number of successful finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified. - * @member {Number} successfulJobsHistoryLimit - */ - exports.prototype['successfulJobsHistoryLimit'] = undefined; - /** - * Suspend flag tells the controller to suspend subsequent executions, it does not apply to already started executions. Defaults to false. - * @member {Boolean} suspend - */ - exports.prototype['suspend'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V2alpha1CronJobStatus.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V2alpha1CronJobStatus.js deleted file mode 100644 index 854b2ae3e0..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V2alpha1CronJobStatus.js +++ /dev/null @@ -1,90 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1ObjectReference'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1ObjectReference')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V2alpha1CronJobStatus = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1ObjectReference); - } -}(this, function(ApiClient, V1ObjectReference) { - 'use strict'; - - - - - /** - * The V2alpha1CronJobStatus model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V2alpha1CronJobStatus - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V2alpha1CronJobStatus. - * CronJobStatus represents the current state of a cron job. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V2alpha1CronJobStatus - * @class - */ - var exports = function() { - var _this = this; - - - - }; - - /** - * Constructs a V2alpha1CronJobStatus from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V2alpha1CronJobStatus} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V2alpha1CronJobStatus} The populated V2alpha1CronJobStatus instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('active')) { - obj['active'] = ApiClient.convertToType(data['active'], [V1ObjectReference]); - } - if (data.hasOwnProperty('lastScheduleTime')) { - obj['lastScheduleTime'] = ApiClient.convertToType(data['lastScheduleTime'], 'Date'); - } - } - return obj; - } - - /** - * Active holds pointers to currently running jobs. - * @member {Array.} active - */ - exports.prototype['active'] = undefined; - /** - * LastScheduleTime keeps information of when was the last time the job was successfully scheduled. - * @member {Date} lastScheduleTime - */ - exports.prototype['lastScheduleTime'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V2alpha1CrossVersionObjectReference.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V2alpha1CrossVersionObjectReference.js deleted file mode 100644 index de92b26c26..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V2alpha1CrossVersionObjectReference.js +++ /dev/null @@ -1,101 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V2alpha1CrossVersionObjectReference = factory(root.KubernetesJsClient.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - - /** - * The V2alpha1CrossVersionObjectReference model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V2alpha1CrossVersionObjectReference - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V2alpha1CrossVersionObjectReference. - * CrossVersionObjectReference contains enough information to let you identify the referred resource. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V2alpha1CrossVersionObjectReference - * @class - * @param kind {String} Kind of the referent; More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds\" - * @param name {String} Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names - */ - var exports = function(kind, name) { - var _this = this; - - - _this['kind'] = kind; - _this['name'] = name; - }; - - /** - * Constructs a V2alpha1CrossVersionObjectReference from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V2alpha1CrossVersionObjectReference} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V2alpha1CrossVersionObjectReference} The populated V2alpha1CrossVersionObjectReference instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('apiVersion')) { - obj['apiVersion'] = ApiClient.convertToType(data['apiVersion'], 'String'); - } - if (data.hasOwnProperty('kind')) { - obj['kind'] = ApiClient.convertToType(data['kind'], 'String'); - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - } - } - return obj; - } - - /** - * API version of the referent - * @member {String} apiVersion - */ - exports.prototype['apiVersion'] = undefined; - /** - * Kind of the referent; More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds\" - * @member {String} kind - */ - exports.prototype['kind'] = undefined; - /** - * Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names - * @member {String} name - */ - exports.prototype['name'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V2alpha1HorizontalPodAutoscaler.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V2alpha1HorizontalPodAutoscaler.js deleted file mode 100644 index e43f0f2636..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V2alpha1HorizontalPodAutoscaler.js +++ /dev/null @@ -1,117 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1ObjectMeta', 'io.kubernetes.js/io.kubernetes.js.models/V2alpha1HorizontalPodAutoscalerSpec', 'io.kubernetes.js/io.kubernetes.js.models/V2alpha1HorizontalPodAutoscalerStatus'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1ObjectMeta'), require('./V2alpha1HorizontalPodAutoscalerSpec'), require('./V2alpha1HorizontalPodAutoscalerStatus')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V2alpha1HorizontalPodAutoscaler = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1ObjectMeta, root.KubernetesJsClient.V2alpha1HorizontalPodAutoscalerSpec, root.KubernetesJsClient.V2alpha1HorizontalPodAutoscalerStatus); - } -}(this, function(ApiClient, V1ObjectMeta, V2alpha1HorizontalPodAutoscalerSpec, V2alpha1HorizontalPodAutoscalerStatus) { - 'use strict'; - - - - - /** - * The V2alpha1HorizontalPodAutoscaler model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V2alpha1HorizontalPodAutoscaler - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V2alpha1HorizontalPodAutoscaler. - * HorizontalPodAutoscaler is the configuration for a horizontal pod autoscaler, which automatically manages the replica count of any resource implementing the scale subresource based on the metrics specified. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V2alpha1HorizontalPodAutoscaler - * @class - */ - var exports = function() { - var _this = this; - - - - - - - }; - - /** - * Constructs a V2alpha1HorizontalPodAutoscaler from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V2alpha1HorizontalPodAutoscaler} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V2alpha1HorizontalPodAutoscaler} The populated V2alpha1HorizontalPodAutoscaler instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('apiVersion')) { - obj['apiVersion'] = ApiClient.convertToType(data['apiVersion'], 'String'); - } - if (data.hasOwnProperty('kind')) { - obj['kind'] = ApiClient.convertToType(data['kind'], 'String'); - } - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = V1ObjectMeta.constructFromObject(data['metadata']); - } - if (data.hasOwnProperty('spec')) { - obj['spec'] = V2alpha1HorizontalPodAutoscalerSpec.constructFromObject(data['spec']); - } - if (data.hasOwnProperty('status')) { - obj['status'] = V2alpha1HorizontalPodAutoscalerStatus.constructFromObject(data['status']); - } - } - return obj; - } - - /** - * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - * @member {String} apiVersion - */ - exports.prototype['apiVersion'] = undefined; - /** - * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - * @member {String} kind - */ - exports.prototype['kind'] = undefined; - /** - * metadata is the standard object metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1ObjectMeta} metadata - */ - exports.prototype['metadata'] = undefined; - /** - * spec is the specification for the behaviour of the autoscaler. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status. - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V2alpha1HorizontalPodAutoscalerSpec} spec - */ - exports.prototype['spec'] = undefined; - /** - * status is the current information about the autoscaler. - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V2alpha1HorizontalPodAutoscalerStatus} status - */ - exports.prototype['status'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V2alpha1HorizontalPodAutoscalerList.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V2alpha1HorizontalPodAutoscalerList.js deleted file mode 100644 index d306999097..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V2alpha1HorizontalPodAutoscalerList.js +++ /dev/null @@ -1,109 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1ListMeta', 'io.kubernetes.js/io.kubernetes.js.models/V2alpha1HorizontalPodAutoscaler'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1ListMeta'), require('./V2alpha1HorizontalPodAutoscaler')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V2alpha1HorizontalPodAutoscalerList = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1ListMeta, root.KubernetesJsClient.V2alpha1HorizontalPodAutoscaler); - } -}(this, function(ApiClient, V1ListMeta, V2alpha1HorizontalPodAutoscaler) { - 'use strict'; - - - - - /** - * The V2alpha1HorizontalPodAutoscalerList model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V2alpha1HorizontalPodAutoscalerList - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V2alpha1HorizontalPodAutoscalerList. - * HorizontalPodAutoscaler is a list of horizontal pod autoscaler objects. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V2alpha1HorizontalPodAutoscalerList - * @class - * @param items {Array.} items is the list of horizontal pod autoscaler objects. - */ - var exports = function(items) { - var _this = this; - - - _this['items'] = items; - - - }; - - /** - * Constructs a V2alpha1HorizontalPodAutoscalerList from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V2alpha1HorizontalPodAutoscalerList} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V2alpha1HorizontalPodAutoscalerList} The populated V2alpha1HorizontalPodAutoscalerList instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('apiVersion')) { - obj['apiVersion'] = ApiClient.convertToType(data['apiVersion'], 'String'); - } - if (data.hasOwnProperty('items')) { - obj['items'] = ApiClient.convertToType(data['items'], [V2alpha1HorizontalPodAutoscaler]); - } - if (data.hasOwnProperty('kind')) { - obj['kind'] = ApiClient.convertToType(data['kind'], 'String'); - } - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = V1ListMeta.constructFromObject(data['metadata']); - } - } - return obj; - } - - /** - * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources - * @member {String} apiVersion - */ - exports.prototype['apiVersion'] = undefined; - /** - * items is the list of horizontal pod autoscaler objects. - * @member {Array.} items - */ - exports.prototype['items'] = undefined; - /** - * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds - * @member {String} kind - */ - exports.prototype['kind'] = undefined; - /** - * metadata is the standard list metadata. - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1ListMeta} metadata - */ - exports.prototype['metadata'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V2alpha1HorizontalPodAutoscalerSpec.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V2alpha1HorizontalPodAutoscalerSpec.js deleted file mode 100644 index 6ed997e9fa..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V2alpha1HorizontalPodAutoscalerSpec.js +++ /dev/null @@ -1,110 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V2alpha1CrossVersionObjectReference', 'io.kubernetes.js/io.kubernetes.js.models/V2alpha1MetricSpec'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V2alpha1CrossVersionObjectReference'), require('./V2alpha1MetricSpec')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V2alpha1HorizontalPodAutoscalerSpec = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V2alpha1CrossVersionObjectReference, root.KubernetesJsClient.V2alpha1MetricSpec); - } -}(this, function(ApiClient, V2alpha1CrossVersionObjectReference, V2alpha1MetricSpec) { - 'use strict'; - - - - - /** - * The V2alpha1HorizontalPodAutoscalerSpec model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V2alpha1HorizontalPodAutoscalerSpec - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V2alpha1HorizontalPodAutoscalerSpec. - * HorizontalPodAutoscalerSpec describes the desired functionality of the HorizontalPodAutoscaler. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V2alpha1HorizontalPodAutoscalerSpec - * @class - * @param maxReplicas {Number} maxReplicas is the upper limit for the number of replicas to which the autoscaler can scale up. It cannot be less that minReplicas. - * @param scaleTargetRef {module:io.kubernetes.js/io.kubernetes.js.models/V2alpha1CrossVersionObjectReference} scaleTargetRef points to the target resource to scale, and is used to the pods for which metrics should be collected, as well as to actually change the replica count. - */ - var exports = function(maxReplicas, scaleTargetRef) { - var _this = this; - - _this['maxReplicas'] = maxReplicas; - - - _this['scaleTargetRef'] = scaleTargetRef; - }; - - /** - * Constructs a V2alpha1HorizontalPodAutoscalerSpec from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V2alpha1HorizontalPodAutoscalerSpec} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V2alpha1HorizontalPodAutoscalerSpec} The populated V2alpha1HorizontalPodAutoscalerSpec instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('maxReplicas')) { - obj['maxReplicas'] = ApiClient.convertToType(data['maxReplicas'], 'Number'); - } - if (data.hasOwnProperty('metrics')) { - obj['metrics'] = ApiClient.convertToType(data['metrics'], [V2alpha1MetricSpec]); - } - if (data.hasOwnProperty('minReplicas')) { - obj['minReplicas'] = ApiClient.convertToType(data['minReplicas'], 'Number'); - } - if (data.hasOwnProperty('scaleTargetRef')) { - obj['scaleTargetRef'] = V2alpha1CrossVersionObjectReference.constructFromObject(data['scaleTargetRef']); - } - } - return obj; - } - - /** - * maxReplicas is the upper limit for the number of replicas to which the autoscaler can scale up. It cannot be less that minReplicas. - * @member {Number} maxReplicas - */ - exports.prototype['maxReplicas'] = undefined; - /** - * metrics contains the specifications for which to use to calculate the desired replica count (the maximum replica count across all metrics will be used). The desired replica count is calculated multiplying the ratio between the target value and the current value by the current number of pods. Ergo, metrics used must decrease as the pod count is increased, and vice-versa. See the individual metric source types for more information about how each type of metric must respond. - * @member {Array.} metrics - */ - exports.prototype['metrics'] = undefined; - /** - * minReplicas is the lower limit for the number of replicas to which the autoscaler can scale down. It defaults to 1 pod. - * @member {Number} minReplicas - */ - exports.prototype['minReplicas'] = undefined; - /** - * scaleTargetRef points to the target resource to scale, and is used to the pods for which metrics should be collected, as well as to actually change the replica count. - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V2alpha1CrossVersionObjectReference} scaleTargetRef - */ - exports.prototype['scaleTargetRef'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V2alpha1HorizontalPodAutoscalerStatus.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V2alpha1HorizontalPodAutoscalerStatus.js deleted file mode 100644 index bd9c21b350..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V2alpha1HorizontalPodAutoscalerStatus.js +++ /dev/null @@ -1,120 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V2alpha1MetricStatus'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V2alpha1MetricStatus')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V2alpha1HorizontalPodAutoscalerStatus = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V2alpha1MetricStatus); - } -}(this, function(ApiClient, V2alpha1MetricStatus) { - 'use strict'; - - - - - /** - * The V2alpha1HorizontalPodAutoscalerStatus model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V2alpha1HorizontalPodAutoscalerStatus - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V2alpha1HorizontalPodAutoscalerStatus. - * HorizontalPodAutoscalerStatus describes the current status of a horizontal pod autoscaler. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V2alpha1HorizontalPodAutoscalerStatus - * @class - * @param currentMetrics {Array.} currentMetrics is the last read state of the metrics used by this autoscaler. - * @param currentReplicas {Number} currentReplicas is current number of replicas of pods managed by this autoscaler, as last seen by the autoscaler. - * @param desiredReplicas {Number} desiredReplicas is the desired number of replicas of pods managed by this autoscaler, as last calculated by the autoscaler. - */ - var exports = function(currentMetrics, currentReplicas, desiredReplicas) { - var _this = this; - - _this['currentMetrics'] = currentMetrics; - _this['currentReplicas'] = currentReplicas; - _this['desiredReplicas'] = desiredReplicas; - - - }; - - /** - * Constructs a V2alpha1HorizontalPodAutoscalerStatus from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V2alpha1HorizontalPodAutoscalerStatus} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V2alpha1HorizontalPodAutoscalerStatus} The populated V2alpha1HorizontalPodAutoscalerStatus instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('currentMetrics')) { - obj['currentMetrics'] = ApiClient.convertToType(data['currentMetrics'], [V2alpha1MetricStatus]); - } - if (data.hasOwnProperty('currentReplicas')) { - obj['currentReplicas'] = ApiClient.convertToType(data['currentReplicas'], 'Number'); - } - if (data.hasOwnProperty('desiredReplicas')) { - obj['desiredReplicas'] = ApiClient.convertToType(data['desiredReplicas'], 'Number'); - } - if (data.hasOwnProperty('lastScaleTime')) { - obj['lastScaleTime'] = ApiClient.convertToType(data['lastScaleTime'], 'Date'); - } - if (data.hasOwnProperty('observedGeneration')) { - obj['observedGeneration'] = ApiClient.convertToType(data['observedGeneration'], 'Number'); - } - } - return obj; - } - - /** - * currentMetrics is the last read state of the metrics used by this autoscaler. - * @member {Array.} currentMetrics - */ - exports.prototype['currentMetrics'] = undefined; - /** - * currentReplicas is current number of replicas of pods managed by this autoscaler, as last seen by the autoscaler. - * @member {Number} currentReplicas - */ - exports.prototype['currentReplicas'] = undefined; - /** - * desiredReplicas is the desired number of replicas of pods managed by this autoscaler, as last calculated by the autoscaler. - * @member {Number} desiredReplicas - */ - exports.prototype['desiredReplicas'] = undefined; - /** - * lastScaleTime is the last time the HorizontalPodAutoscaler scaled the number of pods, used by the autoscaler to control how often the number of pods is changed. - * @member {Date} lastScaleTime - */ - exports.prototype['lastScaleTime'] = undefined; - /** - * observedGeneration is the most recent generation observed by this autoscaler. - * @member {Number} observedGeneration - */ - exports.prototype['observedGeneration'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V2alpha1JobTemplateSpec.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V2alpha1JobTemplateSpec.js deleted file mode 100644 index 1057df3b20..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V2alpha1JobTemplateSpec.js +++ /dev/null @@ -1,90 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V1JobSpec', 'io.kubernetes.js/io.kubernetes.js.models/V1ObjectMeta'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V1JobSpec'), require('./V1ObjectMeta')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V2alpha1JobTemplateSpec = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V1JobSpec, root.KubernetesJsClient.V1ObjectMeta); - } -}(this, function(ApiClient, V1JobSpec, V1ObjectMeta) { - 'use strict'; - - - - - /** - * The V2alpha1JobTemplateSpec model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V2alpha1JobTemplateSpec - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V2alpha1JobTemplateSpec. - * JobTemplateSpec describes the data a Job should have when created from a template - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V2alpha1JobTemplateSpec - * @class - */ - var exports = function() { - var _this = this; - - - - }; - - /** - * Constructs a V2alpha1JobTemplateSpec from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V2alpha1JobTemplateSpec} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V2alpha1JobTemplateSpec} The populated V2alpha1JobTemplateSpec instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = V1ObjectMeta.constructFromObject(data['metadata']); - } - if (data.hasOwnProperty('spec')) { - obj['spec'] = V1JobSpec.constructFromObject(data['spec']); - } - } - return obj; - } - - /** - * Standard object's metadata of the jobs created from this template. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1ObjectMeta} metadata - */ - exports.prototype['metadata'] = undefined; - /** - * Specification of the desired behavior of the job. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V1JobSpec} spec - */ - exports.prototype['spec'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V2alpha1MetricSpec.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V2alpha1MetricSpec.js deleted file mode 100644 index 52bbbc54d3..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V2alpha1MetricSpec.js +++ /dev/null @@ -1,109 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V2alpha1ObjectMetricSource', 'io.kubernetes.js/io.kubernetes.js.models/V2alpha1PodsMetricSource', 'io.kubernetes.js/io.kubernetes.js.models/V2alpha1ResourceMetricSource'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V2alpha1ObjectMetricSource'), require('./V2alpha1PodsMetricSource'), require('./V2alpha1ResourceMetricSource')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V2alpha1MetricSpec = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V2alpha1ObjectMetricSource, root.KubernetesJsClient.V2alpha1PodsMetricSource, root.KubernetesJsClient.V2alpha1ResourceMetricSource); - } -}(this, function(ApiClient, V2alpha1ObjectMetricSource, V2alpha1PodsMetricSource, V2alpha1ResourceMetricSource) { - 'use strict'; - - - - - /** - * The V2alpha1MetricSpec model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V2alpha1MetricSpec - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V2alpha1MetricSpec. - * MetricSpec specifies how to scale based on a single metric (only `type` and one other matching field should be set at once). - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V2alpha1MetricSpec - * @class - * @param type {String} type is the type of metric source. It should match one of the fields below. - */ - var exports = function(type) { - var _this = this; - - - - - _this['type'] = type; - }; - - /** - * Constructs a V2alpha1MetricSpec from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V2alpha1MetricSpec} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V2alpha1MetricSpec} The populated V2alpha1MetricSpec instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('object')) { - obj['object'] = V2alpha1ObjectMetricSource.constructFromObject(data['object']); - } - if (data.hasOwnProperty('pods')) { - obj['pods'] = V2alpha1PodsMetricSource.constructFromObject(data['pods']); - } - if (data.hasOwnProperty('resource')) { - obj['resource'] = V2alpha1ResourceMetricSource.constructFromObject(data['resource']); - } - if (data.hasOwnProperty('type')) { - obj['type'] = ApiClient.convertToType(data['type'], 'String'); - } - } - return obj; - } - - /** - * object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object). - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V2alpha1ObjectMetricSource} object - */ - exports.prototype['object'] = undefined; - /** - * pods refers to a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value. - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V2alpha1PodsMetricSource} pods - */ - exports.prototype['pods'] = undefined; - /** - * resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source. - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V2alpha1ResourceMetricSource} resource - */ - exports.prototype['resource'] = undefined; - /** - * type is the type of metric source. It should match one of the fields below. - * @member {String} type - */ - exports.prototype['type'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V2alpha1MetricStatus.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V2alpha1MetricStatus.js deleted file mode 100644 index 3ad1dfc28e..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V2alpha1MetricStatus.js +++ /dev/null @@ -1,109 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V2alpha1ObjectMetricStatus', 'io.kubernetes.js/io.kubernetes.js.models/V2alpha1PodsMetricStatus', 'io.kubernetes.js/io.kubernetes.js.models/V2alpha1ResourceMetricStatus'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V2alpha1ObjectMetricStatus'), require('./V2alpha1PodsMetricStatus'), require('./V2alpha1ResourceMetricStatus')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V2alpha1MetricStatus = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V2alpha1ObjectMetricStatus, root.KubernetesJsClient.V2alpha1PodsMetricStatus, root.KubernetesJsClient.V2alpha1ResourceMetricStatus); - } -}(this, function(ApiClient, V2alpha1ObjectMetricStatus, V2alpha1PodsMetricStatus, V2alpha1ResourceMetricStatus) { - 'use strict'; - - - - - /** - * The V2alpha1MetricStatus model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V2alpha1MetricStatus - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V2alpha1MetricStatus. - * MetricStatus describes the last-read state of a single metric. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V2alpha1MetricStatus - * @class - * @param type {String} type is the type of metric source. It will match one of the fields below. - */ - var exports = function(type) { - var _this = this; - - - - - _this['type'] = type; - }; - - /** - * Constructs a V2alpha1MetricStatus from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V2alpha1MetricStatus} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V2alpha1MetricStatus} The populated V2alpha1MetricStatus instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('object')) { - obj['object'] = V2alpha1ObjectMetricStatus.constructFromObject(data['object']); - } - if (data.hasOwnProperty('pods')) { - obj['pods'] = V2alpha1PodsMetricStatus.constructFromObject(data['pods']); - } - if (data.hasOwnProperty('resource')) { - obj['resource'] = V2alpha1ResourceMetricStatus.constructFromObject(data['resource']); - } - if (data.hasOwnProperty('type')) { - obj['type'] = ApiClient.convertToType(data['type'], 'String'); - } - } - return obj; - } - - /** - * object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object). - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V2alpha1ObjectMetricStatus} object - */ - exports.prototype['object'] = undefined; - /** - * pods refers to a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value. - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V2alpha1PodsMetricStatus} pods - */ - exports.prototype['pods'] = undefined; - /** - * resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source. - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V2alpha1ResourceMetricStatus} resource - */ - exports.prototype['resource'] = undefined; - /** - * type is the type of metric source. It will match one of the fields below. - * @member {String} type - */ - exports.prototype['type'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V2alpha1ObjectMetricSource.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V2alpha1ObjectMetricSource.js deleted file mode 100644 index ec8ee468ba..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V2alpha1ObjectMetricSource.js +++ /dev/null @@ -1,102 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V2alpha1CrossVersionObjectReference'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V2alpha1CrossVersionObjectReference')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V2alpha1ObjectMetricSource = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V2alpha1CrossVersionObjectReference); - } -}(this, function(ApiClient, V2alpha1CrossVersionObjectReference) { - 'use strict'; - - - - - /** - * The V2alpha1ObjectMetricSource model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V2alpha1ObjectMetricSource - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V2alpha1ObjectMetricSource. - * ObjectMetricSource indicates how to scale on a metric describing a kubernetes object (for example, hits-per-second on an Ingress object). - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V2alpha1ObjectMetricSource - * @class - * @param metricName {String} metricName is the name of the metric in question. - * @param target {module:io.kubernetes.js/io.kubernetes.js.models/V2alpha1CrossVersionObjectReference} target is the described Kubernetes object. - * @param targetValue {String} targetValue is the target value of the metric (as a quantity). - */ - var exports = function(metricName, target, targetValue) { - var _this = this; - - _this['metricName'] = metricName; - _this['target'] = target; - _this['targetValue'] = targetValue; - }; - - /** - * Constructs a V2alpha1ObjectMetricSource from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V2alpha1ObjectMetricSource} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V2alpha1ObjectMetricSource} The populated V2alpha1ObjectMetricSource instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('metricName')) { - obj['metricName'] = ApiClient.convertToType(data['metricName'], 'String'); - } - if (data.hasOwnProperty('target')) { - obj['target'] = V2alpha1CrossVersionObjectReference.constructFromObject(data['target']); - } - if (data.hasOwnProperty('targetValue')) { - obj['targetValue'] = ApiClient.convertToType(data['targetValue'], 'String'); - } - } - return obj; - } - - /** - * metricName is the name of the metric in question. - * @member {String} metricName - */ - exports.prototype['metricName'] = undefined; - /** - * target is the described Kubernetes object. - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V2alpha1CrossVersionObjectReference} target - */ - exports.prototype['target'] = undefined; - /** - * targetValue is the target value of the metric (as a quantity). - * @member {String} targetValue - */ - exports.prototype['targetValue'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V2alpha1ObjectMetricStatus.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V2alpha1ObjectMetricStatus.js deleted file mode 100644 index de21ad6e16..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V2alpha1ObjectMetricStatus.js +++ /dev/null @@ -1,102 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient', 'io.kubernetes.js/io.kubernetes.js.models/V2alpha1CrossVersionObjectReference'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./V2alpha1CrossVersionObjectReference')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V2alpha1ObjectMetricStatus = factory(root.KubernetesJsClient.ApiClient, root.KubernetesJsClient.V2alpha1CrossVersionObjectReference); - } -}(this, function(ApiClient, V2alpha1CrossVersionObjectReference) { - 'use strict'; - - - - - /** - * The V2alpha1ObjectMetricStatus model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V2alpha1ObjectMetricStatus - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V2alpha1ObjectMetricStatus. - * ObjectMetricStatus indicates the current value of a metric describing a kubernetes object (for example, hits-per-second on an Ingress object). - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V2alpha1ObjectMetricStatus - * @class - * @param currentValue {String} currentValue is the current value of the metric (as a quantity). - * @param metricName {String} metricName is the name of the metric in question. - * @param target {module:io.kubernetes.js/io.kubernetes.js.models/V2alpha1CrossVersionObjectReference} target is the described Kubernetes object. - */ - var exports = function(currentValue, metricName, target) { - var _this = this; - - _this['currentValue'] = currentValue; - _this['metricName'] = metricName; - _this['target'] = target; - }; - - /** - * Constructs a V2alpha1ObjectMetricStatus from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V2alpha1ObjectMetricStatus} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V2alpha1ObjectMetricStatus} The populated V2alpha1ObjectMetricStatus instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('currentValue')) { - obj['currentValue'] = ApiClient.convertToType(data['currentValue'], 'String'); - } - if (data.hasOwnProperty('metricName')) { - obj['metricName'] = ApiClient.convertToType(data['metricName'], 'String'); - } - if (data.hasOwnProperty('target')) { - obj['target'] = V2alpha1CrossVersionObjectReference.constructFromObject(data['target']); - } - } - return obj; - } - - /** - * currentValue is the current value of the metric (as a quantity). - * @member {String} currentValue - */ - exports.prototype['currentValue'] = undefined; - /** - * metricName is the name of the metric in question. - * @member {String} metricName - */ - exports.prototype['metricName'] = undefined; - /** - * target is the described Kubernetes object. - * @member {module:io.kubernetes.js/io.kubernetes.js.models/V2alpha1CrossVersionObjectReference} target - */ - exports.prototype['target'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V2alpha1PodsMetricSource.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V2alpha1PodsMetricSource.js deleted file mode 100644 index a67ae531f9..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V2alpha1PodsMetricSource.js +++ /dev/null @@ -1,92 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V2alpha1PodsMetricSource = factory(root.KubernetesJsClient.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - - /** - * The V2alpha1PodsMetricSource model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V2alpha1PodsMetricSource - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V2alpha1PodsMetricSource. - * PodsMetricSource indicates how to scale on a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V2alpha1PodsMetricSource - * @class - * @param metricName {String} metricName is the name of the metric in question - * @param targetAverageValue {String} targetAverageValue is the target value of the average of the metric across all relevant pods (as a quantity) - */ - var exports = function(metricName, targetAverageValue) { - var _this = this; - - _this['metricName'] = metricName; - _this['targetAverageValue'] = targetAverageValue; - }; - - /** - * Constructs a V2alpha1PodsMetricSource from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V2alpha1PodsMetricSource} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V2alpha1PodsMetricSource} The populated V2alpha1PodsMetricSource instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('metricName')) { - obj['metricName'] = ApiClient.convertToType(data['metricName'], 'String'); - } - if (data.hasOwnProperty('targetAverageValue')) { - obj['targetAverageValue'] = ApiClient.convertToType(data['targetAverageValue'], 'String'); - } - } - return obj; - } - - /** - * metricName is the name of the metric in question - * @member {String} metricName - */ - exports.prototype['metricName'] = undefined; - /** - * targetAverageValue is the target value of the average of the metric across all relevant pods (as a quantity) - * @member {String} targetAverageValue - */ - exports.prototype['targetAverageValue'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V2alpha1PodsMetricStatus.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V2alpha1PodsMetricStatus.js deleted file mode 100644 index 97bfc74f8e..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V2alpha1PodsMetricStatus.js +++ /dev/null @@ -1,92 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V2alpha1PodsMetricStatus = factory(root.KubernetesJsClient.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - - /** - * The V2alpha1PodsMetricStatus model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V2alpha1PodsMetricStatus - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V2alpha1PodsMetricStatus. - * PodsMetricStatus indicates the current value of a metric describing each pod in the current scale target (for example, transactions-processed-per-second). - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V2alpha1PodsMetricStatus - * @class - * @param currentAverageValue {String} currentAverageValue is the current value of the average of the metric across all relevant pods (as a quantity) - * @param metricName {String} metricName is the name of the metric in question - */ - var exports = function(currentAverageValue, metricName) { - var _this = this; - - _this['currentAverageValue'] = currentAverageValue; - _this['metricName'] = metricName; - }; - - /** - * Constructs a V2alpha1PodsMetricStatus from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V2alpha1PodsMetricStatus} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V2alpha1PodsMetricStatus} The populated V2alpha1PodsMetricStatus instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('currentAverageValue')) { - obj['currentAverageValue'] = ApiClient.convertToType(data['currentAverageValue'], 'String'); - } - if (data.hasOwnProperty('metricName')) { - obj['metricName'] = ApiClient.convertToType(data['metricName'], 'String'); - } - } - return obj; - } - - /** - * currentAverageValue is the current value of the average of the metric across all relevant pods (as a quantity) - * @member {String} currentAverageValue - */ - exports.prototype['currentAverageValue'] = undefined; - /** - * metricName is the name of the metric in question - * @member {String} metricName - */ - exports.prototype['metricName'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V2alpha1ResourceMetricSource.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V2alpha1ResourceMetricSource.js deleted file mode 100644 index 5f9571661c..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V2alpha1ResourceMetricSource.js +++ /dev/null @@ -1,100 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V2alpha1ResourceMetricSource = factory(root.KubernetesJsClient.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - - /** - * The V2alpha1ResourceMetricSource model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V2alpha1ResourceMetricSource - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V2alpha1ResourceMetricSource. - * ResourceMetricSource indicates how to scale on a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). The values will be averaged together before being compared to the target. Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source. Only one \"target\" type should be set. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V2alpha1ResourceMetricSource - * @class - * @param name {String} name is the name of the resource in question. - */ - var exports = function(name) { - var _this = this; - - _this['name'] = name; - - - }; - - /** - * Constructs a V2alpha1ResourceMetricSource from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V2alpha1ResourceMetricSource} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V2alpha1ResourceMetricSource} The populated V2alpha1ResourceMetricSource instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - } - if (data.hasOwnProperty('targetAverageUtilization')) { - obj['targetAverageUtilization'] = ApiClient.convertToType(data['targetAverageUtilization'], 'Number'); - } - if (data.hasOwnProperty('targetAverageValue')) { - obj['targetAverageValue'] = ApiClient.convertToType(data['targetAverageValue'], 'String'); - } - } - return obj; - } - - /** - * name is the name of the resource in question. - * @member {String} name - */ - exports.prototype['name'] = undefined; - /** - * targetAverageUtilization is the target value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. - * @member {Number} targetAverageUtilization - */ - exports.prototype['targetAverageUtilization'] = undefined; - /** - * targetAverageValue is the the target value of the average of the resource metric across all relevant pods, as a raw value (instead of as a percentage of the request), similar to the \"pods\" metric source type. - * @member {String} targetAverageValue - */ - exports.prototype['targetAverageValue'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V2alpha1ResourceMetricStatus.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V2alpha1ResourceMetricStatus.js deleted file mode 100644 index 23053ec37b..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/V2alpha1ResourceMetricStatus.js +++ /dev/null @@ -1,101 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.V2alpha1ResourceMetricStatus = factory(root.KubernetesJsClient.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - - /** - * The V2alpha1ResourceMetricStatus model module. - * @module io.kubernetes.js/io.kubernetes.js.models/V2alpha1ResourceMetricStatus - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new V2alpha1ResourceMetricStatus. - * ResourceMetricStatus indicates the current value of a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/V2alpha1ResourceMetricStatus - * @class - * @param currentAverageValue {String} currentAverageValue is the the current value of the average of the resource metric across all relevant pods, as a raw value (instead of as a percentage of the request), similar to the \"pods\" metric source type. It will always be set, regardless of the corresponding metric specification. - * @param name {String} name is the name of the resource in question. - */ - var exports = function(currentAverageValue, name) { - var _this = this; - - - _this['currentAverageValue'] = currentAverageValue; - _this['name'] = name; - }; - - /** - * Constructs a V2alpha1ResourceMetricStatus from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/V2alpha1ResourceMetricStatus} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/V2alpha1ResourceMetricStatus} The populated V2alpha1ResourceMetricStatus instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('currentAverageUtilization')) { - obj['currentAverageUtilization'] = ApiClient.convertToType(data['currentAverageUtilization'], 'Number'); - } - if (data.hasOwnProperty('currentAverageValue')) { - obj['currentAverageValue'] = ApiClient.convertToType(data['currentAverageValue'], 'String'); - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - } - } - return obj; - } - - /** - * currentAverageUtilization is the current value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. It will only be present if `targetAverageValue` was set in the corresponding metric specification. - * @member {Number} currentAverageUtilization - */ - exports.prototype['currentAverageUtilization'] = undefined; - /** - * currentAverageValue is the the current value of the average of the resource metric across all relevant pods, as a raw value (instead of as a percentage of the request), similar to the \"pods\" metric source type. It will always be set, regardless of the corresponding metric specification. - * @member {String} currentAverageValue - */ - exports.prototype['currentAverageValue'] = undefined; - /** - * name is the name of the resource in question. - * @member {String} name - */ - exports.prototype['name'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/VersionInfo.js b/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/VersionInfo.js deleted file mode 100644 index 06f95de297..0000000000 --- a/kubernetes/src/io.kubernetes.js/io.kubernetes.js.models/VersionInfo.js +++ /dev/null @@ -1,153 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['io.kubernetes.js/ApiClient'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.KubernetesJsClient) { - root.KubernetesJsClient = {}; - } - root.KubernetesJsClient.VersionInfo = factory(root.KubernetesJsClient.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - - /** - * The VersionInfo model module. - * @module io.kubernetes.js/io.kubernetes.js.models/VersionInfo - * @version 1.0.0-snapshot - */ - - /** - * Constructs a new VersionInfo. - * Info contains versioning information. how we'll want to distribute that information. - * @alias module:io.kubernetes.js/io.kubernetes.js.models/VersionInfo - * @class - * @param buildDate {String} - * @param compiler {String} - * @param gitCommit {String} - * @param gitTreeState {String} - * @param gitVersion {String} - * @param goVersion {String} - * @param major {String} - * @param minor {String} - * @param platform {String} - */ - var exports = function(buildDate, compiler, gitCommit, gitTreeState, gitVersion, goVersion, major, minor, platform) { - var _this = this; - - _this['buildDate'] = buildDate; - _this['compiler'] = compiler; - _this['gitCommit'] = gitCommit; - _this['gitTreeState'] = gitTreeState; - _this['gitVersion'] = gitVersion; - _this['goVersion'] = goVersion; - _this['major'] = major; - _this['minor'] = minor; - _this['platform'] = platform; - }; - - /** - * Constructs a VersionInfo from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:io.kubernetes.js/io.kubernetes.js.models/VersionInfo} obj Optional instance to populate. - * @return {module:io.kubernetes.js/io.kubernetes.js.models/VersionInfo} The populated VersionInfo instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('buildDate')) { - obj['buildDate'] = ApiClient.convertToType(data['buildDate'], 'String'); - } - if (data.hasOwnProperty('compiler')) { - obj['compiler'] = ApiClient.convertToType(data['compiler'], 'String'); - } - if (data.hasOwnProperty('gitCommit')) { - obj['gitCommit'] = ApiClient.convertToType(data['gitCommit'], 'String'); - } - if (data.hasOwnProperty('gitTreeState')) { - obj['gitTreeState'] = ApiClient.convertToType(data['gitTreeState'], 'String'); - } - if (data.hasOwnProperty('gitVersion')) { - obj['gitVersion'] = ApiClient.convertToType(data['gitVersion'], 'String'); - } - if (data.hasOwnProperty('goVersion')) { - obj['goVersion'] = ApiClient.convertToType(data['goVersion'], 'String'); - } - if (data.hasOwnProperty('major')) { - obj['major'] = ApiClient.convertToType(data['major'], 'String'); - } - if (data.hasOwnProperty('minor')) { - obj['minor'] = ApiClient.convertToType(data['minor'], 'String'); - } - if (data.hasOwnProperty('platform')) { - obj['platform'] = ApiClient.convertToType(data['platform'], 'String'); - } - } - return obj; - } - - /** - * @member {String} buildDate - */ - exports.prototype['buildDate'] = undefined; - /** - * @member {String} compiler - */ - exports.prototype['compiler'] = undefined; - /** - * @member {String} gitCommit - */ - exports.prototype['gitCommit'] = undefined; - /** - * @member {String} gitTreeState - */ - exports.prototype['gitTreeState'] = undefined; - /** - * @member {String} gitVersion - */ - exports.prototype['gitVersion'] = undefined; - /** - * @member {String} goVersion - */ - exports.prototype['goVersion'] = undefined; - /** - * @member {String} major - */ - exports.prototype['major'] = undefined; - /** - * @member {String} minor - */ - exports.prototype['minor'] = undefined; - /** - * @member {String} platform - */ - exports.prototype['platform'] = undefined; - - - - return exports; -})); - - diff --git a/kubernetes/swagger.json b/kubernetes/swagger.json deleted file mode 100644 index f2af8a2c96..0000000000 --- a/kubernetes/swagger.json +++ /dev/null @@ -1,42455 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "Kubernetes", - "version": "v1.6.3" - }, - "paths": { - "/api/": { - "get": { - "description": "get available API versions", - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core" - ], - "operationId": "getAPIVersions", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIVersions" - } - }, - "401": { - "description": "Unauthorized" - } - } - } - }, - "/api/v1/": { - "get": { - "description": "get available resources", - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "getAPIResources", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } - } - } - }, - "/api/v1/componentstatuses": { - "get": { - "description": "list objects of kind ComponentStatus", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "listComponentStatus", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.ComponentStatusList" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/componentstatuses/{name}": { - "get": { - "description": "read the specified ComponentStatus", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "readComponentStatus", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.ComponentStatus" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the ComponentStatus", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/api/v1/configmaps": { - "get": { - "description": "list or watch objects of kind ConfigMap", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "listConfigMapForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.ConfigMapList" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/endpoints": { - "get": { - "description": "list or watch objects of kind Endpoints", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "listEndpointsForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.EndpointsList" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/events": { - "get": { - "description": "list or watch objects of kind Event", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "listEventForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.EventList" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/limitranges": { - "get": { - "description": "list or watch objects of kind LimitRange", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "listLimitRangeForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.LimitRangeList" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/namespaces": { - "get": { - "description": "list or watch objects of kind Namespace", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "listNamespace", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.NamespaceList" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "post": { - "description": "create a Namespace", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "createNamespace", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.Namespace" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Namespace" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "delete": { - "description": "delete collection of Namespace", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "deleteCollectionNamespace", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/api/v1/namespaces/{namespace}/bindings": { - "post": { - "description": "create a Binding", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "createNamespacedBinding", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.Binding" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Binding" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/api/v1/namespaces/{namespace}/configmaps": { - "get": { - "description": "list or watch objects of kind ConfigMap", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "listNamespacedConfigMap", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.ConfigMapList" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "post": { - "description": "create a ConfigMap", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "createNamespacedConfigMap", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.ConfigMap" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.ConfigMap" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "delete": { - "description": "delete collection of ConfigMap", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "deleteCollectionNamespacedConfigMap", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/api/v1/namespaces/{namespace}/configmaps/{name}": { - "get": { - "description": "read the specified ConfigMap", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "readNamespacedConfigMap", - "parameters": [ - { - "uniqueItems": true, - "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", - "name": "exact", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Should this value be exported. Export strips fields that a user can not specify.", - "name": "export", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.ConfigMap" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "put": { - "description": "replace the specified ConfigMap", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "replaceNamespacedConfigMap", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.ConfigMap" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.ConfigMap" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "delete": { - "description": "delete a ConfigMap", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "deleteNamespacedConfigMap", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "uniqueItems": true, - "type": "integer", - "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "name": "orphanDependents", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy.", - "name": "propagationPolicy", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "patch": { - "description": "partially update the specified ConfigMap", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "patchNamespacedConfigMap", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.ConfigMap" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the ConfigMap", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/api/v1/namespaces/{namespace}/endpoints": { - "get": { - "description": "list or watch objects of kind Endpoints", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "listNamespacedEndpoints", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.EndpointsList" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "post": { - "description": "create Endpoints", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "createNamespacedEndpoints", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.Endpoints" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Endpoints" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "delete": { - "description": "delete collection of Endpoints", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "deleteCollectionNamespacedEndpoints", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/api/v1/namespaces/{namespace}/endpoints/{name}": { - "get": { - "description": "read the specified Endpoints", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "readNamespacedEndpoints", - "parameters": [ - { - "uniqueItems": true, - "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", - "name": "exact", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Should this value be exported. Export strips fields that a user can not specify.", - "name": "export", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Endpoints" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "put": { - "description": "replace the specified Endpoints", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "replaceNamespacedEndpoints", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.Endpoints" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Endpoints" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "delete": { - "description": "delete Endpoints", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "deleteNamespacedEndpoints", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "uniqueItems": true, - "type": "integer", - "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "name": "orphanDependents", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy.", - "name": "propagationPolicy", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "patch": { - "description": "partially update the specified Endpoints", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "patchNamespacedEndpoints", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Endpoints" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the Endpoints", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/api/v1/namespaces/{namespace}/events": { - "get": { - "description": "list or watch objects of kind Event", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "listNamespacedEvent", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.EventList" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "post": { - "description": "create an Event", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "createNamespacedEvent", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.Event" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Event" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "delete": { - "description": "delete collection of Event", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "deleteCollectionNamespacedEvent", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/api/v1/namespaces/{namespace}/events/{name}": { - "get": { - "description": "read the specified Event", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "readNamespacedEvent", - "parameters": [ - { - "uniqueItems": true, - "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", - "name": "exact", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Should this value be exported. Export strips fields that a user can not specify.", - "name": "export", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Event" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "put": { - "description": "replace the specified Event", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "replaceNamespacedEvent", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.Event" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Event" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "delete": { - "description": "delete an Event", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "deleteNamespacedEvent", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "uniqueItems": true, - "type": "integer", - "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "name": "orphanDependents", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy.", - "name": "propagationPolicy", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "patch": { - "description": "partially update the specified Event", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "patchNamespacedEvent", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Event" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the Event", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/api/v1/namespaces/{namespace}/limitranges": { - "get": { - "description": "list or watch objects of kind LimitRange", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "listNamespacedLimitRange", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.LimitRangeList" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "post": { - "description": "create a LimitRange", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "createNamespacedLimitRange", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.LimitRange" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.LimitRange" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "delete": { - "description": "delete collection of LimitRange", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "deleteCollectionNamespacedLimitRange", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/api/v1/namespaces/{namespace}/limitranges/{name}": { - "get": { - "description": "read the specified LimitRange", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "readNamespacedLimitRange", - "parameters": [ - { - "uniqueItems": true, - "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", - "name": "exact", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Should this value be exported. Export strips fields that a user can not specify.", - "name": "export", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.LimitRange" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "put": { - "description": "replace the specified LimitRange", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "replaceNamespacedLimitRange", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.LimitRange" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.LimitRange" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "delete": { - "description": "delete a LimitRange", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "deleteNamespacedLimitRange", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "uniqueItems": true, - "type": "integer", - "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "name": "orphanDependents", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy.", - "name": "propagationPolicy", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "patch": { - "description": "partially update the specified LimitRange", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "patchNamespacedLimitRange", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.LimitRange" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the LimitRange", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/api/v1/namespaces/{namespace}/persistentvolumeclaims": { - "get": { - "description": "list or watch objects of kind PersistentVolumeClaim", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "listNamespacedPersistentVolumeClaim", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.PersistentVolumeClaimList" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "post": { - "description": "create a PersistentVolumeClaim", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "createNamespacedPersistentVolumeClaim", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.PersistentVolumeClaim" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.PersistentVolumeClaim" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "delete": { - "description": "delete collection of PersistentVolumeClaim", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "deleteCollectionNamespacedPersistentVolumeClaim", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/api/v1/namespaces/{namespace}/persistentvolumeclaims/{name}": { - "get": { - "description": "read the specified PersistentVolumeClaim", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "readNamespacedPersistentVolumeClaim", - "parameters": [ - { - "uniqueItems": true, - "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", - "name": "exact", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Should this value be exported. Export strips fields that a user can not specify.", - "name": "export", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.PersistentVolumeClaim" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "put": { - "description": "replace the specified PersistentVolumeClaim", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "replaceNamespacedPersistentVolumeClaim", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.PersistentVolumeClaim" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.PersistentVolumeClaim" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "delete": { - "description": "delete a PersistentVolumeClaim", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "deleteNamespacedPersistentVolumeClaim", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "uniqueItems": true, - "type": "integer", - "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "name": "orphanDependents", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy.", - "name": "propagationPolicy", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "patch": { - "description": "partially update the specified PersistentVolumeClaim", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "patchNamespacedPersistentVolumeClaim", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.PersistentVolumeClaim" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the PersistentVolumeClaim", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/api/v1/namespaces/{namespace}/persistentvolumeclaims/{name}/status": { - "get": { - "description": "read status of the specified PersistentVolumeClaim", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "readNamespacedPersistentVolumeClaimStatus", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.PersistentVolumeClaim" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "put": { - "description": "replace status of the specified PersistentVolumeClaim", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "replaceNamespacedPersistentVolumeClaimStatus", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.PersistentVolumeClaim" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.PersistentVolumeClaim" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "patch": { - "description": "partially update status of the specified PersistentVolumeClaim", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "patchNamespacedPersistentVolumeClaimStatus", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.PersistentVolumeClaim" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the PersistentVolumeClaim", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/api/v1/namespaces/{namespace}/pods": { - "get": { - "description": "list or watch objects of kind Pod", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "listNamespacedPod", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.PodList" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "post": { - "description": "create a Pod", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "createNamespacedPod", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.Pod" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Pod" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "delete": { - "description": "delete collection of Pod", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "deleteCollectionNamespacedPod", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/api/v1/namespaces/{namespace}/pods/{name}": { - "get": { - "description": "read the specified Pod", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "readNamespacedPod", - "parameters": [ - { - "uniqueItems": true, - "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", - "name": "exact", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Should this value be exported. Export strips fields that a user can not specify.", - "name": "export", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Pod" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "put": { - "description": "replace the specified Pod", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "replaceNamespacedPod", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.Pod" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Pod" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "delete": { - "description": "delete a Pod", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "deleteNamespacedPod", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "uniqueItems": true, - "type": "integer", - "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "name": "orphanDependents", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy.", - "name": "propagationPolicy", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "patch": { - "description": "partially update the specified Pod", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "patchNamespacedPod", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Pod" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the Pod", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/api/v1/namespaces/{namespace}/pods/{name}/attach": { - "get": { - "description": "connect GET requests to attach of Pod", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "connectGetNamespacedPodAttach", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "post": { - "description": "connect POST requests to attach of Pod", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "connectPostNamespacedPodAttach", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The container in which to execute the command. Defaults to only container if there is only one container in the pod.", - "name": "container", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the Pod", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Stderr if true indicates that stderr is to be redirected for the attach call. Defaults to true.", - "name": "stderr", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Stdin if true, redirects the standard input stream of the pod for this call. Defaults to false.", - "name": "stdin", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Stdout if true indicates that stdout is to be redirected for the attach call. Defaults to true.", - "name": "stdout", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "TTY if true indicates that a tty will be allocated for the attach call. This is passed through the container runtime so the tty is allocated on the worker node by the container runtime. Defaults to false.", - "name": "tty", - "in": "query" - } - ] - }, - "/api/v1/namespaces/{namespace}/pods/{name}/binding": { - "post": { - "description": "create binding of a Binding", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "createNamespacedBindingBinding", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.Binding" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Binding" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the Binding", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/api/v1/namespaces/{namespace}/pods/{name}/eviction": { - "post": { - "description": "create eviction of an Eviction", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "createNamespacedEvictionEviction", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta1.Eviction" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.Eviction" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the Eviction", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/api/v1/namespaces/{namespace}/pods/{name}/exec": { - "get": { - "description": "connect GET requests to exec of Pod", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "connectGetNamespacedPodExec", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "post": { - "description": "connect POST requests to exec of Pod", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "connectPostNamespacedPodExec", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "Command is the remote command to execute. argv array. Not executed within a shell.", - "name": "command", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "Container in which to execute the command. Defaults to only container if there is only one container in the pod.", - "name": "container", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the Pod", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Redirect the standard error stream of the pod for this call. Defaults to true.", - "name": "stderr", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Redirect the standard input stream of the pod for this call. Defaults to false.", - "name": "stdin", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Redirect the standard output stream of the pod for this call. Defaults to true.", - "name": "stdout", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "TTY if true indicates that a tty will be allocated for the exec call. Defaults to false.", - "name": "tty", - "in": "query" - } - ] - }, - "/api/v1/namespaces/{namespace}/pods/{name}/log": { - "get": { - "description": "read log of the specified Pod", - "consumes": [ - "*/*" - ], - "produces": [ - "text/plain", - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "readNamespacedPodLog", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The container for which to stream logs. Defaults to only container if there is one container in the pod.", - "name": "container", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Follow the log stream of the pod. Defaults to false.", - "name": "follow", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "If set, the number of bytes to read from the server before terminating the log output. This may not display a complete final line of logging, and may return slightly more or slightly less than the specified limit.", - "name": "limitBytes", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the Pod", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Return previous terminated container logs. Defaults to false.", - "name": "previous", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "A relative time in seconds before the current time from which to show logs. If this value precedes the time a pod was started, only logs since the pod start will be returned. If this value is in the future, no logs will be returned. Only one of sinceSeconds or sinceTime may be specified.", - "name": "sinceSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "If set, the number of lines from the end of the logs to show. If not specified, logs are shown from the creation of the container or sinceSeconds or sinceTime", - "name": "tailLines", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line of log output. Defaults to false.", - "name": "timestamps", - "in": "query" - } - ] - }, - "/api/v1/namespaces/{namespace}/pods/{name}/portforward": { - "get": { - "description": "connect GET requests to portforward of Pod", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "connectGetNamespacedPodPortforward", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "post": { - "description": "connect POST requests to portforward of Pod", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "connectPostNamespacedPodPortforward", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the Pod", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "integer", - "description": "List of ports to forward Required when using WebSockets", - "name": "ports", - "in": "query" - } - ] - }, - "/api/v1/namespaces/{namespace}/pods/{name}/proxy": { - "get": { - "description": "connect GET requests to proxy of Pod", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "connectGetNamespacedPodProxy", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "put": { - "description": "connect PUT requests to proxy of Pod", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "connectPutNamespacedPodProxy", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "post": { - "description": "connect POST requests to proxy of Pod", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "connectPostNamespacedPodProxy", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "delete": { - "description": "connect DELETE requests to proxy of Pod", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "connectDeleteNamespacedPodProxy", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "options": { - "description": "connect OPTIONS requests to proxy of Pod", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "connectOptionsNamespacedPodProxy", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "head": { - "description": "connect HEAD requests to proxy of Pod", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "connectHeadNamespacedPodProxy", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the Pod", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "Path is the URL path to use for the current proxy request to pod.", - "name": "path", - "in": "query" - } - ] - }, - "/api/v1/namespaces/{namespace}/pods/{name}/proxy/{path}": { - "get": { - "description": "connect GET requests to proxy of Pod", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "connectGetNamespacedPodProxyWithPath", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "put": { - "description": "connect PUT requests to proxy of Pod", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "connectPutNamespacedPodProxyWithPath", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "post": { - "description": "connect POST requests to proxy of Pod", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "connectPostNamespacedPodProxyWithPath", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "delete": { - "description": "connect DELETE requests to proxy of Pod", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "connectDeleteNamespacedPodProxyWithPath", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "options": { - "description": "connect OPTIONS requests to proxy of Pod", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "connectOptionsNamespacedPodProxyWithPath", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "head": { - "description": "connect HEAD requests to proxy of Pod", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "connectHeadNamespacedPodProxyWithPath", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the Pod", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "path to the resource", - "name": "path", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "Path is the URL path to use for the current proxy request to pod.", - "name": "path", - "in": "query" - } - ] - }, - "/api/v1/namespaces/{namespace}/pods/{name}/status": { - "get": { - "description": "read status of the specified Pod", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "readNamespacedPodStatus", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Pod" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "put": { - "description": "replace status of the specified Pod", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "replaceNamespacedPodStatus", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.Pod" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Pod" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "patch": { - "description": "partially update status of the specified Pod", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "patchNamespacedPodStatus", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Pod" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the Pod", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/api/v1/namespaces/{namespace}/podtemplates": { - "get": { - "description": "list or watch objects of kind PodTemplate", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "listNamespacedPodTemplate", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.PodTemplateList" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "post": { - "description": "create a PodTemplate", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "createNamespacedPodTemplate", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.PodTemplate" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.PodTemplate" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "delete": { - "description": "delete collection of PodTemplate", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "deleteCollectionNamespacedPodTemplate", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/api/v1/namespaces/{namespace}/podtemplates/{name}": { - "get": { - "description": "read the specified PodTemplate", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "readNamespacedPodTemplate", - "parameters": [ - { - "uniqueItems": true, - "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", - "name": "exact", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Should this value be exported. Export strips fields that a user can not specify.", - "name": "export", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.PodTemplate" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "put": { - "description": "replace the specified PodTemplate", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "replaceNamespacedPodTemplate", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.PodTemplate" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.PodTemplate" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "delete": { - "description": "delete a PodTemplate", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "deleteNamespacedPodTemplate", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "uniqueItems": true, - "type": "integer", - "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "name": "orphanDependents", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy.", - "name": "propagationPolicy", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "patch": { - "description": "partially update the specified PodTemplate", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "patchNamespacedPodTemplate", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.PodTemplate" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the PodTemplate", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/api/v1/namespaces/{namespace}/replicationcontrollers": { - "get": { - "description": "list or watch objects of kind ReplicationController", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "listNamespacedReplicationController", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.ReplicationControllerList" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "post": { - "description": "create a ReplicationController", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "createNamespacedReplicationController", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.ReplicationController" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.ReplicationController" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "delete": { - "description": "delete collection of ReplicationController", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "deleteCollectionNamespacedReplicationController", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/api/v1/namespaces/{namespace}/replicationcontrollers/{name}": { - "get": { - "description": "read the specified ReplicationController", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "readNamespacedReplicationController", - "parameters": [ - { - "uniqueItems": true, - "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", - "name": "exact", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Should this value be exported. Export strips fields that a user can not specify.", - "name": "export", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.ReplicationController" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "put": { - "description": "replace the specified ReplicationController", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "replaceNamespacedReplicationController", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.ReplicationController" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.ReplicationController" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "delete": { - "description": "delete a ReplicationController", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "deleteNamespacedReplicationController", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "uniqueItems": true, - "type": "integer", - "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "name": "orphanDependents", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy.", - "name": "propagationPolicy", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "patch": { - "description": "partially update the specified ReplicationController", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "patchNamespacedReplicationController", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.ReplicationController" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the ReplicationController", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/api/v1/namespaces/{namespace}/replicationcontrollers/{name}/scale": { - "get": { - "description": "read scale of the specified Scale", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "readNamespacedScaleScale", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Scale" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "put": { - "description": "replace scale of the specified Scale", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "replaceNamespacedScaleScale", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.Scale" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Scale" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "patch": { - "description": "partially update scale of the specified Scale", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "patchNamespacedScaleScale", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Scale" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the Scale", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/api/v1/namespaces/{namespace}/replicationcontrollers/{name}/status": { - "get": { - "description": "read status of the specified ReplicationController", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "readNamespacedReplicationControllerStatus", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.ReplicationController" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "put": { - "description": "replace status of the specified ReplicationController", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "replaceNamespacedReplicationControllerStatus", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.ReplicationController" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.ReplicationController" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "patch": { - "description": "partially update status of the specified ReplicationController", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "patchNamespacedReplicationControllerStatus", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.ReplicationController" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the ReplicationController", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/api/v1/namespaces/{namespace}/resourcequotas": { - "get": { - "description": "list or watch objects of kind ResourceQuota", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "listNamespacedResourceQuota", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.ResourceQuotaList" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "post": { - "description": "create a ResourceQuota", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "createNamespacedResourceQuota", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.ResourceQuota" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.ResourceQuota" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "delete": { - "description": "delete collection of ResourceQuota", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "deleteCollectionNamespacedResourceQuota", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/api/v1/namespaces/{namespace}/resourcequotas/{name}": { - "get": { - "description": "read the specified ResourceQuota", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "readNamespacedResourceQuota", - "parameters": [ - { - "uniqueItems": true, - "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", - "name": "exact", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Should this value be exported. Export strips fields that a user can not specify.", - "name": "export", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.ResourceQuota" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "put": { - "description": "replace the specified ResourceQuota", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "replaceNamespacedResourceQuota", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.ResourceQuota" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.ResourceQuota" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "delete": { - "description": "delete a ResourceQuota", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "deleteNamespacedResourceQuota", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "uniqueItems": true, - "type": "integer", - "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "name": "orphanDependents", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy.", - "name": "propagationPolicy", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "patch": { - "description": "partially update the specified ResourceQuota", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "patchNamespacedResourceQuota", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.ResourceQuota" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the ResourceQuota", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/api/v1/namespaces/{namespace}/resourcequotas/{name}/status": { - "get": { - "description": "read status of the specified ResourceQuota", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "readNamespacedResourceQuotaStatus", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.ResourceQuota" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "put": { - "description": "replace status of the specified ResourceQuota", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "replaceNamespacedResourceQuotaStatus", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.ResourceQuota" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.ResourceQuota" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "patch": { - "description": "partially update status of the specified ResourceQuota", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "patchNamespacedResourceQuotaStatus", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.ResourceQuota" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the ResourceQuota", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/api/v1/namespaces/{namespace}/secrets": { - "get": { - "description": "list or watch objects of kind Secret", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "listNamespacedSecret", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.SecretList" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "post": { - "description": "create a Secret", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "createNamespacedSecret", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.Secret" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Secret" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "delete": { - "description": "delete collection of Secret", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "deleteCollectionNamespacedSecret", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/api/v1/namespaces/{namespace}/secrets/{name}": { - "get": { - "description": "read the specified Secret", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "readNamespacedSecret", - "parameters": [ - { - "uniqueItems": true, - "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", - "name": "exact", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Should this value be exported. Export strips fields that a user can not specify.", - "name": "export", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Secret" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "put": { - "description": "replace the specified Secret", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "replaceNamespacedSecret", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.Secret" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Secret" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "delete": { - "description": "delete a Secret", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "deleteNamespacedSecret", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "uniqueItems": true, - "type": "integer", - "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "name": "orphanDependents", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy.", - "name": "propagationPolicy", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "patch": { - "description": "partially update the specified Secret", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "patchNamespacedSecret", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Secret" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the Secret", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/api/v1/namespaces/{namespace}/serviceaccounts": { - "get": { - "description": "list or watch objects of kind ServiceAccount", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "listNamespacedServiceAccount", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.ServiceAccountList" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "post": { - "description": "create a ServiceAccount", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "createNamespacedServiceAccount", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.ServiceAccount" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.ServiceAccount" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "delete": { - "description": "delete collection of ServiceAccount", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "deleteCollectionNamespacedServiceAccount", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/api/v1/namespaces/{namespace}/serviceaccounts/{name}": { - "get": { - "description": "read the specified ServiceAccount", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "readNamespacedServiceAccount", - "parameters": [ - { - "uniqueItems": true, - "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", - "name": "exact", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Should this value be exported. Export strips fields that a user can not specify.", - "name": "export", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.ServiceAccount" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "put": { - "description": "replace the specified ServiceAccount", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "replaceNamespacedServiceAccount", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.ServiceAccount" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.ServiceAccount" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "delete": { - "description": "delete a ServiceAccount", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "deleteNamespacedServiceAccount", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "uniqueItems": true, - "type": "integer", - "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "name": "orphanDependents", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy.", - "name": "propagationPolicy", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "patch": { - "description": "partially update the specified ServiceAccount", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "patchNamespacedServiceAccount", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.ServiceAccount" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the ServiceAccount", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/api/v1/namespaces/{namespace}/services": { - "get": { - "description": "list or watch objects of kind Service", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "listNamespacedService", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.ServiceList" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "post": { - "description": "create a Service", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "createNamespacedService", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.Service" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Service" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/api/v1/namespaces/{namespace}/services/{name}": { - "get": { - "description": "read the specified Service", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "readNamespacedService", - "parameters": [ - { - "uniqueItems": true, - "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", - "name": "exact", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Should this value be exported. Export strips fields that a user can not specify.", - "name": "export", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Service" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "put": { - "description": "replace the specified Service", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "replaceNamespacedService", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.Service" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Service" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "delete": { - "description": "delete a Service", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "deleteNamespacedService", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "patch": { - "description": "partially update the specified Service", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "patchNamespacedService", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Service" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the Service", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/api/v1/namespaces/{namespace}/services/{name}/proxy": { - "get": { - "description": "connect GET requests to proxy of Service", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "connectGetNamespacedServiceProxy", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "put": { - "description": "connect PUT requests to proxy of Service", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "connectPutNamespacedServiceProxy", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "post": { - "description": "connect POST requests to proxy of Service", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "connectPostNamespacedServiceProxy", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "delete": { - "description": "connect DELETE requests to proxy of Service", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "connectDeleteNamespacedServiceProxy", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "options": { - "description": "connect OPTIONS requests to proxy of Service", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "connectOptionsNamespacedServiceProxy", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "head": { - "description": "connect HEAD requests to proxy of Service", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "connectHeadNamespacedServiceProxy", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the Service", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy.", - "name": "path", - "in": "query" - } - ] - }, - "/api/v1/namespaces/{namespace}/services/{name}/proxy/{path}": { - "get": { - "description": "connect GET requests to proxy of Service", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "connectGetNamespacedServiceProxyWithPath", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "put": { - "description": "connect PUT requests to proxy of Service", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "connectPutNamespacedServiceProxyWithPath", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "post": { - "description": "connect POST requests to proxy of Service", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "connectPostNamespacedServiceProxyWithPath", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "delete": { - "description": "connect DELETE requests to proxy of Service", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "connectDeleteNamespacedServiceProxyWithPath", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "options": { - "description": "connect OPTIONS requests to proxy of Service", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "connectOptionsNamespacedServiceProxyWithPath", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "head": { - "description": "connect HEAD requests to proxy of Service", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "connectHeadNamespacedServiceProxyWithPath", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the Service", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "path to the resource", - "name": "path", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy.", - "name": "path", - "in": "query" - } - ] - }, - "/api/v1/namespaces/{namespace}/services/{name}/status": { - "get": { - "description": "read status of the specified Service", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "readNamespacedServiceStatus", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Service" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "put": { - "description": "replace status of the specified Service", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "replaceNamespacedServiceStatus", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.Service" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Service" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "patch": { - "description": "partially update status of the specified Service", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "patchNamespacedServiceStatus", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Service" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the Service", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/api/v1/namespaces/{name}": { - "get": { - "description": "read the specified Namespace", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "readNamespace", - "parameters": [ - { - "uniqueItems": true, - "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", - "name": "exact", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Should this value be exported. Export strips fields that a user can not specify.", - "name": "export", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Namespace" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "put": { - "description": "replace the specified Namespace", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "replaceNamespace", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.Namespace" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Namespace" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "delete": { - "description": "delete a Namespace", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "deleteNamespace", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "uniqueItems": true, - "type": "integer", - "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "name": "orphanDependents", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy.", - "name": "propagationPolicy", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "patch": { - "description": "partially update the specified Namespace", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "patchNamespace", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Namespace" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the Namespace", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/api/v1/namespaces/{name}/finalize": { - "put": { - "description": "replace finalize of the specified Namespace", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "replaceNamespaceFinalize", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.Namespace" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Namespace" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the Namespace", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/api/v1/namespaces/{name}/status": { - "get": { - "description": "read status of the specified Namespace", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "readNamespaceStatus", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Namespace" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "put": { - "description": "replace status of the specified Namespace", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "replaceNamespaceStatus", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.Namespace" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Namespace" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "patch": { - "description": "partially update status of the specified Namespace", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "patchNamespaceStatus", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Namespace" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the Namespace", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/api/v1/nodes": { - "get": { - "description": "list or watch objects of kind Node", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "listNode", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.NodeList" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "post": { - "description": "create a Node", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "createNode", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.Node" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Node" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "delete": { - "description": "delete collection of Node", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "deleteCollectionNode", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/api/v1/nodes/{name}": { - "get": { - "description": "read the specified Node", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "readNode", - "parameters": [ - { - "uniqueItems": true, - "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", - "name": "exact", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Should this value be exported. Export strips fields that a user can not specify.", - "name": "export", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Node" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "put": { - "description": "replace the specified Node", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "replaceNode", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.Node" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Node" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "delete": { - "description": "delete a Node", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "deleteNode", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "uniqueItems": true, - "type": "integer", - "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "name": "orphanDependents", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy.", - "name": "propagationPolicy", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "patch": { - "description": "partially update the specified Node", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "patchNode", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Node" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the Node", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/api/v1/nodes/{name}/proxy": { - "get": { - "description": "connect GET requests to proxy of Node", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "connectGetNodeProxy", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "put": { - "description": "connect PUT requests to proxy of Node", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "connectPutNodeProxy", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "post": { - "description": "connect POST requests to proxy of Node", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "connectPostNodeProxy", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "delete": { - "description": "connect DELETE requests to proxy of Node", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "connectDeleteNodeProxy", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "options": { - "description": "connect OPTIONS requests to proxy of Node", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "connectOptionsNodeProxy", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "head": { - "description": "connect HEAD requests to proxy of Node", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "connectHeadNodeProxy", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the Node", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "Path is the URL path to use for the current proxy request to node.", - "name": "path", - "in": "query" - } - ] - }, - "/api/v1/nodes/{name}/proxy/{path}": { - "get": { - "description": "connect GET requests to proxy of Node", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "connectGetNodeProxyWithPath", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "put": { - "description": "connect PUT requests to proxy of Node", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "connectPutNodeProxyWithPath", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "post": { - "description": "connect POST requests to proxy of Node", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "connectPostNodeProxyWithPath", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "delete": { - "description": "connect DELETE requests to proxy of Node", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "connectDeleteNodeProxyWithPath", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "options": { - "description": "connect OPTIONS requests to proxy of Node", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "connectOptionsNodeProxyWithPath", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "head": { - "description": "connect HEAD requests to proxy of Node", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "connectHeadNodeProxyWithPath", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the Node", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "path to the resource", - "name": "path", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "Path is the URL path to use for the current proxy request to node.", - "name": "path", - "in": "query" - } - ] - }, - "/api/v1/nodes/{name}/status": { - "get": { - "description": "read status of the specified Node", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "readNodeStatus", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Node" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "put": { - "description": "replace status of the specified Node", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "replaceNodeStatus", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.Node" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Node" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "patch": { - "description": "partially update status of the specified Node", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "patchNodeStatus", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Node" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the Node", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/api/v1/persistentvolumeclaims": { - "get": { - "description": "list or watch objects of kind PersistentVolumeClaim", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "listPersistentVolumeClaimForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.PersistentVolumeClaimList" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/persistentvolumes": { - "get": { - "description": "list or watch objects of kind PersistentVolume", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "listPersistentVolume", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.PersistentVolumeList" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "post": { - "description": "create a PersistentVolume", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "createPersistentVolume", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.PersistentVolume" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.PersistentVolume" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "delete": { - "description": "delete collection of PersistentVolume", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "deleteCollectionPersistentVolume", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/api/v1/persistentvolumes/{name}": { - "get": { - "description": "read the specified PersistentVolume", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "readPersistentVolume", - "parameters": [ - { - "uniqueItems": true, - "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", - "name": "exact", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Should this value be exported. Export strips fields that a user can not specify.", - "name": "export", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.PersistentVolume" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "put": { - "description": "replace the specified PersistentVolume", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "replacePersistentVolume", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.PersistentVolume" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.PersistentVolume" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "delete": { - "description": "delete a PersistentVolume", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "deletePersistentVolume", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "uniqueItems": true, - "type": "integer", - "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "name": "orphanDependents", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy.", - "name": "propagationPolicy", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "patch": { - "description": "partially update the specified PersistentVolume", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "patchPersistentVolume", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.PersistentVolume" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the PersistentVolume", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/api/v1/persistentvolumes/{name}/status": { - "get": { - "description": "read status of the specified PersistentVolume", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "readPersistentVolumeStatus", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.PersistentVolume" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "put": { - "description": "replace status of the specified PersistentVolume", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "replacePersistentVolumeStatus", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.PersistentVolume" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.PersistentVolume" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "patch": { - "description": "partially update status of the specified PersistentVolume", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "patchPersistentVolumeStatus", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.PersistentVolume" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the PersistentVolume", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/api/v1/pods": { - "get": { - "description": "list or watch objects of kind Pod", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "listPodForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.PodList" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/podtemplates": { - "get": { - "description": "list or watch objects of kind PodTemplate", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "listPodTemplateForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.PodTemplateList" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/proxy/namespaces/{namespace}/pods/{name}": { - "get": { - "description": "proxy GET requests to Pod", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "proxyGETNamespacedPod", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "put": { - "description": "proxy PUT requests to Pod", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "proxyPUTNamespacedPod", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "post": { - "description": "proxy POST requests to Pod", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "proxyPOSTNamespacedPod", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "delete": { - "description": "proxy DELETE requests to Pod", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "proxyDELETENamespacedPod", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "options": { - "description": "proxy OPTIONS requests to Pod", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "proxyOPTIONSNamespacedPod", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "head": { - "description": "proxy HEAD requests to Pod", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "proxyHEADNamespacedPod", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "patch": { - "description": "proxy PATCH requests to Pod", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "proxyPATCHNamespacedPod", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the Pod", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - } - ] - }, - "/api/v1/proxy/namespaces/{namespace}/pods/{name}/{path}": { - "get": { - "description": "proxy GET requests to Pod", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "proxyGETNamespacedPodWithPath", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "put": { - "description": "proxy PUT requests to Pod", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "proxyPUTNamespacedPodWithPath", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "post": { - "description": "proxy POST requests to Pod", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "proxyPOSTNamespacedPodWithPath", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "delete": { - "description": "proxy DELETE requests to Pod", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "proxyDELETENamespacedPodWithPath", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "options": { - "description": "proxy OPTIONS requests to Pod", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "proxyOPTIONSNamespacedPodWithPath", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "head": { - "description": "proxy HEAD requests to Pod", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "proxyHEADNamespacedPodWithPath", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "patch": { - "description": "proxy PATCH requests to Pod", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "proxyPATCHNamespacedPodWithPath", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the Pod", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "path to the resource", - "name": "path", - "in": "path", - "required": true - } - ] - }, - "/api/v1/proxy/namespaces/{namespace}/services/{name}": { - "get": { - "description": "proxy GET requests to Service", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "proxyGETNamespacedService", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "put": { - "description": "proxy PUT requests to Service", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "proxyPUTNamespacedService", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "post": { - "description": "proxy POST requests to Service", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "proxyPOSTNamespacedService", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "delete": { - "description": "proxy DELETE requests to Service", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "proxyDELETENamespacedService", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "options": { - "description": "proxy OPTIONS requests to Service", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "proxyOPTIONSNamespacedService", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "head": { - "description": "proxy HEAD requests to Service", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "proxyHEADNamespacedService", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "patch": { - "description": "proxy PATCH requests to Service", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "proxyPATCHNamespacedService", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the Service", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - } - ] - }, - "/api/v1/proxy/namespaces/{namespace}/services/{name}/{path}": { - "get": { - "description": "proxy GET requests to Service", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "proxyGETNamespacedServiceWithPath", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "put": { - "description": "proxy PUT requests to Service", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "proxyPUTNamespacedServiceWithPath", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "post": { - "description": "proxy POST requests to Service", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "proxyPOSTNamespacedServiceWithPath", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "delete": { - "description": "proxy DELETE requests to Service", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "proxyDELETENamespacedServiceWithPath", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "options": { - "description": "proxy OPTIONS requests to Service", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "proxyOPTIONSNamespacedServiceWithPath", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "head": { - "description": "proxy HEAD requests to Service", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "proxyHEADNamespacedServiceWithPath", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "patch": { - "description": "proxy PATCH requests to Service", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "proxyPATCHNamespacedServiceWithPath", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the Service", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "path to the resource", - "name": "path", - "in": "path", - "required": true - } - ] - }, - "/api/v1/proxy/nodes/{name}": { - "get": { - "description": "proxy GET requests to Node", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "proxyGETNode", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "put": { - "description": "proxy PUT requests to Node", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "proxyPUTNode", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "post": { - "description": "proxy POST requests to Node", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "proxyPOSTNode", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "delete": { - "description": "proxy DELETE requests to Node", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "proxyDELETENode", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "options": { - "description": "proxy OPTIONS requests to Node", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "proxyOPTIONSNode", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "head": { - "description": "proxy HEAD requests to Node", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "proxyHEADNode", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "patch": { - "description": "proxy PATCH requests to Node", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "proxyPATCHNode", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the Node", - "name": "name", - "in": "path", - "required": true - } - ] - }, - "/api/v1/proxy/nodes/{name}/{path}": { - "get": { - "description": "proxy GET requests to Node", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "proxyGETNodeWithPath", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "put": { - "description": "proxy PUT requests to Node", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "proxyPUTNodeWithPath", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "post": { - "description": "proxy POST requests to Node", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "proxyPOSTNodeWithPath", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "delete": { - "description": "proxy DELETE requests to Node", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "proxyDELETENodeWithPath", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "options": { - "description": "proxy OPTIONS requests to Node", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "proxyOPTIONSNodeWithPath", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "head": { - "description": "proxy HEAD requests to Node", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "proxyHEADNodeWithPath", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "patch": { - "description": "proxy PATCH requests to Node", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "proxyPATCHNodeWithPath", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the Node", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "path to the resource", - "name": "path", - "in": "path", - "required": true - } - ] - }, - "/api/v1/replicationcontrollers": { - "get": { - "description": "list or watch objects of kind ReplicationController", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "listReplicationControllerForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.ReplicationControllerList" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/resourcequotas": { - "get": { - "description": "list or watch objects of kind ResourceQuota", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "listResourceQuotaForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.ResourceQuotaList" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/secrets": { - "get": { - "description": "list or watch objects of kind Secret", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "listSecretForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.SecretList" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/serviceaccounts": { - "get": { - "description": "list or watch objects of kind ServiceAccount", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "listServiceAccountForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.ServiceAccountList" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/services": { - "get": { - "description": "list or watch objects of kind Service", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "listServiceForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.ServiceList" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/watch/configmaps": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/watch/endpoints": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/watch/events": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/watch/limitranges": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/watch/namespaces": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/watch/namespaces/{namespace}/configmaps": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/watch/namespaces/{namespace}/configmaps/{name}": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the ConfigMap", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/watch/namespaces/{namespace}/endpoints": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/watch/namespaces/{namespace}/endpoints/{name}": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the Endpoints", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/watch/namespaces/{namespace}/events": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/watch/namespaces/{namespace}/events/{name}": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the Event", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/watch/namespaces/{namespace}/limitranges": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/watch/namespaces/{namespace}/limitranges/{name}": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the LimitRange", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/watch/namespaces/{namespace}/persistentvolumeclaims": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/watch/namespaces/{namespace}/persistentvolumeclaims/{name}": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the PersistentVolumeClaim", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/watch/namespaces/{namespace}/pods": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/watch/namespaces/{namespace}/pods/{name}": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the Pod", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/watch/namespaces/{namespace}/podtemplates": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/watch/namespaces/{namespace}/podtemplates/{name}": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the PodTemplate", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/watch/namespaces/{namespace}/replicationcontrollers": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/watch/namespaces/{namespace}/replicationcontrollers/{name}": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the ReplicationController", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/watch/namespaces/{namespace}/resourcequotas": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/watch/namespaces/{namespace}/resourcequotas/{name}": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the ResourceQuota", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/watch/namespaces/{namespace}/secrets": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/watch/namespaces/{namespace}/secrets/{name}": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the Secret", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/watch/namespaces/{namespace}/serviceaccounts": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/watch/namespaces/{namespace}/serviceaccounts/{name}": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the ServiceAccount", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/watch/namespaces/{namespace}/services": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/watch/namespaces/{namespace}/services/{name}": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the Service", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/watch/namespaces/{name}": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the Namespace", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/watch/nodes": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/watch/nodes/{name}": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the Node", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/watch/persistentvolumeclaims": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/watch/persistentvolumes": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/watch/persistentvolumes/{name}": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the PersistentVolume", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/watch/pods": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/watch/podtemplates": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/watch/replicationcontrollers": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/watch/resourcequotas": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/watch/secrets": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/watch/serviceaccounts": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/watch/services": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/": { - "get": { - "description": "get available API versions", - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apis" - ], - "operationId": "getAPIVersions", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIGroupList" - } - }, - "401": { - "description": "Unauthorized" - } - } - } - }, - "/apis/apps/": { - "get": { - "description": "get information of a group", - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps" - ], - "operationId": "getAPIGroup", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIGroup" - } - }, - "401": { - "description": "Unauthorized" - } - } - } - }, - "/apis/apps/v1beta1/": { - "get": { - "description": "get available resources", - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta1" - ], - "operationId": "getAPIResources", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } - } - } - }, - "/apis/apps/v1beta1/deployments": { - "get": { - "description": "list or watch objects of kind Deployment", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta1" - ], - "operationId": "listDeploymentForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/apps.v1beta1.DeploymentList" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/apps/v1beta1/namespaces/{namespace}/deployments": { - "get": { - "description": "list or watch objects of kind Deployment", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta1" - ], - "operationId": "listNamespacedDeployment", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/apps.v1beta1.DeploymentList" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "post": { - "description": "create a Deployment", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta1" - ], - "operationId": "createNamespacedDeployment", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/apps.v1beta1.Deployment" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/apps.v1beta1.Deployment" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "delete": { - "description": "delete collection of Deployment", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta1" - ], - "operationId": "deleteCollectionNamespacedDeployment", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/apps/v1beta1/namespaces/{namespace}/deployments/{name}": { - "get": { - "description": "read the specified Deployment", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta1" - ], - "operationId": "readNamespacedDeployment", - "parameters": [ - { - "uniqueItems": true, - "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", - "name": "exact", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Should this value be exported. Export strips fields that a user can not specify.", - "name": "export", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/apps.v1beta1.Deployment" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "put": { - "description": "replace the specified Deployment", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta1" - ], - "operationId": "replaceNamespacedDeployment", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/apps.v1beta1.Deployment" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/apps.v1beta1.Deployment" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "delete": { - "description": "delete a Deployment", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta1" - ], - "operationId": "deleteNamespacedDeployment", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "uniqueItems": true, - "type": "integer", - "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "name": "orphanDependents", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy.", - "name": "propagationPolicy", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "patch": { - "description": "partially update the specified Deployment", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta1" - ], - "operationId": "patchNamespacedDeployment", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/apps.v1beta1.Deployment" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the Deployment", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/apps/v1beta1/namespaces/{namespace}/deployments/{name}/rollback": { - "post": { - "description": "create rollback of a DeploymentRollback", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta1" - ], - "operationId": "createNamespacedDeploymentRollbackRollback", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/apps.v1beta1.DeploymentRollback" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/apps.v1beta1.DeploymentRollback" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the DeploymentRollback", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/apps/v1beta1/namespaces/{namespace}/deployments/{name}/scale": { - "get": { - "description": "read scale of the specified Scale", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta1" - ], - "operationId": "readNamespacedScaleScale", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/apps.v1beta1.Scale" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "put": { - "description": "replace scale of the specified Scale", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta1" - ], - "operationId": "replaceNamespacedScaleScale", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/apps.v1beta1.Scale" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/apps.v1beta1.Scale" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "patch": { - "description": "partially update scale of the specified Scale", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta1" - ], - "operationId": "patchNamespacedScaleScale", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/apps.v1beta1.Scale" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the Scale", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/apps/v1beta1/namespaces/{namespace}/deployments/{name}/status": { - "get": { - "description": "read status of the specified Deployment", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta1" - ], - "operationId": "readNamespacedDeploymentStatus", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/apps.v1beta1.Deployment" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "put": { - "description": "replace status of the specified Deployment", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta1" - ], - "operationId": "replaceNamespacedDeploymentStatus", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/apps.v1beta1.Deployment" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/apps.v1beta1.Deployment" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "patch": { - "description": "partially update status of the specified Deployment", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta1" - ], - "operationId": "patchNamespacedDeploymentStatus", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/apps.v1beta1.Deployment" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the Deployment", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/apps/v1beta1/namespaces/{namespace}/statefulsets": { - "get": { - "description": "list or watch objects of kind StatefulSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta1" - ], - "operationId": "listNamespacedStatefulSet", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.StatefulSetList" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "post": { - "description": "create a StatefulSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta1" - ], - "operationId": "createNamespacedStatefulSet", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta1.StatefulSet" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.StatefulSet" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "delete": { - "description": "delete collection of StatefulSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta1" - ], - "operationId": "deleteCollectionNamespacedStatefulSet", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/apps/v1beta1/namespaces/{namespace}/statefulsets/{name}": { - "get": { - "description": "read the specified StatefulSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta1" - ], - "operationId": "readNamespacedStatefulSet", - "parameters": [ - { - "uniqueItems": true, - "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", - "name": "exact", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Should this value be exported. Export strips fields that a user can not specify.", - "name": "export", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.StatefulSet" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "put": { - "description": "replace the specified StatefulSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta1" - ], - "operationId": "replaceNamespacedStatefulSet", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta1.StatefulSet" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.StatefulSet" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "delete": { - "description": "delete a StatefulSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta1" - ], - "operationId": "deleteNamespacedStatefulSet", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "uniqueItems": true, - "type": "integer", - "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "name": "orphanDependents", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy.", - "name": "propagationPolicy", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "patch": { - "description": "partially update the specified StatefulSet", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta1" - ], - "operationId": "patchNamespacedStatefulSet", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.StatefulSet" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the StatefulSet", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/apps/v1beta1/namespaces/{namespace}/statefulsets/{name}/status": { - "get": { - "description": "read status of the specified StatefulSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta1" - ], - "operationId": "readNamespacedStatefulSetStatus", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.StatefulSet" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "put": { - "description": "replace status of the specified StatefulSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta1" - ], - "operationId": "replaceNamespacedStatefulSetStatus", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta1.StatefulSet" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.StatefulSet" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "patch": { - "description": "partially update status of the specified StatefulSet", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta1" - ], - "operationId": "patchNamespacedStatefulSetStatus", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.StatefulSet" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the StatefulSet", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/apps/v1beta1/statefulsets": { - "get": { - "description": "list or watch objects of kind StatefulSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta1" - ], - "operationId": "listStatefulSetForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.StatefulSetList" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/apps/v1beta1/watch/deployments": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/apps/v1beta1/watch/namespaces/{namespace}/deployments": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/apps/v1beta1/watch/namespaces/{namespace}/deployments/{name}": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the Deployment", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/apps/v1beta1/watch/namespaces/{namespace}/statefulsets": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/apps/v1beta1/watch/namespaces/{namespace}/statefulsets/{name}": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the StatefulSet", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/apps/v1beta1/watch/statefulsets": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/authentication.k8s.io/": { - "get": { - "description": "get information of a group", - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "authentication" - ], - "operationId": "getAPIGroup", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIGroup" - } - }, - "401": { - "description": "Unauthorized" - } - } - } - }, - "/apis/authentication.k8s.io/v1/": { - "get": { - "description": "get available resources", - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "authentication_v1" - ], - "operationId": "getAPIResources", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } - } - } - }, - "/apis/authentication.k8s.io/v1/tokenreviews": { - "post": { - "description": "create a TokenReview", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "authentication_v1" - ], - "operationId": "createTokenReview", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.TokenReview" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.TokenReview" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/authentication.k8s.io/v1beta1/": { - "get": { - "description": "get available resources", - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "authentication_v1beta1" - ], - "operationId": "getAPIResources", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } - } - } - }, - "/apis/authentication.k8s.io/v1beta1/tokenreviews": { - "post": { - "description": "create a TokenReview", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "authentication_v1beta1" - ], - "operationId": "createTokenReview", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta1.TokenReview" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.TokenReview" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/authorization.k8s.io/": { - "get": { - "description": "get information of a group", - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "authorization" - ], - "operationId": "getAPIGroup", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIGroup" - } - }, - "401": { - "description": "Unauthorized" - } - } - } - }, - "/apis/authorization.k8s.io/v1/": { - "get": { - "description": "get available resources", - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "authorization_v1" - ], - "operationId": "getAPIResources", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } - } - } - }, - "/apis/authorization.k8s.io/v1/namespaces/{namespace}/localsubjectaccessreviews": { - "post": { - "description": "create a LocalSubjectAccessReview", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "authorization_v1" - ], - "operationId": "createNamespacedLocalSubjectAccessReview", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.LocalSubjectAccessReview" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.LocalSubjectAccessReview" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/authorization.k8s.io/v1/selfsubjectaccessreviews": { - "post": { - "description": "create a SelfSubjectAccessReview", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "authorization_v1" - ], - "operationId": "createSelfSubjectAccessReview", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.SelfSubjectAccessReview" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.SelfSubjectAccessReview" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/authorization.k8s.io/v1/subjectaccessreviews": { - "post": { - "description": "create a SubjectAccessReview", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "authorization_v1" - ], - "operationId": "createSubjectAccessReview", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.SubjectAccessReview" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.SubjectAccessReview" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/authorization.k8s.io/v1beta1/": { - "get": { - "description": "get available resources", - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "authorization_v1beta1" - ], - "operationId": "getAPIResources", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } - } - } - }, - "/apis/authorization.k8s.io/v1beta1/namespaces/{namespace}/localsubjectaccessreviews": { - "post": { - "description": "create a LocalSubjectAccessReview", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "authorization_v1beta1" - ], - "operationId": "createNamespacedLocalSubjectAccessReview", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta1.LocalSubjectAccessReview" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.LocalSubjectAccessReview" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/authorization.k8s.io/v1beta1/selfsubjectaccessreviews": { - "post": { - "description": "create a SelfSubjectAccessReview", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "authorization_v1beta1" - ], - "operationId": "createSelfSubjectAccessReview", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta1.SelfSubjectAccessReview" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.SelfSubjectAccessReview" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/authorization.k8s.io/v1beta1/subjectaccessreviews": { - "post": { - "description": "create a SubjectAccessReview", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "authorization_v1beta1" - ], - "operationId": "createSubjectAccessReview", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta1.SubjectAccessReview" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.SubjectAccessReview" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/autoscaling/": { - "get": { - "description": "get information of a group", - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "autoscaling" - ], - "operationId": "getAPIGroup", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIGroup" - } - }, - "401": { - "description": "Unauthorized" - } - } - } - }, - "/apis/autoscaling/v1/": { - "get": { - "description": "get available resources", - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v1" - ], - "operationId": "getAPIResources", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } - } - } - }, - "/apis/autoscaling/v1/horizontalpodautoscalers": { - "get": { - "description": "list or watch objects of kind HorizontalPodAutoscaler", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v1" - ], - "operationId": "listHorizontalPodAutoscalerForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.HorizontalPodAutoscalerList" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers": { - "get": { - "description": "list or watch objects of kind HorizontalPodAutoscaler", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v1" - ], - "operationId": "listNamespacedHorizontalPodAutoscaler", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.HorizontalPodAutoscalerList" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "post": { - "description": "create a HorizontalPodAutoscaler", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v1" - ], - "operationId": "createNamespacedHorizontalPodAutoscaler", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.HorizontalPodAutoscaler" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.HorizontalPodAutoscaler" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "delete": { - "description": "delete collection of HorizontalPodAutoscaler", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v1" - ], - "operationId": "deleteCollectionNamespacedHorizontalPodAutoscaler", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name}": { - "get": { - "description": "read the specified HorizontalPodAutoscaler", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v1" - ], - "operationId": "readNamespacedHorizontalPodAutoscaler", - "parameters": [ - { - "uniqueItems": true, - "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", - "name": "exact", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Should this value be exported. Export strips fields that a user can not specify.", - "name": "export", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.HorizontalPodAutoscaler" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "put": { - "description": "replace the specified HorizontalPodAutoscaler", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v1" - ], - "operationId": "replaceNamespacedHorizontalPodAutoscaler", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.HorizontalPodAutoscaler" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.HorizontalPodAutoscaler" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "delete": { - "description": "delete a HorizontalPodAutoscaler", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v1" - ], - "operationId": "deleteNamespacedHorizontalPodAutoscaler", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "uniqueItems": true, - "type": "integer", - "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "name": "orphanDependents", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy.", - "name": "propagationPolicy", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "patch": { - "description": "partially update the specified HorizontalPodAutoscaler", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v1" - ], - "operationId": "patchNamespacedHorizontalPodAutoscaler", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.HorizontalPodAutoscaler" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the HorizontalPodAutoscaler", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status": { - "get": { - "description": "read status of the specified HorizontalPodAutoscaler", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v1" - ], - "operationId": "readNamespacedHorizontalPodAutoscalerStatus", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.HorizontalPodAutoscaler" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "put": { - "description": "replace status of the specified HorizontalPodAutoscaler", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v1" - ], - "operationId": "replaceNamespacedHorizontalPodAutoscalerStatus", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.HorizontalPodAutoscaler" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.HorizontalPodAutoscaler" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "patch": { - "description": "partially update status of the specified HorizontalPodAutoscaler", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v1" - ], - "operationId": "patchNamespacedHorizontalPodAutoscalerStatus", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.HorizontalPodAutoscaler" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the HorizontalPodAutoscaler", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/autoscaling/v1/watch/horizontalpodautoscalers": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/autoscaling/v1/watch/namespaces/{namespace}/horizontalpodautoscalers": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/autoscaling/v1/watch/namespaces/{namespace}/horizontalpodautoscalers/{name}": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the HorizontalPodAutoscaler", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/autoscaling/v2alpha1/": { - "get": { - "description": "get available resources", - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v2alpha1" - ], - "operationId": "getAPIResources", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } - } - } - }, - "/apis/autoscaling/v2alpha1/horizontalpodautoscalers": { - "get": { - "description": "list or watch objects of kind HorizontalPodAutoscaler", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v2alpha1" - ], - "operationId": "listHorizontalPodAutoscalerForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v2alpha1.HorizontalPodAutoscalerList" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/autoscaling/v2alpha1/namespaces/{namespace}/horizontalpodautoscalers": { - "get": { - "description": "list or watch objects of kind HorizontalPodAutoscaler", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v2alpha1" - ], - "operationId": "listNamespacedHorizontalPodAutoscaler", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v2alpha1.HorizontalPodAutoscalerList" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "post": { - "description": "create a HorizontalPodAutoscaler", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v2alpha1" - ], - "operationId": "createNamespacedHorizontalPodAutoscaler", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v2alpha1.HorizontalPodAutoscaler" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v2alpha1.HorizontalPodAutoscaler" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "delete": { - "description": "delete collection of HorizontalPodAutoscaler", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v2alpha1" - ], - "operationId": "deleteCollectionNamespacedHorizontalPodAutoscaler", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/autoscaling/v2alpha1/namespaces/{namespace}/horizontalpodautoscalers/{name}": { - "get": { - "description": "read the specified HorizontalPodAutoscaler", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v2alpha1" - ], - "operationId": "readNamespacedHorizontalPodAutoscaler", - "parameters": [ - { - "uniqueItems": true, - "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", - "name": "exact", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Should this value be exported. Export strips fields that a user can not specify.", - "name": "export", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v2alpha1.HorizontalPodAutoscaler" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "put": { - "description": "replace the specified HorizontalPodAutoscaler", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v2alpha1" - ], - "operationId": "replaceNamespacedHorizontalPodAutoscaler", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v2alpha1.HorizontalPodAutoscaler" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v2alpha1.HorizontalPodAutoscaler" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "delete": { - "description": "delete a HorizontalPodAutoscaler", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v2alpha1" - ], - "operationId": "deleteNamespacedHorizontalPodAutoscaler", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "uniqueItems": true, - "type": "integer", - "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "name": "orphanDependents", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy.", - "name": "propagationPolicy", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "patch": { - "description": "partially update the specified HorizontalPodAutoscaler", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v2alpha1" - ], - "operationId": "patchNamespacedHorizontalPodAutoscaler", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v2alpha1.HorizontalPodAutoscaler" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the HorizontalPodAutoscaler", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/autoscaling/v2alpha1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status": { - "get": { - "description": "read status of the specified HorizontalPodAutoscaler", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v2alpha1" - ], - "operationId": "readNamespacedHorizontalPodAutoscalerStatus", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v2alpha1.HorizontalPodAutoscaler" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "put": { - "description": "replace status of the specified HorizontalPodAutoscaler", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v2alpha1" - ], - "operationId": "replaceNamespacedHorizontalPodAutoscalerStatus", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v2alpha1.HorizontalPodAutoscaler" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v2alpha1.HorizontalPodAutoscaler" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "patch": { - "description": "partially update status of the specified HorizontalPodAutoscaler", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v2alpha1" - ], - "operationId": "patchNamespacedHorizontalPodAutoscalerStatus", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v2alpha1.HorizontalPodAutoscaler" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the HorizontalPodAutoscaler", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/autoscaling/v2alpha1/watch/horizontalpodautoscalers": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/autoscaling/v2alpha1/watch/namespaces/{namespace}/horizontalpodautoscalers": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/autoscaling/v2alpha1/watch/namespaces/{namespace}/horizontalpodautoscalers/{name}": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the HorizontalPodAutoscaler", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/batch/": { - "get": { - "description": "get information of a group", - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "batch" - ], - "operationId": "getAPIGroup", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIGroup" - } - }, - "401": { - "description": "Unauthorized" - } - } - } - }, - "/apis/batch/v1/": { - "get": { - "description": "get available resources", - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "batch_v1" - ], - "operationId": "getAPIResources", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } - } - } - }, - "/apis/batch/v1/jobs": { - "get": { - "description": "list or watch objects of kind Job", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "batch_v1" - ], - "operationId": "listJobForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.JobList" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/batch/v1/namespaces/{namespace}/jobs": { - "get": { - "description": "list or watch objects of kind Job", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "batch_v1" - ], - "operationId": "listNamespacedJob", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.JobList" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "post": { - "description": "create a Job", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "batch_v1" - ], - "operationId": "createNamespacedJob", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.Job" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Job" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "delete": { - "description": "delete collection of Job", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "batch_v1" - ], - "operationId": "deleteCollectionNamespacedJob", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/batch/v1/namespaces/{namespace}/jobs/{name}": { - "get": { - "description": "read the specified Job", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "batch_v1" - ], - "operationId": "readNamespacedJob", - "parameters": [ - { - "uniqueItems": true, - "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", - "name": "exact", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Should this value be exported. Export strips fields that a user can not specify.", - "name": "export", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Job" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "put": { - "description": "replace the specified Job", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "batch_v1" - ], - "operationId": "replaceNamespacedJob", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.Job" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Job" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "delete": { - "description": "delete a Job", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "batch_v1" - ], - "operationId": "deleteNamespacedJob", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "uniqueItems": true, - "type": "integer", - "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "name": "orphanDependents", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy.", - "name": "propagationPolicy", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "patch": { - "description": "partially update the specified Job", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "batch_v1" - ], - "operationId": "patchNamespacedJob", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Job" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the Job", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/batch/v1/namespaces/{namespace}/jobs/{name}/status": { - "get": { - "description": "read status of the specified Job", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "batch_v1" - ], - "operationId": "readNamespacedJobStatus", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Job" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "put": { - "description": "replace status of the specified Job", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "batch_v1" - ], - "operationId": "replaceNamespacedJobStatus", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.Job" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Job" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "patch": { - "description": "partially update status of the specified Job", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "batch_v1" - ], - "operationId": "patchNamespacedJobStatus", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Job" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the Job", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/batch/v1/watch/jobs": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/batch/v1/watch/namespaces/{namespace}/jobs": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/batch/v1/watch/namespaces/{namespace}/jobs/{name}": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the Job", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/batch/v2alpha1/": { - "get": { - "description": "get available resources", - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "batch_v2alpha1" - ], - "operationId": "getAPIResources", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } - } - } - }, - "/apis/batch/v2alpha1/cronjobs": { - "get": { - "description": "list or watch objects of kind CronJob", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "batch_v2alpha1" - ], - "operationId": "listCronJobForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v2alpha1.CronJobList" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/batch/v2alpha1/namespaces/{namespace}/cronjobs": { - "get": { - "description": "list or watch objects of kind CronJob", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "batch_v2alpha1" - ], - "operationId": "listNamespacedCronJob", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v2alpha1.CronJobList" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "post": { - "description": "create a CronJob", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "batch_v2alpha1" - ], - "operationId": "createNamespacedCronJob", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v2alpha1.CronJob" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v2alpha1.CronJob" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "delete": { - "description": "delete collection of CronJob", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "batch_v2alpha1" - ], - "operationId": "deleteCollectionNamespacedCronJob", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/batch/v2alpha1/namespaces/{namespace}/cronjobs/{name}": { - "get": { - "description": "read the specified CronJob", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "batch_v2alpha1" - ], - "operationId": "readNamespacedCronJob", - "parameters": [ - { - "uniqueItems": true, - "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", - "name": "exact", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Should this value be exported. Export strips fields that a user can not specify.", - "name": "export", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v2alpha1.CronJob" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "put": { - "description": "replace the specified CronJob", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "batch_v2alpha1" - ], - "operationId": "replaceNamespacedCronJob", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v2alpha1.CronJob" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v2alpha1.CronJob" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "delete": { - "description": "delete a CronJob", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "batch_v2alpha1" - ], - "operationId": "deleteNamespacedCronJob", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "uniqueItems": true, - "type": "integer", - "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "name": "orphanDependents", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy.", - "name": "propagationPolicy", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "patch": { - "description": "partially update the specified CronJob", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "batch_v2alpha1" - ], - "operationId": "patchNamespacedCronJob", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v2alpha1.CronJob" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the CronJob", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/batch/v2alpha1/namespaces/{namespace}/cronjobs/{name}/status": { - "get": { - "description": "read status of the specified CronJob", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "batch_v2alpha1" - ], - "operationId": "readNamespacedCronJobStatus", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v2alpha1.CronJob" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "put": { - "description": "replace status of the specified CronJob", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "batch_v2alpha1" - ], - "operationId": "replaceNamespacedCronJobStatus", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v2alpha1.CronJob" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v2alpha1.CronJob" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "patch": { - "description": "partially update status of the specified CronJob", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "batch_v2alpha1" - ], - "operationId": "patchNamespacedCronJobStatus", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v2alpha1.CronJob" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the CronJob", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/batch/v2alpha1/namespaces/{namespace}/scheduledjobs": { - "get": { - "description": "list or watch objects of kind ScheduledJob", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "batch_v2alpha1" - ], - "operationId": "listNamespacedScheduledJob", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v2alpha1.CronJobList" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "post": { - "description": "create a ScheduledJob", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "batch_v2alpha1" - ], - "operationId": "createNamespacedScheduledJob", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v2alpha1.CronJob" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v2alpha1.CronJob" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "delete": { - "description": "delete collection of ScheduledJob", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "batch_v2alpha1" - ], - "operationId": "deleteCollectionNamespacedScheduledJob", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/batch/v2alpha1/namespaces/{namespace}/scheduledjobs/{name}": { - "get": { - "description": "read the specified ScheduledJob", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "batch_v2alpha1" - ], - "operationId": "readNamespacedScheduledJob", - "parameters": [ - { - "uniqueItems": true, - "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", - "name": "exact", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Should this value be exported. Export strips fields that a user can not specify.", - "name": "export", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v2alpha1.CronJob" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "put": { - "description": "replace the specified ScheduledJob", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "batch_v2alpha1" - ], - "operationId": "replaceNamespacedScheduledJob", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v2alpha1.CronJob" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v2alpha1.CronJob" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "delete": { - "description": "delete a ScheduledJob", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "batch_v2alpha1" - ], - "operationId": "deleteNamespacedScheduledJob", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "uniqueItems": true, - "type": "integer", - "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "name": "orphanDependents", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy.", - "name": "propagationPolicy", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "patch": { - "description": "partially update the specified ScheduledJob", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "batch_v2alpha1" - ], - "operationId": "patchNamespacedScheduledJob", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v2alpha1.CronJob" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the ScheduledJob", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/batch/v2alpha1/namespaces/{namespace}/scheduledjobs/{name}/status": { - "get": { - "description": "read status of the specified ScheduledJob", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "batch_v2alpha1" - ], - "operationId": "readNamespacedScheduledJobStatus", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v2alpha1.CronJob" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "put": { - "description": "replace status of the specified ScheduledJob", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "batch_v2alpha1" - ], - "operationId": "replaceNamespacedScheduledJobStatus", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v2alpha1.CronJob" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v2alpha1.CronJob" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "patch": { - "description": "partially update status of the specified ScheduledJob", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "batch_v2alpha1" - ], - "operationId": "patchNamespacedScheduledJobStatus", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v2alpha1.CronJob" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the ScheduledJob", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/batch/v2alpha1/scheduledjobs": { - "get": { - "description": "list or watch objects of kind ScheduledJob", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "batch_v2alpha1" - ], - "operationId": "listScheduledJobForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v2alpha1.CronJobList" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/batch/v2alpha1/watch/cronjobs": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/batch/v2alpha1/watch/namespaces/{namespace}/cronjobs": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/batch/v2alpha1/watch/namespaces/{namespace}/cronjobs/{name}": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the CronJob", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/batch/v2alpha1/watch/namespaces/{namespace}/scheduledjobs": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/batch/v2alpha1/watch/namespaces/{namespace}/scheduledjobs/{name}": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the ScheduledJob", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/batch/v2alpha1/watch/scheduledjobs": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/certificates.k8s.io/": { - "get": { - "description": "get information of a group", - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "certificates" - ], - "operationId": "getAPIGroup", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIGroup" - } - }, - "401": { - "description": "Unauthorized" - } - } - } - }, - "/apis/certificates.k8s.io/v1beta1/": { - "get": { - "description": "get available resources", - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "certificates_v1beta1" - ], - "operationId": "getAPIResources", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } - } - } - }, - "/apis/certificates.k8s.io/v1beta1/certificatesigningrequests": { - "get": { - "description": "list or watch objects of kind CertificateSigningRequest", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "certificates_v1beta1" - ], - "operationId": "listCertificateSigningRequest", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.CertificateSigningRequestList" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "post": { - "description": "create a CertificateSigningRequest", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "certificates_v1beta1" - ], - "operationId": "createCertificateSigningRequest", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta1.CertificateSigningRequest" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.CertificateSigningRequest" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "delete": { - "description": "delete collection of CertificateSigningRequest", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "certificates_v1beta1" - ], - "operationId": "deleteCollectionCertificateSigningRequest", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/certificates.k8s.io/v1beta1/certificatesigningrequests/{name}": { - "get": { - "description": "read the specified CertificateSigningRequest", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "certificates_v1beta1" - ], - "operationId": "readCertificateSigningRequest", - "parameters": [ - { - "uniqueItems": true, - "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", - "name": "exact", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Should this value be exported. Export strips fields that a user can not specify.", - "name": "export", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.CertificateSigningRequest" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "put": { - "description": "replace the specified CertificateSigningRequest", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "certificates_v1beta1" - ], - "operationId": "replaceCertificateSigningRequest", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta1.CertificateSigningRequest" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.CertificateSigningRequest" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "delete": { - "description": "delete a CertificateSigningRequest", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "certificates_v1beta1" - ], - "operationId": "deleteCertificateSigningRequest", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "uniqueItems": true, - "type": "integer", - "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "name": "orphanDependents", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy.", - "name": "propagationPolicy", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "patch": { - "description": "partially update the specified CertificateSigningRequest", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "certificates_v1beta1" - ], - "operationId": "patchCertificateSigningRequest", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.CertificateSigningRequest" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the CertificateSigningRequest", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/certificates.k8s.io/v1beta1/certificatesigningrequests/{name}/approval": { - "put": { - "description": "replace approval of the specified CertificateSigningRequest", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "certificates_v1beta1" - ], - "operationId": "replaceCertificateSigningRequestApproval", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta1.CertificateSigningRequest" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.CertificateSigningRequest" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the CertificateSigningRequest", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/certificates.k8s.io/v1beta1/certificatesigningrequests/{name}/status": { - "put": { - "description": "replace status of the specified CertificateSigningRequest", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "certificates_v1beta1" - ], - "operationId": "replaceCertificateSigningRequestStatus", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta1.CertificateSigningRequest" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.CertificateSigningRequest" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the CertificateSigningRequest", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/certificates.k8s.io/v1beta1/watch/certificatesigningrequests": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/certificates.k8s.io/v1beta1/watch/certificatesigningrequests/{name}": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the CertificateSigningRequest", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/extensions/": { - "get": { - "description": "get information of a group", - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions" - ], - "operationId": "getAPIGroup", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIGroup" - } - }, - "401": { - "description": "Unauthorized" - } - } - } - }, - "/apis/extensions/v1beta1/": { - "get": { - "description": "get available resources", - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "getAPIResources", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } - } - } - }, - "/apis/extensions/v1beta1/daemonsets": { - "get": { - "description": "list or watch objects of kind DaemonSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "listDaemonSetForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.DaemonSetList" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/extensions/v1beta1/deployments": { - "get": { - "description": "list or watch objects of kind Deployment", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "listDeploymentForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/extensions.v1beta1.DeploymentList" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/extensions/v1beta1/ingresses": { - "get": { - "description": "list or watch objects of kind Ingress", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "listIngressForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.IngressList" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/extensions/v1beta1/namespaces/{namespace}/daemonsets": { - "get": { - "description": "list or watch objects of kind DaemonSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "listNamespacedDaemonSet", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.DaemonSetList" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "post": { - "description": "create a DaemonSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "createNamespacedDaemonSet", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta1.DaemonSet" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.DaemonSet" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "delete": { - "description": "delete collection of DaemonSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "deleteCollectionNamespacedDaemonSet", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/extensions/v1beta1/namespaces/{namespace}/daemonsets/{name}": { - "get": { - "description": "read the specified DaemonSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "readNamespacedDaemonSet", - "parameters": [ - { - "uniqueItems": true, - "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", - "name": "exact", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Should this value be exported. Export strips fields that a user can not specify.", - "name": "export", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.DaemonSet" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "put": { - "description": "replace the specified DaemonSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "replaceNamespacedDaemonSet", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta1.DaemonSet" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.DaemonSet" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "delete": { - "description": "delete a DaemonSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "deleteNamespacedDaemonSet", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "uniqueItems": true, - "type": "integer", - "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "name": "orphanDependents", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy.", - "name": "propagationPolicy", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "patch": { - "description": "partially update the specified DaemonSet", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "patchNamespacedDaemonSet", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.DaemonSet" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the DaemonSet", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/extensions/v1beta1/namespaces/{namespace}/daemonsets/{name}/status": { - "get": { - "description": "read status of the specified DaemonSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "readNamespacedDaemonSetStatus", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.DaemonSet" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "put": { - "description": "replace status of the specified DaemonSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "replaceNamespacedDaemonSetStatus", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta1.DaemonSet" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.DaemonSet" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "patch": { - "description": "partially update status of the specified DaemonSet", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "patchNamespacedDaemonSetStatus", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.DaemonSet" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the DaemonSet", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/extensions/v1beta1/namespaces/{namespace}/deployments": { - "get": { - "description": "list or watch objects of kind Deployment", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "listNamespacedDeployment", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/extensions.v1beta1.DeploymentList" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "post": { - "description": "create a Deployment", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "createNamespacedDeployment", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/extensions.v1beta1.Deployment" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/extensions.v1beta1.Deployment" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "delete": { - "description": "delete collection of Deployment", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "deleteCollectionNamespacedDeployment", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}": { - "get": { - "description": "read the specified Deployment", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "readNamespacedDeployment", - "parameters": [ - { - "uniqueItems": true, - "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", - "name": "exact", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Should this value be exported. Export strips fields that a user can not specify.", - "name": "export", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/extensions.v1beta1.Deployment" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "put": { - "description": "replace the specified Deployment", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "replaceNamespacedDeployment", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/extensions.v1beta1.Deployment" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/extensions.v1beta1.Deployment" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "delete": { - "description": "delete a Deployment", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "deleteNamespacedDeployment", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "uniqueItems": true, - "type": "integer", - "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "name": "orphanDependents", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy.", - "name": "propagationPolicy", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "patch": { - "description": "partially update the specified Deployment", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "patchNamespacedDeployment", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/extensions.v1beta1.Deployment" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the Deployment", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/rollback": { - "post": { - "description": "create rollback of a DeploymentRollback", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "createNamespacedDeploymentRollbackRollback", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/extensions.v1beta1.DeploymentRollback" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/extensions.v1beta1.DeploymentRollback" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the DeploymentRollback", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/scale": { - "get": { - "description": "read scale of the specified Scale", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "readNamespacedDeploymentsScale", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/extensions.v1beta1.Scale" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "put": { - "description": "replace scale of the specified Scale", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "replaceNamespacedDeploymentsScale", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/extensions.v1beta1.Scale" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/extensions.v1beta1.Scale" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "patch": { - "description": "partially update scale of the specified Scale", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "patchNamespacedDeploymentsScale", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/extensions.v1beta1.Scale" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the Scale", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/status": { - "get": { - "description": "read status of the specified Deployment", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "readNamespacedDeploymentStatus", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/extensions.v1beta1.Deployment" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "put": { - "description": "replace status of the specified Deployment", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "replaceNamespacedDeploymentStatus", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/extensions.v1beta1.Deployment" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/extensions.v1beta1.Deployment" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "patch": { - "description": "partially update status of the specified Deployment", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "patchNamespacedDeploymentStatus", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/extensions.v1beta1.Deployment" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the Deployment", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/extensions/v1beta1/namespaces/{namespace}/ingresses": { - "get": { - "description": "list or watch objects of kind Ingress", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "listNamespacedIngress", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.IngressList" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "post": { - "description": "create an Ingress", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "createNamespacedIngress", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta1.Ingress" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.Ingress" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "delete": { - "description": "delete collection of Ingress", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "deleteCollectionNamespacedIngress", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name}": { - "get": { - "description": "read the specified Ingress", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "readNamespacedIngress", - "parameters": [ - { - "uniqueItems": true, - "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", - "name": "exact", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Should this value be exported. Export strips fields that a user can not specify.", - "name": "export", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.Ingress" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "put": { - "description": "replace the specified Ingress", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "replaceNamespacedIngress", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta1.Ingress" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.Ingress" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "delete": { - "description": "delete an Ingress", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "deleteNamespacedIngress", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "uniqueItems": true, - "type": "integer", - "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "name": "orphanDependents", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy.", - "name": "propagationPolicy", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "patch": { - "description": "partially update the specified Ingress", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "patchNamespacedIngress", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.Ingress" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the Ingress", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name}/status": { - "get": { - "description": "read status of the specified Ingress", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "readNamespacedIngressStatus", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.Ingress" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "put": { - "description": "replace status of the specified Ingress", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "replaceNamespacedIngressStatus", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta1.Ingress" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.Ingress" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "patch": { - "description": "partially update status of the specified Ingress", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "patchNamespacedIngressStatus", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.Ingress" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the Ingress", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/extensions/v1beta1/namespaces/{namespace}/networkpolicies": { - "get": { - "description": "list or watch objects of kind NetworkPolicy", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "listNamespacedNetworkPolicy", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.NetworkPolicyList" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "post": { - "description": "create a NetworkPolicy", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "createNamespacedNetworkPolicy", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta1.NetworkPolicy" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.NetworkPolicy" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "delete": { - "description": "delete collection of NetworkPolicy", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "deleteCollectionNamespacedNetworkPolicy", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/extensions/v1beta1/namespaces/{namespace}/networkpolicies/{name}": { - "get": { - "description": "read the specified NetworkPolicy", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "readNamespacedNetworkPolicy", - "parameters": [ - { - "uniqueItems": true, - "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", - "name": "exact", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Should this value be exported. Export strips fields that a user can not specify.", - "name": "export", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.NetworkPolicy" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "put": { - "description": "replace the specified NetworkPolicy", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "replaceNamespacedNetworkPolicy", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta1.NetworkPolicy" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.NetworkPolicy" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "delete": { - "description": "delete a NetworkPolicy", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "deleteNamespacedNetworkPolicy", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "uniqueItems": true, - "type": "integer", - "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "name": "orphanDependents", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy.", - "name": "propagationPolicy", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "patch": { - "description": "partially update the specified NetworkPolicy", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "patchNamespacedNetworkPolicy", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.NetworkPolicy" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the NetworkPolicy", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/extensions/v1beta1/namespaces/{namespace}/replicasets": { - "get": { - "description": "list or watch objects of kind ReplicaSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "listNamespacedReplicaSet", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.ReplicaSetList" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "post": { - "description": "create a ReplicaSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "createNamespacedReplicaSet", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta1.ReplicaSet" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.ReplicaSet" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "delete": { - "description": "delete collection of ReplicaSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "deleteCollectionNamespacedReplicaSet", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}": { - "get": { - "description": "read the specified ReplicaSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "readNamespacedReplicaSet", - "parameters": [ - { - "uniqueItems": true, - "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", - "name": "exact", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Should this value be exported. Export strips fields that a user can not specify.", - "name": "export", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.ReplicaSet" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "put": { - "description": "replace the specified ReplicaSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "replaceNamespacedReplicaSet", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta1.ReplicaSet" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.ReplicaSet" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "delete": { - "description": "delete a ReplicaSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "deleteNamespacedReplicaSet", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "uniqueItems": true, - "type": "integer", - "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "name": "orphanDependents", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy.", - "name": "propagationPolicy", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "patch": { - "description": "partially update the specified ReplicaSet", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "patchNamespacedReplicaSet", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.ReplicaSet" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the ReplicaSet", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}/scale": { - "get": { - "description": "read scale of the specified Scale", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "readNamespacedReplicasetsScale", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/extensions.v1beta1.Scale" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "put": { - "description": "replace scale of the specified Scale", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "replaceNamespacedReplicasetsScale", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/extensions.v1beta1.Scale" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/extensions.v1beta1.Scale" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "patch": { - "description": "partially update scale of the specified Scale", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "patchNamespacedReplicasetsScale", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/extensions.v1beta1.Scale" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the Scale", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}/status": { - "get": { - "description": "read status of the specified ReplicaSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "readNamespacedReplicaSetStatus", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.ReplicaSet" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "put": { - "description": "replace status of the specified ReplicaSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "replaceNamespacedReplicaSetStatus", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta1.ReplicaSet" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.ReplicaSet" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "patch": { - "description": "partially update status of the specified ReplicaSet", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "patchNamespacedReplicaSetStatus", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.ReplicaSet" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the ReplicaSet", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/extensions/v1beta1/namespaces/{namespace}/replicationcontrollers/{name}/scale": { - "get": { - "description": "read scale of the specified Scale", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "readNamespacedReplicationcontrollersScale", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/extensions.v1beta1.Scale" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "put": { - "description": "replace scale of the specified Scale", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "replaceNamespacedReplicationcontrollersScale", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/extensions.v1beta1.Scale" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/extensions.v1beta1.Scale" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "patch": { - "description": "partially update scale of the specified Scale", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "patchNamespacedReplicationcontrollersScale", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/extensions.v1beta1.Scale" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the Scale", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/extensions/v1beta1/networkpolicies": { - "get": { - "description": "list or watch objects of kind NetworkPolicy", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "listNetworkPolicyForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.NetworkPolicyList" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/extensions/v1beta1/podsecuritypolicies": { - "get": { - "description": "list or watch objects of kind PodSecurityPolicy", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "listPodSecurityPolicy", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.PodSecurityPolicyList" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "post": { - "description": "create a PodSecurityPolicy", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "createPodSecurityPolicy", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta1.PodSecurityPolicy" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.PodSecurityPolicy" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "delete": { - "description": "delete collection of PodSecurityPolicy", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "deleteCollectionPodSecurityPolicy", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/extensions/v1beta1/podsecuritypolicies/{name}": { - "get": { - "description": "read the specified PodSecurityPolicy", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "readPodSecurityPolicy", - "parameters": [ - { - "uniqueItems": true, - "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", - "name": "exact", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Should this value be exported. Export strips fields that a user can not specify.", - "name": "export", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.PodSecurityPolicy" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "put": { - "description": "replace the specified PodSecurityPolicy", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "replacePodSecurityPolicy", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta1.PodSecurityPolicy" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.PodSecurityPolicy" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "delete": { - "description": "delete a PodSecurityPolicy", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "deletePodSecurityPolicy", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "uniqueItems": true, - "type": "integer", - "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "name": "orphanDependents", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy.", - "name": "propagationPolicy", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "patch": { - "description": "partially update the specified PodSecurityPolicy", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "patchPodSecurityPolicy", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.PodSecurityPolicy" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the PodSecurityPolicy", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/extensions/v1beta1/replicasets": { - "get": { - "description": "list or watch objects of kind ReplicaSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "listReplicaSetForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.ReplicaSetList" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/extensions/v1beta1/thirdpartyresources": { - "get": { - "description": "list or watch objects of kind ThirdPartyResource", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "listThirdPartyResource", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.ThirdPartyResourceList" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "post": { - "description": "create a ThirdPartyResource", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "createThirdPartyResource", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta1.ThirdPartyResource" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.ThirdPartyResource" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "delete": { - "description": "delete collection of ThirdPartyResource", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "deleteCollectionThirdPartyResource", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/extensions/v1beta1/thirdpartyresources/{name}": { - "get": { - "description": "read the specified ThirdPartyResource", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "readThirdPartyResource", - "parameters": [ - { - "uniqueItems": true, - "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", - "name": "exact", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Should this value be exported. Export strips fields that a user can not specify.", - "name": "export", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.ThirdPartyResource" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "put": { - "description": "replace the specified ThirdPartyResource", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "replaceThirdPartyResource", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta1.ThirdPartyResource" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.ThirdPartyResource" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "delete": { - "description": "delete a ThirdPartyResource", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "deleteThirdPartyResource", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "uniqueItems": true, - "type": "integer", - "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "name": "orphanDependents", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy.", - "name": "propagationPolicy", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "patch": { - "description": "partially update the specified ThirdPartyResource", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "patchThirdPartyResource", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.ThirdPartyResource" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the ThirdPartyResource", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/extensions/v1beta1/watch/daemonsets": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/extensions/v1beta1/watch/deployments": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/extensions/v1beta1/watch/ingresses": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/extensions/v1beta1/watch/namespaces/{namespace}/daemonsets": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/extensions/v1beta1/watch/namespaces/{namespace}/daemonsets/{name}": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the DaemonSet", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/extensions/v1beta1/watch/namespaces/{namespace}/deployments": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/extensions/v1beta1/watch/namespaces/{namespace}/deployments/{name}": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the Deployment", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/extensions/v1beta1/watch/namespaces/{namespace}/ingresses": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/extensions/v1beta1/watch/namespaces/{namespace}/ingresses/{name}": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the Ingress", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/extensions/v1beta1/watch/namespaces/{namespace}/networkpolicies": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/extensions/v1beta1/watch/namespaces/{namespace}/networkpolicies/{name}": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the NetworkPolicy", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/extensions/v1beta1/watch/namespaces/{namespace}/replicasets": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/extensions/v1beta1/watch/namespaces/{namespace}/replicasets/{name}": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the ReplicaSet", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/extensions/v1beta1/watch/networkpolicies": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/extensions/v1beta1/watch/podsecuritypolicies": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/extensions/v1beta1/watch/podsecuritypolicies/{name}": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the PodSecurityPolicy", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/extensions/v1beta1/watch/replicasets": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/extensions/v1beta1/watch/thirdpartyresources": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/extensions/v1beta1/watch/thirdpartyresources/{name}": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the ThirdPartyResource", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/policy/": { - "get": { - "description": "get information of a group", - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "policy" - ], - "operationId": "getAPIGroup", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIGroup" - } - }, - "401": { - "description": "Unauthorized" - } - } - } - }, - "/apis/policy/v1beta1/": { - "get": { - "description": "get available resources", - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "policy_v1beta1" - ], - "operationId": "getAPIResources", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } - } - } - }, - "/apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets": { - "get": { - "description": "list or watch objects of kind PodDisruptionBudget", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "policy_v1beta1" - ], - "operationId": "listNamespacedPodDisruptionBudget", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.PodDisruptionBudgetList" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "post": { - "description": "create a PodDisruptionBudget", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "policy_v1beta1" - ], - "operationId": "createNamespacedPodDisruptionBudget", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta1.PodDisruptionBudget" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.PodDisruptionBudget" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "delete": { - "description": "delete collection of PodDisruptionBudget", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "policy_v1beta1" - ], - "operationId": "deleteCollectionNamespacedPodDisruptionBudget", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets/{name}": { - "get": { - "description": "read the specified PodDisruptionBudget", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "policy_v1beta1" - ], - "operationId": "readNamespacedPodDisruptionBudget", - "parameters": [ - { - "uniqueItems": true, - "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", - "name": "exact", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Should this value be exported. Export strips fields that a user can not specify.", - "name": "export", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.PodDisruptionBudget" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "put": { - "description": "replace the specified PodDisruptionBudget", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "policy_v1beta1" - ], - "operationId": "replaceNamespacedPodDisruptionBudget", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta1.PodDisruptionBudget" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.PodDisruptionBudget" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "delete": { - "description": "delete a PodDisruptionBudget", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "policy_v1beta1" - ], - "operationId": "deleteNamespacedPodDisruptionBudget", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "uniqueItems": true, - "type": "integer", - "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "name": "orphanDependents", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy.", - "name": "propagationPolicy", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "patch": { - "description": "partially update the specified PodDisruptionBudget", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "policy_v1beta1" - ], - "operationId": "patchNamespacedPodDisruptionBudget", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.PodDisruptionBudget" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the PodDisruptionBudget", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets/{name}/status": { - "get": { - "description": "read status of the specified PodDisruptionBudget", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "policy_v1beta1" - ], - "operationId": "readNamespacedPodDisruptionBudgetStatus", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.PodDisruptionBudget" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "put": { - "description": "replace status of the specified PodDisruptionBudget", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "policy_v1beta1" - ], - "operationId": "replaceNamespacedPodDisruptionBudgetStatus", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta1.PodDisruptionBudget" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.PodDisruptionBudget" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "patch": { - "description": "partially update status of the specified PodDisruptionBudget", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "policy_v1beta1" - ], - "operationId": "patchNamespacedPodDisruptionBudgetStatus", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.PodDisruptionBudget" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the PodDisruptionBudget", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/policy/v1beta1/poddisruptionbudgets": { - "get": { - "description": "list or watch objects of kind PodDisruptionBudget", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "policy_v1beta1" - ], - "operationId": "listPodDisruptionBudgetForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.PodDisruptionBudgetList" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/policy/v1beta1/watch/namespaces/{namespace}/poddisruptionbudgets": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/policy/v1beta1/watch/namespaces/{namespace}/poddisruptionbudgets/{name}": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the PodDisruptionBudget", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/policy/v1beta1/watch/poddisruptionbudgets": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/": { - "get": { - "description": "get information of a group", - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization" - ], - "operationId": "getAPIGroup", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIGroup" - } - }, - "401": { - "description": "Unauthorized" - } - } - } - }, - "/apis/rbac.authorization.k8s.io/v1alpha1/": { - "get": { - "description": "get available resources", - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1alpha1" - ], - "operationId": "getAPIResources", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } - } - } - }, - "/apis/rbac.authorization.k8s.io/v1alpha1/clusterrolebindings": { - "get": { - "description": "list or watch objects of kind ClusterRoleBinding", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1alpha1" - ], - "operationId": "listClusterRoleBinding", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1alpha1.ClusterRoleBindingList" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "post": { - "description": "create a ClusterRoleBinding", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1alpha1" - ], - "operationId": "createClusterRoleBinding", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1alpha1.ClusterRoleBinding" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1alpha1.ClusterRoleBinding" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "delete": { - "description": "delete collection of ClusterRoleBinding", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1alpha1" - ], - "operationId": "deleteCollectionClusterRoleBinding", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1alpha1/clusterrolebindings/{name}": { - "get": { - "description": "read the specified ClusterRoleBinding", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1alpha1" - ], - "operationId": "readClusterRoleBinding", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1alpha1.ClusterRoleBinding" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "put": { - "description": "replace the specified ClusterRoleBinding", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1alpha1" - ], - "operationId": "replaceClusterRoleBinding", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1alpha1.ClusterRoleBinding" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1alpha1.ClusterRoleBinding" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "delete": { - "description": "delete a ClusterRoleBinding", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1alpha1" - ], - "operationId": "deleteClusterRoleBinding", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "uniqueItems": true, - "type": "integer", - "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "name": "orphanDependents", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy.", - "name": "propagationPolicy", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "patch": { - "description": "partially update the specified ClusterRoleBinding", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1alpha1" - ], - "operationId": "patchClusterRoleBinding", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1alpha1.ClusterRoleBinding" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the ClusterRoleBinding", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1alpha1/clusterroles": { - "get": { - "description": "list or watch objects of kind ClusterRole", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1alpha1" - ], - "operationId": "listClusterRole", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1alpha1.ClusterRoleList" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "post": { - "description": "create a ClusterRole", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1alpha1" - ], - "operationId": "createClusterRole", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1alpha1.ClusterRole" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1alpha1.ClusterRole" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "delete": { - "description": "delete collection of ClusterRole", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1alpha1" - ], - "operationId": "deleteCollectionClusterRole", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1alpha1/clusterroles/{name}": { - "get": { - "description": "read the specified ClusterRole", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1alpha1" - ], - "operationId": "readClusterRole", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1alpha1.ClusterRole" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "put": { - "description": "replace the specified ClusterRole", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1alpha1" - ], - "operationId": "replaceClusterRole", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1alpha1.ClusterRole" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1alpha1.ClusterRole" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "delete": { - "description": "delete a ClusterRole", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1alpha1" - ], - "operationId": "deleteClusterRole", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "uniqueItems": true, - "type": "integer", - "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "name": "orphanDependents", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy.", - "name": "propagationPolicy", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "patch": { - "description": "partially update the specified ClusterRole", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1alpha1" - ], - "operationId": "patchClusterRole", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1alpha1.ClusterRole" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the ClusterRole", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/rolebindings": { - "get": { - "description": "list or watch objects of kind RoleBinding", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1alpha1" - ], - "operationId": "listNamespacedRoleBinding", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1alpha1.RoleBindingList" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "post": { - "description": "create a RoleBinding", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1alpha1" - ], - "operationId": "createNamespacedRoleBinding", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1alpha1.RoleBinding" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1alpha1.RoleBinding" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "delete": { - "description": "delete collection of RoleBinding", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1alpha1" - ], - "operationId": "deleteCollectionNamespacedRoleBinding", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/rolebindings/{name}": { - "get": { - "description": "read the specified RoleBinding", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1alpha1" - ], - "operationId": "readNamespacedRoleBinding", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1alpha1.RoleBinding" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "put": { - "description": "replace the specified RoleBinding", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1alpha1" - ], - "operationId": "replaceNamespacedRoleBinding", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1alpha1.RoleBinding" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1alpha1.RoleBinding" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "delete": { - "description": "delete a RoleBinding", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1alpha1" - ], - "operationId": "deleteNamespacedRoleBinding", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "uniqueItems": true, - "type": "integer", - "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "name": "orphanDependents", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy.", - "name": "propagationPolicy", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "patch": { - "description": "partially update the specified RoleBinding", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1alpha1" - ], - "operationId": "patchNamespacedRoleBinding", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1alpha1.RoleBinding" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the RoleBinding", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/roles": { - "get": { - "description": "list or watch objects of kind Role", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1alpha1" - ], - "operationId": "listNamespacedRole", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1alpha1.RoleList" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "post": { - "description": "create a Role", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1alpha1" - ], - "operationId": "createNamespacedRole", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1alpha1.Role" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1alpha1.Role" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "delete": { - "description": "delete collection of Role", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1alpha1" - ], - "operationId": "deleteCollectionNamespacedRole", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/roles/{name}": { - "get": { - "description": "read the specified Role", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1alpha1" - ], - "operationId": "readNamespacedRole", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1alpha1.Role" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "put": { - "description": "replace the specified Role", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1alpha1" - ], - "operationId": "replaceNamespacedRole", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1alpha1.Role" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1alpha1.Role" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "delete": { - "description": "delete a Role", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1alpha1" - ], - "operationId": "deleteNamespacedRole", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "uniqueItems": true, - "type": "integer", - "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "name": "orphanDependents", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy.", - "name": "propagationPolicy", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "patch": { - "description": "partially update the specified Role", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1alpha1" - ], - "operationId": "patchNamespacedRole", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1alpha1.Role" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the Role", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1alpha1/rolebindings": { - "get": { - "description": "list or watch objects of kind RoleBinding", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1alpha1" - ], - "operationId": "listRoleBindingForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1alpha1.RoleBindingList" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1alpha1/roles": { - "get": { - "description": "list or watch objects of kind Role", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1alpha1" - ], - "operationId": "listRoleForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1alpha1.RoleList" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1alpha1/watch/clusterrolebindings": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1alpha1/watch/clusterrolebindings/{name}": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the ClusterRoleBinding", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1alpha1/watch/clusterroles": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1alpha1/watch/clusterroles/{name}": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the ClusterRole", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1alpha1/watch/namespaces/{namespace}/rolebindings": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1alpha1/watch/namespaces/{namespace}/rolebindings/{name}": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the RoleBinding", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1alpha1/watch/namespaces/{namespace}/roles": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1alpha1/watch/namespaces/{namespace}/roles/{name}": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the Role", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1alpha1/watch/rolebindings": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1alpha1/watch/roles": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1beta1/": { - "get": { - "description": "get available resources", - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1beta1" - ], - "operationId": "getAPIResources", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } - } - } - }, - "/apis/rbac.authorization.k8s.io/v1beta1/clusterrolebindings": { - "get": { - "description": "list or watch objects of kind ClusterRoleBinding", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1beta1" - ], - "operationId": "listClusterRoleBinding", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.ClusterRoleBindingList" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "post": { - "description": "create a ClusterRoleBinding", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1beta1" - ], - "operationId": "createClusterRoleBinding", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta1.ClusterRoleBinding" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.ClusterRoleBinding" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "delete": { - "description": "delete collection of ClusterRoleBinding", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1beta1" - ], - "operationId": "deleteCollectionClusterRoleBinding", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1beta1/clusterrolebindings/{name}": { - "get": { - "description": "read the specified ClusterRoleBinding", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1beta1" - ], - "operationId": "readClusterRoleBinding", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.ClusterRoleBinding" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "put": { - "description": "replace the specified ClusterRoleBinding", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1beta1" - ], - "operationId": "replaceClusterRoleBinding", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta1.ClusterRoleBinding" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.ClusterRoleBinding" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "delete": { - "description": "delete a ClusterRoleBinding", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1beta1" - ], - "operationId": "deleteClusterRoleBinding", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "uniqueItems": true, - "type": "integer", - "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "name": "orphanDependents", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy.", - "name": "propagationPolicy", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "patch": { - "description": "partially update the specified ClusterRoleBinding", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1beta1" - ], - "operationId": "patchClusterRoleBinding", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.ClusterRoleBinding" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the ClusterRoleBinding", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1beta1/clusterroles": { - "get": { - "description": "list or watch objects of kind ClusterRole", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1beta1" - ], - "operationId": "listClusterRole", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.ClusterRoleList" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "post": { - "description": "create a ClusterRole", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1beta1" - ], - "operationId": "createClusterRole", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta1.ClusterRole" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.ClusterRole" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "delete": { - "description": "delete collection of ClusterRole", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1beta1" - ], - "operationId": "deleteCollectionClusterRole", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1beta1/clusterroles/{name}": { - "get": { - "description": "read the specified ClusterRole", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1beta1" - ], - "operationId": "readClusterRole", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.ClusterRole" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "put": { - "description": "replace the specified ClusterRole", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1beta1" - ], - "operationId": "replaceClusterRole", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta1.ClusterRole" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.ClusterRole" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "delete": { - "description": "delete a ClusterRole", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1beta1" - ], - "operationId": "deleteClusterRole", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "uniqueItems": true, - "type": "integer", - "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "name": "orphanDependents", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy.", - "name": "propagationPolicy", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "patch": { - "description": "partially update the specified ClusterRole", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1beta1" - ], - "operationId": "patchClusterRole", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.ClusterRole" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the ClusterRole", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/rolebindings": { - "get": { - "description": "list or watch objects of kind RoleBinding", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1beta1" - ], - "operationId": "listNamespacedRoleBinding", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.RoleBindingList" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "post": { - "description": "create a RoleBinding", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1beta1" - ], - "operationId": "createNamespacedRoleBinding", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta1.RoleBinding" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.RoleBinding" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "delete": { - "description": "delete collection of RoleBinding", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1beta1" - ], - "operationId": "deleteCollectionNamespacedRoleBinding", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/rolebindings/{name}": { - "get": { - "description": "read the specified RoleBinding", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1beta1" - ], - "operationId": "readNamespacedRoleBinding", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.RoleBinding" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "put": { - "description": "replace the specified RoleBinding", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1beta1" - ], - "operationId": "replaceNamespacedRoleBinding", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta1.RoleBinding" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.RoleBinding" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "delete": { - "description": "delete a RoleBinding", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1beta1" - ], - "operationId": "deleteNamespacedRoleBinding", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "uniqueItems": true, - "type": "integer", - "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "name": "orphanDependents", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy.", - "name": "propagationPolicy", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "patch": { - "description": "partially update the specified RoleBinding", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1beta1" - ], - "operationId": "patchNamespacedRoleBinding", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.RoleBinding" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the RoleBinding", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/roles": { - "get": { - "description": "list or watch objects of kind Role", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1beta1" - ], - "operationId": "listNamespacedRole", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.RoleList" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "post": { - "description": "create a Role", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1beta1" - ], - "operationId": "createNamespacedRole", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta1.Role" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.Role" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "delete": { - "description": "delete collection of Role", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1beta1" - ], - "operationId": "deleteCollectionNamespacedRole", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/roles/{name}": { - "get": { - "description": "read the specified Role", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1beta1" - ], - "operationId": "readNamespacedRole", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.Role" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "put": { - "description": "replace the specified Role", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1beta1" - ], - "operationId": "replaceNamespacedRole", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta1.Role" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.Role" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "delete": { - "description": "delete a Role", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1beta1" - ], - "operationId": "deleteNamespacedRole", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "uniqueItems": true, - "type": "integer", - "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "name": "orphanDependents", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy.", - "name": "propagationPolicy", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "patch": { - "description": "partially update the specified Role", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1beta1" - ], - "operationId": "patchNamespacedRole", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.Role" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the Role", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1beta1/rolebindings": { - "get": { - "description": "list or watch objects of kind RoleBinding", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1beta1" - ], - "operationId": "listRoleBindingForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.RoleBindingList" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1beta1/roles": { - "get": { - "description": "list or watch objects of kind Role", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1beta1" - ], - "operationId": "listRoleForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.RoleList" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1beta1/watch/clusterrolebindings": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1beta1/watch/clusterrolebindings/{name}": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the ClusterRoleBinding", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1beta1/watch/clusterroles": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1beta1/watch/clusterroles/{name}": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the ClusterRole", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1beta1/watch/namespaces/{namespace}/rolebindings": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1beta1/watch/namespaces/{namespace}/rolebindings/{name}": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the RoleBinding", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1beta1/watch/namespaces/{namespace}/roles": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1beta1/watch/namespaces/{namespace}/roles/{name}": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the Role", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1beta1/watch/rolebindings": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1beta1/watch/roles": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/settings.k8s.io/": { - "get": { - "description": "get information of a group", - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "settings" - ], - "operationId": "getAPIGroup", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIGroup" - } - }, - "401": { - "description": "Unauthorized" - } - } - } - }, - "/apis/settings.k8s.io/v1alpha1/": { - "get": { - "description": "get available resources", - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "settings_v1alpha1" - ], - "operationId": "getAPIResources", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } - } - } - }, - "/apis/settings.k8s.io/v1alpha1/namespaces/{namespace}/podpresets": { - "get": { - "description": "list or watch objects of kind PodPreset", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "settings_v1alpha1" - ], - "operationId": "listNamespacedPodPreset", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1alpha1.PodPresetList" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "post": { - "description": "create a PodPreset", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "settings_v1alpha1" - ], - "operationId": "createNamespacedPodPreset", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1alpha1.PodPreset" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1alpha1.PodPreset" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "delete": { - "description": "delete collection of PodPreset", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "settings_v1alpha1" - ], - "operationId": "deleteCollectionNamespacedPodPreset", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/settings.k8s.io/v1alpha1/namespaces/{namespace}/podpresets/{name}": { - "get": { - "description": "read the specified PodPreset", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "settings_v1alpha1" - ], - "operationId": "readNamespacedPodPreset", - "parameters": [ - { - "uniqueItems": true, - "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", - "name": "exact", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Should this value be exported. Export strips fields that a user can not specify.", - "name": "export", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1alpha1.PodPreset" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "put": { - "description": "replace the specified PodPreset", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "settings_v1alpha1" - ], - "operationId": "replaceNamespacedPodPreset", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1alpha1.PodPreset" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1alpha1.PodPreset" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "delete": { - "description": "delete a PodPreset", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "settings_v1alpha1" - ], - "operationId": "deleteNamespacedPodPreset", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "uniqueItems": true, - "type": "integer", - "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "name": "orphanDependents", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy.", - "name": "propagationPolicy", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "patch": { - "description": "partially update the specified PodPreset", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "settings_v1alpha1" - ], - "operationId": "patchNamespacedPodPreset", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1alpha1.PodPreset" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the PodPreset", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/settings.k8s.io/v1alpha1/podpresets": { - "get": { - "description": "list or watch objects of kind PodPreset", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "settings_v1alpha1" - ], - "operationId": "listPodPresetForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1alpha1.PodPresetList" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/settings.k8s.io/v1alpha1/watch/namespaces/{namespace}/podpresets": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/settings.k8s.io/v1alpha1/watch/namespaces/{namespace}/podpresets/{name}": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the PodPreset", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/settings.k8s.io/v1alpha1/watch/podpresets": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/storage.k8s.io/": { - "get": { - "description": "get information of a group", - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "storage" - ], - "operationId": "getAPIGroup", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIGroup" - } - }, - "401": { - "description": "Unauthorized" - } - } - } - }, - "/apis/storage.k8s.io/v1/": { - "get": { - "description": "get available resources", - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "storage_v1" - ], - "operationId": "getAPIResources", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } - } - } - }, - "/apis/storage.k8s.io/v1/storageclasses": { - "get": { - "description": "list or watch objects of kind StorageClass", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "storage_v1" - ], - "operationId": "listStorageClass", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.StorageClassList" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "post": { - "description": "create a StorageClass", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "storage_v1" - ], - "operationId": "createStorageClass", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.StorageClass" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.StorageClass" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "delete": { - "description": "delete collection of StorageClass", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "storage_v1" - ], - "operationId": "deleteCollectionStorageClass", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/storage.k8s.io/v1/storageclasses/{name}": { - "get": { - "description": "read the specified StorageClass", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "storage_v1" - ], - "operationId": "readStorageClass", - "parameters": [ - { - "uniqueItems": true, - "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", - "name": "exact", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Should this value be exported. Export strips fields that a user can not specify.", - "name": "export", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.StorageClass" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "put": { - "description": "replace the specified StorageClass", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "storage_v1" - ], - "operationId": "replaceStorageClass", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.StorageClass" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.StorageClass" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "delete": { - "description": "delete a StorageClass", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "storage_v1" - ], - "operationId": "deleteStorageClass", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "uniqueItems": true, - "type": "integer", - "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "name": "orphanDependents", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy.", - "name": "propagationPolicy", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "patch": { - "description": "partially update the specified StorageClass", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "storage_v1" - ], - "operationId": "patchStorageClass", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.StorageClass" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the StorageClass", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/storage.k8s.io/v1/watch/storageclasses": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/storage.k8s.io/v1/watch/storageclasses/{name}": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the StorageClass", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/storage.k8s.io/v1beta1/": { - "get": { - "description": "get available resources", - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "storage_v1beta1" - ], - "operationId": "getAPIResources", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } - } - } - }, - "/apis/storage.k8s.io/v1beta1/storageclasses": { - "get": { - "description": "list or watch objects of kind StorageClass", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "storage_v1beta1" - ], - "operationId": "listStorageClass", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.StorageClassList" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "post": { - "description": "create a StorageClass", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "storage_v1beta1" - ], - "operationId": "createStorageClass", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta1.StorageClass" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.StorageClass" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "delete": { - "description": "delete collection of StorageClass", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "storage_v1beta1" - ], - "operationId": "deleteCollectionStorageClass", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/storage.k8s.io/v1beta1/storageclasses/{name}": { - "get": { - "description": "read the specified StorageClass", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "storage_v1beta1" - ], - "operationId": "readStorageClass", - "parameters": [ - { - "uniqueItems": true, - "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", - "name": "exact", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Should this value be exported. Export strips fields that a user can not specify.", - "name": "export", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.StorageClass" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "put": { - "description": "replace the specified StorageClass", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "storage_v1beta1" - ], - "operationId": "replaceStorageClass", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta1.StorageClass" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.StorageClass" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "delete": { - "description": "delete a StorageClass", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "storage_v1beta1" - ], - "operationId": "deleteStorageClass", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "uniqueItems": true, - "type": "integer", - "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "name": "orphanDependents", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy.", - "name": "propagationPolicy", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "patch": { - "description": "partially update the specified StorageClass", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "storage_v1beta1" - ], - "operationId": "patchStorageClass", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.StorageClass" - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the StorageClass", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/storage.k8s.io/v1beta1/watch/storageclasses": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/storage.k8s.io/v1beta1/watch/storageclasses/{name}": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the StorageClass", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/logs/": { - "get": { - "schemes": [ - "https" - ], - "tags": [ - "logs" - ], - "operationId": "logFileListHandler", - "responses": { - "401": { - "description": "Unauthorized" - } - } - } - }, - "/logs/{logpath}": { - "get": { - "schemes": [ - "https" - ], - "tags": [ - "logs" - ], - "operationId": "logFileHandler", - "responses": { - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "path to the log", - "name": "logpath", - "in": "path", - "required": true - } - ] - }, - "/version/": { - "get": { - "description": "get the code version", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "schemes": [ - "https" - ], - "tags": [ - "version" - ], - "operationId": "getCode", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/version.Info" - } - }, - "401": { - "description": "Unauthorized" - } - } - } - } - }, - "definitions": { - "v1.NonResourceAttributes": { - "description": "NonResourceAttributes includes the authorization attributes available for non-resource requests to the Authorizer interface", - "properties": { - "path": { - "description": "Path is the URL path of the request", - "type": "string" - }, - "verb": { - "description": "Verb is the standard HTTP verb", - "type": "string" - } - } - }, - "v1.EndpointAddress": { - "description": "EndpointAddress is a tuple that describes single IP address.", - "required": [ - "ip" - ], - "properties": { - "hostname": { - "description": "The Hostname of this endpoint", - "type": "string" - }, - "ip": { - "description": "The IP of this endpoint. May not be loopback (127.0.0.0/8), link-local (169.254.0.0/16), or link-local multicast ((224.0.0.0/24). IPv6 is also accepted but not fully supported on all platforms. Also, certain kubernetes components, like kube-proxy, are not IPv6 ready.", - "type": "string" - }, - "nodeName": { - "description": "Optional: Node hosting this endpoint. This can be used to determine endpoints local to a node.", - "type": "string" - }, - "targetRef": { - "description": "Reference to object providing the endpoint.", - "$ref": "#/definitions/v1.ObjectReference" - } - } - }, - "v1.ContainerImage": { - "description": "Describe a container image", - "required": [ - "names" - ], - "properties": { - "names": { - "description": "Names by which this image is known. e.g. [\"gcr.io/google_containers/hyperkube:v1.0.7\", \"dockerhub.io/google_containers/hyperkube:v1.0.7\"]", - "type": "array", - "items": { - "type": "string" - } - }, - "sizeBytes": { - "description": "The size of the image in bytes.", - "type": "integer", - "format": "int64" - } - } - }, - "apps.v1beta1.RollbackConfig": { - "properties": { - "revision": { - "description": "The revision to rollback to. If set to 0, rollbck to the last revision.", - "type": "integer", - "format": "int64" - } - } - }, - "extensions.v1beta1.RollingUpdateDeployment": { - "description": "Spec to control the desired behavior of rolling update.", - "properties": { - "maxSurge": { - "description": "The maximum number of pods that can be scheduled above the desired number of pods. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up. By default, a value of 1 is used. Example: when this is set to 30%, the new RC can be scaled up immediately when the rolling update starts, such that the total number of old and new pods do not exceed 130% of desired pods. Once old pods have been killed, new RC can be scaled up further, ensuring that total number of pods running at any time during the update is atmost 130% of desired pods.", - "type": "string", - "format": "int-or-string" - }, - "maxUnavailable": { - "description": "The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding down. This can not be 0 if MaxSurge is 0. By default, a fixed value of 1 is used. Example: when this is set to 30%, the old RC can be scaled down to 70% of desired pods immediately when the rolling update starts. Once new pods are ready, old RC can be scaled down further, followed by scaling up the new RC, ensuring that the total number of pods available at all times during the update is at least 70% of desired pods.", - "type": "string", - "format": "int-or-string" - } - } - }, - "v1.APIResource": { - "description": "APIResource specifies the name of a resource and whether it is namespaced.", - "required": [ - "name", - "namespaced", - "kind", - "verbs" - ], - "properties": { - "kind": { - "description": "kind is the kind for the resource (e.g. 'Foo' is the kind for a resource 'foo')", - "type": "string" - }, - "name": { - "description": "name is the name of the resource.", - "type": "string" - }, - "namespaced": { - "description": "namespaced indicates if a resource is namespaced or not.", - "type": "boolean" - }, - "shortNames": { - "description": "shortNames is a list of suggested short names of the resource.", - "type": "array", - "items": { - "type": "string" - } - }, - "verbs": { - "description": "verbs is a list of supported kube verbs (this includes get, list, watch, create, update, patch, delete, deletecollection, and proxy)", - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "v1.Lifecycle": { - "description": "Lifecycle describes actions that the management system should take in response to container lifecycle events. For the PostStart and PreStop lifecycle handlers, management of the container blocks until the action is complete, unless the container process fails, in which case the handler is aborted.", - "properties": { - "postStart": { - "description": "PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: http://kubernetes.io/docs/user-guide/container-environment#hook-details", - "$ref": "#/definitions/v1.Handler" - }, - "preStop": { - "description": "PreStop is called immediately before a container is terminated. The container is terminated after the handler completes. The reason for termination is passed to the handler. Regardless of the outcome of the handler, the container is eventually terminated. Other management of the container blocks until the hook completes. More info: http://kubernetes.io/docs/user-guide/container-environment#hook-details", - "$ref": "#/definitions/v1.Handler" - } - } - }, - "v1.AzureDiskVolumeSource": { - "description": "AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.", - "required": [ - "diskName", - "diskURI" - ], - "properties": { - "cachingMode": { - "description": "Host Caching mode: None, Read Only, Read Write.", - "type": "string" - }, - "diskName": { - "description": "The Name of the data disk in the blob storage", - "type": "string" - }, - "diskURI": { - "description": "The URI the data disk in the blob storage", - "type": "string" - }, - "fsType": { - "description": "Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.", - "type": "string" - }, - "readOnly": { - "description": "Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", - "type": "boolean" - } - } - }, - "v1beta1.StatefulSet": { - "description": "StatefulSet represents a set of pods with consistent identities. Identities are defined as:\n - Network: A single stable DNS and hostname.\n - Storage: As many VolumeClaims as requested.\nThe StatefulSet guarantees that a given network identity will always map to the same storage identity.", - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", - "type": "string" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "$ref": "#/definitions/v1.ObjectMeta" - }, - "spec": { - "description": "Spec defines the desired identities of pods in this set.", - "$ref": "#/definitions/v1beta1.StatefulSetSpec" - }, - "status": { - "description": "Status is the current status of Pods in this StatefulSet. This data may be out of date by some window of time.", - "$ref": "#/definitions/v1beta1.StatefulSetStatus" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "apps", - "Version": "v1beta1", - "Kind": "StatefulSet" - } - ] - }, - "v1beta1.APIVersion": { - "description": "An APIVersion represents a single concrete version of an object model.", - "properties": { - "name": { - "description": "Name of this version (e.g. 'v1').", - "type": "string" - } - } - }, - "v1.UserInfo": { - "description": "UserInfo holds the information about the user needed to implement the user.Info interface.", - "properties": { - "extra": { - "description": "Any additional information provided by the authenticator.", - "type": "object", - "additionalProperties": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "groups": { - "description": "The names of groups this user is a part of.", - "type": "array", - "items": { - "type": "string" - } - }, - "uid": { - "description": "A unique value that identifies this user across time. If this user is deleted and another user by the same name is added, they will have different UIDs.", - "type": "string" - }, - "username": { - "description": "The name that uniquely identifies this user among all active users.", - "type": "string" - } - } - }, - "v1.ServiceSpec": { - "description": "ServiceSpec describes the attributes that a user creates on a service.", - "properties": { - "clusterIP": { - "description": "clusterIP is the IP address of the service and is usually assigned randomly by the master. If an address is specified manually and is not in use by others, it will be allocated to the service; otherwise, creation of the service will fail. This field can not be changed through updates. Valid values are \"None\", empty string (\"\"), or a valid IP address. \"None\" can be specified for headless services when proxying is not required. Only applies to types ClusterIP, NodePort, and LoadBalancer. Ignored if type is ExternalName. More info: http://kubernetes.io/docs/user-guide/services#virtual-ips-and-service-proxies", - "type": "string" - }, - "deprecatedPublicIPs": { - "description": "deprecatedPublicIPs is deprecated and replaced by the externalIPs field with almost the exact same semantics. This field is retained in the v1 API for compatibility until at least 8/20/2016. It will be removed from any new API revisions. If both deprecatedPublicIPs *and* externalIPs are set, deprecatedPublicIPs is used.", - "type": "array", - "items": { - "type": "string" - } - }, - "externalIPs": { - "description": "externalIPs is a list of IP addresses for which nodes in the cluster will also accept traffic for this service. These IPs are not managed by Kubernetes. The user is responsible for ensuring that traffic arrives at a node with this IP. A common example is external load-balancers that are not part of the Kubernetes system. A previous form of this functionality exists as the deprecatedPublicIPs field. When using this field, callers should also clear the deprecatedPublicIPs field.", - "type": "array", - "items": { - "type": "string" - } - }, - "externalName": { - "description": "externalName is the external reference that kubedns or equivalent will return as a CNAME record for this service. No proxying will be involved. Must be a valid DNS name and requires Type to be ExternalName.", - "type": "string" - }, - "loadBalancerIP": { - "description": "Only applies to Service Type: LoadBalancer LoadBalancer will get created with the IP specified in this field. This feature depends on whether the underlying cloud-provider supports specifying the loadBalancerIP when a load balancer is created. This field will be ignored if the cloud-provider does not support the feature.", - "type": "string" - }, - "loadBalancerSourceRanges": { - "description": "If specified and supported by the platform, this will restrict traffic through the cloud-provider load-balancer will be restricted to the specified client IPs. This field will be ignored if the cloud-provider does not support the feature.\" More info: http://kubernetes.io/docs/user-guide/services-firewalls", - "type": "array", - "items": { - "type": "string" - } - }, - "ports": { - "description": "The list of ports that are exposed by this service. More info: http://kubernetes.io/docs/user-guide/services#virtual-ips-and-service-proxies", - "type": "array", - "items": { - "$ref": "#/definitions/v1.ServicePort" - } - }, - "selector": { - "description": "Route service traffic to pods with label keys and values matching this selector. If empty or not present, the service is assumed to have an external process managing its endpoints, which Kubernetes will not modify. Only applies to types ClusterIP, NodePort, and LoadBalancer. Ignored if type is ExternalName. More info: http://kubernetes.io/docs/user-guide/services#overview", - "type": "object", - "additionalProperties": { - "type": "string" - } - }, - "sessionAffinity": { - "description": "Supports \"ClientIP\" and \"None\". Used to maintain session affinity. Enable client IP based session affinity. Must be ClientIP or None. Defaults to None. More info: http://kubernetes.io/docs/user-guide/services#virtual-ips-and-service-proxies", - "type": "string" - }, - "type": { - "description": "type determines how the Service is exposed. Defaults to ClusterIP. Valid options are ExternalName, ClusterIP, NodePort, and LoadBalancer. \"ExternalName\" maps to the specified externalName. \"ClusterIP\" allocates a cluster-internal IP address for load-balancing to endpoints. Endpoints are determined by the selector or if that is not specified, by manual construction of an Endpoints object. If clusterIP is \"None\", no virtual IP is allocated and the endpoints are published as a set of endpoints rather than a stable IP. \"NodePort\" builds on ClusterIP and allocates a port on every node which routes to the clusterIP. \"LoadBalancer\" builds on NodePort and creates an external load-balancer (if supported in the current cloud) which routes to the clusterIP. More info: http://kubernetes.io/docs/user-guide/services#overview", - "type": "string" - } - } - }, - "extensions.v1beta1.Deployment": { - "description": "Deployment enables declarative updates for Pods and ReplicaSets.", - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", - "type": "string" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object metadata.", - "$ref": "#/definitions/v1.ObjectMeta" - }, - "spec": { - "description": "Specification of the desired behavior of the Deployment.", - "$ref": "#/definitions/extensions.v1beta1.DeploymentSpec" - }, - "status": { - "description": "Most recently observed status of the Deployment.", - "$ref": "#/definitions/extensions.v1beta1.DeploymentStatus" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "extensions", - "Version": "v1beta1", - "Kind": "Deployment" - } - ] - }, - "v1.DeleteOptions": { - "description": "DeleteOptions may be provided when deleting an API object.", - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", - "type": "string" - }, - "gracePeriodSeconds": { - "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", - "type": "integer", - "format": "int64" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "orphanDependents": { - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "type": "boolean" - }, - "preconditions": { - "description": "Must be fulfilled before a deletion is carried out. If not possible, a 409 Conflict status will be returned.", - "$ref": "#/definitions/v1.Preconditions" - }, - "propagationPolicy": { - "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy.", - "type": "string" - } - } - }, - "v1.ConfigMapList": { - "description": "ConfigMapList is a resource containing a list of ConfigMap objects.", - "required": [ - "items" - ], - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "Items is the list of ConfigMaps.", - "type": "array", - "items": { - "$ref": "#/definitions/v1.ConfigMap" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", - "$ref": "#/definitions/v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "", - "Version": "v1", - "Kind": "ConfigMapList" - } - ] - }, - "v1.JobSpec": { - "description": "JobSpec describes how the job execution will look like.", - "required": [ - "template" - ], - "properties": { - "activeDeadlineSeconds": { - "description": "Optional duration in seconds relative to the startTime that the job may be active before the system tries to terminate it; value must be positive integer", - "type": "integer", - "format": "int64" - }, - "completions": { - "description": "Completions specifies the desired number of successfully finished pods the job should be run with. Setting to nil means that the success of any pod signals the success of all pods, and allows parallelism to have any positive value. Setting to 1 means that parallelism is limited to 1 and the success of that pod signals the success of the job. More info: http://kubernetes.io/docs/user-guide/jobs", - "type": "integer", - "format": "int32" - }, - "manualSelector": { - "description": "ManualSelector controls generation of pod labels and pod selectors. Leave `manualSelector` unset unless you are certain what you are doing. When false or unset, the system pick labels unique to this job and appends those labels to the pod template. When true, the user is responsible for picking unique labels and specifying the selector. Failure to pick a unique label may cause this and other jobs to not function correctly. However, You may see `manualSelector=true` in jobs that were created with the old `extensions/v1beta1` API. More info: http://releases.k8s.io/HEAD/docs/design/selector-generation.md", - "type": "boolean" - }, - "parallelism": { - "description": "Parallelism specifies the maximum desired number of pods the job should run at any given time. The actual number of pods running in steady state will be less than this number when ((.spec.completions - .status.successful) < .spec.parallelism), i.e. when the work left to do is less than max parallelism. More info: http://kubernetes.io/docs/user-guide/jobs", - "type": "integer", - "format": "int32" - }, - "selector": { - "description": "Selector is a label query over pods that should match the pod count. Normally, the system sets this field for you. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors", - "$ref": "#/definitions/v1.LabelSelector" - }, - "template": { - "description": "Template is the object that describes the pod that will be created when executing a job. More info: http://kubernetes.io/docs/user-guide/jobs", - "$ref": "#/definitions/v1.PodTemplateSpec" - } - } - }, - "apps.v1beta1.DeploymentCondition": { - "description": "DeploymentCondition describes the state of a deployment at a certain point.", - "required": [ - "type", - "status" - ], - "properties": { - "lastTransitionTime": { - "description": "Last time the condition transitioned from one status to another.", - "type": "string", - "format": "date-time" - }, - "lastUpdateTime": { - "description": "The last time this condition was updated.", - "type": "string", - "format": "date-time" - }, - "message": { - "description": "A human readable message indicating details about the transition.", - "type": "string" - }, - "reason": { - "description": "The reason for the condition's last transition.", - "type": "string" - }, - "status": { - "description": "Status of the condition, one of True, False, Unknown.", - "type": "string" - }, - "type": { - "description": "Type of deployment condition.", - "type": "string" - } - } - }, - "v1.ContainerStateWaiting": { - "description": "ContainerStateWaiting is a waiting state of a container.", - "properties": { - "message": { - "description": "Message regarding why the container is not yet running.", - "type": "string" - }, - "reason": { - "description": "(brief) reason the container is not yet running.", - "type": "string" - } - } - }, - "v1alpha1.ClusterRole": { - "description": "ClusterRole is a cluster level, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding or ClusterRoleBinding.", - "required": [ - "rules" - ], - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", - "type": "string" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object's metadata.", - "$ref": "#/definitions/v1.ObjectMeta" - }, - "rules": { - "description": "Rules holds all the PolicyRules for this ClusterRole", - "type": "array", - "items": { - "$ref": "#/definitions/v1alpha1.PolicyRule" - } - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "rbac.authorization.k8s.io", - "Version": "v1alpha1", - "Kind": "ClusterRole" - } - ] - }, - "v1.LocalObjectReference": { - "description": "LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace.", - "properties": { - "name": { - "description": "Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names", - "type": "string" - } - } - }, - "v1.ConfigMapProjection": { - "description": "Adapts a ConfigMap into a projected volume.\n\nThe contents of the target ConfigMap's Data field will be presented in a projected volume as files using the keys in the Data field as the file names, unless the items element is populated with specific mappings of keys to paths. Note that this is identical to a configmap volume source without the default mode.", - "properties": { - "items": { - "description": "If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'.", - "type": "array", - "items": { - "$ref": "#/definitions/v1.KeyToPath" - } - }, - "name": { - "description": "Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or it's keys must be defined", - "type": "boolean" - } - } - }, - "v1.EndpointsList": { - "description": "EndpointsList is a list of endpoints.", - "required": [ - "items" - ], - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "List of endpoints.", - "type": "array", - "items": { - "$ref": "#/definitions/v1.Endpoints" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "$ref": "#/definitions/v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "", - "Version": "v1", - "Kind": "EndpointsList" - } - ] - }, - "v2alpha1.CronJobStatus": { - "description": "CronJobStatus represents the current state of a cron job.", - "properties": { - "active": { - "description": "Active holds pointers to currently running jobs.", - "type": "array", - "items": { - "$ref": "#/definitions/v1.ObjectReference" - } - }, - "lastScheduleTime": { - "description": "LastScheduleTime keeps information of when was the last time the job was successfully scheduled.", - "type": "string", - "format": "date-time" - } - } - }, - "v1.DownwardAPIProjection": { - "description": "Represents downward API info for projecting into a projected volume. Note that this is identical to a downwardAPI volume source without the default mode.", - "properties": { - "items": { - "description": "Items is a list of DownwardAPIVolume file", - "type": "array", - "items": { - "$ref": "#/definitions/v1.DownwardAPIVolumeFile" - } - } - } - }, - "v1alpha1.PolicyRule": { - "description": "PolicyRule holds information that describes a policy rule, but does not contain information about who the rule applies to or which namespace the rule applies to.", - "required": [ - "verbs" - ], - "properties": { - "apiGroups": { - "description": "APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed.", - "type": "array", - "items": { - "type": "string" - } - }, - "nonResourceURLs": { - "description": "NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path This name is intentionally different than the internal type so that the DefaultConvert works nicely and because the ordering may be different. Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules can either apply to API resources (such as \"pods\" or \"secrets\") or non-resource URL paths (such as \"/api\"), but not both.", - "type": "array", - "items": { - "type": "string" - } - }, - "resourceNames": { - "description": "ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed.", - "type": "array", - "items": { - "type": "string" - } - }, - "resources": { - "description": "Resources is a list of resources this rule applies to. ResourceAll represents all resources.", - "type": "array", - "items": { - "type": "string" - } - }, - "verbs": { - "description": "Verbs is a list of Verbs that apply to ALL the ResourceKinds and AttributeRestrictions contained in this rule. VerbAll represents all kinds.", - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "v2alpha1.ResourceMetricStatus": { - "description": "ResourceMetricStatus indicates the current value of a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source.", - "required": [ - "name", - "currentAverageValue" - ], - "properties": { - "currentAverageUtilization": { - "description": "currentAverageUtilization is the current value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. It will only be present if `targetAverageValue` was set in the corresponding metric specification.", - "type": "integer", - "format": "int32" - }, - "currentAverageValue": { - "description": "currentAverageValue is the the current value of the average of the resource metric across all relevant pods, as a raw value (instead of as a percentage of the request), similar to the \"pods\" metric source type. It will always be set, regardless of the corresponding metric specification.", - "type": "string" - }, - "name": { - "description": "name is the name of the resource in question.", - "type": "string" - } - } - }, - "v1.QuobyteVolumeSource": { - "description": "Represents a Quobyte mount that lasts the lifetime of a pod. Quobyte volumes do not support ownership management or SELinux relabeling.", - "required": [ - "registry", - "volume" - ], - "properties": { - "group": { - "description": "Group to map volume access to Default is no group", - "type": "string" - }, - "readOnly": { - "description": "ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false.", - "type": "boolean" - }, - "registry": { - "description": "Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes", - "type": "string" - }, - "user": { - "description": "User to map volume access to Defaults to serivceaccount user", - "type": "string" - }, - "volume": { - "description": "Volume is a string that references an already created Quobyte volume by name.", - "type": "string" - } - } - }, - "v1.SELinuxOptions": { - "description": "SELinuxOptions are the labels to be applied to the container", - "properties": { - "level": { - "description": "Level is SELinux level label that applies to the container.", - "type": "string" - }, - "role": { - "description": "Role is a SELinux role label that applies to the container.", - "type": "string" - }, - "type": { - "description": "Type is a SELinux type label that applies to the container.", - "type": "string" - }, - "user": { - "description": "User is a SELinux user label that applies to the container.", - "type": "string" - } - } - }, - "v1.HorizontalPodAutoscaler": { - "description": "configuration of a horizontal pod autoscaler.", - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", - "type": "string" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", - "$ref": "#/definitions/v1.ObjectMeta" - }, - "spec": { - "description": "behaviour of autoscaler. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status.", - "$ref": "#/definitions/v1.HorizontalPodAutoscalerSpec" - }, - "status": { - "description": "current information about the autoscaler.", - "$ref": "#/definitions/v1.HorizontalPodAutoscalerStatus" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "autoscaling", - "Version": "v1", - "Kind": "HorizontalPodAutoscaler" - } - ] - }, - "v1beta1.ThirdPartyResource": { - "description": "A ThirdPartyResource is a generic representation of a resource, it is used by add-ons and plugins to add new resource types to the API. It consists of one or more Versions of the api.", - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", - "type": "string" - }, - "description": { - "description": "Description is the description of this object.", - "type": "string" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object metadata", - "$ref": "#/definitions/v1.ObjectMeta" - }, - "versions": { - "description": "Versions are versions for this third party object", - "type": "array", - "items": { - "$ref": "#/definitions/v1beta1.APIVersion" - } - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "extensions", - "Version": "v1beta1", - "Kind": "ThirdPartyResource" - } - ] - }, - "v1beta1.RunAsUserStrategyOptions": { - "description": "Run A sUser Strategy Options defines the strategy type and any options used to create the strategy.", - "required": [ - "rule" - ], - "properties": { - "ranges": { - "description": "Ranges are the allowed ranges of uids that may be used.", - "type": "array", - "items": { - "$ref": "#/definitions/v1beta1.IDRange" - } - }, - "rule": { - "description": "Rule is the strategy that will dictate the allowable RunAsUser values that may be set.", - "type": "string" - } - } - }, - "v1.ResourceRequirements": { - "description": "ResourceRequirements describes the compute resource requirements.", - "properties": { - "limits": { - "description": "Limits describes the maximum amount of compute resources allowed. More info: http://kubernetes.io/docs/user-guide/compute-resources/", - "type": "object", - "additionalProperties": { - "type": "string" - } - }, - "requests": { - "description": "Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: http://kubernetes.io/docs/user-guide/compute-resources/", - "type": "object", - "additionalProperties": { - "type": "string" - } - } - } - }, - "v1.PersistentVolume": { - "description": "PersistentVolume (PV) is a storage resource provisioned by an administrator. It is analogous to a node. More info: http://kubernetes.io/docs/user-guide/persistent-volumes", - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", - "type": "string" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", - "$ref": "#/definitions/v1.ObjectMeta" - }, - "spec": { - "description": "Spec defines a specification of a persistent volume owned by the cluster. Provisioned by an administrator. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#persistent-volumes", - "$ref": "#/definitions/v1.PersistentVolumeSpec" - }, - "status": { - "description": "Status represents the current information/status for the persistent volume. Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#persistent-volumes", - "$ref": "#/definitions/v1.PersistentVolumeStatus" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "", - "Version": "v1", - "Kind": "PersistentVolume" - } - ] - }, - "v1.APIResourceList": { - "description": "APIResourceList is a list of APIResource, it is used to expose the name of the resources supported in a specific group and version, and if the resource is namespaced.", - "required": [ - "groupVersion", - "resources" - ], - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", - "type": "string" - }, - "groupVersion": { - "description": "groupVersion is the group and version this APIResourceList is for.", - "type": "string" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "resources": { - "description": "resources contains the name of the resources and if they are namespaced.", - "type": "array", - "items": { - "$ref": "#/definitions/v1.APIResource" - } - } - } - }, - "v1.ScaleIOVolumeSource": { - "description": "ScaleIOVolumeSource represents a persistent ScaleIO volume", - "required": [ - "gateway", - "system", - "secretRef" - ], - "properties": { - "fsType": { - "description": "Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.", - "type": "string" - }, - "gateway": { - "description": "The host address of the ScaleIO API Gateway.", - "type": "string" - }, - "protectionDomain": { - "description": "The name of the Protection Domain for the configured storage (defaults to \"default\").", - "type": "string" - }, - "readOnly": { - "description": "Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", - "type": "boolean" - }, - "secretRef": { - "description": "SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail.", - "$ref": "#/definitions/v1.LocalObjectReference" - }, - "sslEnabled": { - "description": "Flag to enable/disable SSL communication with Gateway, default false", - "type": "boolean" - }, - "storageMode": { - "description": "Indicates whether the storage for a volume should be thick or thin (defaults to \"thin\").", - "type": "string" - }, - "storagePool": { - "description": "The Storage Pool associated with the protection domain (defaults to \"default\").", - "type": "string" - }, - "system": { - "description": "The name of the storage system as configured in ScaleIO.", - "type": "string" - }, - "volumeName": { - "description": "The name of a volume already created in the ScaleIO system that is associated with this volume source.", - "type": "string" - } - } - }, - "v1.DaemonEndpoint": { - "description": "DaemonEndpoint contains information about a single Daemon endpoint.", - "required": [ - "Port" - ], - "properties": { - "Port": { - "description": "Port number of the given endpoint.", - "type": "integer", - "format": "int32" - } - } - }, - "v2alpha1.MetricSpec": { - "description": "MetricSpec specifies how to scale based on a single metric (only `type` and one other matching field should be set at once).", - "required": [ - "type" - ], - "properties": { - "object": { - "description": "object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object).", - "$ref": "#/definitions/v2alpha1.ObjectMetricSource" - }, - "pods": { - "description": "pods refers to a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value.", - "$ref": "#/definitions/v2alpha1.PodsMetricSource" - }, - "resource": { - "description": "resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source.", - "$ref": "#/definitions/v2alpha1.ResourceMetricSource" - }, - "type": { - "description": "type is the type of metric source. It should match one of the fields below.", - "type": "string" - } - } - }, - "v1.ReplicationControllerList": { - "description": "ReplicationControllerList is a collection of replication controllers.", - "required": [ - "items" - ], - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "List of replication controllers. More info: http://kubernetes.io/docs/user-guide/replication-controller", - "type": "array", - "items": { - "$ref": "#/definitions/v1.ReplicationController" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "$ref": "#/definitions/v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "", - "Version": "v1", - "Kind": "ReplicationControllerList" - } - ] - }, - "v1beta1.IngressTLS": { - "description": "IngressTLS describes the transport layer security associated with an Ingress.", - "properties": { - "hosts": { - "description": "Hosts are a list of hosts included in the TLS certificate. The values in this list must match the name/s used in the tlsSecret. Defaults to the wildcard host setting for the loadbalancer controller fulfilling this Ingress, if left unspecified.", - "type": "array", - "items": { - "type": "string" - } - }, - "secretName": { - "description": "SecretName is the name of the secret used to terminate SSL traffic on 443. Field is left optional to allow SSL routing based on SNI hostname alone. If the SNI host in a listener conflicts with the \"Host\" header field used by an IngressRule, the SNI host is used for termination and value of the Host header is used for routing.", - "type": "string" - } - } - }, - "extensions.v1beta1.ScaleSpec": { - "description": "describes the attributes of a scale subresource", - "properties": { - "replicas": { - "description": "desired number of instances for the scaled object.", - "type": "integer", - "format": "int32" - } - } - }, - "v2alpha1.ObjectMetricSource": { - "description": "ObjectMetricSource indicates how to scale on a metric describing a kubernetes object (for example, hits-per-second on an Ingress object).", - "required": [ - "target", - "metricName", - "targetValue" - ], - "properties": { - "metricName": { - "description": "metricName is the name of the metric in question.", - "type": "string" - }, - "target": { - "description": "target is the described Kubernetes object.", - "$ref": "#/definitions/v2alpha1.CrossVersionObjectReference" - }, - "targetValue": { - "description": "targetValue is the target value of the metric (as a quantity).", - "type": "string" - } - } - }, - "v1.FlockerVolumeSource": { - "description": "Represents a Flocker volume mounted by the Flocker agent. One and only one of datasetName and datasetUUID should be set. Flocker volumes do not support ownership management or SELinux relabeling.", - "properties": { - "datasetName": { - "description": "Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated", - "type": "string" - }, - "datasetUUID": { - "description": "UUID of the dataset. This is unique identifier of a Flocker dataset", - "type": "string" - } - } - }, - "v1.HorizontalPodAutoscalerStatus": { - "description": "current status of a horizontal pod autoscaler", - "required": [ - "currentReplicas", - "desiredReplicas" - ], - "properties": { - "currentCPUUtilizationPercentage": { - "description": "current average CPU utilization over all pods, represented as a percentage of requested CPU, e.g. 70 means that an average pod is using now 70% of its requested CPU.", - "type": "integer", - "format": "int32" - }, - "currentReplicas": { - "description": "current number of replicas of pods managed by this autoscaler.", - "type": "integer", - "format": "int32" - }, - "desiredReplicas": { - "description": "desired number of replicas of pods managed by this autoscaler.", - "type": "integer", - "format": "int32" - }, - "lastScaleTime": { - "description": "last time the HorizontalPodAutoscaler scaled the number of pods; used by the autoscaler to control how often the number of pods is changed.", - "type": "string", - "format": "date-time" - }, - "observedGeneration": { - "description": "most recent generation observed by this autoscaler.", - "type": "integer", - "format": "int64" - } - } - }, - "v1.CrossVersionObjectReference": { - "description": "CrossVersionObjectReference contains enough information to let you identify the referred resource.", - "required": [ - "kind", - "name" - ], - "properties": { - "apiVersion": { - "description": "API version of the referent", - "type": "string" - }, - "kind": { - "description": "Kind of the referent; More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds\"", - "type": "string" - }, - "name": { - "description": "Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names", - "type": "string" - } - } - }, - "apps.v1beta1.DeploymentStatus": { - "description": "DeploymentStatus is the most recently observed status of the Deployment.", - "properties": { - "availableReplicas": { - "description": "Total number of available pods (ready for at least minReadySeconds) targeted by this deployment.", - "type": "integer", - "format": "int32" - }, - "conditions": { - "description": "Represents the latest available observations of a deployment's current state.", - "type": "array", - "items": { - "$ref": "#/definitions/apps.v1beta1.DeploymentCondition" - } - }, - "observedGeneration": { - "description": "The generation observed by the deployment controller.", - "type": "integer", - "format": "int64" - }, - "readyReplicas": { - "description": "Total number of ready pods targeted by this deployment.", - "type": "integer", - "format": "int32" - }, - "replicas": { - "description": "Total number of non-terminated pods targeted by this deployment (their labels match the selector).", - "type": "integer", - "format": "int32" - }, - "unavailableReplicas": { - "description": "Total number of unavailable pods targeted by this deployment.", - "type": "integer", - "format": "int32" - }, - "updatedReplicas": { - "description": "Total number of non-terminated pods targeted by this deployment that have the desired template spec.", - "type": "integer", - "format": "int32" - } - } - }, - "v1beta1.PodDisruptionBudgetList": { - "description": "PodDisruptionBudgetList is a collection of PodDisruptionBudgets.", - "required": [ - "items" - ], - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", - "type": "string" - }, - "items": { - "type": "array", - "items": { - "$ref": "#/definitions/v1beta1.PodDisruptionBudget" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "$ref": "#/definitions/v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "policy", - "Version": "v1beta1", - "Kind": "PodDisruptionBudgetList" - } - ] - }, - "extensions.v1beta1.DeploymentStrategy": { - "description": "DeploymentStrategy describes how to replace existing pods with new ones.", - "properties": { - "rollingUpdate": { - "description": "Rolling update config params. Present only if DeploymentStrategyType = RollingUpdate.", - "$ref": "#/definitions/extensions.v1beta1.RollingUpdateDeployment" - }, - "type": { - "description": "Type of deployment. Can be \"Recreate\" or \"RollingUpdate\". Default is RollingUpdate.", - "type": "string" - } - } - }, - "v1.ContainerStatus": { - "description": "ContainerStatus contains details for the current status of this container.", - "required": [ - "name", - "ready", - "restartCount", - "image", - "imageID" - ], - "properties": { - "containerID": { - "description": "Container's ID in the format 'docker://'. More info: http://kubernetes.io/docs/user-guide/container-environment#container-information", - "type": "string" - }, - "image": { - "description": "The image the container is running. More info: http://kubernetes.io/docs/user-guide/images", - "type": "string" - }, - "imageID": { - "description": "ImageID of the container's image.", - "type": "string" - }, - "lastState": { - "description": "Details about the container's last termination condition.", - "$ref": "#/definitions/v1.ContainerState" - }, - "name": { - "description": "This must be a DNS_LABEL. Each container in a pod must have a unique name. Cannot be updated.", - "type": "string" - }, - "ready": { - "description": "Specifies whether the container has passed its readiness probe.", - "type": "boolean" - }, - "restartCount": { - "description": "The number of times the container has been restarted, currently based on the number of dead containers that have not yet been removed. Note that this is calculated from dead containers. But those containers are subject to garbage collection. This value will get capped at 5 by GC.", - "type": "integer", - "format": "int32" - }, - "state": { - "description": "Details about the container's current condition.", - "$ref": "#/definitions/v1.ContainerState" - } - } - }, - "v2alpha1.ResourceMetricSource": { - "description": "ResourceMetricSource indicates how to scale on a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). The values will be averaged together before being compared to the target. Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source. Only one \"target\" type should be set.", - "required": [ - "name" - ], - "properties": { - "name": { - "description": "name is the name of the resource in question.", - "type": "string" - }, - "targetAverageUtilization": { - "description": "targetAverageUtilization is the target value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods.", - "type": "integer", - "format": "int32" - }, - "targetAverageValue": { - "description": "targetAverageValue is the the target value of the average of the resource metric across all relevant pods, as a raw value (instead of as a percentage of the request), similar to the \"pods\" metric source type.", - "type": "string" - } - } - }, - "v1.ComponentStatus": { - "description": "ComponentStatus (and ComponentStatusList) holds the cluster validation info.", - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", - "type": "string" - }, - "conditions": { - "description": "List of component conditions observed", - "type": "array", - "items": { - "$ref": "#/definitions/v1.ComponentCondition" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", - "$ref": "#/definitions/v1.ObjectMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "", - "Version": "v1", - "Kind": "ComponentStatus" - } - ] - }, - "v1.WeightedPodAffinityTerm": { - "description": "The weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s)", - "required": [ - "weight", - "podAffinityTerm" - ], - "properties": { - "podAffinityTerm": { - "description": "Required. A pod affinity term, associated with the corresponding weight.", - "$ref": "#/definitions/v1.PodAffinityTerm" - }, - "weight": { - "description": "weight associated with matching the corresponding podAffinityTerm, in the range 1-100.", - "type": "integer", - "format": "int32" - } - } - }, - "v1beta1.SubjectAccessReview": { - "description": "SubjectAccessReview checks whether or not a user or group can perform an action.", - "required": [ - "spec" - ], - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", - "type": "string" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "$ref": "#/definitions/v1.ObjectMeta" - }, - "spec": { - "description": "Spec holds information about the request being evaluated", - "$ref": "#/definitions/v1beta1.SubjectAccessReviewSpec" - }, - "status": { - "description": "Status is filled in by the server and indicates whether the request is allowed or not", - "$ref": "#/definitions/v1beta1.SubjectAccessReviewStatus" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "authorization.k8s.io", - "Version": "v1beta1", - "Kind": "SubjectAccessReview" - } - ] - }, - "v1beta1.UserInfo": { - "description": "UserInfo holds the information about the user needed to implement the user.Info interface.", - "properties": { - "extra": { - "description": "Any additional information provided by the authenticator.", - "type": "object", - "additionalProperties": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "groups": { - "description": "The names of groups this user is a part of.", - "type": "array", - "items": { - "type": "string" - } - }, - "uid": { - "description": "A unique value that identifies this user across time. If this user is deleted and another user by the same name is added, they will have different UIDs.", - "type": "string" - }, - "username": { - "description": "The name that uniquely identifies this user among all active users.", - "type": "string" - } - } - }, - "v1.PersistentVolumeList": { - "description": "PersistentVolumeList is a list of PersistentVolume items.", - "required": [ - "items" - ], - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "List of persistent volumes. More info: http://kubernetes.io/docs/user-guide/persistent-volumes", - "type": "array", - "items": { - "$ref": "#/definitions/v1.PersistentVolume" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "$ref": "#/definitions/v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "", - "Version": "v1", - "Kind": "PersistentVolumeList" - } - ] - }, - "v1.ServerAddressByClientCIDR": { - "description": "ServerAddressByClientCIDR helps the client to determine the server address that they should use, depending on the clientCIDR that they match.", - "required": [ - "clientCIDR", - "serverAddress" - ], - "properties": { - "clientCIDR": { - "description": "The CIDR with which clients can match their IP to figure out the server address that they should use.", - "type": "string" - }, - "serverAddress": { - "description": "Address of this server, suitable for a client that matches the above CIDR. This can be a hostname, hostname:port, IP or IP:port.", - "type": "string" - } - } - }, - "v1beta1.Role": { - "description": "Role is a namespaced, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding.", - "required": [ - "rules" - ], - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", - "type": "string" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object's metadata.", - "$ref": "#/definitions/v1.ObjectMeta" - }, - "rules": { - "description": "Rules holds all the PolicyRules for this Role", - "type": "array", - "items": { - "$ref": "#/definitions/v1beta1.PolicyRule" - } - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "rbac.authorization.k8s.io", - "Version": "v1beta1", - "Kind": "Role" - } - ] - }, - "v1.ScaleSpec": { - "description": "ScaleSpec describes the attributes of a scale subresource.", - "properties": { - "replicas": { - "description": "desired number of instances for the scaled object.", - "type": "integer", - "format": "int32" - } - } - }, - "v1.StatusCause": { - "description": "StatusCause provides more information about an api.Status failure, including cases when multiple errors are encountered.", - "properties": { - "field": { - "description": "The field of the resource that has caused this error, as named by its JSON serialization. May include dot and postfix notation for nested attributes. Arrays are zero-indexed. Fields may appear more than once in an array of causes due to fields having multiple errors. Optional.\n\nExamples:\n \"name\" - the field \"name\" on the current resource\n \"items[0].name\" - the field \"name\" on the first array entry in \"items\"", - "type": "string" - }, - "message": { - "description": "A human-readable description of the cause of the error. This field may be presented as-is to a reader.", - "type": "string" - }, - "reason": { - "description": "A machine-readable description of the cause of the error. If this value is empty there is no information available.", - "type": "string" - } - } - }, - "v1beta1.DaemonSet": { - "description": "DaemonSet represents the configuration of a daemon set.", - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", - "type": "string" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", - "$ref": "#/definitions/v1.ObjectMeta" - }, - "spec": { - "description": "The desired behavior of this daemon set. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status", - "$ref": "#/definitions/v1beta1.DaemonSetSpec" - }, - "status": { - "description": "The current status of this daemon set. This data may be out of date by some window of time. Populated by the system. Read-only. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status", - "$ref": "#/definitions/v1beta1.DaemonSetStatus" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "extensions", - "Version": "v1beta1", - "Kind": "DaemonSet" - } - ] - }, - "extensions.v1beta1.DeploymentSpec": { - "description": "DeploymentSpec is the specification of the desired behavior of the Deployment.", - "required": [ - "template" - ], - "properties": { - "minReadySeconds": { - "description": "Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready)", - "type": "integer", - "format": "int32" - }, - "paused": { - "description": "Indicates that the deployment is paused and will not be processed by the deployment controller.", - "type": "boolean" - }, - "progressDeadlineSeconds": { - "description": "The maximum time in seconds for a deployment to make progress before it is considered to be failed. The deployment controller will continue to process failed deployments and a condition with a ProgressDeadlineExceeded reason will be surfaced in the deployment status. Once autoRollback is implemented, the deployment controller will automatically rollback failed deployments. Note that progress will not be estimated during the time a deployment is paused. This is not set by default.", - "type": "integer", - "format": "int32" - }, - "replicas": { - "description": "Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1.", - "type": "integer", - "format": "int32" - }, - "revisionHistoryLimit": { - "description": "The number of old ReplicaSets to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified.", - "type": "integer", - "format": "int32" - }, - "rollbackTo": { - "description": "The config this deployment is rolling back to. Will be cleared after rollback is done.", - "$ref": "#/definitions/extensions.v1beta1.RollbackConfig" - }, - "selector": { - "description": "Label selector for pods. Existing ReplicaSets whose pods are selected by this will be the ones affected by this deployment.", - "$ref": "#/definitions/v1.LabelSelector" - }, - "strategy": { - "description": "The deployment strategy to use to replace existing pods with new ones.", - "$ref": "#/definitions/extensions.v1beta1.DeploymentStrategy" - }, - "template": { - "description": "Template describes the pods that will be created.", - "$ref": "#/definitions/v1.PodTemplateSpec" - } - } - }, - "v1beta1.NonResourceAttributes": { - "description": "NonResourceAttributes includes the authorization attributes available for non-resource requests to the Authorizer interface", - "properties": { - "path": { - "description": "Path is the URL path of the request", - "type": "string" - }, - "verb": { - "description": "Verb is the standard HTTP verb", - "type": "string" - } - } - }, - "v1.PodSecurityContext": { - "description": "PodSecurityContext holds pod-level security attributes and common container settings. Some fields are also present in container.securityContext. Field values of container.securityContext take precedence over field values of PodSecurityContext.", - "properties": { - "fsGroup": { - "description": "A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod:\n\n1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw----\n\nIf unset, the Kubelet will not modify the ownership and permissions of any volume.", - "type": "integer", - "format": "int64" - }, - "runAsNonRoot": { - "description": "Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.", - "type": "boolean" - }, - "runAsUser": { - "description": "The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container.", - "type": "integer", - "format": "int64" - }, - "seLinuxOptions": { - "description": "The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container.", - "$ref": "#/definitions/v1.SELinuxOptions" - }, - "supplementalGroups": { - "description": "A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container.", - "type": "array", - "items": { - "type": "integer", - "format": "int64" - } - } - } - }, - "v1.ComponentStatusList": { - "description": "Status of all the conditions for the component as a list of ComponentStatus objects.", - "required": [ - "items" - ], - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "List of ComponentStatus objects.", - "type": "array", - "items": { - "$ref": "#/definitions/v1.ComponentStatus" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "$ref": "#/definitions/v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "", - "Version": "v1", - "Kind": "ComponentStatusList" - } - ] - }, - "v1alpha1.Subject": { - "description": "Subject contains a reference to the object or user identities a role binding applies to. This can either hold a direct API object reference, or a value for non-objects such as user and group names.", - "required": [ - "kind", - "name" - ], - "properties": { - "apiVersion": { - "description": "APIVersion holds the API group and version of the referenced subject. Defaults to \"v1\" for ServiceAccount subjects. Defaults to \"rbac.authorization.k8s.io/v1alpha1\" for User and Group subjects.", - "type": "string" - }, - "kind": { - "description": "Kind of object being referenced. Values defined by this API group are \"User\", \"Group\", and \"ServiceAccount\". If the Authorizer does not recognized the kind value, the Authorizer should report an error.", - "type": "string" - }, - "name": { - "description": "Name of the object being referenced.", - "type": "string" - }, - "namespace": { - "description": "Namespace of the referenced object. If the object kind is non-namespace, such as \"User\" or \"Group\", and this value is not empty the Authorizer should report an error.", - "type": "string" - } - } - }, - "v1.LabelSelector": { - "description": "A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects.", - "properties": { - "matchExpressions": { - "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.", - "type": "array", - "items": { - "$ref": "#/definitions/v1.LabelSelectorRequirement" - } - }, - "matchLabels": { - "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \"key\", the operator is \"In\", and the values array contains only \"value\". The requirements are ANDed.", - "type": "object", - "additionalProperties": { - "type": "string" - } - } - } - }, - "v1beta1.Ingress": { - "description": "Ingress is a collection of rules that allow inbound connections to reach the endpoints defined by a backend. An Ingress can be configured to give services externally-reachable urls, load balance traffic, terminate SSL, offer name based virtual hosting etc.", - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", - "type": "string" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", - "$ref": "#/definitions/v1.ObjectMeta" - }, - "spec": { - "description": "Spec is the desired state of the Ingress. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status", - "$ref": "#/definitions/v1beta1.IngressSpec" - }, - "status": { - "description": "Status is the current state of the Ingress. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status", - "$ref": "#/definitions/v1beta1.IngressStatus" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "extensions", - "Version": "v1beta1", - "Kind": "Ingress" - } - ] - }, - "v1.NodeAddress": { - "description": "NodeAddress contains information for the node's address.", - "required": [ - "type", - "address" - ], - "properties": { - "address": { - "description": "The node address.", - "type": "string" - }, - "type": { - "description": "Node address type, one of Hostname, ExternalIP or InternalIP.", - "type": "string" - } - } - }, - "extensions.v1beta1.DeploymentStatus": { - "description": "DeploymentStatus is the most recently observed status of the Deployment.", - "properties": { - "availableReplicas": { - "description": "Total number of available pods (ready for at least minReadySeconds) targeted by this deployment.", - "type": "integer", - "format": "int32" - }, - "conditions": { - "description": "Represents the latest available observations of a deployment's current state.", - "type": "array", - "items": { - "$ref": "#/definitions/extensions.v1beta1.DeploymentCondition" - } - }, - "observedGeneration": { - "description": "The generation observed by the deployment controller.", - "type": "integer", - "format": "int64" - }, - "readyReplicas": { - "description": "Total number of ready pods targeted by this deployment.", - "type": "integer", - "format": "int32" - }, - "replicas": { - "description": "Total number of non-terminated pods targeted by this deployment (their labels match the selector).", - "type": "integer", - "format": "int32" - }, - "unavailableReplicas": { - "description": "Total number of unavailable pods targeted by this deployment.", - "type": "integer", - "format": "int32" - }, - "updatedReplicas": { - "description": "Total number of non-terminated pods targeted by this deployment that have the desired template spec.", - "type": "integer", - "format": "int32" - } - } - }, - "v1.EnvVar": { - "description": "EnvVar represents an environment variable present in a Container.", - "required": [ - "name" - ], - "properties": { - "name": { - "description": "Name of the environment variable. Must be a C_IDENTIFIER.", - "type": "string" - }, - "value": { - "description": "Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to \"\".", - "type": "string" - }, - "valueFrom": { - "description": "Source for the environment variable's value. Cannot be used if value is not empty.", - "$ref": "#/definitions/v1.EnvVarSource" - } - } - }, - "v1.AWSElasticBlockStoreVolumeSource": { - "description": "Represents a Persistent Disk resource in AWS.\n\nAn AWS EBS disk must exist before mounting to a container. The disk must also be in the same AWS zone as the kubelet. An AWS EBS disk can only be mounted as read/write once. AWS EBS volumes support ownership management and SELinux relabeling.", - "required": [ - "volumeID" - ], - "properties": { - "fsType": { - "description": "Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: http://kubernetes.io/docs/user-guide/volumes#awselasticblockstore", - "type": "string" - }, - "partition": { - "description": "The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as \"1\". Similarly, the volume partition for /dev/sda is \"0\" (or you can leave the property empty).", - "type": "integer", - "format": "int32" - }, - "readOnly": { - "description": "Specify \"true\" to force and set the ReadOnly property in VolumeMounts to \"true\". If omitted, the default is \"false\". More info: http://kubernetes.io/docs/user-guide/volumes#awselasticblockstore", - "type": "boolean" - }, - "volumeID": { - "description": "Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: http://kubernetes.io/docs/user-guide/volumes#awselasticblockstore", - "type": "string" - } - } - }, - "v1.NFSVolumeSource": { - "description": "Represents an NFS mount that lasts the lifetime of a pod. NFS volumes do not support ownership management or SELinux relabeling.", - "required": [ - "server", - "path" - ], - "properties": { - "path": { - "description": "Path that is exported by the NFS server. More info: http://kubernetes.io/docs/user-guide/volumes#nfs", - "type": "string" - }, - "readOnly": { - "description": "ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: http://kubernetes.io/docs/user-guide/volumes#nfs", - "type": "boolean" - }, - "server": { - "description": "Server is the hostname or IP address of the NFS server. More info: http://kubernetes.io/docs/user-guide/volumes#nfs", - "type": "string" - } - } - }, - "v1beta1.PodSecurityPolicySpec": { - "description": "Pod Security Policy Spec defines the policy enforced.", - "required": [ - "seLinux", - "runAsUser", - "supplementalGroups", - "fsGroup" - ], - "properties": { - "allowedCapabilities": { - "description": "AllowedCapabilities is a list of capabilities that can be requested to add to the container. Capabilities in this field may be added at the pod author's discretion. You must not list a capability in both AllowedCapabilities and RequiredDropCapabilities.", - "type": "array", - "items": { - "type": "string" - } - }, - "defaultAddCapabilities": { - "description": "DefaultAddCapabilities is the default set of capabilities that will be added to the container unless the pod spec specifically drops the capability. You may not list a capabiility in both DefaultAddCapabilities and RequiredDropCapabilities.", - "type": "array", - "items": { - "type": "string" - } - }, - "fsGroup": { - "description": "FSGroup is the strategy that will dictate what fs group is used by the SecurityContext.", - "$ref": "#/definitions/v1beta1.FSGroupStrategyOptions" - }, - "hostIPC": { - "description": "hostIPC determines if the policy allows the use of HostIPC in the pod spec.", - "type": "boolean" - }, - "hostNetwork": { - "description": "hostNetwork determines if the policy allows the use of HostNetwork in the pod spec.", - "type": "boolean" - }, - "hostPID": { - "description": "hostPID determines if the policy allows the use of HostPID in the pod spec.", - "type": "boolean" - }, - "hostPorts": { - "description": "hostPorts determines which host port ranges are allowed to be exposed.", - "type": "array", - "items": { - "$ref": "#/definitions/v1beta1.HostPortRange" - } - }, - "privileged": { - "description": "privileged determines if a pod can request to be run as privileged.", - "type": "boolean" - }, - "readOnlyRootFilesystem": { - "description": "ReadOnlyRootFilesystem when set to true will force containers to run with a read only root file system. If the container specifically requests to run with a non-read only root file system the PSP should deny the pod. If set to false the container may run with a read only root file system if it wishes but it will not be forced to.", - "type": "boolean" - }, - "requiredDropCapabilities": { - "description": "RequiredDropCapabilities are the capabilities that will be dropped from the container. These are required to be dropped and cannot be added.", - "type": "array", - "items": { - "type": "string" - } - }, - "runAsUser": { - "description": "runAsUser is the strategy that will dictate the allowable RunAsUser values that may be set.", - "$ref": "#/definitions/v1beta1.RunAsUserStrategyOptions" - }, - "seLinux": { - "description": "seLinux is the strategy that will dictate the allowable labels that may be set.", - "$ref": "#/definitions/v1beta1.SELinuxStrategyOptions" - }, - "supplementalGroups": { - "description": "SupplementalGroups is the strategy that will dictate what supplemental groups are used by the SecurityContext.", - "$ref": "#/definitions/v1beta1.SupplementalGroupsStrategyOptions" - }, - "volumes": { - "description": "volumes is a white list of allowed volume plugins. Empty indicates that all plugins may be used.", - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "v1.ListMeta": { - "description": "ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}.", - "properties": { - "resourceVersion": { - "description": "String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#concurrency-control-and-consistency", - "type": "string" - }, - "selfLink": { - "description": "SelfLink is a URL representing this object. Populated by the system. Read-only.", - "type": "string" - } - } - }, - "v1beta1.ReplicaSetList": { - "description": "ReplicaSetList is a collection of ReplicaSets.", - "required": [ - "items" - ], - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "List of ReplicaSets. More info: http://kubernetes.io/docs/user-guide/replication-controller", - "type": "array", - "items": { - "$ref": "#/definitions/v1beta1.ReplicaSet" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "$ref": "#/definitions/v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "extensions", - "Version": "v1beta1", - "Kind": "ReplicaSetList" - } - ] - }, - "v1.ServiceAccountList": { - "description": "ServiceAccountList is a list of ServiceAccount objects", - "required": [ - "items" - ], - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "List of ServiceAccounts. More info: http://releases.k8s.io/HEAD/docs/design/service_accounts.md#service-accounts", - "type": "array", - "items": { - "$ref": "#/definitions/v1.ServiceAccount" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "$ref": "#/definitions/v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "", - "Version": "v1", - "Kind": "ServiceAccountList" - } - ] - }, - "v1.HorizontalPodAutoscalerList": { - "description": "list of horizontal pod autoscaler objects.", - "required": [ - "items" - ], - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "list of horizontal pod autoscaler objects.", - "type": "array", - "items": { - "$ref": "#/definitions/v1.HorizontalPodAutoscaler" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard list metadata.", - "$ref": "#/definitions/v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "autoscaling", - "Version": "v1", - "Kind": "HorizontalPodAutoscalerList" - } - ] - }, - "v1.Probe": { - "description": "Probe describes a health check to be performed against a container to determine whether it is alive or ready to receive traffic.", - "properties": { - "exec": { - "description": "One and only one of the following should be specified. Exec specifies the action to take.", - "$ref": "#/definitions/v1.ExecAction" - }, - "failureThreshold": { - "description": "Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1.", - "type": "integer", - "format": "int32" - }, - "httpGet": { - "description": "HTTPGet specifies the http request to perform.", - "$ref": "#/definitions/v1.HTTPGetAction" - }, - "initialDelaySeconds": { - "description": "Number of seconds after the container has started before liveness probes are initiated. More info: http://kubernetes.io/docs/user-guide/pod-states#container-probes", - "type": "integer", - "format": "int32" - }, - "periodSeconds": { - "description": "How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1.", - "type": "integer", - "format": "int32" - }, - "successThreshold": { - "description": "Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness. Minimum value is 1.", - "type": "integer", - "format": "int32" - }, - "tcpSocket": { - "description": "TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported", - "$ref": "#/definitions/v1.TCPSocketAction" - }, - "timeoutSeconds": { - "description": "Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: http://kubernetes.io/docs/user-guide/pod-states#container-probes", - "type": "integer", - "format": "int32" - } - } - }, - "v1.SecretKeySelector": { - "description": "SecretKeySelector selects a key of a Secret.", - "required": [ - "key" - ], - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "description": "Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or it's key must be defined", - "type": "boolean" - } - } - }, - "v1.NamespaceSpec": { - "description": "NamespaceSpec describes the attributes on a Namespace.", - "properties": { - "finalizers": { - "description": "Finalizers is an opaque list of values that must be empty to permanently remove object from storage. More info: http://releases.k8s.io/HEAD/docs/design/namespaces.md#finalizers", - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "v1beta1.ClusterRoleBindingList": { - "description": "ClusterRoleBindingList is a collection of ClusterRoleBindings", - "required": [ - "items" - ], - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "Items is a list of ClusterRoleBindings", - "type": "array", - "items": { - "$ref": "#/definitions/v1beta1.ClusterRoleBinding" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object's metadata.", - "$ref": "#/definitions/v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "rbac.authorization.k8s.io", - "Version": "v1beta1", - "Kind": "ClusterRoleBindingList" - } - ] - }, - "v1.Volume": { - "description": "Volume represents a named volume in a pod that may be accessed by any container in the pod.", - "required": [ - "name" - ], - "properties": { - "awsElasticBlockStore": { - "description": "AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: http://kubernetes.io/docs/user-guide/volumes#awselasticblockstore", - "$ref": "#/definitions/v1.AWSElasticBlockStoreVolumeSource" - }, - "azureDisk": { - "description": "AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.", - "$ref": "#/definitions/v1.AzureDiskVolumeSource" - }, - "azureFile": { - "description": "AzureFile represents an Azure File Service mount on the host and bind mount to the pod.", - "$ref": "#/definitions/v1.AzureFileVolumeSource" - }, - "cephfs": { - "description": "CephFS represents a Ceph FS mount on the host that shares a pod's lifetime", - "$ref": "#/definitions/v1.CephFSVolumeSource" - }, - "cinder": { - "description": "Cinder represents a cinder volume attached and mounted on kubelets host machine More info: http://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md", - "$ref": "#/definitions/v1.CinderVolumeSource" - }, - "configMap": { - "description": "ConfigMap represents a configMap that should populate this volume", - "$ref": "#/definitions/v1.ConfigMapVolumeSource" - }, - "downwardAPI": { - "description": "DownwardAPI represents downward API about the pod that should populate this volume", - "$ref": "#/definitions/v1.DownwardAPIVolumeSource" - }, - "emptyDir": { - "description": "EmptyDir represents a temporary directory that shares a pod's lifetime. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir", - "$ref": "#/definitions/v1.EmptyDirVolumeSource" - }, - "fc": { - "description": "FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod.", - "$ref": "#/definitions/v1.FCVolumeSource" - }, - "flexVolume": { - "description": "FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. This is an alpha feature and may change in future.", - "$ref": "#/definitions/v1.FlexVolumeSource" - }, - "flocker": { - "description": "Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running", - "$ref": "#/definitions/v1.FlockerVolumeSource" - }, - "gcePersistentDisk": { - "description": "GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: http://kubernetes.io/docs/user-guide/volumes#gcepersistentdisk", - "$ref": "#/definitions/v1.GCEPersistentDiskVolumeSource" - }, - "gitRepo": { - "description": "GitRepo represents a git repository at a particular revision.", - "$ref": "#/definitions/v1.GitRepoVolumeSource" - }, - "glusterfs": { - "description": "Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: http://releases.k8s.io/HEAD/examples/volumes/glusterfs/README.md", - "$ref": "#/definitions/v1.GlusterfsVolumeSource" - }, - "hostPath": { - "description": "HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: http://kubernetes.io/docs/user-guide/volumes#hostpath", - "$ref": "#/definitions/v1.HostPathVolumeSource" - }, - "iscsi": { - "description": "ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: http://releases.k8s.io/HEAD/examples/volumes/iscsi/README.md", - "$ref": "#/definitions/v1.ISCSIVolumeSource" - }, - "name": { - "description": "Volume's name. Must be a DNS_LABEL and unique within the pod. More info: http://kubernetes.io/docs/user-guide/identifiers#names", - "type": "string" - }, - "nfs": { - "description": "NFS represents an NFS mount on the host that shares a pod's lifetime More info: http://kubernetes.io/docs/user-guide/volumes#nfs", - "$ref": "#/definitions/v1.NFSVolumeSource" - }, - "persistentVolumeClaim": { - "description": "PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#persistentvolumeclaims", - "$ref": "#/definitions/v1.PersistentVolumeClaimVolumeSource" - }, - "photonPersistentDisk": { - "description": "PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine", - "$ref": "#/definitions/v1.PhotonPersistentDiskVolumeSource" - }, - "portworxVolume": { - "description": "PortworxVolume represents a portworx volume attached and mounted on kubelets host machine", - "$ref": "#/definitions/v1.PortworxVolumeSource" - }, - "projected": { - "description": "Items for all in one resources secrets, configmaps, and downward API", - "$ref": "#/definitions/v1.ProjectedVolumeSource" - }, - "quobyte": { - "description": "Quobyte represents a Quobyte mount on the host that shares a pod's lifetime", - "$ref": "#/definitions/v1.QuobyteVolumeSource" - }, - "rbd": { - "description": "RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: http://releases.k8s.io/HEAD/examples/volumes/rbd/README.md", - "$ref": "#/definitions/v1.RBDVolumeSource" - }, - "scaleIO": { - "description": "ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes.", - "$ref": "#/definitions/v1.ScaleIOVolumeSource" - }, - "secret": { - "description": "Secret represents a secret that should populate this volume. More info: http://kubernetes.io/docs/user-guide/volumes#secrets", - "$ref": "#/definitions/v1.SecretVolumeSource" - }, - "vsphereVolume": { - "description": "VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine", - "$ref": "#/definitions/v1.VsphereVirtualDiskVolumeSource" - } - } - }, - "v1.ConfigMapKeySelector": { - "description": "Selects a key from a ConfigMap.", - "required": [ - "key" - ], - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "description": "Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or it's key must be defined", - "type": "boolean" - } - } - }, - "v1beta1.IngressList": { - "description": "IngressList is a collection of Ingress.", - "required": [ - "items" - ], - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "Items is the list of Ingress.", - "type": "array", - "items": { - "$ref": "#/definitions/v1beta1.Ingress" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", - "$ref": "#/definitions/v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "extensions", - "Version": "v1beta1", - "Kind": "IngressList" - } - ] - }, - "v1beta1.ReplicaSet": { - "description": "ReplicaSet represents the configuration of a ReplicaSet.", - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", - "type": "string" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "If the Labels of a ReplicaSet are empty, they are defaulted to be the same as the Pod(s) that the ReplicaSet manages. Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", - "$ref": "#/definitions/v1.ObjectMeta" - }, - "spec": { - "description": "Spec defines the specification of the desired behavior of the ReplicaSet. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status", - "$ref": "#/definitions/v1beta1.ReplicaSetSpec" - }, - "status": { - "description": "Status is the most recently observed status of the ReplicaSet. This data may be out of date by some window of time. Populated by the system. Read-only. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status", - "$ref": "#/definitions/v1beta1.ReplicaSetStatus" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "extensions", - "Version": "v1beta1", - "Kind": "ReplicaSet" - } - ] - }, - "v2alpha1.CronJob": { - "description": "CronJob represents the configuration of a single cron job.", - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", - "type": "string" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", - "$ref": "#/definitions/v1.ObjectMeta" - }, - "spec": { - "description": "Spec is a structure defining the expected behavior of a job, including the schedule. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status", - "$ref": "#/definitions/v2alpha1.CronJobSpec" - }, - "status": { - "description": "Status is a structure describing current status of a job. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status", - "$ref": "#/definitions/v2alpha1.CronJobStatus" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "batch", - "Version": "v2alpha1", - "Kind": "CronJob" - }, - { - "Group": "batch", - "Version": "v2alpha1", - "Kind": "ScheduledJob" - } - ] - }, - "v1.VsphereVirtualDiskVolumeSource": { - "description": "Represents a vSphere volume resource.", - "required": [ - "volumePath" - ], - "properties": { - "fsType": { - "description": "Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.", - "type": "string" - }, - "volumePath": { - "description": "Path that identifies vSphere volume vmdk", - "type": "string" - } - } - }, - "v1.Status": { - "description": "Status is a return value for calls that don't return other objects.", - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", - "type": "string" - }, - "code": { - "description": "Suggested HTTP return code for this status, 0 if not set.", - "type": "integer", - "format": "int32" - }, - "details": { - "description": "Extended data associated with the reason. Each reason may define its own extended details. This field is optional and the data returned is not guaranteed to conform to any schema except that defined by the reason type.", - "$ref": "#/definitions/v1.StatusDetails" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "message": { - "description": "A human-readable description of the status of this operation.", - "type": "string" - }, - "metadata": { - "description": "Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "$ref": "#/definitions/v1.ListMeta" - }, - "reason": { - "description": "A machine-readable description of why this operation is in the \"Failure\" status. If this value is empty there is no information available. A Reason clarifies an HTTP status code but does not override it.", - "type": "string" - }, - "status": { - "description": "Status of the operation. One of: \"Success\" or \"Failure\". More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status", - "type": "string" - } - } - }, - "v1.ReplicationControllerStatus": { - "description": "ReplicationControllerStatus represents the current status of a replication controller.", - "required": [ - "replicas" - ], - "properties": { - "availableReplicas": { - "description": "The number of available replicas (ready for at least minReadySeconds) for this replication controller.", - "type": "integer", - "format": "int32" - }, - "conditions": { - "description": "Represents the latest available observations of a replication controller's current state.", - "type": "array", - "items": { - "$ref": "#/definitions/v1.ReplicationControllerCondition" - } - }, - "fullyLabeledReplicas": { - "description": "The number of pods that have labels matching the labels of the pod template of the replication controller.", - "type": "integer", - "format": "int32" - }, - "observedGeneration": { - "description": "ObservedGeneration reflects the generation of the most recently observed replication controller.", - "type": "integer", - "format": "int64" - }, - "readyReplicas": { - "description": "The number of ready replicas for this replication controller.", - "type": "integer", - "format": "int32" - }, - "replicas": { - "description": "Replicas is the most recently oberved number of replicas. More info: http://kubernetes.io/docs/user-guide/replication-controller#what-is-a-replication-controller", - "type": "integer", - "format": "int32" - } - } - }, - "v1.LoadBalancerStatus": { - "description": "LoadBalancerStatus represents the status of a load-balancer.", - "properties": { - "ingress": { - "description": "Ingress is a list containing ingress points for the load-balancer. Traffic intended for the service should be sent to these ingress points.", - "type": "array", - "items": { - "$ref": "#/definitions/v1.LoadBalancerIngress" - } - } - } - }, - "v1.Binding": { - "description": "Binding ties one object to another. For example, a pod is bound to a node by a scheduler.", - "required": [ - "target" - ], - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", - "type": "string" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", - "$ref": "#/definitions/v1.ObjectMeta" - }, - "target": { - "description": "The target object that you want to bind to the standard object.", - "$ref": "#/definitions/v1.ObjectReference" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "", - "Version": "v1", - "Kind": "Binding" - } - ] - }, - "v1.VolumeProjection": { - "description": "Projection that may be projected along with other supported volume types", - "properties": { - "configMap": { - "description": "information about the configMap data to project", - "$ref": "#/definitions/v1.ConfigMapProjection" - }, - "downwardAPI": { - "description": "information about the downwardAPI data to project", - "$ref": "#/definitions/v1.DownwardAPIProjection" - }, - "secret": { - "description": "information about the secret data to project", - "$ref": "#/definitions/v1.SecretProjection" - } - } - }, - "v1.TokenReviewSpec": { - "description": "TokenReviewSpec is a description of the token authentication request.", - "properties": { - "token": { - "description": "Token is the opaque bearer token.", - "type": "string" - } - } - }, - "v1beta1.Subject": { - "description": "Subject contains a reference to the object or user identities a role binding applies to. This can either hold a direct API object reference, or a value for non-objects such as user and group names.", - "required": [ - "kind", - "name" - ], - "properties": { - "apiGroup": { - "description": "APIGroup holds the API group of the referenced subject. Defaults to \"\" for ServiceAccount subjects. Defaults to \"rbac.authorization.k8s.io\" for User and Group subjects.", - "type": "string" - }, - "kind": { - "description": "Kind of object being referenced. Values defined by this API group are \"User\", \"Group\", and \"ServiceAccount\". If the Authorizer does not recognized the kind value, the Authorizer should report an error.", - "type": "string" - }, - "name": { - "description": "Name of the object being referenced.", - "type": "string" - }, - "namespace": { - "description": "Namespace of the referenced object. If the object kind is non-namespace, such as \"User\" or \"Group\", and this value is not empty the Authorizer should report an error.", - "type": "string" - } - } - }, - "v1.NodeList": { - "description": "NodeList is the whole list of all Nodes which have been registered with master.", - "required": [ - "items" - ], - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "List of nodes", - "type": "array", - "items": { - "$ref": "#/definitions/v1.Node" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "$ref": "#/definitions/v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "", - "Version": "v1", - "Kind": "NodeList" - } - ] - }, - "v1.ContainerPort": { - "description": "ContainerPort represents a network port in a single container.", - "required": [ - "containerPort" - ], - "properties": { - "containerPort": { - "description": "Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536.", - "type": "integer", - "format": "int32" - }, - "hostIP": { - "description": "What host IP to bind the external port to.", - "type": "string" - }, - "hostPort": { - "description": "Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this.", - "type": "integer", - "format": "int32" - }, - "name": { - "description": "If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services.", - "type": "string" - }, - "protocol": { - "description": "Protocol for port. Must be UDP or TCP. Defaults to \"TCP\".", - "type": "string" - } - } - }, - "v1.FCVolumeSource": { - "description": "Represents a Fibre Channel volume. Fibre Channel volumes can only be mounted as read/write once. Fibre Channel volumes support ownership management and SELinux relabeling.", - "required": [ - "targetWWNs", - "lun" - ], - "properties": { - "fsType": { - "description": "Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.", - "type": "string" - }, - "lun": { - "description": "Required: FC target lun number", - "type": "integer", - "format": "int32" - }, - "readOnly": { - "description": "Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", - "type": "boolean" - }, - "targetWWNs": { - "description": "Required: FC target worldwide names (WWNs)", - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "runtime.RawExtension": { - "description": "RawExtension is used to hold extensions in external versions.\n\nTo use this, make a field which has RawExtension as its type in your external, versioned struct, and Object in your internal struct. You also need to register your various plugin types.\n\n// Internal package: type MyAPIObject struct {\n\truntime.TypeMeta `json:\",inline\"`\n\tMyPlugin runtime.Object `json:\"myPlugin\"`\n} type PluginA struct {\n\tAOption string `json:\"aOption\"`\n}\n\n// External package: type MyAPIObject struct {\n\truntime.TypeMeta `json:\",inline\"`\n\tMyPlugin runtime.RawExtension `json:\"myPlugin\"`\n} type PluginA struct {\n\tAOption string `json:\"aOption\"`\n}\n\n// On the wire, the JSON will look something like this: {\n\t\"kind\":\"MyAPIObject\",\n\t\"apiVersion\":\"v1\",\n\t\"myPlugin\": {\n\t\t\"kind\":\"PluginA\",\n\t\t\"aOption\":\"foo\",\n\t},\n}\n\nSo what happens? Decode first uses json or yaml to unmarshal the serialized data into your external MyAPIObject. That causes the raw JSON to be stored, but not unpacked. The next step is to copy (using pkg/conversion) into the internal struct. The runtime package's DefaultScheme has conversion functions installed which will unpack the JSON stored in RawExtension, turning it into the correct object type, and storing it in the Object. (TODO: In the case where the object is of an unknown type, a runtime.Unknown object will be created and stored.)", - "required": [ - "Raw" - ], - "properties": { - "Raw": { - "description": "Raw is the underlying serialization of this object.", - "type": "string", - "format": "byte" - } - } - }, - "v1alpha1.ClusterRoleBinding": { - "description": "ClusterRoleBinding references a ClusterRole, but not contain it. It can reference a ClusterRole in the global namespace, and adds who information via Subject.", - "required": [ - "subjects", - "roleRef" - ], - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", - "type": "string" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object's metadata.", - "$ref": "#/definitions/v1.ObjectMeta" - }, - "roleRef": { - "description": "RoleRef can only reference a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error.", - "$ref": "#/definitions/v1alpha1.RoleRef" - }, - "subjects": { - "description": "Subjects holds references to the objects the role applies to.", - "type": "array", - "items": { - "$ref": "#/definitions/v1alpha1.Subject" - } - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "rbac.authorization.k8s.io", - "Version": "v1alpha1", - "Kind": "ClusterRoleBinding" - } - ] - }, - "version.Info": { - "description": "Info contains versioning information. how we'll want to distribute that information.", - "required": [ - "major", - "minor", - "gitVersion", - "gitCommit", - "gitTreeState", - "buildDate", - "goVersion", - "compiler", - "platform" - ], - "properties": { - "buildDate": { - "type": "string" - }, - "compiler": { - "type": "string" - }, - "gitCommit": { - "type": "string" - }, - "gitTreeState": { - "type": "string" - }, - "gitVersion": { - "type": "string" - }, - "goVersion": { - "type": "string" - }, - "major": { - "type": "string" - }, - "minor": { - "type": "string" - }, - "platform": { - "type": "string" - } - } - }, - "v2alpha1.HorizontalPodAutoscaler": { - "description": "HorizontalPodAutoscaler is the configuration for a horizontal pod autoscaler, which automatically manages the replica count of any resource implementing the scale subresource based on the metrics specified.", - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", - "type": "string" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "metadata is the standard object metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", - "$ref": "#/definitions/v1.ObjectMeta" - }, - "spec": { - "description": "spec is the specification for the behaviour of the autoscaler. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status.", - "$ref": "#/definitions/v2alpha1.HorizontalPodAutoscalerSpec" - }, - "status": { - "description": "status is the current information about the autoscaler.", - "$ref": "#/definitions/v2alpha1.HorizontalPodAutoscalerStatus" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "autoscaling", - "Version": "v2alpha1", - "Kind": "HorizontalPodAutoscaler" - } - ] - }, - "v1.ReplicationControllerSpec": { - "description": "ReplicationControllerSpec is the specification of a replication controller.", - "properties": { - "minReadySeconds": { - "description": "Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready)", - "type": "integer", - "format": "int32" - }, - "replicas": { - "description": "Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: http://kubernetes.io/docs/user-guide/replication-controller#what-is-a-replication-controller", - "type": "integer", - "format": "int32" - }, - "selector": { - "description": "Selector is a label query over pods that should match the Replicas count. If Selector is empty, it is defaulted to the labels present on the Pod template. Label keys and values that must match in order to be controlled by this replication controller, if empty defaulted to labels on Pod template. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors", - "type": "object", - "additionalProperties": { - "type": "string" - } - }, - "template": { - "description": "Template is the object that describes the pod that will be created if insufficient replicas are detected. This takes precedence over a TemplateRef. More info: http://kubernetes.io/docs/user-guide/replication-controller#pod-template", - "$ref": "#/definitions/v1.PodTemplateSpec" - } - } - }, - "v1.TCPSocketAction": { - "description": "TCPSocketAction describes an action based on opening a socket", - "required": [ - "port" - ], - "properties": { - "port": { - "description": "Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME.", - "type": "string", - "format": "int-or-string" - } - } - }, - "v1alpha1.RoleList": { - "description": "RoleList is a collection of Roles", - "required": [ - "items" - ], - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "Items is a list of Roles", - "type": "array", - "items": { - "$ref": "#/definitions/v1alpha1.Role" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object's metadata.", - "$ref": "#/definitions/v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "rbac.authorization.k8s.io", - "Version": "v1alpha1", - "Kind": "RoleList" - } - ] - }, - "v1beta1.StatefulSetList": { - "description": "StatefulSetList is a collection of StatefulSets.", - "required": [ - "items" - ], - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", - "type": "string" - }, - "items": { - "type": "array", - "items": { - "$ref": "#/definitions/v1beta1.StatefulSet" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "$ref": "#/definitions/v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "apps", - "Version": "v1beta1", - "Kind": "StatefulSetList" - } - ] - }, - "v1.ISCSIVolumeSource": { - "description": "Represents an ISCSI disk. ISCSI volumes can only be mounted as read/write once. ISCSI volumes support ownership management and SELinux relabeling.", - "required": [ - "targetPortal", - "iqn", - "lun" - ], - "properties": { - "fsType": { - "description": "Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: http://kubernetes.io/docs/user-guide/volumes#iscsi", - "type": "string" - }, - "iqn": { - "description": "Target iSCSI Qualified Name.", - "type": "string" - }, - "iscsiInterface": { - "description": "Optional: Defaults to 'default' (tcp). iSCSI interface name that uses an iSCSI transport.", - "type": "string" - }, - "lun": { - "description": "iSCSI target lun number.", - "type": "integer", - "format": "int32" - }, - "portals": { - "description": "iSCSI target portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260).", - "type": "array", - "items": { - "type": "string" - } - }, - "readOnly": { - "description": "ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false.", - "type": "boolean" - }, - "targetPortal": { - "description": "iSCSI target portal. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260).", - "type": "string" - } - } - }, - "v1.PodTemplate": { - "description": "PodTemplate describes a template for creating copies of a predefined pod.", - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", - "type": "string" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", - "$ref": "#/definitions/v1.ObjectMeta" - }, - "template": { - "description": "Template defines the pods that will be created from this pod template. http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status", - "$ref": "#/definitions/v1.PodTemplateSpec" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "", - "Version": "v1", - "Kind": "PodTemplate" - } - ] - }, - "v1.Toleration": { - "description": "The pod this Toleration is attached to tolerates any taint that matches the triple using the matching operator .", - "properties": { - "effect": { - "description": "Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute.", - "type": "string" - }, - "key": { - "description": "Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys.", - "type": "string" - }, - "operator": { - "description": "Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category.", - "type": "string" - }, - "tolerationSeconds": { - "description": "TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system.", - "type": "integer", - "format": "int64" - }, - "value": { - "description": "Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string.", - "type": "string" - } - } - }, - "v1beta1.ClusterRoleList": { - "description": "ClusterRoleList is a collection of ClusterRoles", - "required": [ - "items" - ], - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "Items is a list of ClusterRoles", - "type": "array", - "items": { - "$ref": "#/definitions/v1beta1.ClusterRole" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object's metadata.", - "$ref": "#/definitions/v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "rbac.authorization.k8s.io", - "Version": "v1beta1", - "Kind": "ClusterRoleList" - } - ] - }, - "extensions.v1beta1.DeploymentList": { - "description": "DeploymentList is a list of Deployments.", - "required": [ - "items" - ], - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "Items is the list of Deployments.", - "type": "array", - "items": { - "$ref": "#/definitions/extensions.v1beta1.Deployment" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard list metadata.", - "$ref": "#/definitions/v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "extensions", - "Version": "v1beta1", - "Kind": "DeploymentList" - } - ] - }, - "v1.ScaleStatus": { - "description": "ScaleStatus represents the current status of a scale subresource.", - "required": [ - "replicas" - ], - "properties": { - "replicas": { - "description": "actual number of observed instances of the scaled object.", - "type": "integer", - "format": "int32" - }, - "selector": { - "description": "label query over pods that should match the replicas count. This is same as the label selector but in the string format to avoid introspection by clients. The string will be in the same format as the query-param syntax. More info about label selectors: http://kubernetes.io/docs/user-guide/labels#label-selectors", - "type": "string" - } - } - }, - "v1.ServiceStatus": { - "description": "ServiceStatus represents the current status of a service.", - "properties": { - "loadBalancer": { - "description": "LoadBalancer contains the current status of the load-balancer, if one is present.", - "$ref": "#/definitions/v1.LoadBalancerStatus" - } - } - }, - "v1.PodSpec": { - "description": "PodSpec is a description of a pod.", - "required": [ - "containers" - ], - "properties": { - "activeDeadlineSeconds": { - "description": "Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer.", - "type": "integer", - "format": "int64" - }, - "affinity": { - "description": "If specified, the pod's scheduling constraints", - "$ref": "#/definitions/v1.Affinity" - }, - "automountServiceAccountToken": { - "description": "AutomountServiceAccountToken indicates whether a service account token should be automatically mounted.", - "type": "boolean" - }, - "containers": { - "description": "List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/containers", - "type": "array", - "items": { - "$ref": "#/definitions/v1.Container" - } - }, - "dnsPolicy": { - "description": "Set DNS policy for containers within the pod. One of 'ClusterFirstWithHostNet', 'ClusterFirst' or 'Default'. Defaults to \"ClusterFirst\". To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'.", - "type": "string" - }, - "hostIPC": { - "description": "Use the host's ipc namespace. Optional: Default to false.", - "type": "boolean" - }, - "hostNetwork": { - "description": "Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false.", - "type": "boolean" - }, - "hostPID": { - "description": "Use the host's pid namespace. Optional: Default to false.", - "type": "boolean" - }, - "hostname": { - "description": "Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value.", - "type": "string" - }, - "imagePullSecrets": { - "description": "ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: http://kubernetes.io/docs/user-guide/images#specifying-imagepullsecrets-on-a-pod", - "type": "array", - "items": { - "$ref": "#/definitions/v1.LocalObjectReference" - } - }, - "initContainers": { - "description": "List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, or Liveness probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/containers", - "type": "array", - "items": { - "$ref": "#/definitions/v1.Container" - } - }, - "nodeName": { - "description": "NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements.", - "type": "string" - }, - "nodeSelector": { - "description": "NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: http://kubernetes.io/docs/user-guide/node-selection/README", - "type": "object", - "additionalProperties": { - "type": "string" - } - }, - "restartPolicy": { - "description": "Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: http://kubernetes.io/docs/user-guide/pod-states#restartpolicy", - "type": "string" - }, - "schedulerName": { - "description": "If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler.", - "type": "string" - }, - "securityContext": { - "description": "SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field.", - "$ref": "#/definitions/v1.PodSecurityContext" - }, - "serviceAccount": { - "description": "DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead.", - "type": "string" - }, - "serviceAccountName": { - "description": "ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: http://releases.k8s.io/HEAD/docs/design/service_accounts.md", - "type": "string" - }, - "subdomain": { - "description": "If specified, the fully qualified Pod hostname will be \"...svc.\". If not specified, the pod will not have a domainname at all.", - "type": "string" - }, - "terminationGracePeriodSeconds": { - "description": "Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds.", - "type": "integer", - "format": "int64" - }, - "tolerations": { - "description": "If specified, the pod's tolerations.", - "type": "array", - "items": { - "$ref": "#/definitions/v1.Toleration" - } - }, - "volumes": { - "description": "List of volumes that can be mounted by containers belonging to the pod. More info: http://kubernetes.io/docs/user-guide/volumes", - "type": "array", - "items": { - "$ref": "#/definitions/v1.Volume" - } - } - } - }, - "v1.NamespaceList": { - "description": "NamespaceList is a list of Namespaces.", - "required": [ - "items" - ], - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "Items is the list of Namespace objects in the list. More info: http://kubernetes.io/docs/user-guide/namespaces", - "type": "array", - "items": { - "$ref": "#/definitions/v1.Namespace" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "$ref": "#/definitions/v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "", - "Version": "v1", - "Kind": "NamespaceList" - } - ] - }, - "v1.NodeSystemInfo": { - "description": "NodeSystemInfo is a set of ids/uuids to uniquely identify the node.", - "required": [ - "machineID", - "systemUUID", - "bootID", - "kernelVersion", - "osImage", - "containerRuntimeVersion", - "kubeletVersion", - "kubeProxyVersion", - "operatingSystem", - "architecture" - ], - "properties": { - "architecture": { - "description": "The Architecture reported by the node", - "type": "string" - }, - "bootID": { - "description": "Boot ID reported by the node.", - "type": "string" - }, - "containerRuntimeVersion": { - "description": "ContainerRuntime Version reported by the node through runtime remote API (e.g. docker://1.5.0).", - "type": "string" - }, - "kernelVersion": { - "description": "Kernel Version reported by the node from 'uname -r' (e.g. 3.16.0-0.bpo.4-amd64).", - "type": "string" - }, - "kubeProxyVersion": { - "description": "KubeProxy Version reported by the node.", - "type": "string" - }, - "kubeletVersion": { - "description": "Kubelet Version reported by the node.", - "type": "string" - }, - "machineID": { - "description": "MachineID reported by the node. For unique machine identification in the cluster this field is prefered. Learn more from man(5) machine-id: http://man7.org/linux/man-pages/man5/machine-id.5.html", - "type": "string" - }, - "operatingSystem": { - "description": "The Operating System reported by the node", - "type": "string" - }, - "osImage": { - "description": "OS Image reported by the node from /etc/os-release (e.g. Debian GNU/Linux 7 (wheezy)).", - "type": "string" - }, - "systemUUID": { - "description": "SystemUUID reported by the node. For unique machine identification MachineID is prefered. This field is specific to Red Hat hosts https://access.redhat.com/documentation/en-US/Red_Hat_Subscription_Management/1/html/RHSM/getting-system-uuid.html", - "type": "string" - } - } - }, - "v1.KeyToPath": { - "description": "Maps a string key to a path within a volume.", - "required": [ - "key", - "path" - ], - "properties": { - "key": { - "description": "The key to project.", - "type": "string" - }, - "mode": { - "description": "Optional: mode bits to use on this file, must be a value between 0 and 0777. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.", - "type": "integer", - "format": "int32" - }, - "path": { - "description": "The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'.", - "type": "string" - } - } - }, - "v1beta1.ResourceAttributes": { - "description": "ResourceAttributes includes the authorization attributes available for resource requests to the Authorizer interface", - "properties": { - "group": { - "description": "Group is the API Group of the Resource. \"*\" means all.", - "type": "string" - }, - "name": { - "description": "Name is the name of the resource being requested for a \"get\" or deleted for a \"delete\". \"\" (empty) means all.", - "type": "string" - }, - "namespace": { - "description": "Namespace is the namespace of the action being requested. Currently, there is no distinction between no namespace and all namespaces \"\" (empty) is defaulted for LocalSubjectAccessReviews \"\" (empty) is empty for cluster-scoped resources \"\" (empty) means \"all\" for namespace scoped resources from a SubjectAccessReview or SelfSubjectAccessReview", - "type": "string" - }, - "resource": { - "description": "Resource is one of the existing resource types. \"*\" means all.", - "type": "string" - }, - "subresource": { - "description": "Subresource is one of the existing resource types. \"\" means none.", - "type": "string" - }, - "verb": { - "description": "Verb is a kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy. \"*\" means all.", - "type": "string" - }, - "version": { - "description": "Version is the API Version of the Resource. \"*\" means all.", - "type": "string" - } - } - }, - "v1.EnvFromSource": { - "description": "EnvFromSource represents the source of a set of ConfigMaps", - "properties": { - "configMapRef": { - "description": "The ConfigMap to select from", - "$ref": "#/definitions/v1.ConfigMapEnvSource" - }, - "prefix": { - "description": "An optional identifer to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER.", - "type": "string" - }, - "secretRef": { - "description": "The Secret to select from", - "$ref": "#/definitions/v1.SecretEnvSource" - } - } - }, - "v1beta1.CertificateSigningRequestList": { - "required": [ - "items" - ], - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", - "type": "string" - }, - "items": { - "type": "array", - "items": { - "$ref": "#/definitions/v1beta1.CertificateSigningRequest" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "$ref": "#/definitions/v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "certificates.k8s.io", - "Version": "v1beta1", - "Kind": "CertificateSigningRequestList" - } - ] - }, - "v1.JobStatus": { - "description": "JobStatus represents the current state of a Job.", - "properties": { - "active": { - "description": "Active is the number of actively running pods.", - "type": "integer", - "format": "int32" - }, - "completionTime": { - "description": "CompletionTime represents time when the job was completed. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC.", - "type": "string", - "format": "date-time" - }, - "conditions": { - "description": "Conditions represent the latest available observations of an object's current state. More info: http://kubernetes.io/docs/user-guide/jobs", - "type": "array", - "items": { - "$ref": "#/definitions/v1.JobCondition" - } - }, - "failed": { - "description": "Failed is the number of pods which reached Phase Failed.", - "type": "integer", - "format": "int32" - }, - "startTime": { - "description": "StartTime represents time when the job was acknowledged by the Job Manager. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC.", - "type": "string", - "format": "date-time" - }, - "succeeded": { - "description": "Succeeded is the number of pods which reached Phase Succeeded.", - "type": "integer", - "format": "int32" - } - } - }, - "v1.EventSource": { - "description": "EventSource contains information for an event.", - "properties": { - "component": { - "description": "Component from which the event is generated.", - "type": "string" - }, - "host": { - "description": "Node name on which the event is generated.", - "type": "string" - } - } - }, - "v1beta1.ReplicaSetCondition": { - "description": "ReplicaSetCondition describes the state of a replica set at a certain point.", - "required": [ - "type", - "status" - ], - "properties": { - "lastTransitionTime": { - "description": "The last time the condition transitioned from one status to another.", - "type": "string", - "format": "date-time" - }, - "message": { - "description": "A human readable message indicating details about the transition.", - "type": "string" - }, - "reason": { - "description": "The reason for the condition's last transition.", - "type": "string" - }, - "status": { - "description": "Status of the condition, one of True, False, Unknown.", - "type": "string" - }, - "type": { - "description": "Type of replica set condition.", - "type": "string" - } - } - }, - "v1.GCEPersistentDiskVolumeSource": { - "description": "Represents a Persistent Disk resource in Google Compute Engine.\n\nA GCE PD must exist before mounting to a container. The disk must also be in the same GCE project and zone as the kubelet. A GCE PD can only be mounted as read/write once or read-only many times. GCE PDs support ownership management and SELinux relabeling.", - "required": [ - "pdName" - ], - "properties": { - "fsType": { - "description": "Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: http://kubernetes.io/docs/user-guide/volumes#gcepersistentdisk", - "type": "string" - }, - "partition": { - "description": "The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as \"1\". Similarly, the volume partition for /dev/sda is \"0\" (or you can leave the property empty). More info: http://kubernetes.io/docs/user-guide/volumes#gcepersistentdisk", - "type": "integer", - "format": "int32" - }, - "pdName": { - "description": "Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: http://kubernetes.io/docs/user-guide/volumes#gcepersistentdisk", - "type": "string" - }, - "readOnly": { - "description": "ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: http://kubernetes.io/docs/user-guide/volumes#gcepersistentdisk", - "type": "boolean" - } - } - }, - "v1.ServiceAccount": { - "description": "ServiceAccount binds together: * a name, understood by users, and perhaps by peripheral systems, for an identity * a principal that can be authenticated and authorized * a set of secrets", - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", - "type": "string" - }, - "automountServiceAccountToken": { - "description": "AutomountServiceAccountToken indicates whether pods running as this service account should have an API token automatically mounted. Can be overridden at the pod level.", - "type": "boolean" - }, - "imagePullSecrets": { - "description": "ImagePullSecrets is a list of references to secrets in the same namespace to use for pulling any images in pods that reference this ServiceAccount. ImagePullSecrets are distinct from Secrets because Secrets can be mounted in the pod, but ImagePullSecrets are only accessed by the kubelet. More info: http://kubernetes.io/docs/user-guide/secrets#manually-specifying-an-imagepullsecret", - "type": "array", - "items": { - "$ref": "#/definitions/v1.LocalObjectReference" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", - "$ref": "#/definitions/v1.ObjectMeta" - }, - "secrets": { - "description": "Secrets is the list of secrets allowed to be used by pods running using this ServiceAccount. More info: http://kubernetes.io/docs/user-guide/secrets", - "type": "array", - "items": { - "$ref": "#/definitions/v1.ObjectReference" - } - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "", - "Version": "v1", - "Kind": "ServiceAccount" - } - ] - }, - "v1.PersistentVolumeSpec": { - "description": "PersistentVolumeSpec is the specification of a persistent volume.", - "properties": { - "accessModes": { - "description": "AccessModes contains all ways the volume can be mounted. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#access-modes", - "type": "array", - "items": { - "type": "string" - } - }, - "awsElasticBlockStore": { - "description": "AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: http://kubernetes.io/docs/user-guide/volumes#awselasticblockstore", - "$ref": "#/definitions/v1.AWSElasticBlockStoreVolumeSource" - }, - "azureDisk": { - "description": "AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.", - "$ref": "#/definitions/v1.AzureDiskVolumeSource" - }, - "azureFile": { - "description": "AzureFile represents an Azure File Service mount on the host and bind mount to the pod.", - "$ref": "#/definitions/v1.AzureFileVolumeSource" - }, - "capacity": { - "description": "A description of the persistent volume's resources and capacity. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#capacity", - "type": "object", - "additionalProperties": { - "type": "string" - } - }, - "cephfs": { - "description": "CephFS represents a Ceph FS mount on the host that shares a pod's lifetime", - "$ref": "#/definitions/v1.CephFSVolumeSource" - }, - "cinder": { - "description": "Cinder represents a cinder volume attached and mounted on kubelets host machine More info: http://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md", - "$ref": "#/definitions/v1.CinderVolumeSource" - }, - "claimRef": { - "description": "ClaimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim. Expected to be non-nil when bound. claim.VolumeName is the authoritative bind between PV and PVC. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#binding", - "$ref": "#/definitions/v1.ObjectReference" - }, - "fc": { - "description": "FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod.", - "$ref": "#/definitions/v1.FCVolumeSource" - }, - "flexVolume": { - "description": "FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. This is an alpha feature and may change in future.", - "$ref": "#/definitions/v1.FlexVolumeSource" - }, - "flocker": { - "description": "Flocker represents a Flocker volume attached to a kubelet's host machine and exposed to the pod for its usage. This depends on the Flocker control service being running", - "$ref": "#/definitions/v1.FlockerVolumeSource" - }, - "gcePersistentDisk": { - "description": "GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin. More info: http://kubernetes.io/docs/user-guide/volumes#gcepersistentdisk", - "$ref": "#/definitions/v1.GCEPersistentDiskVolumeSource" - }, - "glusterfs": { - "description": "Glusterfs represents a Glusterfs volume that is attached to a host and exposed to the pod. Provisioned by an admin. More info: http://releases.k8s.io/HEAD/examples/volumes/glusterfs/README.md", - "$ref": "#/definitions/v1.GlusterfsVolumeSource" - }, - "hostPath": { - "description": "HostPath represents a directory on the host. Provisioned by a developer or tester. This is useful for single-node development and testing only! On-host storage is not supported in any way and WILL NOT WORK in a multi-node cluster. More info: http://kubernetes.io/docs/user-guide/volumes#hostpath", - "$ref": "#/definitions/v1.HostPathVolumeSource" - }, - "iscsi": { - "description": "ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin.", - "$ref": "#/definitions/v1.ISCSIVolumeSource" - }, - "nfs": { - "description": "NFS represents an NFS mount on the host. Provisioned by an admin. More info: http://kubernetes.io/docs/user-guide/volumes#nfs", - "$ref": "#/definitions/v1.NFSVolumeSource" - }, - "persistentVolumeReclaimPolicy": { - "description": "What happens to a persistent volume when released from its claim. Valid options are Retain (default) and Recycle. Recycling must be supported by the volume plugin underlying this persistent volume. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#recycling-policy", - "type": "string" - }, - "photonPersistentDisk": { - "description": "PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine", - "$ref": "#/definitions/v1.PhotonPersistentDiskVolumeSource" - }, - "portworxVolume": { - "description": "PortworxVolume represents a portworx volume attached and mounted on kubelets host machine", - "$ref": "#/definitions/v1.PortworxVolumeSource" - }, - "quobyte": { - "description": "Quobyte represents a Quobyte mount on the host that shares a pod's lifetime", - "$ref": "#/definitions/v1.QuobyteVolumeSource" - }, - "rbd": { - "description": "RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: http://releases.k8s.io/HEAD/examples/volumes/rbd/README.md", - "$ref": "#/definitions/v1.RBDVolumeSource" - }, - "scaleIO": { - "description": "ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes.", - "$ref": "#/definitions/v1.ScaleIOVolumeSource" - }, - "storageClassName": { - "description": "Name of StorageClass to which this persistent volume belongs. Empty value means that this volume does not belong to any StorageClass.", - "type": "string" - }, - "vsphereVolume": { - "description": "VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine", - "$ref": "#/definitions/v1.VsphereVirtualDiskVolumeSource" - } - } - }, - "v1beta1.CertificateSigningRequestStatus": { - "properties": { - "certificate": { - "description": "If request was approved, the controller will place the issued certificate here.", - "type": "string", - "format": "byte" - }, - "conditions": { - "description": "Conditions applied to the request, such as approval or denial.", - "type": "array", - "items": { - "$ref": "#/definitions/v1beta1.CertificateSigningRequestCondition" - } - } - } - }, - "v1.Service": { - "description": "Service is a named abstraction of software service (for example, mysql) consisting of local port (for example 3306) that the proxy listens on, and the selector that determines which pods will answer requests sent through the proxy.", - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", - "type": "string" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", - "$ref": "#/definitions/v1.ObjectMeta" - }, - "spec": { - "description": "Spec defines the behavior of a service. http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status", - "$ref": "#/definitions/v1.ServiceSpec" - }, - "status": { - "description": "Most recently observed status of the service. Populated by the system. Read-only. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status", - "$ref": "#/definitions/v1.ServiceStatus" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "", - "Version": "v1", - "Kind": "Service" - } - ] - }, - "v1beta1.IngressRule": { - "description": "IngressRule represents the rules mapping the paths under a specified host to the related backend services. Incoming requests are first evaluated for a host match, then routed to the backend associated with the matching IngressRuleValue.", - "properties": { - "host": { - "description": "Host is the fully qualified domain name of a network host, as defined by RFC 3986. Note the following deviations from the \"host\" part of the URI as defined in the RFC: 1. IPs are not allowed. Currently an IngressRuleValue can only apply to the\n\t IP in the Spec of the parent Ingress.\n2. The `:` delimiter is not respected because ports are not allowed.\n\t Currently the port of an Ingress is implicitly :80 for http and\n\t :443 for https.\nBoth these may change in the future. Incoming requests are matched against the host before the IngressRuleValue. If the host is unspecified, the Ingress routes all traffic based on the specified IngressRuleValue.", - "type": "string" - }, - "http": { - "$ref": "#/definitions/v1beta1.HTTPIngressRuleValue" - } - } - }, - "apps.v1beta1.DeploymentSpec": { - "description": "DeploymentSpec is the specification of the desired behavior of the Deployment.", - "required": [ - "template" - ], - "properties": { - "minReadySeconds": { - "description": "Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready)", - "type": "integer", - "format": "int32" - }, - "paused": { - "description": "Indicates that the deployment is paused.", - "type": "boolean" - }, - "progressDeadlineSeconds": { - "description": "The maximum time in seconds for a deployment to make progress before it is considered to be failed. The deployment controller will continue to process failed deployments and a condition with a ProgressDeadlineExceeded reason will be surfaced in the deployment status. Once autoRollback is implemented, the deployment controller will automatically rollback failed deployments. Note that progress will not be estimated during the time a deployment is paused. Defaults to 600s.", - "type": "integer", - "format": "int32" - }, - "replicas": { - "description": "Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1.", - "type": "integer", - "format": "int32" - }, - "revisionHistoryLimit": { - "description": "The number of old ReplicaSets to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 2.", - "type": "integer", - "format": "int32" - }, - "rollbackTo": { - "description": "The config this deployment is rolling back to. Will be cleared after rollback is done.", - "$ref": "#/definitions/apps.v1beta1.RollbackConfig" - }, - "selector": { - "description": "Label selector for pods. Existing ReplicaSets whose pods are selected by this will be the ones affected by this deployment.", - "$ref": "#/definitions/v1.LabelSelector" - }, - "strategy": { - "description": "The deployment strategy to use to replace existing pods with new ones.", - "$ref": "#/definitions/apps.v1beta1.DeploymentStrategy" - }, - "template": { - "description": "Template describes the pods that will be created.", - "$ref": "#/definitions/v1.PodTemplateSpec" - } - } - }, - "v1.SubjectAccessReviewStatus": { - "description": "SubjectAccessReviewStatus", - "required": [ - "allowed" - ], - "properties": { - "allowed": { - "description": "Allowed is required. True if the action would be allowed, false otherwise.", - "type": "boolean" - }, - "evaluationError": { - "description": "EvaluationError is an indication that some error occurred during the authorization check. It is entirely possible to get an error and be able to continue determine authorization status in spite of it. For instance, RBAC can be missing a role, but enough roles are still present and bound to reason about the request.", - "type": "string" - }, - "reason": { - "description": "Reason is optional. It indicates why a request was allowed or denied.", - "type": "string" - } - } - }, - "v2alpha1.CrossVersionObjectReference": { - "description": "CrossVersionObjectReference contains enough information to let you identify the referred resource.", - "required": [ - "kind", - "name" - ], - "properties": { - "apiVersion": { - "description": "API version of the referent", - "type": "string" - }, - "kind": { - "description": "Kind of the referent; More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds\"", - "type": "string" - }, - "name": { - "description": "Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names", - "type": "string" - } - } - }, - "v1.PortworxVolumeSource": { - "description": "PortworxVolumeSource represents a Portworx volume resource.", - "required": [ - "volumeID" - ], - "properties": { - "fsType": { - "description": "FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\". Implicitly inferred to be \"ext4\" if unspecified.", - "type": "string" - }, - "readOnly": { - "description": "Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", - "type": "boolean" - }, - "volumeID": { - "description": "VolumeID uniquely identifies a Portworx volume", - "type": "string" - } - } - }, - "v1.NodeCondition": { - "description": "NodeCondition contains condition information for a node.", - "required": [ - "type", - "status" - ], - "properties": { - "lastHeartbeatTime": { - "description": "Last time we got an update on a given condition.", - "type": "string", - "format": "date-time" - }, - "lastTransitionTime": { - "description": "Last time the condition transit from one status to another.", - "type": "string", - "format": "date-time" - }, - "message": { - "description": "Human readable message indicating details about last transition.", - "type": "string" - }, - "reason": { - "description": "(brief) reason for the condition's last transition.", - "type": "string" - }, - "status": { - "description": "Status of the condition, one of True, False, Unknown.", - "type": "string" - }, - "type": { - "description": "Type of node condition.", - "type": "string" - } - } - }, - "v1.EndpointSubset": { - "description": "EndpointSubset is a group of addresses with a common set of ports. The expanded set of endpoints is the Cartesian product of Addresses x Ports. For example, given:\n {\n Addresses: [{\"ip\": \"10.10.1.1\"}, {\"ip\": \"10.10.2.2\"}],\n Ports: [{\"name\": \"a\", \"port\": 8675}, {\"name\": \"b\", \"port\": 309}]\n }\nThe resulting set of endpoints can be viewed as:\n a: [ 10.10.1.1:8675, 10.10.2.2:8675 ],\n b: [ 10.10.1.1:309, 10.10.2.2:309 ]", - "properties": { - "addresses": { - "description": "IP addresses which offer the related ports that are marked as ready. These endpoints should be considered safe for load balancers and clients to utilize.", - "type": "array", - "items": { - "$ref": "#/definitions/v1.EndpointAddress" - } - }, - "notReadyAddresses": { - "description": "IP addresses which offer the related ports but are not currently marked as ready because they have not yet finished starting, have recently failed a readiness check, or have recently failed a liveness check.", - "type": "array", - "items": { - "$ref": "#/definitions/v1.EndpointAddress" - } - }, - "ports": { - "description": "Port numbers available on the related IP addresses.", - "type": "array", - "items": { - "$ref": "#/definitions/v1.EndpointPort" - } - } - } - }, - "v1.SubjectAccessReviewSpec": { - "description": "SubjectAccessReviewSpec is a description of the access request. Exactly one of ResourceAuthorizationAttributes and NonResourceAuthorizationAttributes must be set", - "properties": { - "extra": { - "description": "Extra corresponds to the user.Info.GetExtra() method from the authenticator. Since that is input to the authorizer it needs a reflection here.", - "type": "object", - "additionalProperties": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "groups": { - "description": "Groups is the groups you're testing for.", - "type": "array", - "items": { - "type": "string" - } - }, - "nonResourceAttributes": { - "description": "NonResourceAttributes describes information for a non-resource access request", - "$ref": "#/definitions/v1.NonResourceAttributes" - }, - "resourceAttributes": { - "description": "ResourceAuthorizationAttributes describes information for a resource access request", - "$ref": "#/definitions/v1.ResourceAttributes" - }, - "user": { - "description": "User is the user you're testing for. If you specify \"User\" but not \"Groups\", then is it interpreted as \"What if User were not a member of any groups", - "type": "string" - } - } - }, - "apps.v1beta1.ScaleSpec": { - "description": "ScaleSpec describes the attributes of a scale subresource", - "properties": { - "replicas": { - "description": "desired number of instances for the scaled object.", - "type": "integer", - "format": "int32" - } - } - }, - "v1alpha1.RoleRef": { - "description": "RoleRef contains information that points to the role being used", - "required": [ - "apiGroup", - "kind", - "name" - ], - "properties": { - "apiGroup": { - "description": "APIGroup is the group for the resource being referenced", - "type": "string" - }, - "kind": { - "description": "Kind is the type of resource being referenced", - "type": "string" - }, - "name": { - "description": "Name is the name of resource being referenced", - "type": "string" - } - } - }, - "v1beta1.IngressSpec": { - "description": "IngressSpec describes the Ingress the user wishes to exist.", - "properties": { - "backend": { - "description": "A default backend capable of servicing requests that don't match any rule. At least one of 'backend' or 'rules' must be specified. This field is optional to allow the loadbalancer controller or defaulting logic to specify a global default.", - "$ref": "#/definitions/v1beta1.IngressBackend" - }, - "rules": { - "description": "A list of host rules used to configure the Ingress. If unspecified, or no rule matches, all traffic is sent to the default backend.", - "type": "array", - "items": { - "$ref": "#/definitions/v1beta1.IngressRule" - } - }, - "tls": { - "description": "TLS configuration. Currently the Ingress only supports a single TLS port, 443. If multiple members of this list specify different hosts, they will be multiplexed on the same port according to the hostname specified through the SNI TLS extension, if the ingress controller fulfilling the ingress supports SNI.", - "type": "array", - "items": { - "$ref": "#/definitions/v1beta1.IngressTLS" - } - } - } - }, - "v1beta1.SubjectAccessReviewSpec": { - "description": "SubjectAccessReviewSpec is a description of the access request. Exactly one of ResourceAuthorizationAttributes and NonResourceAuthorizationAttributes must be set", - "properties": { - "extra": { - "description": "Extra corresponds to the user.Info.GetExtra() method from the authenticator. Since that is input to the authorizer it needs a reflection here.", - "type": "object", - "additionalProperties": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "group": { - "description": "Groups is the groups you're testing for.", - "type": "array", - "items": { - "type": "string" - } - }, - "nonResourceAttributes": { - "description": "NonResourceAttributes describes information for a non-resource access request", - "$ref": "#/definitions/v1beta1.NonResourceAttributes" - }, - "resourceAttributes": { - "description": "ResourceAuthorizationAttributes describes information for a resource access request", - "$ref": "#/definitions/v1beta1.ResourceAttributes" - }, - "user": { - "description": "User is the user you're testing for. If you specify \"User\" but not \"Group\", then is it interpreted as \"What if User were not a member of any groups", - "type": "string" - } - } - }, - "v1beta1.NetworkPolicyIngressRule": { - "description": "This NetworkPolicyIngressRule matches traffic if and only if the traffic matches both ports AND from.", - "properties": { - "from": { - "description": "List of sources which should be able to access the pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is not provided, this rule matches all sources (traffic not restricted by source). If this field is empty, this rule matches no sources (no traffic matches). If this field is present and contains at least on item, this rule allows traffic only if the traffic matches at least one item in the from list.", - "type": "array", - "items": { - "$ref": "#/definitions/v1beta1.NetworkPolicyPeer" - } - }, - "ports": { - "description": "List of ports which should be made accessible on the pods selected for this rule. Each item in this list is combined using a logical OR. If this field is not provided, this rule matches all ports (traffic not restricted by port). If this field is empty, this rule matches no ports (no traffic matches). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list.", - "type": "array", - "items": { - "$ref": "#/definitions/v1beta1.NetworkPolicyPort" - } - } - } - }, - "v1.PersistentVolumeClaim": { - "description": "PersistentVolumeClaim is a user's request for and claim to a persistent volume", - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", - "type": "string" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", - "$ref": "#/definitions/v1.ObjectMeta" - }, - "spec": { - "description": "Spec defines the desired characteristics of a volume requested by a pod author. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#persistentvolumeclaims", - "$ref": "#/definitions/v1.PersistentVolumeClaimSpec" - }, - "status": { - "description": "Status represents the current information/status of a persistent volume claim. Read-only. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#persistentvolumeclaims", - "$ref": "#/definitions/v1.PersistentVolumeClaimStatus" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "", - "Version": "v1", - "Kind": "PersistentVolumeClaim" - } - ] - }, - "v1.SecretList": { - "description": "SecretList is a list of Secret.", - "required": [ - "items" - ], - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "Items is a list of secret objects. More info: http://kubernetes.io/docs/user-guide/secrets", - "type": "array", - "items": { - "$ref": "#/definitions/v1.Secret" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "$ref": "#/definitions/v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "", - "Version": "v1", - "Kind": "SecretList" - } - ] - }, - "v1.SecretEnvSource": { - "description": "SecretEnvSource selects a Secret to populate the environment variables with.\n\nThe contents of the target Secret's Data field will represent the key-value pairs as environment variables.", - "properties": { - "name": { - "description": "Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret must be defined", - "type": "boolean" - } - } - }, - "v1.Capabilities": { - "description": "Adds and removes POSIX capabilities from running containers.", - "properties": { - "add": { - "description": "Added capabilities", - "type": "array", - "items": { - "type": "string" - } - }, - "drop": { - "description": "Removed capabilities", - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "v1.ResourceQuotaStatus": { - "description": "ResourceQuotaStatus defines the enforced hard limits and observed use.", - "properties": { - "hard": { - "description": "Hard is the set of enforced hard limits for each named resource. More info: http://releases.k8s.io/HEAD/docs/design/admission_control_resource_quota.md#admissioncontrol-plugin-resourcequota", - "type": "object", - "additionalProperties": { - "type": "string" - } - }, - "used": { - "description": "Used is the current observed total usage of the resource in the namespace.", - "type": "object", - "additionalProperties": { - "type": "string" - } - } - } - }, - "v1.OwnerReference": { - "description": "OwnerReference contains enough information to let you identify an owning object. Currently, an owning object must be in the same namespace, so there is no namespace field.", - "required": [ - "apiVersion", - "kind", - "name", - "uid" - ], - "properties": { - "apiVersion": { - "description": "API version of the referent.", - "type": "string" - }, - "blockOwnerDeletion": { - "description": "If true, AND if the owner has the \"foregroundDeletion\" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs \"delete\" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned.", - "type": "boolean" - }, - "controller": { - "description": "If true, this reference points to the managing controller.", - "type": "boolean" - }, - "kind": { - "description": "Kind of the referent. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "name": { - "description": "Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names", - "type": "string" - }, - "uid": { - "description": "UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids", - "type": "string" - } - } - }, - "v1alpha1.PodPreset": { - "description": "PodPreset is a policy resource that defines additional runtime requirements for a Pod.", - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", - "type": "string" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "$ref": "#/definitions/v1.ObjectMeta" - }, - "spec": { - "$ref": "#/definitions/v1alpha1.PodPresetSpec" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "settings.k8s.io", - "Version": "v1alpha1", - "Kind": "PodPreset" - } - ] - }, - "v1beta1.ReplicaSetSpec": { - "description": "ReplicaSetSpec is the specification of a ReplicaSet.", - "properties": { - "minReadySeconds": { - "description": "Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready)", - "type": "integer", - "format": "int32" - }, - "replicas": { - "description": "Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: http://kubernetes.io/docs/user-guide/replication-controller#what-is-a-replication-controller", - "type": "integer", - "format": "int32" - }, - "selector": { - "description": "Selector is a label query over pods that should match the replica count. If the selector is empty, it is defaulted to the labels present on the pod template. Label keys and values that must match in order to be controlled by this replica set. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors", - "$ref": "#/definitions/v1.LabelSelector" - }, - "template": { - "description": "Template is the object that describes the pod that will be created if insufficient replicas are detected. More info: http://kubernetes.io/docs/user-guide/replication-controller#pod-template", - "$ref": "#/definitions/v1.PodTemplateSpec" - } - } - }, - "v1.PhotonPersistentDiskVolumeSource": { - "description": "Represents a Photon Controller persistent disk resource.", - "required": [ - "pdID" - ], - "properties": { - "fsType": { - "description": "Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.", - "type": "string" - }, - "pdID": { - "description": "ID that identifies Photon Controller persistent disk", - "type": "string" - } - } - }, - "v1.SecretVolumeSource": { - "description": "Adapts a Secret into a volume.\n\nThe contents of the target Secret's Data field will be presented in a volume as files using the keys in the Data field as the file names. Secret volumes support ownership management and SELinux relabeling.", - "properties": { - "defaultMode": { - "description": "Optional: mode bits to use on created files by default. Must be a value between 0 and 0777. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.", - "type": "integer", - "format": "int32" - }, - "items": { - "description": "If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'.", - "type": "array", - "items": { - "$ref": "#/definitions/v1.KeyToPath" - } - }, - "optional": { - "description": "Specify whether the Secret or it's keys must be defined", - "type": "boolean" - }, - "secretName": { - "description": "Name of the secret in the pod's namespace to use. More info: http://kubernetes.io/docs/user-guide/volumes#secrets", - "type": "string" - } - } - }, - "v1.PersistentVolumeClaimSpec": { - "description": "PersistentVolumeClaimSpec describes the common attributes of storage devices and allows a Source for provider-specific attributes", - "properties": { - "accessModes": { - "description": "AccessModes contains the desired access modes the volume should have. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#access-modes-1", - "type": "array", - "items": { - "type": "string" - } - }, - "resources": { - "description": "Resources represents the minimum resources the volume should have. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#resources", - "$ref": "#/definitions/v1.ResourceRequirements" - }, - "selector": { - "description": "A label query over volumes to consider for binding.", - "$ref": "#/definitions/v1.LabelSelector" - }, - "storageClassName": { - "description": "Name of the StorageClass required by the claim. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#class-1", - "type": "string" - }, - "volumeName": { - "description": "VolumeName is the binding reference to the PersistentVolume backing this claim.", - "type": "string" - } - } - }, - "v1.PersistentVolumeClaimList": { - "description": "PersistentVolumeClaimList is a list of PersistentVolumeClaim items.", - "required": [ - "items" - ], - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "A list of persistent volume claims. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#persistentvolumeclaims", - "type": "array", - "items": { - "$ref": "#/definitions/v1.PersistentVolumeClaim" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "$ref": "#/definitions/v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "", - "Version": "v1", - "Kind": "PersistentVolumeClaimList" - } - ] - }, - "v1.ObjectReference": { - "description": "ObjectReference contains enough information to let you inspect or modify the referred object.", - "properties": { - "apiVersion": { - "description": "API version of the referent.", - "type": "string" - }, - "fieldPath": { - "description": "If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: \"spec.containers{name}\" (where \"name\" refers to the name of the container that triggered the event) or if no container name is specified \"spec.containers[2]\" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object.", - "type": "string" - }, - "kind": { - "description": "Kind of the referent. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "name": { - "description": "Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names", - "type": "string" - }, - "namespace": { - "description": "Namespace of the referent. More info: http://kubernetes.io/docs/user-guide/namespaces", - "type": "string" - }, - "resourceVersion": { - "description": "Specific resourceVersion to which this reference is made, if any. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#concurrency-control-and-consistency", - "type": "string" - }, - "uid": { - "description": "UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids", - "type": "string" - } - } - }, - "v1.PodCondition": { - "description": "PodCondition contains details for the current condition of this pod.", - "required": [ - "type", - "status" - ], - "properties": { - "lastProbeTime": { - "description": "Last time we probed the condition.", - "type": "string", - "format": "date-time" - }, - "lastTransitionTime": { - "description": "Last time the condition transitioned from one status to another.", - "type": "string", - "format": "date-time" - }, - "message": { - "description": "Human-readable message indicating details about last transition.", - "type": "string" - }, - "reason": { - "description": "Unique, one-word, CamelCase reason for the condition's last transition.", - "type": "string" - }, - "status": { - "description": "Status is the status of the condition. Can be True, False, Unknown. More info: http://kubernetes.io/docs/user-guide/pod-states#pod-conditions", - "type": "string" - }, - "type": { - "description": "Type is the type of the condition. Currently only Ready. More info: http://kubernetes.io/docs/user-guide/pod-states#pod-conditions", - "type": "string" - } - } - }, - "v1beta1.RoleRef": { - "description": "RoleRef contains information that points to the role being used", - "required": [ - "apiGroup", - "kind", - "name" - ], - "properties": { - "apiGroup": { - "description": "APIGroup is the group for the resource being referenced", - "type": "string" - }, - "kind": { - "description": "Kind is the type of resource being referenced", - "type": "string" - }, - "name": { - "description": "Name is the name of resource being referenced", - "type": "string" - } - } - }, - "v2alpha1.MetricStatus": { - "description": "MetricStatus describes the last-read state of a single metric.", - "required": [ - "type" - ], - "properties": { - "object": { - "description": "object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object).", - "$ref": "#/definitions/v2alpha1.ObjectMetricStatus" - }, - "pods": { - "description": "pods refers to a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value.", - "$ref": "#/definitions/v2alpha1.PodsMetricStatus" - }, - "resource": { - "description": "resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source.", - "$ref": "#/definitions/v2alpha1.ResourceMetricStatus" - }, - "type": { - "description": "type is the type of metric source. It will match one of the fields below.", - "type": "string" - } - } - }, - "v1beta1.IngressStatus": { - "description": "IngressStatus describe the current state of the Ingress.", - "properties": { - "loadBalancer": { - "description": "LoadBalancer contains the current status of the load-balancer.", - "$ref": "#/definitions/v1.LoadBalancerStatus" - } - } - }, - "v1.ConfigMapEnvSource": { - "description": "ConfigMapEnvSource selects a ConfigMap to populate the environment variables with.\n\nThe contents of the target ConfigMap's Data field will represent the key-value pairs as environment variables.", - "properties": { - "name": { - "description": "Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap must be defined", - "type": "boolean" - } - } - }, - "v1beta1.CertificateSigningRequestCondition": { - "required": [ - "type" - ], - "properties": { - "lastUpdateTime": { - "description": "timestamp for the last update to this condition", - "type": "string", - "format": "date-time" - }, - "message": { - "description": "human readable message with details about the request state", - "type": "string" - }, - "reason": { - "description": "brief reason for the request state", - "type": "string" - }, - "type": { - "description": "request approval state, currently Approved or Denied.", - "type": "string" - } - } - }, - "v1.ContainerState": { - "description": "ContainerState holds a possible state of container. Only one of its members may be specified. If none of them is specified, the default one is ContainerStateWaiting.", - "properties": { - "running": { - "description": "Details about a running container", - "$ref": "#/definitions/v1.ContainerStateRunning" - }, - "terminated": { - "description": "Details about a terminated container", - "$ref": "#/definitions/v1.ContainerStateTerminated" - }, - "waiting": { - "description": "Details about a waiting container", - "$ref": "#/definitions/v1.ContainerStateWaiting" - } - } - }, - "v1beta1.TokenReview": { - "description": "TokenReview attempts to authenticate a token to a known user. Note: TokenReview requests may be cached by the webhook token authenticator plugin in the kube-apiserver.", - "required": [ - "spec" - ], - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", - "type": "string" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "$ref": "#/definitions/v1.ObjectMeta" - }, - "spec": { - "description": "Spec holds information about the request being evaluated", - "$ref": "#/definitions/v1beta1.TokenReviewSpec" - }, - "status": { - "description": "Status is filled in by the server and indicates whether the request can be authenticated.", - "$ref": "#/definitions/v1beta1.TokenReviewStatus" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "authentication.k8s.io", - "Version": "v1beta1", - "Kind": "TokenReview" - } - ] - }, - "v1.GroupVersionForDiscovery": { - "description": "GroupVersion contains the \"group/version\" and \"version\" string of a version. It is made a struct to keep extensibility.", - "required": [ - "groupVersion", - "version" - ], - "properties": { - "groupVersion": { - "description": "groupVersion specifies the API group and version in the form \"group/version\"", - "type": "string" - }, - "version": { - "description": "version specifies the version in the form of \"version\". This is to save the clients the trouble of splitting the GroupVersion.", - "type": "string" - } - } - }, - "v1.ResourceQuotaSpec": { - "description": "ResourceQuotaSpec defines the desired hard limits to enforce for Quota.", - "properties": { - "hard": { - "description": "Hard is the set of desired hard limits for each named resource. More info: http://releases.k8s.io/HEAD/docs/design/admission_control_resource_quota.md#admissioncontrol-plugin-resourcequota", - "type": "object", - "additionalProperties": { - "type": "string" - } - }, - "scopes": { - "description": "A collection of filters that must match each object tracked by a quota. If not specified, the quota matches all objects.", - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "v1beta1.PodSecurityPolicyList": { - "description": "Pod Security Policy List is a list of PodSecurityPolicy objects.", - "required": [ - "items" - ], - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "Items is a list of schema objects.", - "type": "array", - "items": { - "$ref": "#/definitions/v1beta1.PodSecurityPolicy" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", - "$ref": "#/definitions/v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "extensions", - "Version": "v1beta1", - "Kind": "PodSecurityPolicyList" - } - ] - }, - "v1beta1.ClusterRoleBinding": { - "description": "ClusterRoleBinding references a ClusterRole, but not contain it. It can reference a ClusterRole in the global namespace, and adds who information via Subject.", - "required": [ - "subjects", - "roleRef" - ], - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", - "type": "string" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object's metadata.", - "$ref": "#/definitions/v1.ObjectMeta" - }, - "roleRef": { - "description": "RoleRef can only reference a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error.", - "$ref": "#/definitions/v1beta1.RoleRef" - }, - "subjects": { - "description": "Subjects holds references to the objects the role applies to.", - "type": "array", - "items": { - "$ref": "#/definitions/v1beta1.Subject" - } - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "rbac.authorization.k8s.io", - "Version": "v1beta1", - "Kind": "ClusterRoleBinding" - } - ] - }, - "v1alpha1.RoleBindingList": { - "description": "RoleBindingList is a collection of RoleBindings", - "required": [ - "items" - ], - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "Items is a list of RoleBindings", - "type": "array", - "items": { - "$ref": "#/definitions/v1alpha1.RoleBinding" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object's metadata.", - "$ref": "#/definitions/v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "rbac.authorization.k8s.io", - "Version": "v1alpha1", - "Kind": "RoleBindingList" - } - ] - }, - "v1.EmptyDirVolumeSource": { - "description": "Represents an empty directory for a pod. Empty directory volumes support ownership management and SELinux relabeling.", - "properties": { - "medium": { - "description": "What type of storage medium should back this directory. The default is \"\" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir", - "type": "string" - } - } - }, - "v1.LocalSubjectAccessReview": { - "description": "LocalSubjectAccessReview checks whether or not a user or group can perform an action in a given namespace. Having a namespace scoped resource makes it much easier to grant namespace scoped policy that includes permissions checking.", - "required": [ - "spec" - ], - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", - "type": "string" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "$ref": "#/definitions/v1.ObjectMeta" - }, - "spec": { - "description": "Spec holds information about the request being evaluated. spec.namespace must be equal to the namespace you made the request against. If empty, it is defaulted.", - "$ref": "#/definitions/v1.SubjectAccessReviewSpec" - }, - "status": { - "description": "Status is filled in by the server and indicates whether the request is allowed or not", - "$ref": "#/definitions/v1.SubjectAccessReviewStatus" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "authorization.k8s.io", - "Version": "v1", - "Kind": "LocalSubjectAccessReview" - } - ] - }, - "v1alpha1.PodPresetList": { - "description": "PodPresetList is a list of PodPreset objects.", - "required": [ - "items" - ], - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "Items is a list of schema objects.", - "type": "array", - "items": { - "$ref": "#/definitions/v1alpha1.PodPreset" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", - "$ref": "#/definitions/v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "settings.k8s.io", - "Version": "v1alpha1", - "Kind": "PodPresetList" - } - ] - }, - "v1alpha1.ClusterRoleList": { - "description": "ClusterRoleList is a collection of ClusterRoles", - "required": [ - "items" - ], - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "Items is a list of ClusterRoles", - "type": "array", - "items": { - "$ref": "#/definitions/v1alpha1.ClusterRole" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object's metadata.", - "$ref": "#/definitions/v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "rbac.authorization.k8s.io", - "Version": "v1alpha1", - "Kind": "ClusterRoleList" - } - ] - }, - "v1beta1.StatefulSetStatus": { - "description": "StatefulSetStatus represents the current state of a StatefulSet.", - "required": [ - "replicas" - ], - "properties": { - "observedGeneration": { - "description": "most recent generation observed by this StatefulSet.", - "type": "integer", - "format": "int64" - }, - "replicas": { - "description": "Replicas is the number of actual replicas.", - "type": "integer", - "format": "int32" - } - } - }, - "v1beta1.RoleBindingList": { - "description": "RoleBindingList is a collection of RoleBindings", - "required": [ - "items" - ], - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "Items is a list of RoleBindings", - "type": "array", - "items": { - "$ref": "#/definitions/v1beta1.RoleBinding" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object's metadata.", - "$ref": "#/definitions/v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "rbac.authorization.k8s.io", - "Version": "v1beta1", - "Kind": "RoleBindingList" - } - ] - }, - "v1.LimitRangeList": { - "description": "LimitRangeList is a list of LimitRange items.", - "required": [ - "items" - ], - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "Items is a list of LimitRange objects. More info: http://releases.k8s.io/HEAD/docs/design/admission_control_limit_range.md", - "type": "array", - "items": { - "$ref": "#/definitions/v1.LimitRange" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "$ref": "#/definitions/v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "", - "Version": "v1", - "Kind": "LimitRangeList" - } - ] - }, - "v1.AzureFileVolumeSource": { - "description": "AzureFile represents an Azure File Service mount on the host and bind mount to the pod.", - "required": [ - "secretName", - "shareName" - ], - "properties": { - "readOnly": { - "description": "Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", - "type": "boolean" - }, - "secretName": { - "description": "the name of secret that contains Azure Storage Account Name and Key", - "type": "string" - }, - "shareName": { - "description": "Share Name", - "type": "string" - } - } - }, - "v1.DownwardAPIVolumeSource": { - "description": "DownwardAPIVolumeSource represents a volume containing downward API info. Downward API volumes support ownership management and SELinux relabeling.", - "properties": { - "defaultMode": { - "description": "Optional: mode bits to use on created files by default. Must be a value between 0 and 0777. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.", - "type": "integer", - "format": "int32" - }, - "items": { - "description": "Items is a list of downward API volume file", - "type": "array", - "items": { - "$ref": "#/definitions/v1.DownwardAPIVolumeFile" - } - } - } - }, - "extensions.v1beta1.ScaleStatus": { - "description": "represents the current status of a scale subresource.", - "required": [ - "replicas" - ], - "properties": { - "replicas": { - "description": "actual number of observed instances of the scaled object.", - "type": "integer", - "format": "int32" - }, - "selector": { - "description": "label query over pods that should match the replicas count. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors", - "type": "object", - "additionalProperties": { - "type": "string" - } - }, - "targetSelector": { - "description": "label selector for pods that should match the replicas count. This is a serializated version of both map-based and more expressive set-based selectors. This is done to avoid introspection in the clients. The string will be in the same format as the query-param syntax. If the target type only supports map-based selectors, both this field and map-based selector field are populated. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors", - "type": "string" - } - } - }, - "v1.ObjectMeta": { - "description": "ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.", - "properties": { - "annotations": { - "description": "Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations", - "type": "object", - "additionalProperties": { - "type": "string" - } - }, - "clusterName": { - "description": "The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request.", - "type": "string" - }, - "creationTimestamp": { - "description": "CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC.\n\nPopulated by the system. Read-only. Null for lists. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", - "type": "string", - "format": "date-time" - }, - "deletionGracePeriodSeconds": { - "description": "Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only.", - "type": "integer", - "format": "int64" - }, - "deletionTimestamp": { - "description": "DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field. Once set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested.\n\nPopulated by the system when a graceful deletion is requested. Read-only. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", - "type": "string", - "format": "date-time" - }, - "finalizers": { - "description": "Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed.", - "type": "array", - "items": { - "type": "string" - } - }, - "generateName": { - "description": "GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\n\nIf this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header).\n\nApplied only if Name is not specified. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#idempotency", - "type": "string" - }, - "generation": { - "description": "A sequence number representing a specific generation of the desired state. Populated by the system. Read-only.", - "type": "integer", - "format": "int64" - }, - "labels": { - "description": "Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels", - "type": "object", - "additionalProperties": { - "type": "string" - } - }, - "name": { - "description": "Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names", - "type": "string" - }, - "namespace": { - "description": "Namespace defines the space within each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\n\nMust be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces", - "type": "string" - }, - "ownerReferences": { - "description": "List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller.", - "type": "array", - "items": { - "$ref": "#/definitions/v1.OwnerReference" - } - }, - "resourceVersion": { - "description": "An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\n\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#concurrency-control-and-consistency", - "type": "string" - }, - "selfLink": { - "description": "SelfLink is a URL representing this object. Populated by the system. Read-only.", - "type": "string" - }, - "uid": { - "description": "UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\n\nPopulated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids", - "type": "string" - } - } - }, - "v1.StorageClassList": { - "description": "StorageClassList is a collection of storage classes.", - "required": [ - "items" - ], - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "Items is the list of StorageClasses", - "type": "array", - "items": { - "$ref": "#/definitions/v1.StorageClass" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard list metadata More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", - "$ref": "#/definitions/v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "storage.k8s.io", - "Version": "v1", - "Kind": "StorageClassList" - } - ] - }, - "v1.Handler": { - "description": "Handler defines a specific action that should be taken", - "properties": { - "exec": { - "description": "One and only one of the following should be specified. Exec specifies the action to take.", - "$ref": "#/definitions/v1.ExecAction" - }, - "httpGet": { - "description": "HTTPGet specifies the http request to perform.", - "$ref": "#/definitions/v1.HTTPGetAction" - }, - "tcpSocket": { - "description": "TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported", - "$ref": "#/definitions/v1.TCPSocketAction" - } - } - }, - "v1.Namespace": { - "description": "Namespace provides a scope for Names. Use of multiple namespaces is optional.", - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", - "type": "string" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", - "$ref": "#/definitions/v1.ObjectMeta" - }, - "spec": { - "description": "Spec defines the behavior of the Namespace. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status", - "$ref": "#/definitions/v1.NamespaceSpec" - }, - "status": { - "description": "Status describes the current status of a Namespace. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status", - "$ref": "#/definitions/v1.NamespaceStatus" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "", - "Version": "v1", - "Kind": "Namespace" - } - ] - }, - "v1.Event": { - "description": "Event is a report of an event somewhere in the cluster.", - "required": [ - "metadata", - "involvedObject" - ], - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", - "type": "string" - }, - "count": { - "description": "The number of times this event has occurred.", - "type": "integer", - "format": "int32" - }, - "firstTimestamp": { - "description": "The time at which the event was first recorded. (Time of server receipt is in TypeMeta.)", - "type": "string", - "format": "date-time" - }, - "involvedObject": { - "description": "The object that this event is about.", - "$ref": "#/definitions/v1.ObjectReference" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "lastTimestamp": { - "description": "The time at which the most recent occurrence of this event was recorded.", - "type": "string", - "format": "date-time" - }, - "message": { - "description": "A human-readable description of the status of this operation.", - "type": "string" - }, - "metadata": { - "description": "Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", - "$ref": "#/definitions/v1.ObjectMeta" - }, - "reason": { - "description": "This should be a short, machine understandable string that gives the reason for the transition into the object's current status.", - "type": "string" - }, - "source": { - "description": "The component reporting this event. Should be a short machine understandable string.", - "$ref": "#/definitions/v1.EventSource" - }, - "type": { - "description": "Type of this event (Normal, Warning), new types could be added in the future", - "type": "string" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "", - "Version": "v1", - "Kind": "Event" - } - ] - }, - "apps.v1beta1.ScaleStatus": { - "description": "ScaleStatus represents the current status of a scale subresource.", - "required": [ - "replicas" - ], - "properties": { - "replicas": { - "description": "actual number of observed instances of the scaled object.", - "type": "integer", - "format": "int32" - }, - "selector": { - "description": "label query over pods that should match the replicas count. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors", - "type": "object", - "additionalProperties": { - "type": "string" - } - }, - "targetSelector": { - "description": "label selector for pods that should match the replicas count. This is a serializated version of both map-based and more expressive set-based selectors. This is done to avoid introspection in the clients. The string will be in the same format as the query-param syntax. If the target type only supports map-based selectors, both this field and map-based selector field are populated. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors", - "type": "string" - } - } - }, - "v1.ResourceFieldSelector": { - "description": "ResourceFieldSelector represents container resources (cpu, memory) and their output format", - "required": [ - "resource" - ], - "properties": { - "containerName": { - "description": "Container name: required for volumes, optional for env vars", - "type": "string" - }, - "divisor": { - "description": "Specifies the output format of the exposed resources, defaults to \"1\"", - "type": "string" - }, - "resource": { - "description": "Required: resource to select", - "type": "string" - } - } - }, - "v1.StorageClass": { - "description": "StorageClass describes the parameters for a class of storage for which PersistentVolumes can be dynamically provisioned.\n\nStorageClasses are non-namespaced; the name of the storage class according to etcd is in ObjectMeta.Name.", - "required": [ - "provisioner" - ], - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", - "type": "string" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", - "$ref": "#/definitions/v1.ObjectMeta" - }, - "parameters": { - "description": "Parameters holds the parameters for the provisioner that should create volumes of this storage class.", - "type": "object", - "additionalProperties": { - "type": "string" - } - }, - "provisioner": { - "description": "Provisioner indicates the type of the provisioner.", - "type": "string" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "storage.k8s.io", - "Version": "v1", - "Kind": "StorageClass" - } - ] - }, - "v1.SelfSubjectAccessReviewSpec": { - "description": "SelfSubjectAccessReviewSpec is a description of the access request. Exactly one of ResourceAuthorizationAttributes and NonResourceAuthorizationAttributes must be set", - "properties": { - "nonResourceAttributes": { - "description": "NonResourceAttributes describes information for a non-resource access request", - "$ref": "#/definitions/v1.NonResourceAttributes" - }, - "resourceAttributes": { - "description": "ResourceAuthorizationAttributes describes information for a resource access request", - "$ref": "#/definitions/v1.ResourceAttributes" - } - } - }, - "v1.AttachedVolume": { - "description": "AttachedVolume describes a volume attached to a node", - "required": [ - "name", - "devicePath" - ], - "properties": { - "devicePath": { - "description": "DevicePath represents the device path where the volume should be available", - "type": "string" - }, - "name": { - "description": "Name of the attached volume", - "type": "string" - } - } - }, - "v1beta1.StatefulSetSpec": { - "description": "A StatefulSetSpec is the specification of a StatefulSet.", - "required": [ - "template", - "serviceName" - ], - "properties": { - "replicas": { - "description": "Replicas is the desired number of replicas of the given Template. These are replicas in the sense that they are instantiations of the same Template, but individual replicas also have a consistent identity. If unspecified, defaults to 1.", - "type": "integer", - "format": "int32" - }, - "selector": { - "description": "Selector is a label query over pods that should match the replica count. If empty, defaulted to labels on the pod template. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors", - "$ref": "#/definitions/v1.LabelSelector" - }, - "serviceName": { - "description": "ServiceName is the name of the service that governs this StatefulSet. This service must exist before the StatefulSet, and is responsible for the network identity of the set. Pods get DNS/hostnames that follow the pattern: pod-specific-string.serviceName.default.svc.cluster.local where \"pod-specific-string\" is managed by the StatefulSet controller.", - "type": "string" - }, - "template": { - "description": "Template is the object that describes the pod that will be created if insufficient replicas are detected. Each pod stamped out by the StatefulSet will fulfill this Template, but have a unique identity from the rest of the StatefulSet.", - "$ref": "#/definitions/v1.PodTemplateSpec" - }, - "volumeClaimTemplates": { - "description": "VolumeClaimTemplates is a list of claims that pods are allowed to reference. The StatefulSet controller is responsible for mapping network identities to claims in a way that maintains the identity of a pod. Every claim in this list must have at least one matching (by name) volumeMount in one container in the template. A claim in this list takes precedence over any volumes in the template, with the same name.", - "type": "array", - "items": { - "$ref": "#/definitions/v1.PersistentVolumeClaim" - } - } - } - }, - "apps.v1beta1.Deployment": { - "description": "Deployment enables declarative updates for Pods and ReplicaSets.", - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", - "type": "string" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object metadata.", - "$ref": "#/definitions/v1.ObjectMeta" - }, - "spec": { - "description": "Specification of the desired behavior of the Deployment.", - "$ref": "#/definitions/apps.v1beta1.DeploymentSpec" - }, - "status": { - "description": "Most recently observed status of the Deployment.", - "$ref": "#/definitions/apps.v1beta1.DeploymentStatus" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "apps", - "Version": "v1beta1", - "Kind": "Deployment" - } - ] - }, - "v1.StatusDetails": { - "description": "StatusDetails is a set of additional properties that MAY be set by the server to provide additional information about a response. The Reason field of a Status object defines what attributes will be set. Clients must ignore fields that do not match the defined type of each attribute, and should assume that any attribute may be empty, invalid, or under defined.", - "properties": { - "causes": { - "description": "The Causes array includes more details associated with the StatusReason failure. Not all StatusReasons may provide detailed causes.", - "type": "array", - "items": { - "$ref": "#/definitions/v1.StatusCause" - } - }, - "group": { - "description": "The group attribute of the resource associated with the status StatusReason.", - "type": "string" - }, - "kind": { - "description": "The kind attribute of the resource associated with the status StatusReason. On some operations may differ from the requested resource Kind. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "name": { - "description": "The name attribute of the resource associated with the status StatusReason (when there is a single name which can be described).", - "type": "string" - }, - "retryAfterSeconds": { - "description": "If specified, the time in seconds before the operation should be retried.", - "type": "integer", - "format": "int32" - } - } - }, - "v1.ResourceQuotaList": { - "description": "ResourceQuotaList is a list of ResourceQuota items.", - "required": [ - "items" - ], - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "Items is a list of ResourceQuota objects. More info: http://releases.k8s.io/HEAD/docs/design/admission_control_resource_quota.md#admissioncontrol-plugin-resourcequota", - "type": "array", - "items": { - "$ref": "#/definitions/v1.ResourceQuota" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "$ref": "#/definitions/v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "", - "Version": "v1", - "Kind": "ResourceQuotaList" - } - ] - }, - "v1.LimitRangeSpec": { - "description": "LimitRangeSpec defines a min/max usage limit for resources that match on kind.", - "required": [ - "limits" - ], - "properties": { - "limits": { - "description": "Limits is the list of LimitRangeItem objects that are enforced.", - "type": "array", - "items": { - "$ref": "#/definitions/v1.LimitRangeItem" - } - } - } - }, - "v1.FlexVolumeSource": { - "description": "FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. This is an alpha feature and may change in future.", - "required": [ - "driver" - ], - "properties": { - "driver": { - "description": "Driver is the name of the driver to use for this volume.", - "type": "string" - }, - "fsType": { - "description": "Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". The default filesystem depends on FlexVolume script.", - "type": "string" - }, - "options": { - "description": "Optional: Extra command options if any.", - "type": "object", - "additionalProperties": { - "type": "string" - } - }, - "readOnly": { - "description": "Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", - "type": "boolean" - }, - "secretRef": { - "description": "Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts.", - "$ref": "#/definitions/v1.LocalObjectReference" - } - } - }, - "v1.PodAffinity": { - "description": "Pod affinity is a group of inter pod affinity scheduling rules.", - "properties": { - "preferredDuringSchedulingIgnoredDuringExecution": { - "description": "The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred.", - "type": "array", - "items": { - "$ref": "#/definitions/v1.WeightedPodAffinityTerm" - } - }, - "requiredDuringSchedulingIgnoredDuringExecution": { - "description": "NOT YET IMPLEMENTED. TODO: Uncomment field once it is implemented. If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system will try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. RequiredDuringSchedulingRequiredDuringExecution []PodAffinityTerm `json:\"requiredDuringSchedulingRequiredDuringExecution,omitempty\"` If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied.", - "type": "array", - "items": { - "$ref": "#/definitions/v1.PodAffinityTerm" - } - } - } - }, - "v1beta1.SELinuxStrategyOptions": { - "description": "SELinux Strategy Options defines the strategy type and any options used to create the strategy.", - "required": [ - "rule" - ], - "properties": { - "rule": { - "description": "type is the strategy that will dictate the allowable labels that may be set.", - "type": "string" - }, - "seLinuxOptions": { - "description": "seLinuxOptions required to run as; required for MustRunAs More info: http://releases.k8s.io/HEAD/docs/design/security_context.md#security-context", - "$ref": "#/definitions/v1.SELinuxOptions" - } - } - }, - "v1.TokenReviewStatus": { - "description": "TokenReviewStatus is the result of the token authentication request.", - "properties": { - "authenticated": { - "description": "Authenticated indicates that the token was associated with a known user.", - "type": "boolean" - }, - "error": { - "description": "Error indicates that the token couldn't be checked", - "type": "string" - }, - "user": { - "description": "User is the UserInfo associated with the provided token.", - "$ref": "#/definitions/v1.UserInfo" - } - } - }, - "v1beta1.RoleBinding": { - "description": "RoleBinding references a role, but does not contain it. It can reference a Role in the same namespace or a ClusterRole in the global namespace. It adds who information via Subjects and namespace information by which namespace it exists in. RoleBindings in a given namespace only have effect in that namespace.", - "required": [ - "subjects", - "roleRef" - ], - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", - "type": "string" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object's metadata.", - "$ref": "#/definitions/v1.ObjectMeta" - }, - "roleRef": { - "description": "RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error.", - "$ref": "#/definitions/v1beta1.RoleRef" - }, - "subjects": { - "description": "Subjects holds references to the objects the role applies to.", - "type": "array", - "items": { - "$ref": "#/definitions/v1beta1.Subject" - } - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "rbac.authorization.k8s.io", - "Version": "v1beta1", - "Kind": "RoleBinding" - } - ] - }, - "v1.ServicePort": { - "description": "ServicePort contains information on service's port.", - "required": [ - "port" - ], - "properties": { - "name": { - "description": "The name of this port within the service. This must be a DNS_LABEL. All ports within a ServiceSpec must have unique names. This maps to the 'Name' field in EndpointPort objects. Optional if only one ServicePort is defined on this service.", - "type": "string" - }, - "nodePort": { - "description": "The port on each node on which this service is exposed when type=NodePort or LoadBalancer. Usually assigned by the system. If specified, it will be allocated to the service if unused or else creation of the service will fail. Default is to auto-allocate a port if the ServiceType of this Service requires one. More info: http://kubernetes.io/docs/user-guide/services#type--nodeport", - "type": "integer", - "format": "int32" - }, - "port": { - "description": "The port that will be exposed by this service.", - "type": "integer", - "format": "int32" - }, - "protocol": { - "description": "The IP protocol for this port. Supports \"TCP\" and \"UDP\". Default is TCP.", - "type": "string" - }, - "targetPort": { - "description": "Number or name of the port to access on the pods targeted by the service. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. If this is a string, it will be looked up as a named port in the target Pod's container ports. If this is not specified, the value of the 'port' field is used (an identity map). This field is ignored for services with clusterIP=None, and should be omitted or set equal to the 'port' field. More info: http://kubernetes.io/docs/user-guide/services#defining-a-service", - "type": "string", - "format": "int-or-string" - } - } - }, - "v1.ProjectedVolumeSource": { - "description": "Represents a projected volume source", - "required": [ - "sources" - ], - "properties": { - "defaultMode": { - "description": "Mode bits to use on created files by default. Must be a value between 0 and 0777. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.", - "type": "integer", - "format": "int32" - }, - "sources": { - "description": "list of volume projections", - "type": "array", - "items": { - "$ref": "#/definitions/v1.VolumeProjection" - } - } - } - }, - "v1alpha1.Role": { - "description": "Role is a namespaced, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding.", - "required": [ - "rules" - ], - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", - "type": "string" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object's metadata.", - "$ref": "#/definitions/v1.ObjectMeta" - }, - "rules": { - "description": "Rules holds all the PolicyRules for this Role", - "type": "array", - "items": { - "$ref": "#/definitions/v1alpha1.PolicyRule" - } - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "rbac.authorization.k8s.io", - "Version": "v1alpha1", - "Kind": "Role" - } - ] - }, - "v1.Preconditions": { - "description": "Preconditions must be fulfilled before an operation (update, delete, etc.) is carried out.", - "properties": { - "uid": { - "description": "Specifies the target UID.", - "type": "string" - } - } - }, - "v1.Scale": { - "description": "Scale represents a scaling request for a resource.", - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", - "type": "string" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object metadata; More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata.", - "$ref": "#/definitions/v1.ObjectMeta" - }, - "spec": { - "description": "defines the behavior of the scale. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status.", - "$ref": "#/definitions/v1.ScaleSpec" - }, - "status": { - "description": "current status of the scale. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status. Read-only.", - "$ref": "#/definitions/v1.ScaleStatus" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "autoscaling", - "Version": "v1", - "Kind": "Scale" - } - ] - }, - "v2alpha1.HorizontalPodAutoscalerSpec": { - "description": "HorizontalPodAutoscalerSpec describes the desired functionality of the HorizontalPodAutoscaler.", - "required": [ - "scaleTargetRef", - "maxReplicas" - ], - "properties": { - "maxReplicas": { - "description": "maxReplicas is the upper limit for the number of replicas to which the autoscaler can scale up. It cannot be less that minReplicas.", - "type": "integer", - "format": "int32" - }, - "metrics": { - "description": "metrics contains the specifications for which to use to calculate the desired replica count (the maximum replica count across all metrics will be used). The desired replica count is calculated multiplying the ratio between the target value and the current value by the current number of pods. Ergo, metrics used must decrease as the pod count is increased, and vice-versa. See the individual metric source types for more information about how each type of metric must respond.", - "type": "array", - "items": { - "$ref": "#/definitions/v2alpha1.MetricSpec" - } - }, - "minReplicas": { - "description": "minReplicas is the lower limit for the number of replicas to which the autoscaler can scale down. It defaults to 1 pod.", - "type": "integer", - "format": "int32" - }, - "scaleTargetRef": { - "description": "scaleTargetRef points to the target resource to scale, and is used to the pods for which metrics should be collected, as well as to actually change the replica count.", - "$ref": "#/definitions/v2alpha1.CrossVersionObjectReference" - } - } - }, - "apps.v1beta1.DeploymentRollback": { - "description": "DeploymentRollback stores the information required to rollback a deployment.", - "required": [ - "name", - "rollbackTo" - ], - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", - "type": "string" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "name": { - "description": "Required: This must match the Name of a deployment.", - "type": "string" - }, - "rollbackTo": { - "description": "The config of this deployment rollback.", - "$ref": "#/definitions/apps.v1beta1.RollbackConfig" - }, - "updatedAnnotations": { - "description": "The annotations to be updated to a deployment", - "type": "object", - "additionalProperties": { - "type": "string" - } - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "apps", - "Version": "v1beta1", - "Kind": "DeploymentRollback" - } - ] - }, - "v2alpha1.JobTemplateSpec": { - "description": "JobTemplateSpec describes the data a Job should have when created from a template", - "properties": { - "metadata": { - "description": "Standard object's metadata of the jobs created from this template. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", - "$ref": "#/definitions/v1.ObjectMeta" - }, - "spec": { - "description": "Specification of the desired behavior of the job. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status", - "$ref": "#/definitions/v1.JobSpec" - } - } - }, - "v1.Secret": { - "description": "Secret holds secret data of a certain type. The total bytes of the values in the Data field must be less than MaxSecretSize bytes.", - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", - "type": "string" - }, - "data": { - "description": "Data contains the secret data. Each key must be a valid DNS_SUBDOMAIN or leading dot followed by valid DNS_SUBDOMAIN. The serialized form of the secret data is a base64 encoded string, representing the arbitrary (possibly non-string) data value here. Described in https://tools.ietf.org/html/rfc4648#section-4", - "type": "object", - "additionalProperties": { - "type": "string", - "format": "byte" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", - "$ref": "#/definitions/v1.ObjectMeta" - }, - "stringData": { - "description": "stringData allows specifying non-binary secret data in string form. It is provided as a write-only convenience method. All keys and values are merged into the data field on write, overwriting any existing values. It is never output when reading from the API.", - "type": "object", - "additionalProperties": { - "type": "string" - } - }, - "type": { - "description": "Used to facilitate programmatic handling of secret data.", - "type": "string" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "", - "Version": "v1", - "Kind": "Secret" - } - ] - }, - "extensions.v1beta1.DeploymentRollback": { - "description": "DeploymentRollback stores the information required to rollback a deployment.", - "required": [ - "name", - "rollbackTo" - ], - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", - "type": "string" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "name": { - "description": "Required: This must match the Name of a deployment.", - "type": "string" - }, - "rollbackTo": { - "description": "The config of this deployment rollback.", - "$ref": "#/definitions/extensions.v1beta1.RollbackConfig" - }, - "updatedAnnotations": { - "description": "The annotations to be updated to a deployment", - "type": "object", - "additionalProperties": { - "type": "string" - } - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "extensions", - "Version": "v1beta1", - "Kind": "DeploymentRollback" - } - ] - }, - "v1beta1.SelfSubjectAccessReviewSpec": { - "description": "SelfSubjectAccessReviewSpec is a description of the access request. Exactly one of ResourceAuthorizationAttributes and NonResourceAuthorizationAttributes must be set", - "properties": { - "nonResourceAttributes": { - "description": "NonResourceAttributes describes information for a non-resource access request", - "$ref": "#/definitions/v1beta1.NonResourceAttributes" - }, - "resourceAttributes": { - "description": "ResourceAuthorizationAttributes describes information for a resource access request", - "$ref": "#/definitions/v1beta1.ResourceAttributes" - } - } - }, - "v1beta1.DaemonSetStatus": { - "description": "DaemonSetStatus represents the current status of a daemon set.", - "required": [ - "currentNumberScheduled", - "numberMisscheduled", - "desiredNumberScheduled", - "numberReady" - ], - "properties": { - "currentNumberScheduled": { - "description": "The number of nodes that are running at least 1 daemon pod and are supposed to run the daemon pod. More info: http://releases.k8s.io/HEAD/docs/admin/daemons.md", - "type": "integer", - "format": "int32" - }, - "desiredNumberScheduled": { - "description": "The total number of nodes that should be running the daemon pod (including nodes correctly running the daemon pod). More info: http://releases.k8s.io/HEAD/docs/admin/daemons.md", - "type": "integer", - "format": "int32" - }, - "numberAvailable": { - "description": "The number of nodes that should be running the daemon pod and have one or more of the daemon pod running and available (ready for at least spec.minReadySeconds)", - "type": "integer", - "format": "int32" - }, - "numberMisscheduled": { - "description": "The number of nodes that are running the daemon pod, but are not supposed to run the daemon pod. More info: http://releases.k8s.io/HEAD/docs/admin/daemons.md", - "type": "integer", - "format": "int32" - }, - "numberReady": { - "description": "The number of nodes that should be running the daemon pod and have one or more of the daemon pod running and ready.", - "type": "integer", - "format": "int32" - }, - "numberUnavailable": { - "description": "The number of nodes that should be running the daemon pod and have none of the daemon pod running and available (ready for at least spec.minReadySeconds)", - "type": "integer", - "format": "int32" - }, - "observedGeneration": { - "description": "The most recent generation observed by the daemon set controller.", - "type": "integer", - "format": "int64" - }, - "updatedNumberScheduled": { - "description": "The total number of nodes that are running updated daemon pod", - "type": "integer", - "format": "int32" - } - } - }, - "v2alpha1.CronJobList": { - "description": "CronJobList is a collection of cron jobs.", - "required": [ - "items" - ], - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "Items is the list of CronJob.", - "type": "array", - "items": { - "$ref": "#/definitions/v2alpha1.CronJob" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard list metadata More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", - "$ref": "#/definitions/v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "batch", - "Version": "v2alpha1", - "Kind": "CronJobList" - }, - { - "Group": "batch", - "Version": "v2alpha1", - "Kind": "ScheduledJobList" - } - ] - }, - "v1.JobList": { - "description": "JobList is a collection of jobs.", - "required": [ - "items" - ], - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "Items is the list of Job.", - "type": "array", - "items": { - "$ref": "#/definitions/v1.Job" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard list metadata More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", - "$ref": "#/definitions/v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "batch", - "Version": "v1", - "Kind": "JobList" - } - ] - }, - "extensions.v1beta1.Scale": { - "description": "represents a scaling request for a resource.", - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", - "type": "string" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object metadata; More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata.", - "$ref": "#/definitions/v1.ObjectMeta" - }, - "spec": { - "description": "defines the behavior of the scale. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status.", - "$ref": "#/definitions/extensions.v1beta1.ScaleSpec" - }, - "status": { - "description": "current status of the scale. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status. Read-only.", - "$ref": "#/definitions/extensions.v1beta1.ScaleStatus" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "extensions", - "Version": "v1beta1", - "Kind": "Scale" - } - ] - }, - "v1.Taint": { - "description": "The node this Taint is attached to has the effect \"effect\" on any pod that that does not tolerate the Taint.", - "required": [ - "key", - "effect" - ], - "properties": { - "effect": { - "description": "Required. The effect of the taint on pods that do not tolerate the taint. Valid effects are NoSchedule, PreferNoSchedule and NoExecute.", - "type": "string" - }, - "key": { - "description": "Required. The taint key to be applied to a node.", - "type": "string" - }, - "timeAdded": { - "description": "TimeAdded represents the time at which the taint was added. It is only written for NoExecute taints.", - "type": "string", - "format": "date-time" - }, - "value": { - "description": "Required. The taint value corresponding to the taint key.", - "type": "string" - } - } - }, - "v1beta1.Eviction": { - "description": "Eviction evicts a pod from its node subject to certain policies and safety constraints. This is a subresource of Pod. A request to cause such an eviction is created by POSTing to .../pods//evictions.", - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", - "type": "string" - }, - "deleteOptions": { - "description": "DeleteOptions may be provided", - "$ref": "#/definitions/v1.DeleteOptions" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "ObjectMeta describes the pod that is being evicted.", - "$ref": "#/definitions/v1.ObjectMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "policy", - "Version": "v1beta1", - "Kind": "Eviction" - } - ] - }, - "v1.NodeDaemonEndpoints": { - "description": "NodeDaemonEndpoints lists ports opened by daemons running on the Node.", - "properties": { - "kubeletEndpoint": { - "description": "Endpoint on which Kubelet is listening.", - "$ref": "#/definitions/v1.DaemonEndpoint" - } - } - }, - "v1.ObjectFieldSelector": { - "description": "ObjectFieldSelector selects an APIVersioned field of an object.", - "required": [ - "fieldPath" - ], - "properties": { - "apiVersion": { - "description": "Version of the schema the FieldPath is written in terms of, defaults to \"v1\".", - "type": "string" - }, - "fieldPath": { - "description": "Path of the field to select in the specified API version.", - "type": "string" - } - } - }, - "v1.SecurityContext": { - "description": "SecurityContext holds security configuration that will be applied to a container. Some fields are present in both SecurityContext and PodSecurityContext. When both are set, the values in SecurityContext take precedence.", - "properties": { - "capabilities": { - "description": "The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime.", - "$ref": "#/definitions/v1.Capabilities" - }, - "privileged": { - "description": "Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false.", - "type": "boolean" - }, - "readOnlyRootFilesystem": { - "description": "Whether this container has a read-only root filesystem. Default is false.", - "type": "boolean" - }, - "runAsNonRoot": { - "description": "Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.", - "type": "boolean" - }, - "runAsUser": { - "description": "The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.", - "type": "integer", - "format": "int64" - }, - "seLinuxOptions": { - "description": "The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.", - "$ref": "#/definitions/v1.SELinuxOptions" - } - } - }, - "v1.ConfigMap": { - "description": "ConfigMap holds configuration data for pods to consume.", - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", - "type": "string" - }, - "data": { - "description": "Data contains the configuration data. Each key must be a valid DNS_SUBDOMAIN with an optional leading dot.", - "type": "object", - "additionalProperties": { - "type": "string" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", - "$ref": "#/definitions/v1.ObjectMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "", - "Version": "v1", - "Kind": "ConfigMap" - } - ] - }, - "v1beta1.IDRange": { - "description": "ID Range provides a min/max of an allowed range of IDs.", - "required": [ - "min", - "max" - ], - "properties": { - "max": { - "description": "Max is the end of the range, inclusive.", - "type": "integer", - "format": "int64" - }, - "min": { - "description": "Min is the start of the range, inclusive.", - "type": "integer", - "format": "int64" - } - } - }, - "v1beta1.CertificateSigningRequestSpec": { - "description": "This information is immutable after the request is created. Only the Request and Usages fields can be set on creation, other fields are derived by Kubernetes and cannot be modified by users.", - "required": [ - "request" - ], - "properties": { - "extra": { - "description": "Extra information about the requesting user. See user.Info interface for details.", - "type": "object", - "additionalProperties": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "groups": { - "description": "Group information about the requesting user. See user.Info interface for details.", - "type": "array", - "items": { - "type": "string" - } - }, - "request": { - "description": "Base64-encoded PKCS#10 CSR data", - "type": "string", - "format": "byte" - }, - "uid": { - "description": "UID information about the requesting user. See user.Info interface for details.", - "type": "string" - }, - "usages": { - "description": "allowedUsages specifies a set of usage contexts the key will be valid for. See: https://tools.ietf.org/html/rfc5280#section-4.2.1.3\n https://tools.ietf.org/html/rfc5280#section-4.2.1.12", - "type": "array", - "items": { - "type": "string" - } - }, - "username": { - "description": "Information about the requesting user. See user.Info interface for details.", - "type": "string" - } - } - }, - "v1.TokenReview": { - "description": "TokenReview attempts to authenticate a token to a known user. Note: TokenReview requests may be cached by the webhook token authenticator plugin in the kube-apiserver.", - "required": [ - "spec" - ], - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", - "type": "string" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "$ref": "#/definitions/v1.ObjectMeta" - }, - "spec": { - "description": "Spec holds information about the request being evaluated", - "$ref": "#/definitions/v1.TokenReviewSpec" - }, - "status": { - "description": "Status is filled in by the server and indicates whether the request can be authenticated.", - "$ref": "#/definitions/v1.TokenReviewStatus" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "authentication.k8s.io", - "Version": "v1", - "Kind": "TokenReview" - } - ] - }, - "v1beta1.TokenReviewSpec": { - "description": "TokenReviewSpec is a description of the token authentication request.", - "properties": { - "token": { - "description": "Token is the opaque bearer token.", - "type": "string" - } - } - }, - "v1.SecretProjection": { - "description": "Adapts a secret into a projected volume.\n\nThe contents of the target Secret's Data field will be presented in a projected volume as files using the keys in the Data field as the file names. Note that this is identical to a secret volume source without the default mode.", - "properties": { - "items": { - "description": "If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'.", - "type": "array", - "items": { - "$ref": "#/definitions/v1.KeyToPath" - } - }, - "name": { - "description": "Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - } - }, - "v1beta1.SelfSubjectAccessReview": { - "description": "SelfSubjectAccessReview checks whether or the current user can perform an action. Not filling in a spec.namespace means \"in all namespaces\". Self is a special case, because users should always be able to check whether they can perform an action", - "required": [ - "spec" - ], - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", - "type": "string" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "$ref": "#/definitions/v1.ObjectMeta" - }, - "spec": { - "description": "Spec holds information about the request being evaluated. user and groups must be empty", - "$ref": "#/definitions/v1beta1.SelfSubjectAccessReviewSpec" - }, - "status": { - "description": "Status is filled in by the server and indicates whether the request is allowed or not", - "$ref": "#/definitions/v1beta1.SubjectAccessReviewStatus" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "authorization.k8s.io", - "Version": "v1beta1", - "Kind": "SelfSubjectAccessReview" - } - ] - }, - "v1beta1.DaemonSetSpec": { - "description": "DaemonSetSpec is the specification of a daemon set.", - "required": [ - "template" - ], - "properties": { - "minReadySeconds": { - "description": "The minimum number of seconds for which a newly created DaemonSet pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready).", - "type": "integer", - "format": "int32" - }, - "selector": { - "description": "A label query over pods that are managed by the daemon set. Must match in order to be controlled. If empty, defaulted to labels on Pod template. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors", - "$ref": "#/definitions/v1.LabelSelector" - }, - "template": { - "description": "An object that describes the pod that will be created. The DaemonSet will create exactly one copy of this pod on every node that matches the template's node selector (or on every node if no node selector is specified). More info: http://kubernetes.io/docs/user-guide/replication-controller#pod-template", - "$ref": "#/definitions/v1.PodTemplateSpec" - }, - "templateGeneration": { - "description": "A sequence number representing a specific generation of the template. Populated by the system. It can be set only during the creation.", - "type": "integer", - "format": "int64" - }, - "updateStrategy": { - "description": "An update strategy to replace existing DaemonSet pods with new pods.", - "$ref": "#/definitions/v1beta1.DaemonSetUpdateStrategy" - } - } - }, - "v2alpha1.CronJobSpec": { - "description": "CronJobSpec describes how the job execution will look like and when it will actually run.", - "required": [ - "schedule", - "jobTemplate" - ], - "properties": { - "concurrencyPolicy": { - "description": "ConcurrencyPolicy specifies how to treat concurrent executions of a Job. Defaults to Allow.", - "type": "string" - }, - "failedJobsHistoryLimit": { - "description": "The number of failed finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified.", - "type": "integer", - "format": "int32" - }, - "jobTemplate": { - "description": "JobTemplate is the object that describes the job that will be created when executing a CronJob.", - "$ref": "#/definitions/v2alpha1.JobTemplateSpec" - }, - "schedule": { - "description": "Schedule contains the schedule in Cron format, see https://en.wikipedia.org/wiki/Cron.", - "type": "string" - }, - "startingDeadlineSeconds": { - "description": "Optional deadline in seconds for starting the job if it misses scheduled time for any reason. Missed jobs executions will be counted as failed ones.", - "type": "integer", - "format": "int64" - }, - "successfulJobsHistoryLimit": { - "description": "The number of successful finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified.", - "type": "integer", - "format": "int32" - }, - "suspend": { - "description": "Suspend flag tells the controller to suspend subsequent executions, it does not apply to already started executions. Defaults to false.", - "type": "boolean" - } - } - }, - "v1.PersistentVolumeClaimStatus": { - "description": "PersistentVolumeClaimStatus is the current status of a persistent volume claim.", - "properties": { - "accessModes": { - "description": "AccessModes contains the actual access modes the volume backing the PVC has. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#access-modes-1", - "type": "array", - "items": { - "type": "string" - } - }, - "capacity": { - "description": "Represents the actual resources of the underlying volume.", - "type": "object", - "additionalProperties": { - "type": "string" - } - }, - "phase": { - "description": "Phase represents the current phase of PersistentVolumeClaim.", - "type": "string" - } - } - }, - "v1beta1.TokenReviewStatus": { - "description": "TokenReviewStatus is the result of the token authentication request.", - "properties": { - "authenticated": { - "description": "Authenticated indicates that the token was associated with a known user.", - "type": "boolean" - }, - "error": { - "description": "Error indicates that the token couldn't be checked", - "type": "string" - }, - "user": { - "description": "User is the UserInfo associated with the provided token.", - "$ref": "#/definitions/v1beta1.UserInfo" - } - } - }, - "v1beta1.HostPortRange": { - "description": "Host Port Range defines a range of host ports that will be enabled by a policy for pods to use. It requires both the start and end to be defined.", - "required": [ - "min", - "max" - ], - "properties": { - "max": { - "description": "max is the end of the range, inclusive.", - "type": "integer", - "format": "int32" - }, - "min": { - "description": "min is the start of the range, inclusive.", - "type": "integer", - "format": "int32" - } - } - }, - "v1.Endpoints": { - "description": "Endpoints is a collection of endpoints that implement the actual service. Example:\n Name: \"mysvc\",\n Subsets: [\n {\n Addresses: [{\"ip\": \"10.10.1.1\"}, {\"ip\": \"10.10.2.2\"}],\n Ports: [{\"name\": \"a\", \"port\": 8675}, {\"name\": \"b\", \"port\": 309}]\n },\n {\n Addresses: [{\"ip\": \"10.10.3.3\"}],\n Ports: [{\"name\": \"a\", \"port\": 93}, {\"name\": \"b\", \"port\": 76}]\n },\n ]", - "required": [ - "subsets" - ], - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", - "type": "string" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", - "$ref": "#/definitions/v1.ObjectMeta" - }, - "subsets": { - "description": "The set of all endpoints is the union of all subsets. Addresses are placed into subsets according to the IPs they share. A single address with multiple ports, some of which are ready and some of which are not (because they come from different containers) will result in the address being displayed in different subsets for the different ports. No address will appear in both Addresses and NotReadyAddresses in the same subset. Sets of addresses and ports that comprise a service.", - "type": "array", - "items": { - "$ref": "#/definitions/v1.EndpointSubset" - } - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "", - "Version": "v1", - "Kind": "Endpoints" - } - ] - }, - "v1.Job": { - "description": "Job represents the configuration of a single job.", - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", - "type": "string" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", - "$ref": "#/definitions/v1.ObjectMeta" - }, - "spec": { - "description": "Spec is a structure defining the expected behavior of a job. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status", - "$ref": "#/definitions/v1.JobSpec" - }, - "status": { - "description": "Status is a structure describing current status of a job. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status", - "$ref": "#/definitions/v1.JobStatus" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "batch", - "Version": "v1", - "Kind": "Job" - } - ] - }, - "v2alpha1.HorizontalPodAutoscalerList": { - "description": "HorizontalPodAutoscaler is a list of horizontal pod autoscaler objects.", - "required": [ - "items" - ], - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "items is the list of horizontal pod autoscaler objects.", - "type": "array", - "items": { - "$ref": "#/definitions/v2alpha1.HorizontalPodAutoscaler" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "metadata is the standard list metadata.", - "$ref": "#/definitions/v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "autoscaling", - "Version": "v2alpha1", - "Kind": "HorizontalPodAutoscalerList" - } - ] - }, - "v1.LimitRangeItem": { - "description": "LimitRangeItem defines a min/max usage limit for any resource that matches on kind.", - "properties": { - "default": { - "description": "Default resource requirement limit value by resource name if resource limit is omitted.", - "type": "object", - "additionalProperties": { - "type": "string" - } - }, - "defaultRequest": { - "description": "DefaultRequest is the default resource requirement request value by resource name if resource request is omitted.", - "type": "object", - "additionalProperties": { - "type": "string" - } - }, - "max": { - "description": "Max usage constraints on this kind by resource name.", - "type": "object", - "additionalProperties": { - "type": "string" - } - }, - "maxLimitRequestRatio": { - "description": "MaxLimitRequestRatio if specified, the named resource must have a request and limit that are both non-zero where limit divided by request is less than or equal to the enumerated value; this represents the max burst for the named resource.", - "type": "object", - "additionalProperties": { - "type": "string" - } - }, - "min": { - "description": "Min usage constraints on this kind by resource name.", - "type": "object", - "additionalProperties": { - "type": "string" - } - }, - "type": { - "description": "Type of resource that this limit applies to.", - "type": "string" - } - } - }, - "v1.SubjectAccessReview": { - "description": "SubjectAccessReview checks whether or not a user or group can perform an action.", - "required": [ - "spec" - ], - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", - "type": "string" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "$ref": "#/definitions/v1.ObjectMeta" - }, - "spec": { - "description": "Spec holds information about the request being evaluated", - "$ref": "#/definitions/v1.SubjectAccessReviewSpec" - }, - "status": { - "description": "Status is filled in by the server and indicates whether the request is allowed or not", - "$ref": "#/definitions/v1.SubjectAccessReviewStatus" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "authorization.k8s.io", - "Version": "v1", - "Kind": "SubjectAccessReview" - } - ] - }, - "v1beta1.PodDisruptionBudgetStatus": { - "description": "PodDisruptionBudgetStatus represents information about the status of a PodDisruptionBudget. Status may trail the actual state of a system.", - "required": [ - "disruptedPods", - "disruptionsAllowed", - "currentHealthy", - "desiredHealthy", - "expectedPods" - ], - "properties": { - "currentHealthy": { - "description": "current number of healthy pods", - "type": "integer", - "format": "int32" - }, - "desiredHealthy": { - "description": "minimum desired number of healthy pods", - "type": "integer", - "format": "int32" - }, - "disruptedPods": { - "description": "DisruptedPods contains information about pods whose eviction was processed by the API server eviction subresource handler but has not yet been observed by the PodDisruptionBudget controller. A pod will be in this map from the time when the API server processed the eviction request to the time when the pod is seen by PDB controller as having been marked for deletion (or after a timeout). The key in the map is the name of the pod and the value is the time when the API server processed the eviction request. If the deletion didn't occur and a pod is still there it will be removed from the list automatically by PodDisruptionBudget controller after some time. If everything goes smooth this map should be empty for the most of the time. Large number of entries in the map may indicate problems with pod deletions.", - "type": "object", - "additionalProperties": { - "type": "string", - "format": "date-time" - } - }, - "disruptionsAllowed": { - "description": "Number of pod disruptions that are currently allowed.", - "type": "integer", - "format": "int32" - }, - "expectedPods": { - "description": "total number of pods counted by this disruption budget", - "type": "integer", - "format": "int32" - }, - "observedGeneration": { - "description": "Most recent generation observed when updating this PDB status. PodDisruptionsAllowed and other status informatio is valid only if observedGeneration equals to PDB's object generation.", - "type": "integer", - "format": "int64" - } - } - }, - "v1.ResourceAttributes": { - "description": "ResourceAttributes includes the authorization attributes available for resource requests to the Authorizer interface", - "properties": { - "group": { - "description": "Group is the API Group of the Resource. \"*\" means all.", - "type": "string" - }, - "name": { - "description": "Name is the name of the resource being requested for a \"get\" or deleted for a \"delete\". \"\" (empty) means all.", - "type": "string" - }, - "namespace": { - "description": "Namespace is the namespace of the action being requested. Currently, there is no distinction between no namespace and all namespaces \"\" (empty) is defaulted for LocalSubjectAccessReviews \"\" (empty) is empty for cluster-scoped resources \"\" (empty) means \"all\" for namespace scoped resources from a SubjectAccessReview or SelfSubjectAccessReview", - "type": "string" - }, - "resource": { - "description": "Resource is one of the existing resource types. \"*\" means all.", - "type": "string" - }, - "subresource": { - "description": "Subresource is one of the existing resource types. \"\" means none.", - "type": "string" - }, - "verb": { - "description": "Verb is a kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy. \"*\" means all.", - "type": "string" - }, - "version": { - "description": "Version is the API Version of the Resource. \"*\" means all.", - "type": "string" - } - } - }, - "v1.ConfigMapVolumeSource": { - "description": "Adapts a ConfigMap into a volume.\n\nThe contents of the target ConfigMap's Data field will be presented in a volume as files using the keys in the Data field as the file names, unless the items element is populated with specific mappings of keys to paths. ConfigMap volumes support ownership management and SELinux relabeling.", - "properties": { - "defaultMode": { - "description": "Optional: mode bits to use on created files by default. Must be a value between 0 and 0777. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.", - "type": "integer", - "format": "int32" - }, - "items": { - "description": "If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'.", - "type": "array", - "items": { - "$ref": "#/definitions/v1.KeyToPath" - } - }, - "name": { - "description": "Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or it's keys must be defined", - "type": "boolean" - } - } - }, - "v1.HTTPHeader": { - "description": "HTTPHeader describes a custom header to be used in HTTP probes", - "required": [ - "name", - "value" - ], - "properties": { - "name": { - "description": "The header field name", - "type": "string" - }, - "value": { - "description": "The header field value", - "type": "string" - } - } - }, - "v1.ReplicationController": { - "description": "ReplicationController represents the configuration of a replication controller.", - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", - "type": "string" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "If the Labels of a ReplicationController are empty, they are defaulted to be the same as the Pod(s) that the replication controller manages. Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", - "$ref": "#/definitions/v1.ObjectMeta" - }, - "spec": { - "description": "Spec defines the specification of the desired behavior of the replication controller. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status", - "$ref": "#/definitions/v1.ReplicationControllerSpec" - }, - "status": { - "description": "Status is the most recently observed status of the replication controller. This data may be out of date by some window of time. Populated by the system. Read-only. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status", - "$ref": "#/definitions/v1.ReplicationControllerStatus" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "", - "Version": "v1", - "Kind": "ReplicationController" - } - ] - }, - "v1.APIGroupList": { - "description": "APIGroupList is a list of APIGroup, to allow clients to discover the API at /apis.", - "required": [ - "groups" - ], - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", - "type": "string" - }, - "groups": { - "description": "groups is a list of APIGroup.", - "type": "array", - "items": { - "$ref": "#/definitions/v1.APIGroup" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "type": "string" - } - } - }, - "v1beta1.NetworkPolicy": { - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", - "type": "string" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", - "$ref": "#/definitions/v1.ObjectMeta" - }, - "spec": { - "description": "Specification of the desired behavior for this NetworkPolicy.", - "$ref": "#/definitions/v1beta1.NetworkPolicySpec" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "extensions", - "Version": "v1beta1", - "Kind": "NetworkPolicy" - } - ] - }, - "apps.v1beta1.RollingUpdateDeployment": { - "description": "Spec to control the desired behavior of rolling update.", - "properties": { - "maxSurge": { - "description": "The maximum number of pods that can be scheduled above the desired number of pods. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up. Defaults to 25%. Example: when this is set to 30%, the new RC can be scaled up immediately when the rolling update starts, such that the total number of old and new pods do not exceed 130% of desired pods. Once old pods have been killed, new RC can be scaled up further, ensuring that total number of pods running at any time during the update is atmost 130% of desired pods.", - "type": "string", - "format": "int-or-string" - }, - "maxUnavailable": { - "description": "The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding down. This can not be 0 if MaxSurge is 0. Defaults to 25%. Example: when this is set to 30%, the old RC can be scaled down to 70% of desired pods immediately when the rolling update starts. Once new pods are ready, old RC can be scaled down further, followed by scaling up the new RC, ensuring that the total number of pods available at all times during the update is at least 70% of desired pods.", - "type": "string", - "format": "int-or-string" - } - } - }, - "v1beta1.ReplicaSetStatus": { - "description": "ReplicaSetStatus represents the current status of a ReplicaSet.", - "required": [ - "replicas" - ], - "properties": { - "availableReplicas": { - "description": "The number of available replicas (ready for at least minReadySeconds) for this replica set.", - "type": "integer", - "format": "int32" - }, - "conditions": { - "description": "Represents the latest available observations of a replica set's current state.", - "type": "array", - "items": { - "$ref": "#/definitions/v1beta1.ReplicaSetCondition" - } - }, - "fullyLabeledReplicas": { - "description": "The number of pods that have labels matching the labels of the pod template of the replicaset.", - "type": "integer", - "format": "int32" - }, - "observedGeneration": { - "description": "ObservedGeneration reflects the generation of the most recently observed ReplicaSet.", - "type": "integer", - "format": "int64" - }, - "readyReplicas": { - "description": "The number of ready replicas for this replica set.", - "type": "integer", - "format": "int32" - }, - "replicas": { - "description": "Replicas is the most recently oberved number of replicas. More info: http://kubernetes.io/docs/user-guide/replication-controller#what-is-a-replication-controller", - "type": "integer", - "format": "int32" - } - } - }, - "v1.HTTPGetAction": { - "description": "HTTPGetAction describes an action based on HTTP Get requests.", - "required": [ - "port" - ], - "properties": { - "host": { - "description": "Host name to connect to, defaults to the pod IP. You probably want to set \"Host\" in httpHeaders instead.", - "type": "string" - }, - "httpHeaders": { - "description": "Custom headers to set in the request. HTTP allows repeated headers.", - "type": "array", - "items": { - "$ref": "#/definitions/v1.HTTPHeader" - } - }, - "path": { - "description": "Path to access on the HTTP server.", - "type": "string" - }, - "port": { - "description": "Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME.", - "type": "string", - "format": "int-or-string" - }, - "scheme": { - "description": "Scheme to use for connecting to the host. Defaults to HTTP.", - "type": "string" - } - } - }, - "v1.Affinity": { - "description": "Affinity is a group of affinity scheduling rules.", - "properties": { - "nodeAffinity": { - "description": "Describes node affinity scheduling rules for the pod.", - "$ref": "#/definitions/v1.NodeAffinity" - }, - "podAffinity": { - "description": "Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)).", - "$ref": "#/definitions/v1.PodAffinity" - }, - "podAntiAffinity": { - "description": "Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)).", - "$ref": "#/definitions/v1.PodAntiAffinity" - } - } - }, - "v1.APIGroup": { - "description": "APIGroup contains the name, the supported versions, and the preferred version of a group.", - "required": [ - "name", - "versions", - "serverAddressByClientCIDRs" - ], - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", - "type": "string" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "name": { - "description": "name is the name of the group.", - "type": "string" - }, - "preferredVersion": { - "description": "preferredVersion is the version preferred by the API server, which probably is the storage version.", - "$ref": "#/definitions/v1.GroupVersionForDiscovery" - }, - "serverAddressByClientCIDRs": { - "description": "a map of client CIDR to server address that is serving this group. This is to help clients reach servers in the most network-efficient way possible. Clients can use the appropriate server address as per the CIDR that they match. In case of multiple matches, clients should use the longest matching CIDR. The server returns only those CIDRs that it thinks that the client can match. For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP.", - "type": "array", - "items": { - "$ref": "#/definitions/v1.ServerAddressByClientCIDR" - } - }, - "versions": { - "description": "versions are the versions supported in this group.", - "type": "array", - "items": { - "$ref": "#/definitions/v1.GroupVersionForDiscovery" - } - } - } - }, - "v1.ComponentCondition": { - "description": "Information about the condition of a component.", - "required": [ - "type", - "status" - ], - "properties": { - "error": { - "description": "Condition error code for a component. For example, a health check error code.", - "type": "string" - }, - "message": { - "description": "Message about the condition for a component. For example, information about a health check.", - "type": "string" - }, - "status": { - "description": "Status of the condition for a component. Valid values for \"Healthy\": \"True\", \"False\", or \"Unknown\".", - "type": "string" - }, - "type": { - "description": "Type of condition for a component. Valid value: \"Healthy\"", - "type": "string" - } - } - }, - "v1.ReplicationControllerCondition": { - "description": "ReplicationControllerCondition describes the state of a replication controller at a certain point.", - "required": [ - "type", - "status" - ], - "properties": { - "lastTransitionTime": { - "description": "The last time the condition transitioned from one status to another.", - "type": "string", - "format": "date-time" - }, - "message": { - "description": "A human readable message indicating details about the transition.", - "type": "string" - }, - "reason": { - "description": "The reason for the condition's last transition.", - "type": "string" - }, - "status": { - "description": "Status of the condition, one of True, False, Unknown.", - "type": "string" - }, - "type": { - "description": "Type of replication controller condition.", - "type": "string" - } - } - }, - "v1.APIVersions": { - "description": "APIVersions lists the versions that are available, to allow clients to discover the API at /api, which is the root path of the legacy v1 API.", - "required": [ - "versions", - "serverAddressByClientCIDRs" - ], - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", - "type": "string" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "serverAddressByClientCIDRs": { - "description": "a map of client CIDR to server address that is serving this group. This is to help clients reach servers in the most network-efficient way possible. Clients can use the appropriate server address as per the CIDR that they match. In case of multiple matches, clients should use the longest matching CIDR. The server returns only those CIDRs that it thinks that the client can match. For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP.", - "type": "array", - "items": { - "$ref": "#/definitions/v1.ServerAddressByClientCIDR" - } - }, - "versions": { - "description": "versions are the api versions that are available.", - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "v1beta1.CertificateSigningRequest": { - "description": "Describes a certificate signing request", - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", - "type": "string" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "$ref": "#/definitions/v1.ObjectMeta" - }, - "spec": { - "description": "The certificate request itself and any additional information.", - "$ref": "#/definitions/v1beta1.CertificateSigningRequestSpec" - }, - "status": { - "description": "Derived information about the request.", - "$ref": "#/definitions/v1beta1.CertificateSigningRequestStatus" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "certificates.k8s.io", - "Version": "v1beta1", - "Kind": "CertificateSigningRequest" - } - ] - }, - "v2alpha1.ObjectMetricStatus": { - "description": "ObjectMetricStatus indicates the current value of a metric describing a kubernetes object (for example, hits-per-second on an Ingress object).", - "required": [ - "target", - "metricName", - "currentValue" - ], - "properties": { - "currentValue": { - "description": "currentValue is the current value of the metric (as a quantity).", - "type": "string" - }, - "metricName": { - "description": "metricName is the name of the metric in question.", - "type": "string" - }, - "target": { - "description": "target is the described Kubernetes object.", - "$ref": "#/definitions/v2alpha1.CrossVersionObjectReference" - } - } - }, - "v1beta1.LocalSubjectAccessReview": { - "description": "LocalSubjectAccessReview checks whether or not a user or group can perform an action in a given namespace. Having a namespace scoped resource makes it much easier to grant namespace scoped policy that includes permissions checking.", - "required": [ - "spec" - ], - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", - "type": "string" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "$ref": "#/definitions/v1.ObjectMeta" - }, - "spec": { - "description": "Spec holds information about the request being evaluated. spec.namespace must be equal to the namespace you made the request against. If empty, it is defaulted.", - "$ref": "#/definitions/v1beta1.SubjectAccessReviewSpec" - }, - "status": { - "description": "Status is filled in by the server and indicates whether the request is allowed or not", - "$ref": "#/definitions/v1beta1.SubjectAccessReviewStatus" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "authorization.k8s.io", - "Version": "v1beta1", - "Kind": "LocalSubjectAccessReview" - } - ] - }, - "v1.WatchEvent": { - "description": "Event represents a single event to a watched resource.", - "required": [ - "type", - "object" - ], - "properties": { - "object": { - "description": "Object is:\n * If Type is Added or Modified: the new state of the object.\n * If Type is Deleted: the state of the object immediately before deletion.\n * If Type is Error: *Status is recommended; other types may make sense\n depending on context.", - "$ref": "#/definitions/runtime.RawExtension" - }, - "type": { - "type": "string" - } - } - }, - "v1.CinderVolumeSource": { - "description": "Represents a cinder volume resource in Openstack. A Cinder volume must exist before mounting to a container. The volume must also be in the same region as the kubelet. Cinder volumes support ownership management and SELinux relabeling.", - "required": [ - "volumeID" - ], - "properties": { - "fsType": { - "description": "Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: http://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md", - "type": "string" - }, - "readOnly": { - "description": "Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: http://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md", - "type": "boolean" - }, - "volumeID": { - "description": "volume id used to identify the volume in cinder More info: http://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md", - "type": "string" - } - } - }, - "v1.ResourceQuota": { - "description": "ResourceQuota sets aggregate quota restrictions enforced per namespace", - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", - "type": "string" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", - "$ref": "#/definitions/v1.ObjectMeta" - }, - "spec": { - "description": "Spec defines the desired quota. http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status", - "$ref": "#/definitions/v1.ResourceQuotaSpec" - }, - "status": { - "description": "Status defines the actual enforced quota and its current usage. http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status", - "$ref": "#/definitions/v1.ResourceQuotaStatus" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "", - "Version": "v1", - "Kind": "ResourceQuota" - } - ] - }, - "v1.LimitRange": { - "description": "LimitRange sets resource usage limits for each kind of resource in a Namespace.", - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", - "type": "string" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", - "$ref": "#/definitions/v1.ObjectMeta" - }, - "spec": { - "description": "Spec defines the limits enforced. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status", - "$ref": "#/definitions/v1.LimitRangeSpec" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "", - "Version": "v1", - "Kind": "LimitRange" - } - ] - }, - "v1beta1.DaemonSetList": { - "description": "DaemonSetList is a collection of daemon sets.", - "required": [ - "items" - ], - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "A list of daemon sets.", - "type": "array", - "items": { - "$ref": "#/definitions/v1beta1.DaemonSet" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", - "$ref": "#/definitions/v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "extensions", - "Version": "v1beta1", - "Kind": "DaemonSetList" - } - ] - }, - "apps.v1beta1.Scale": { - "description": "Scale represents a scaling request for a resource.", - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", - "type": "string" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object metadata; More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata.", - "$ref": "#/definitions/v1.ObjectMeta" - }, - "spec": { - "description": "defines the behavior of the scale. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status.", - "$ref": "#/definitions/apps.v1beta1.ScaleSpec" - }, - "status": { - "description": "current status of the scale. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status. Read-only.", - "$ref": "#/definitions/apps.v1beta1.ScaleStatus" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "apps", - "Version": "v1beta1", - "Kind": "Scale" - } - ] - }, - "v1.PodTemplateList": { - "description": "PodTemplateList is a list of PodTemplates.", - "required": [ - "items" - ], - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "List of pod templates", - "type": "array", - "items": { - "$ref": "#/definitions/v1.PodTemplate" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "$ref": "#/definitions/v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "", - "Version": "v1", - "Kind": "PodTemplateList" - } - ] - }, - "v1beta1.RollingUpdateDaemonSet": { - "description": "Spec to control the desired behavior of daemon set rolling update.", - "properties": { - "maxUnavailable": { - "description": "The maximum number of DaemonSet pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of total number of DaemonSet pods at the start of the update (ex: 10%). Absolute number is calculated from percentage by rounding up. This cannot be 0. Default value is 1. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their pods stopped for an update at any given time. The update starts by stopping at most 30% of those DaemonSet pods and then brings up new DaemonSet pods in their place. Once the new pods are available, it then proceeds onto other DaemonSet pods, thus ensuring that at least 70% of original number of DaemonSet pods are available at all times during the update.", - "type": "string", - "format": "int-or-string" - } - } - }, - "v1.PodAffinityTerm": { - "description": "Defines a set of pods (namely those matching the labelSelector relative to the given namespace(s)) that this pod should be co-located (affinity) or not co-located (anti-affinity) with, where co-located is defined as running on a node whose value of the label with key tches that of any node on which a pod of the set of pods is running", - "properties": { - "labelSelector": { - "description": "A label query over a set of resources, in this case pods.", - "$ref": "#/definitions/v1.LabelSelector" - }, - "namespaces": { - "description": "namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means \"this pod's namespace\"", - "type": "array", - "items": { - "type": "string" - } - }, - "topologyKey": { - "description": "This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. For PreferredDuringScheduling pod anti-affinity, empty topologyKey is interpreted as \"all topologies\" (\"all topologies\" here means all the topologyKeys indicated by scheduler command-line argument --failure-domains); for affinity and for RequiredDuringScheduling pod anti-affinity, empty topologyKey is not allowed.", - "type": "string" - } - } - }, - "v1beta1.PodDisruptionBudget": { - "description": "PodDisruptionBudget is an object to define the max disruption that can be caused to a collection of pods", - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", - "type": "string" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "$ref": "#/definitions/v1.ObjectMeta" - }, - "spec": { - "description": "Specification of the desired behavior of the PodDisruptionBudget.", - "$ref": "#/definitions/v1beta1.PodDisruptionBudgetSpec" - }, - "status": { - "description": "Most recently observed status of the PodDisruptionBudget.", - "$ref": "#/definitions/v1beta1.PodDisruptionBudgetStatus" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "policy", - "Version": "v1beta1", - "Kind": "PodDisruptionBudget" - } - ] - }, - "v1.VolumeMount": { - "description": "VolumeMount describes a mounting of a Volume within a container.", - "required": [ - "name", - "mountPath" - ], - "properties": { - "mountPath": { - "description": "Path within the container at which the volume should be mounted. Must not contain ':'.", - "type": "string" - }, - "name": { - "description": "This must match the Name of a Volume.", - "type": "string" - }, - "readOnly": { - "description": "Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false.", - "type": "boolean" - }, - "subPath": { - "description": "Path within the volume from which the container's volume should be mounted. Defaults to \"\" (volume's root).", - "type": "string" - } - } - }, - "v1beta1.ClusterRole": { - "description": "ClusterRole is a cluster level, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding or ClusterRoleBinding.", - "required": [ - "rules" - ], - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", - "type": "string" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object's metadata.", - "$ref": "#/definitions/v1.ObjectMeta" - }, - "rules": { - "description": "Rules holds all the PolicyRules for this ClusterRole", - "type": "array", - "items": { - "$ref": "#/definitions/v1beta1.PolicyRule" - } - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "rbac.authorization.k8s.io", - "Version": "v1beta1", - "Kind": "ClusterRole" - } - ] - }, - "v1.PersistentVolumeStatus": { - "description": "PersistentVolumeStatus is the current status of a persistent volume.", - "properties": { - "message": { - "description": "A human-readable message indicating details about why the volume is in this state.", - "type": "string" - }, - "phase": { - "description": "Phase indicates if a volume is available, bound to a claim, or released by a claim. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#phase", - "type": "string" - }, - "reason": { - "description": "Reason is a brief CamelCase string that describes any failure and is meant for machine parsing and tidy display in the CLI.", - "type": "string" - } - } - }, - "v1.SelfSubjectAccessReview": { - "description": "SelfSubjectAccessReview checks whether or the current user can perform an action. Not filling in a spec.namespace means \"in all namespaces\". Self is a special case, because users should always be able to check whether they can perform an action", - "required": [ - "spec" - ], - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", - "type": "string" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "$ref": "#/definitions/v1.ObjectMeta" - }, - "spec": { - "description": "Spec holds information about the request being evaluated. user and groups must be empty", - "$ref": "#/definitions/v1.SelfSubjectAccessReviewSpec" - }, - "status": { - "description": "Status is filled in by the server and indicates whether the request is allowed or not", - "$ref": "#/definitions/v1.SubjectAccessReviewStatus" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "authorization.k8s.io", - "Version": "v1", - "Kind": "SelfSubjectAccessReview" - } - ] - }, - "v1alpha1.RoleBinding": { - "description": "RoleBinding references a role, but does not contain it. It can reference a Role in the same namespace or a ClusterRole in the global namespace. It adds who information via Subjects and namespace information by which namespace it exists in. RoleBindings in a given namespace only have effect in that namespace.", - "required": [ - "subjects", - "roleRef" - ], - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", - "type": "string" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object's metadata.", - "$ref": "#/definitions/v1.ObjectMeta" - }, - "roleRef": { - "description": "RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error.", - "$ref": "#/definitions/v1alpha1.RoleRef" - }, - "subjects": { - "description": "Subjects holds references to the objects the role applies to.", - "type": "array", - "items": { - "$ref": "#/definitions/v1alpha1.Subject" - } - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "rbac.authorization.k8s.io", - "Version": "v1alpha1", - "Kind": "RoleBinding" - } - ] - }, - "extensions.v1beta1.RollbackConfig": { - "properties": { - "revision": { - "description": "The revision to rollback to. If set to 0, rollbck to the last revision.", - "type": "integer", - "format": "int64" - } - } - }, - "v1beta1.NetworkPolicyPeer": { - "properties": { - "namespaceSelector": { - "description": "Selects Namespaces using cluster scoped-labels. This matches all pods in all namespaces selected by this label selector. This field follows standard label selector semantics. If omitted, this selector selects no namespaces. If present but empty, this selector selects all namespaces.", - "$ref": "#/definitions/v1.LabelSelector" - }, - "podSelector": { - "description": "This is a label selector which selects Pods in this namespace. This field follows standard label selector semantics. If not provided, this selector selects no pods. If present but empty, this selector selects all pods in this namespace.", - "$ref": "#/definitions/v1.LabelSelector" - } - } - }, - "v1.PodList": { - "description": "PodList is a list of Pods.", - "required": [ - "items" - ], - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "List of pods. More info: http://kubernetes.io/docs/user-guide/pods", - "type": "array", - "items": { - "$ref": "#/definitions/v1.Pod" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "$ref": "#/definitions/v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "", - "Version": "v1", - "Kind": "PodList" - } - ] - }, - "v1.NodeStatus": { - "description": "NodeStatus is information about the current status of a node.", - "properties": { - "addresses": { - "description": "List of addresses reachable to the node. Queried from cloud provider, if available. More info: http://releases.k8s.io/HEAD/docs/admin/node.md#node-addresses", - "type": "array", - "items": { - "$ref": "#/definitions/v1.NodeAddress" - } - }, - "allocatable": { - "description": "Allocatable represents the resources of a node that are available for scheduling. Defaults to Capacity.", - "type": "object", - "additionalProperties": { - "type": "string" - } - }, - "capacity": { - "description": "Capacity represents the total resources of a node. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#capacity for more details.", - "type": "object", - "additionalProperties": { - "type": "string" - } - }, - "conditions": { - "description": "Conditions is an array of current observed node conditions. More info: http://releases.k8s.io/HEAD/docs/admin/node.md#node-condition", - "type": "array", - "items": { - "$ref": "#/definitions/v1.NodeCondition" - } - }, - "daemonEndpoints": { - "description": "Endpoints of daemons running on the Node.", - "$ref": "#/definitions/v1.NodeDaemonEndpoints" - }, - "images": { - "description": "List of container images on this node", - "type": "array", - "items": { - "$ref": "#/definitions/v1.ContainerImage" - } - }, - "nodeInfo": { - "description": "Set of ids/uuids to uniquely identify the node. More info: http://releases.k8s.io/HEAD/docs/admin/node.md#node-info", - "$ref": "#/definitions/v1.NodeSystemInfo" - }, - "phase": { - "description": "NodePhase is the recently observed lifecycle phase of the node. More info: http://releases.k8s.io/HEAD/docs/admin/node.md#node-phase The field is never populated, and now is deprecated.", - "type": "string" - }, - "volumesAttached": { - "description": "List of volumes that are attached to the node.", - "type": "array", - "items": { - "$ref": "#/definitions/v1.AttachedVolume" - } - }, - "volumesInUse": { - "description": "List of attachable volumes in use (mounted) by the node.", - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "v1.EventList": { - "description": "EventList is a list of events.", - "required": [ - "items" - ], - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "List of events", - "type": "array", - "items": { - "$ref": "#/definitions/v1.Event" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "$ref": "#/definitions/v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "", - "Version": "v1", - "Kind": "EventList" - } - ] - }, - "v1.HostPathVolumeSource": { - "description": "Represents a host path mapped into a pod. Host path volumes do not support ownership management or SELinux relabeling.", - "required": [ - "path" - ], - "properties": { - "path": { - "description": "Path of the directory on the host. More info: http://kubernetes.io/docs/user-guide/volumes#hostpath", - "type": "string" - } - } - }, - "v1.ExecAction": { - "description": "ExecAction describes a \"run in container\" action.", - "properties": { - "command": { - "description": "Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy.", - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "v1.ContainerStateRunning": { - "description": "ContainerStateRunning is a running state of a container.", - "properties": { - "startedAt": { - "description": "Time at which the container was last (re-)started", - "type": "string", - "format": "date-time" - } - } - }, - "v1alpha1.PodPresetSpec": { - "description": "PodPresetSpec is a description of a pod injection policy.", - "properties": { - "env": { - "description": "Env defines the collection of EnvVar to inject into containers.", - "type": "array", - "items": { - "$ref": "#/definitions/v1.EnvVar" - } - }, - "envFrom": { - "description": "EnvFrom defines the collection of EnvFromSource to inject into containers.", - "type": "array", - "items": { - "$ref": "#/definitions/v1.EnvFromSource" - } - }, - "selector": { - "description": "Selector is a label query over a set of resources, in this case pods. Required.", - "$ref": "#/definitions/v1.LabelSelector" - }, - "volumeMounts": { - "description": "VolumeMounts defines the collection of VolumeMount to inject into containers.", - "type": "array", - "items": { - "$ref": "#/definitions/v1.VolumeMount" - } - }, - "volumes": { - "description": "Volumes defines the collection of Volume to inject into the pod.", - "type": "array", - "items": { - "$ref": "#/definitions/v1.Volume" - } - } - } - }, - "v1beta1.PodSecurityPolicy": { - "description": "Pod Security Policy governs the ability to make requests that affect the Security Context that will be applied to a pod and container.", - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", - "type": "string" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", - "$ref": "#/definitions/v1.ObjectMeta" - }, - "spec": { - "description": "spec defines the policy enforced.", - "$ref": "#/definitions/v1beta1.PodSecurityPolicySpec" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "extensions", - "Version": "v1beta1", - "Kind": "PodSecurityPolicy" - } - ] - }, - "v1.PodStatus": { - "description": "PodStatus represents information about the status of a pod. Status may trail the actual state of a system.", - "properties": { - "conditions": { - "description": "Current service state of pod. More info: http://kubernetes.io/docs/user-guide/pod-states#pod-conditions", - "type": "array", - "items": { - "$ref": "#/definitions/v1.PodCondition" - } - }, - "containerStatuses": { - "description": "The list has one entry per container in the manifest. Each entry is currently the output of `docker inspect`. More info: http://kubernetes.io/docs/user-guide/pod-states#container-statuses", - "type": "array", - "items": { - "$ref": "#/definitions/v1.ContainerStatus" - } - }, - "hostIP": { - "description": "IP address of the host to which the pod is assigned. Empty if not yet scheduled.", - "type": "string" - }, - "initContainerStatuses": { - "description": "The list has one entry per init container in the manifest. The most recent successful init container will have ready = true, the most recently started container will have startTime set. More info: http://kubernetes.io/docs/user-guide/pod-states#container-statuses", - "type": "array", - "items": { - "$ref": "#/definitions/v1.ContainerStatus" - } - }, - "message": { - "description": "A human readable message indicating details about why the pod is in this condition.", - "type": "string" - }, - "phase": { - "description": "Current condition of the pod. More info: http://kubernetes.io/docs/user-guide/pod-states#pod-phase", - "type": "string" - }, - "podIP": { - "description": "IP address allocated to the pod. Routable at least within the cluster. Empty if not yet allocated.", - "type": "string" - }, - "qosClass": { - "description": "The Quality of Service (QOS) classification assigned to the pod based on resource requirements See PodQOSClass type for available QOS classes More info: https://github.com/kubernetes/kubernetes/blob/master/docs/design/resource-qos.md", - "type": "string" - }, - "reason": { - "description": "A brief CamelCase message indicating details about why the pod is in this state. e.g. 'OutOfDisk'", - "type": "string" - }, - "startTime": { - "description": "RFC 3339 date and time at which the object was acknowledged by the Kubelet. This is before the Kubelet pulled the container image(s) for the pod.", - "type": "string", - "format": "date-time" - } - } - }, - "v1.NodeSelector": { - "description": "A node selector represents the union of the results of one or more label queries over a set of nodes; that is, it represents the OR of the selectors represented by the node selector terms.", - "required": [ - "nodeSelectorTerms" - ], - "properties": { - "nodeSelectorTerms": { - "description": "Required. A list of node selector terms. The terms are ORed.", - "type": "array", - "items": { - "$ref": "#/definitions/v1.NodeSelectorTerm" - } - } - } - }, - "v1.PodTemplateSpec": { - "description": "PodTemplateSpec describes the data a pod should have when created from a template", - "properties": { - "metadata": { - "description": "Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", - "$ref": "#/definitions/v1.ObjectMeta" - }, - "spec": { - "description": "Specification of the desired behavior of the pod. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status", - "$ref": "#/definitions/v1.PodSpec" - } - } - }, - "apps.v1beta1.DeploymentStrategy": { - "description": "DeploymentStrategy describes how to replace existing pods with new ones.", - "properties": { - "rollingUpdate": { - "description": "Rolling update config params. Present only if DeploymentStrategyType = RollingUpdate.", - "$ref": "#/definitions/apps.v1beta1.RollingUpdateDeployment" - }, - "type": { - "description": "Type of deployment. Can be \"Recreate\" or \"RollingUpdate\". Default is RollingUpdate.", - "type": "string" - } - } - }, - "v1beta1.PodDisruptionBudgetSpec": { - "description": "PodDisruptionBudgetSpec is a description of a PodDisruptionBudget.", - "properties": { - "minAvailable": { - "description": "An eviction is allowed if at least \"minAvailable\" pods selected by \"selector\" will still be available after the eviction, i.e. even in the absence of the evicted pod. So for example you can prevent all voluntary evictions by specifying \"100%\".", - "type": "string", - "format": "int-or-string" - }, - "selector": { - "description": "Label query over pods whose evictions are managed by the disruption budget.", - "$ref": "#/definitions/v1.LabelSelector" - } - } - }, - "v1.NodeAffinity": { - "description": "Node affinity is a group of node affinity scheduling rules.", - "properties": { - "preferredDuringSchedulingIgnoredDuringExecution": { - "description": "The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred.", - "type": "array", - "items": { - "$ref": "#/definitions/v1.PreferredSchedulingTerm" - } - }, - "requiredDuringSchedulingIgnoredDuringExecution": { - "description": "If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node.", - "$ref": "#/definitions/v1.NodeSelector" - } - } - }, - "v1beta1.ThirdPartyResourceList": { - "description": "ThirdPartyResourceList is a list of ThirdPartyResources.", - "required": [ - "items" - ], - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "Items is the list of ThirdPartyResources.", - "type": "array", - "items": { - "$ref": "#/definitions/v1beta1.ThirdPartyResource" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard list metadata.", - "$ref": "#/definitions/v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "extensions", - "Version": "v1beta1", - "Kind": "ThirdPartyResourceList" - } - ] - }, - "v1beta1.StorageClass": { - "description": "StorageClass describes the parameters for a class of storage for which PersistentVolumes can be dynamically provisioned.\n\nStorageClasses are non-namespaced; the name of the storage class according to etcd is in ObjectMeta.Name.", - "required": [ - "provisioner" - ], - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", - "type": "string" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", - "$ref": "#/definitions/v1.ObjectMeta" - }, - "parameters": { - "description": "Parameters holds the parameters for the provisioner that should create volumes of this storage class.", - "type": "object", - "additionalProperties": { - "type": "string" - } - }, - "provisioner": { - "description": "Provisioner indicates the type of the provisioner.", - "type": "string" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "storage.k8s.io", - "Version": "v1beta1", - "Kind": "StorageClass" - } - ] - }, - "v1beta1.IngressBackend": { - "description": "IngressBackend describes all endpoints for a given service and port.", - "required": [ - "serviceName", - "servicePort" - ], - "properties": { - "serviceName": { - "description": "Specifies the name of the referenced service.", - "type": "string" - }, - "servicePort": { - "description": "Specifies the port of the referenced service.", - "type": "string", - "format": "int-or-string" - } - } - }, - "v1beta1.RoleList": { - "description": "RoleList is a collection of Roles", - "required": [ - "items" - ], - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "Items is a list of Roles", - "type": "array", - "items": { - "$ref": "#/definitions/v1beta1.Role" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object's metadata.", - "$ref": "#/definitions/v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "rbac.authorization.k8s.io", - "Version": "v1beta1", - "Kind": "RoleList" - } - ] - }, - "v1.Pod": { - "description": "Pod is a collection of containers that can run on a host. This resource is created by clients and scheduled onto hosts.", - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", - "type": "string" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", - "$ref": "#/definitions/v1.ObjectMeta" - }, - "spec": { - "description": "Specification of the desired behavior of the pod. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status", - "$ref": "#/definitions/v1.PodSpec" - }, - "status": { - "description": "Most recently observed status of the pod. This data may not be up to date. Populated by the system. Read-only. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status", - "$ref": "#/definitions/v1.PodStatus" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "", - "Version": "v1", - "Kind": "Pod" - } - ] - }, - "v1.NodeSpec": { - "description": "NodeSpec describes the attributes that a node is created with.", - "properties": { - "externalID": { - "description": "External ID of the node assigned by some machine database (e.g. a cloud provider). Deprecated.", - "type": "string" - }, - "podCIDR": { - "description": "PodCIDR represents the pod IP range assigned to the node.", - "type": "string" - }, - "providerID": { - "description": "ID of the node assigned by the cloud provider in the format: ://", - "type": "string" - }, - "taints": { - "description": "If specified, the node's taints.", - "type": "array", - "items": { - "$ref": "#/definitions/v1.Taint" - } - }, - "unschedulable": { - "description": "Unschedulable controls node schedulability of new pods. By default, node is schedulable. More info: http://releases.k8s.io/HEAD/docs/admin/node.md#manual-node-administration", - "type": "boolean" - } - } - }, - "v1.CephFSVolumeSource": { - "description": "Represents a Ceph Filesystem mount that lasts the lifetime of a pod Cephfs volumes do not support ownership management or SELinux relabeling.", - "required": [ - "monitors" - ], - "properties": { - "monitors": { - "description": "Required: Monitors is a collection of Ceph monitors More info: http://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it", - "type": "array", - "items": { - "type": "string" - } - }, - "path": { - "description": "Optional: Used as the mounted root, rather than the full Ceph tree, default is /", - "type": "string" - }, - "readOnly": { - "description": "Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: http://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it", - "type": "boolean" - }, - "secretFile": { - "description": "Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: http://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it", - "type": "string" - }, - "secretRef": { - "description": "Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: http://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it", - "$ref": "#/definitions/v1.LocalObjectReference" - }, - "user": { - "description": "Optional: User is the rados user name, default is admin More info: http://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it", - "type": "string" - } - } - }, - "v1.PersistentVolumeClaimVolumeSource": { - "description": "PersistentVolumeClaimVolumeSource references the user's PVC in the same namespace. This volume finds the bound PV and mounts that volume for the pod. A PersistentVolumeClaimVolumeSource is, essentially, a wrapper around another type of volume that is owned by someone else (the system).", - "required": [ - "claimName" - ], - "properties": { - "claimName": { - "description": "ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#persistentvolumeclaims", - "type": "string" - }, - "readOnly": { - "description": "Will force the ReadOnly setting in VolumeMounts. Default false.", - "type": "boolean" - } - } - }, - "v1beta1.HTTPIngressPath": { - "description": "HTTPIngressPath associates a path regex with a backend. Incoming urls matching the path are forwarded to the backend.", - "required": [ - "backend" - ], - "properties": { - "backend": { - "description": "Backend defines the referenced service endpoint to which the traffic will be forwarded to.", - "$ref": "#/definitions/v1beta1.IngressBackend" - }, - "path": { - "description": "Path is an extended POSIX regex as defined by IEEE Std 1003.1, (i.e this follows the egrep/unix syntax, not the perl syntax) matched against the path of an incoming request. Currently it can contain characters disallowed from the conventional \"path\" part of a URL as defined by RFC 3986. Paths must begin with a '/'. If unspecified, the path defaults to a catch all sending traffic to the backend.", - "type": "string" - } - } - }, - "v2alpha1.HorizontalPodAutoscalerStatus": { - "description": "HorizontalPodAutoscalerStatus describes the current status of a horizontal pod autoscaler.", - "required": [ - "currentReplicas", - "desiredReplicas", - "currentMetrics" - ], - "properties": { - "currentMetrics": { - "description": "currentMetrics is the last read state of the metrics used by this autoscaler.", - "type": "array", - "items": { - "$ref": "#/definitions/v2alpha1.MetricStatus" - } - }, - "currentReplicas": { - "description": "currentReplicas is current number of replicas of pods managed by this autoscaler, as last seen by the autoscaler.", - "type": "integer", - "format": "int32" - }, - "desiredReplicas": { - "description": "desiredReplicas is the desired number of replicas of pods managed by this autoscaler, as last calculated by the autoscaler.", - "type": "integer", - "format": "int32" - }, - "lastScaleTime": { - "description": "lastScaleTime is the last time the HorizontalPodAutoscaler scaled the number of pods, used by the autoscaler to control how often the number of pods is changed.", - "type": "string", - "format": "date-time" - }, - "observedGeneration": { - "description": "observedGeneration is the most recent generation observed by this autoscaler.", - "type": "integer", - "format": "int64" - } - } - }, - "v1.ContainerStateTerminated": { - "description": "ContainerStateTerminated is a terminated state of a container.", - "required": [ - "exitCode" - ], - "properties": { - "containerID": { - "description": "Container's ID in the format 'docker://'", - "type": "string" - }, - "exitCode": { - "description": "Exit status from the last termination of the container", - "type": "integer", - "format": "int32" - }, - "finishedAt": { - "description": "Time at which the container last terminated", - "type": "string", - "format": "date-time" - }, - "message": { - "description": "Message regarding the last termination of the container", - "type": "string" - }, - "reason": { - "description": "(brief) reason from the last termination of the container", - "type": "string" - }, - "signal": { - "description": "Signal from the last termination of the container", - "type": "integer", - "format": "int32" - }, - "startedAt": { - "description": "Time at which previous execution of the container started", - "type": "string", - "format": "date-time" - } - } - }, - "v1beta1.NetworkPolicyList": { - "description": "Network Policy List is a list of NetworkPolicy objects.", - "required": [ - "items" - ], - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "Items is a list of schema objects.", - "type": "array", - "items": { - "$ref": "#/definitions/v1beta1.NetworkPolicy" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", - "$ref": "#/definitions/v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "extensions", - "Version": "v1beta1", - "Kind": "NetworkPolicyList" - } - ] - }, - "v1.NodeSelectorRequirement": { - "description": "A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values.", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "description": "The label key that the selector applies to.", - "type": "string" - }, - "operator": { - "description": "Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.", - "type": "string" - }, - "values": { - "description": "An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch.", - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "v1beta1.SubjectAccessReviewStatus": { - "description": "SubjectAccessReviewStatus", - "required": [ - "allowed" - ], - "properties": { - "allowed": { - "description": "Allowed is required. True if the action would be allowed, false otherwise.", - "type": "boolean" - }, - "evaluationError": { - "description": "EvaluationError is an indication that some error occurred during the authorization check. It is entirely possible to get an error and be able to continue determine authorization status in spite of it. For instance, RBAC can be missing a role, but enough roles are still present and bound to reason about the request.", - "type": "string" - }, - "reason": { - "description": "Reason is optional. It indicates why a request was allowed or denied.", - "type": "string" - } - } - }, - "v1.RBDVolumeSource": { - "description": "Represents a Rados Block Device mount that lasts the lifetime of a pod. RBD volumes support ownership management and SELinux relabeling.", - "required": [ - "monitors", - "image" - ], - "properties": { - "fsType": { - "description": "Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: http://kubernetes.io/docs/user-guide/volumes#rbd", - "type": "string" - }, - "image": { - "description": "The rados image name. More info: http://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it", - "type": "string" - }, - "keyring": { - "description": "Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: http://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it", - "type": "string" - }, - "monitors": { - "description": "A collection of Ceph monitors. More info: http://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it", - "type": "array", - "items": { - "type": "string" - } - }, - "pool": { - "description": "The rados pool name. Default is rbd. More info: http://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it.", - "type": "string" - }, - "readOnly": { - "description": "ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: http://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it", - "type": "boolean" - }, - "secretRef": { - "description": "SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: http://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it", - "$ref": "#/definitions/v1.LocalObjectReference" - }, - "user": { - "description": "The rados user name. Default is admin. More info: http://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it", - "type": "string" - } - } - }, - "v1.HorizontalPodAutoscalerSpec": { - "description": "specification of a horizontal pod autoscaler.", - "required": [ - "scaleTargetRef", - "maxReplicas" - ], - "properties": { - "maxReplicas": { - "description": "upper limit for the number of pods that can be set by the autoscaler; cannot be smaller than MinReplicas.", - "type": "integer", - "format": "int32" - }, - "minReplicas": { - "description": "lower limit for the number of pods that can be set by the autoscaler, default 1.", - "type": "integer", - "format": "int32" - }, - "scaleTargetRef": { - "description": "reference to scaled resource; horizontal pod autoscaler will learn the current resource consumption and will set the desired number of pods by using its Scale subresource.", - "$ref": "#/definitions/v1.CrossVersionObjectReference" - }, - "targetCPUUtilizationPercentage": { - "description": "target average CPU utilization (represented as a percentage of requested CPU) over all the pods; if not specified the default autoscaling policy will be used.", - "type": "integer", - "format": "int32" - } - } - }, - "v1beta1.StorageClassList": { - "description": "StorageClassList is a collection of storage classes.", - "required": [ - "items" - ], - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "Items is the list of StorageClasses", - "type": "array", - "items": { - "$ref": "#/definitions/v1beta1.StorageClass" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard list metadata More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", - "$ref": "#/definitions/v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "storage.k8s.io", - "Version": "v1beta1", - "Kind": "StorageClassList" - } - ] - }, - "extensions.v1beta1.DeploymentCondition": { - "description": "DeploymentCondition describes the state of a deployment at a certain point.", - "required": [ - "type", - "status" - ], - "properties": { - "lastTransitionTime": { - "description": "Last time the condition transitioned from one status to another.", - "type": "string", - "format": "date-time" - }, - "lastUpdateTime": { - "description": "The last time this condition was updated.", - "type": "string", - "format": "date-time" - }, - "message": { - "description": "A human readable message indicating details about the transition.", - "type": "string" - }, - "reason": { - "description": "The reason for the condition's last transition.", - "type": "string" - }, - "status": { - "description": "Status of the condition, one of True, False, Unknown.", - "type": "string" - }, - "type": { - "description": "Type of deployment condition.", - "type": "string" - } - } - }, - "v1.DownwardAPIVolumeFile": { - "description": "DownwardAPIVolumeFile represents information to create the file containing the pod field", - "required": [ - "path" - ], - "properties": { - "fieldRef": { - "description": "Required: Selects a field of the pod: only annotations, labels, name and namespace are supported.", - "$ref": "#/definitions/v1.ObjectFieldSelector" - }, - "mode": { - "description": "Optional: mode bits to use on this file, must be a value between 0 and 0777. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.", - "type": "integer", - "format": "int32" - }, - "path": { - "description": "Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..'", - "type": "string" - }, - "resourceFieldRef": { - "description": "Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported.", - "$ref": "#/definitions/v1.ResourceFieldSelector" - } - } - }, - "v1.PreferredSchedulingTerm": { - "description": "An empty preferred scheduling term matches all objects with implicit weight 0 (i.e. it's a no-op). A null preferred scheduling term matches no objects (i.e. is also a no-op).", - "required": [ - "weight", - "preference" - ], - "properties": { - "preference": { - "description": "A node selector term, associated with the corresponding weight.", - "$ref": "#/definitions/v1.NodeSelectorTerm" - }, - "weight": { - "description": "Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100.", - "type": "integer", - "format": "int32" - } - } - }, - "v1.NodeSelectorTerm": { - "description": "A null or empty node selector term matches no objects.", - "required": [ - "matchExpressions" - ], - "properties": { - "matchExpressions": { - "description": "Required. A list of node selector requirements. The requirements are ANDed.", - "type": "array", - "items": { - "$ref": "#/definitions/v1.NodeSelectorRequirement" - } - } - } - }, - "v1.LabelSelectorRequirement": { - "description": "A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "description": "key is the label key that the selector applies to.", - "type": "string" - }, - "operator": { - "description": "operator represents a key's relationship to a set of values. Valid operators ard In, NotIn, Exists and DoesNotExist.", - "type": "string" - }, - "values": { - "description": "values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.", - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "v1.GlusterfsVolumeSource": { - "description": "Represents a Glusterfs mount that lasts the lifetime of a pod. Glusterfs volumes do not support ownership management or SELinux relabeling.", - "required": [ - "endpoints", - "path" - ], - "properties": { - "endpoints": { - "description": "EndpointsName is the endpoint name that details Glusterfs topology. More info: http://releases.k8s.io/HEAD/examples/volumes/glusterfs/README.md#create-a-pod", - "type": "string" - }, - "path": { - "description": "Path is the Glusterfs volume path. More info: http://releases.k8s.io/HEAD/examples/volumes/glusterfs/README.md#create-a-pod", - "type": "string" - }, - "readOnly": { - "description": "ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: http://releases.k8s.io/HEAD/examples/volumes/glusterfs/README.md#create-a-pod", - "type": "boolean" - } - } - }, - "apps.v1beta1.DeploymentList": { - "description": "DeploymentList is a list of Deployments.", - "required": [ - "items" - ], - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "Items is the list of Deployments.", - "type": "array", - "items": { - "$ref": "#/definitions/apps.v1beta1.Deployment" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard list metadata.", - "$ref": "#/definitions/v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "apps", - "Version": "v1beta1", - "Kind": "DeploymentList" - } - ] - }, - "v1beta1.SupplementalGroupsStrategyOptions": { - "description": "SupplementalGroupsStrategyOptions defines the strategy type and options used to create the strategy.", - "properties": { - "ranges": { - "description": "Ranges are the allowed ranges of supplemental groups. If you would like to force a single supplemental group then supply a single range with the same start and end.", - "type": "array", - "items": { - "$ref": "#/definitions/v1beta1.IDRange" - } - }, - "rule": { - "description": "Rule is the strategy that will dictate what supplemental groups is used in the SecurityContext.", - "type": "string" - } - } - }, - "v1.ServiceList": { - "description": "ServiceList holds a list of services.", - "required": [ - "items" - ], - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "List of services", - "type": "array", - "items": { - "$ref": "#/definitions/v1.Service" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "$ref": "#/definitions/v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "", - "Version": "v1", - "Kind": "ServiceList" - } - ] - }, - "v1.Node": { - "description": "Node is a worker node in Kubernetes. Each node will have a unique identifier in the cache (i.e. in etcd).", - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", - "type": "string" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", - "$ref": "#/definitions/v1.ObjectMeta" - }, - "spec": { - "description": "Spec defines the behavior of a node. http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status", - "$ref": "#/definitions/v1.NodeSpec" - }, - "status": { - "description": "Most recently observed status of the node. Populated by the system. Read-only. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status", - "$ref": "#/definitions/v1.NodeStatus" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "", - "Version": "v1", - "Kind": "Node" - } - ] - }, - "v1.Container": { - "description": "A single application container that you want to run within a pod.", - "required": [ - "name" - ], - "properties": { - "args": { - "description": "Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/containers#containers-and-commands", - "type": "array", - "items": { - "type": "string" - } - }, - "command": { - "description": "Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/containers#containers-and-commands", - "type": "array", - "items": { - "type": "string" - } - }, - "env": { - "description": "List of environment variables to set in the container. Cannot be updated.", - "type": "array", - "items": { - "$ref": "#/definitions/v1.EnvVar" - } - }, - "envFrom": { - "description": "List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated.", - "type": "array", - "items": { - "$ref": "#/definitions/v1.EnvFromSource" - } - }, - "image": { - "description": "Docker image name. More info: http://kubernetes.io/docs/user-guide/images", - "type": "string" - }, - "imagePullPolicy": { - "description": "Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/images#updating-images", - "type": "string" - }, - "lifecycle": { - "description": "Actions that the management system should take in response to container lifecycle events. Cannot be updated.", - "$ref": "#/definitions/v1.Lifecycle" - }, - "livenessProbe": { - "description": "Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/pod-states#container-probes", - "$ref": "#/definitions/v1.Probe" - }, - "name": { - "description": "Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated.", - "type": "string" - }, - "ports": { - "description": "List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default \"0.0.0.0\" address inside a container will be accessible from the network. Cannot be updated.", - "type": "array", - "items": { - "$ref": "#/definitions/v1.ContainerPort" - } - }, - "readinessProbe": { - "description": "Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/pod-states#container-probes", - "$ref": "#/definitions/v1.Probe" - }, - "resources": { - "description": "Compute Resources required by this container. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#resources", - "$ref": "#/definitions/v1.ResourceRequirements" - }, - "securityContext": { - "description": "Security options the pod should run with. More info: http://releases.k8s.io/HEAD/docs/design/security_context.md", - "$ref": "#/definitions/v1.SecurityContext" - }, - "stdin": { - "description": "Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false.", - "type": "boolean" - }, - "stdinOnce": { - "description": "Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false", - "type": "boolean" - }, - "terminationMessagePath": { - "description": "Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated.", - "type": "string" - }, - "terminationMessagePolicy": { - "description": "Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated.", - "type": "string" - }, - "tty": { - "description": "Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false.", - "type": "boolean" - }, - "volumeMounts": { - "description": "Pod volumes to mount into the container's filesystem. Cannot be updated.", - "type": "array", - "items": { - "$ref": "#/definitions/v1.VolumeMount" - } - }, - "workingDir": { - "description": "Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated.", - "type": "string" - } - } - }, - "v1.GitRepoVolumeSource": { - "description": "Represents a volume that is populated with the contents of a git repository. Git repo volumes do not support ownership management. Git repo volumes support SELinux relabeling.", - "required": [ - "repository" - ], - "properties": { - "directory": { - "description": "Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name.", - "type": "string" - }, - "repository": { - "description": "Repository URL", - "type": "string" - }, - "revision": { - "description": "Commit hash for the specified revision.", - "type": "string" - } - } - }, - "v2alpha1.PodsMetricSource": { - "description": "PodsMetricSource indicates how to scale on a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value.", - "required": [ - "metricName", - "targetAverageValue" - ], - "properties": { - "metricName": { - "description": "metricName is the name of the metric in question", - "type": "string" - }, - "targetAverageValue": { - "description": "targetAverageValue is the target value of the average of the metric across all relevant pods (as a quantity)", - "type": "string" - } - } - }, - "v1.EndpointPort": { - "description": "EndpointPort is a tuple that describes a single port.", - "required": [ - "port" - ], - "properties": { - "name": { - "description": "The name of this port (corresponds to ServicePort.Name). Must be a DNS_LABEL. Optional only if one port is defined.", - "type": "string" - }, - "port": { - "description": "The port number of the endpoint.", - "type": "integer", - "format": "int32" - }, - "protocol": { - "description": "The IP protocol for this port. Must be UDP or TCP. Default is TCP.", - "type": "string" - } - } - }, - "v1beta1.FSGroupStrategyOptions": { - "description": "FSGroupStrategyOptions defines the strategy type and options used to create the strategy.", - "properties": { - "ranges": { - "description": "Ranges are the allowed ranges of fs groups. If you would like to force a single fs group then supply a single range with the same start and end.", - "type": "array", - "items": { - "$ref": "#/definitions/v1beta1.IDRange" - } - }, - "rule": { - "description": "Rule is the strategy that will dictate what FSGroup is used in the SecurityContext.", - "type": "string" - } - } - }, - "v1.JobCondition": { - "description": "JobCondition describes current state of a job.", - "required": [ - "type", - "status" - ], - "properties": { - "lastProbeTime": { - "description": "Last time the condition was checked.", - "type": "string", - "format": "date-time" - }, - "lastTransitionTime": { - "description": "Last time the condition transit from one status to another.", - "type": "string", - "format": "date-time" - }, - "message": { - "description": "Human readable message indicating details about last transition.", - "type": "string" - }, - "reason": { - "description": "(brief) reason for the condition's last transition.", - "type": "string" - }, - "status": { - "description": "Status of the condition, one of True, False, Unknown.", - "type": "string" - }, - "type": { - "description": "Type of job condition, Complete or Failed.", - "type": "string" - } - } - }, - "v1beta1.DaemonSetUpdateStrategy": { - "properties": { - "rollingUpdate": { - "description": "Rolling update config params. Present only if type = \"RollingUpdate\".", - "$ref": "#/definitions/v1beta1.RollingUpdateDaemonSet" - }, - "type": { - "description": "Type of daemon set update. Can be \"RollingUpdate\" or \"OnDelete\". Default is OnDelete.", - "type": "string" - } - } - }, - "v1beta1.PolicyRule": { - "description": "PolicyRule holds information that describes a policy rule, but does not contain information about who the rule applies to or which namespace the rule applies to.", - "required": [ - "verbs" - ], - "properties": { - "apiGroups": { - "description": "APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed.", - "type": "array", - "items": { - "type": "string" - } - }, - "nonResourceURLs": { - "description": "NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules can either apply to API resources (such as \"pods\" or \"secrets\") or non-resource URL paths (such as \"/api\"), but not both.", - "type": "array", - "items": { - "type": "string" - } - }, - "resourceNames": { - "description": "ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed.", - "type": "array", - "items": { - "type": "string" - } - }, - "resources": { - "description": "Resources is a list of resources this rule applies to. ResourceAll represents all resources.", - "type": "array", - "items": { - "type": "string" - } - }, - "verbs": { - "description": "Verbs is a list of Verbs that apply to ALL the ResourceKinds and AttributeRestrictions contained in this rule. VerbAll represents all kinds.", - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "v1.NamespaceStatus": { - "description": "NamespaceStatus is information about the current status of a Namespace.", - "properties": { - "phase": { - "description": "Phase is the current lifecycle phase of the namespace. More info: http://releases.k8s.io/HEAD/docs/design/namespaces.md#phases", - "type": "string" - } - } - }, - "v1beta1.NetworkPolicySpec": { - "required": [ - "podSelector" - ], - "properties": { - "ingress": { - "description": "List of ingress rules to be applied to the selected pods. Traffic is allowed to a pod if namespace.networkPolicy.ingress.isolation is undefined and cluster policy allows it, OR if the traffic source is the pod's local node, OR if the traffic matches at least one ingress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy does not affect ingress isolation. If this field is present and contains at least one rule, this policy allows any traffic which matches at least one of the ingress rules in this list.", - "type": "array", - "items": { - "$ref": "#/definitions/v1beta1.NetworkPolicyIngressRule" - } - }, - "podSelector": { - "description": "Selects the pods to which this NetworkPolicy object applies. The array of ingress rules is applied to any pods selected by this field. Multiple network policies can select the same set of pods. In this case, the ingress rules for each are combined additively. This field is NOT optional and follows standard label selector semantics. An empty podSelector matches all pods in this namespace.", - "$ref": "#/definitions/v1.LabelSelector" - } - } - }, - "v1.PodAntiAffinity": { - "description": "Pod anti affinity is a group of inter pod anti affinity scheduling rules.", - "properties": { - "preferredDuringSchedulingIgnoredDuringExecution": { - "description": "The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred.", - "type": "array", - "items": { - "$ref": "#/definitions/v1.WeightedPodAffinityTerm" - } - }, - "requiredDuringSchedulingIgnoredDuringExecution": { - "description": "NOT YET IMPLEMENTED. TODO: Uncomment field once it is implemented. If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system will try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. RequiredDuringSchedulingRequiredDuringExecution []PodAffinityTerm `json:\"requiredDuringSchedulingRequiredDuringExecution,omitempty\"` If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied.", - "type": "array", - "items": { - "$ref": "#/definitions/v1.PodAffinityTerm" - } - } - } - }, - "v1alpha1.ClusterRoleBindingList": { - "description": "ClusterRoleBindingList is a collection of ClusterRoleBindings", - "required": [ - "items" - ], - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "Items is a list of ClusterRoleBindings", - "type": "array", - "items": { - "$ref": "#/definitions/v1alpha1.ClusterRoleBinding" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object's metadata.", - "$ref": "#/definitions/v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "Group": "rbac.authorization.k8s.io", - "Version": "v1alpha1", - "Kind": "ClusterRoleBindingList" - } - ] - }, - "v1.EnvVarSource": { - "description": "EnvVarSource represents a source for the value of an EnvVar.", - "properties": { - "configMapKeyRef": { - "description": "Selects a key of a ConfigMap.", - "$ref": "#/definitions/v1.ConfigMapKeySelector" - }, - "fieldRef": { - "description": "Selects a field of the pod: supports metadata.name, metadata.namespace, metadata.labels, metadata.annotations, spec.nodeName, spec.serviceAccountName, status.podIP.", - "$ref": "#/definitions/v1.ObjectFieldSelector" - }, - "resourceFieldRef": { - "description": "Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported.", - "$ref": "#/definitions/v1.ResourceFieldSelector" - }, - "secretKeyRef": { - "description": "Selects a key of a secret in the pod's namespace", - "$ref": "#/definitions/v1.SecretKeySelector" - } - } - }, - "v1beta1.HTTPIngressRuleValue": { - "description": "HTTPIngressRuleValue is a list of http selectors pointing to backends. In the example: http:///? -> backend where where parts of the url correspond to RFC 3986, this resource will be used to match against everything after the last '/' and before the first '?' or '#'.", - "required": [ - "paths" - ], - "properties": { - "paths": { - "description": "A collection of paths that map requests to backends.", - "type": "array", - "items": { - "$ref": "#/definitions/v1beta1.HTTPIngressPath" - } - } - } - }, - "v2alpha1.PodsMetricStatus": { - "description": "PodsMetricStatus indicates the current value of a metric describing each pod in the current scale target (for example, transactions-processed-per-second).", - "required": [ - "metricName", - "currentAverageValue" - ], - "properties": { - "currentAverageValue": { - "description": "currentAverageValue is the current value of the average of the metric across all relevant pods (as a quantity)", - "type": "string" - }, - "metricName": { - "description": "metricName is the name of the metric in question", - "type": "string" - } - } - }, - "v1.LoadBalancerIngress": { - "description": "LoadBalancerIngress represents the status of a load-balancer ingress point: traffic intended for the service should be sent to an ingress point.", - "properties": { - "hostname": { - "description": "Hostname is set for load-balancer ingress points that are DNS based (typically AWS load-balancers)", - "type": "string" - }, - "ip": { - "description": "IP is set for load-balancer ingress points that are IP based (typically GCE or OpenStack load-balancers)", - "type": "string" - } - } - }, - "v1beta1.NetworkPolicyPort": { - "properties": { - "port": { - "description": "If specified, the port on the given protocol. This can either be a numerical or named port on a pod. If this field is not provided, this matches all port names and numbers. If present, only traffic on the specified protocol AND port will be matched.", - "type": "string", - "format": "int-or-string" - }, - "protocol": { - "description": "Optional. The protocol (TCP or UDP) which traffic must match. If not specified, this field defaults to TCP.", - "type": "string" - } - } - } - }, - "securityDefinitions": { - "BearerToken": { - "description": "Bearer Token authentication", - "type": "apiKey", - "name": "authorization", - "in": "header" - } - }, - "security": [ - { - "BearerToken": [] - } - ] -} \ No newline at end of file diff --git a/kubernetes/test/api/ApisApi.spec.js b/kubernetes/test/api/ApisApi.spec.js deleted file mode 100644 index 63c37eba27..0000000000 --- a/kubernetes/test/api/ApisApi.spec.js +++ /dev/null @@ -1,63 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.ApisApi(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('ApisApi', function() { - describe('getAPIVersions', function() { - it('should call getAPIVersions successfully', function(done) { - //uncomment below and update the code to test getAPIVersions - //instance.getAPIVersions(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - }); - -})); diff --git a/kubernetes/test/api/AppsApi.spec.js b/kubernetes/test/api/AppsApi.spec.js deleted file mode 100644 index 8485b389c6..0000000000 --- a/kubernetes/test/api/AppsApi.spec.js +++ /dev/null @@ -1,63 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.AppsApi(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('AppsApi', function() { - describe('getAPIGroup', function() { - it('should call getAPIGroup successfully', function(done) { - //uncomment below and update the code to test getAPIGroup - //instance.getAPIGroup(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - }); - -})); diff --git a/kubernetes/test/api/Apps_v1beta1Api.spec.js b/kubernetes/test/api/Apps_v1beta1Api.spec.js deleted file mode 100644 index 34edd0169e..0000000000 --- a/kubernetes/test/api/Apps_v1beta1Api.spec.js +++ /dev/null @@ -1,323 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.Apps_v1beta1Api(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('Apps_v1beta1Api', function() { - describe('createNamespacedDeployment', function() { - it('should call createNamespacedDeployment successfully', function(done) { - //uncomment below and update the code to test createNamespacedDeployment - //instance.createNamespacedDeployment(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('createNamespacedDeploymentRollbackRollback', function() { - it('should call createNamespacedDeploymentRollbackRollback successfully', function(done) { - //uncomment below and update the code to test createNamespacedDeploymentRollbackRollback - //instance.createNamespacedDeploymentRollbackRollback(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('createNamespacedStatefulSet', function() { - it('should call createNamespacedStatefulSet successfully', function(done) { - //uncomment below and update the code to test createNamespacedStatefulSet - //instance.createNamespacedStatefulSet(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('deleteCollectionNamespacedDeployment', function() { - it('should call deleteCollectionNamespacedDeployment successfully', function(done) { - //uncomment below and update the code to test deleteCollectionNamespacedDeployment - //instance.deleteCollectionNamespacedDeployment(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('deleteCollectionNamespacedStatefulSet', function() { - it('should call deleteCollectionNamespacedStatefulSet successfully', function(done) { - //uncomment below and update the code to test deleteCollectionNamespacedStatefulSet - //instance.deleteCollectionNamespacedStatefulSet(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('deleteNamespacedDeployment', function() { - it('should call deleteNamespacedDeployment successfully', function(done) { - //uncomment below and update the code to test deleteNamespacedDeployment - //instance.deleteNamespacedDeployment(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('deleteNamespacedStatefulSet', function() { - it('should call deleteNamespacedStatefulSet successfully', function(done) { - //uncomment below and update the code to test deleteNamespacedStatefulSet - //instance.deleteNamespacedStatefulSet(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('getAPIResources', function() { - it('should call getAPIResources successfully', function(done) { - //uncomment below and update the code to test getAPIResources - //instance.getAPIResources(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('listDeploymentForAllNamespaces', function() { - it('should call listDeploymentForAllNamespaces successfully', function(done) { - //uncomment below and update the code to test listDeploymentForAllNamespaces - //instance.listDeploymentForAllNamespaces(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('listNamespacedDeployment', function() { - it('should call listNamespacedDeployment successfully', function(done) { - //uncomment below and update the code to test listNamespacedDeployment - //instance.listNamespacedDeployment(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('listNamespacedStatefulSet', function() { - it('should call listNamespacedStatefulSet successfully', function(done) { - //uncomment below and update the code to test listNamespacedStatefulSet - //instance.listNamespacedStatefulSet(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('listStatefulSetForAllNamespaces', function() { - it('should call listStatefulSetForAllNamespaces successfully', function(done) { - //uncomment below and update the code to test listStatefulSetForAllNamespaces - //instance.listStatefulSetForAllNamespaces(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('patchNamespacedDeployment', function() { - it('should call patchNamespacedDeployment successfully', function(done) { - //uncomment below and update the code to test patchNamespacedDeployment - //instance.patchNamespacedDeployment(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('patchNamespacedDeploymentStatus', function() { - it('should call patchNamespacedDeploymentStatus successfully', function(done) { - //uncomment below and update the code to test patchNamespacedDeploymentStatus - //instance.patchNamespacedDeploymentStatus(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('patchNamespacedScaleScale', function() { - it('should call patchNamespacedScaleScale successfully', function(done) { - //uncomment below and update the code to test patchNamespacedScaleScale - //instance.patchNamespacedScaleScale(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('patchNamespacedStatefulSet', function() { - it('should call patchNamespacedStatefulSet successfully', function(done) { - //uncomment below and update the code to test patchNamespacedStatefulSet - //instance.patchNamespacedStatefulSet(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('patchNamespacedStatefulSetStatus', function() { - it('should call patchNamespacedStatefulSetStatus successfully', function(done) { - //uncomment below and update the code to test patchNamespacedStatefulSetStatus - //instance.patchNamespacedStatefulSetStatus(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('readNamespacedDeployment', function() { - it('should call readNamespacedDeployment successfully', function(done) { - //uncomment below and update the code to test readNamespacedDeployment - //instance.readNamespacedDeployment(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('readNamespacedDeploymentStatus', function() { - it('should call readNamespacedDeploymentStatus successfully', function(done) { - //uncomment below and update the code to test readNamespacedDeploymentStatus - //instance.readNamespacedDeploymentStatus(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('readNamespacedScaleScale', function() { - it('should call readNamespacedScaleScale successfully', function(done) { - //uncomment below and update the code to test readNamespacedScaleScale - //instance.readNamespacedScaleScale(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('readNamespacedStatefulSet', function() { - it('should call readNamespacedStatefulSet successfully', function(done) { - //uncomment below and update the code to test readNamespacedStatefulSet - //instance.readNamespacedStatefulSet(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('readNamespacedStatefulSetStatus', function() { - it('should call readNamespacedStatefulSetStatus successfully', function(done) { - //uncomment below and update the code to test readNamespacedStatefulSetStatus - //instance.readNamespacedStatefulSetStatus(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('replaceNamespacedDeployment', function() { - it('should call replaceNamespacedDeployment successfully', function(done) { - //uncomment below and update the code to test replaceNamespacedDeployment - //instance.replaceNamespacedDeployment(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('replaceNamespacedDeploymentStatus', function() { - it('should call replaceNamespacedDeploymentStatus successfully', function(done) { - //uncomment below and update the code to test replaceNamespacedDeploymentStatus - //instance.replaceNamespacedDeploymentStatus(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('replaceNamespacedScaleScale', function() { - it('should call replaceNamespacedScaleScale successfully', function(done) { - //uncomment below and update the code to test replaceNamespacedScaleScale - //instance.replaceNamespacedScaleScale(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('replaceNamespacedStatefulSet', function() { - it('should call replaceNamespacedStatefulSet successfully', function(done) { - //uncomment below and update the code to test replaceNamespacedStatefulSet - //instance.replaceNamespacedStatefulSet(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('replaceNamespacedStatefulSetStatus', function() { - it('should call replaceNamespacedStatefulSetStatus successfully', function(done) { - //uncomment below and update the code to test replaceNamespacedStatefulSetStatus - //instance.replaceNamespacedStatefulSetStatus(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - }); - -})); diff --git a/kubernetes/test/api/AuthenticationApi.spec.js b/kubernetes/test/api/AuthenticationApi.spec.js deleted file mode 100644 index 29bb324f70..0000000000 --- a/kubernetes/test/api/AuthenticationApi.spec.js +++ /dev/null @@ -1,63 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.AuthenticationApi(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('AuthenticationApi', function() { - describe('getAPIGroup', function() { - it('should call getAPIGroup successfully', function(done) { - //uncomment below and update the code to test getAPIGroup - //instance.getAPIGroup(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - }); - -})); diff --git a/kubernetes/test/api/Authentication_v1Api.spec.js b/kubernetes/test/api/Authentication_v1Api.spec.js deleted file mode 100644 index 3f8b6956ac..0000000000 --- a/kubernetes/test/api/Authentication_v1Api.spec.js +++ /dev/null @@ -1,73 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.Authentication_v1Api(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('Authentication_v1Api', function() { - describe('createTokenReview', function() { - it('should call createTokenReview successfully', function(done) { - //uncomment below and update the code to test createTokenReview - //instance.createTokenReview(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('getAPIResources', function() { - it('should call getAPIResources successfully', function(done) { - //uncomment below and update the code to test getAPIResources - //instance.getAPIResources(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - }); - -})); diff --git a/kubernetes/test/api/Authentication_v1beta1Api.spec.js b/kubernetes/test/api/Authentication_v1beta1Api.spec.js deleted file mode 100644 index 99ccbecabb..0000000000 --- a/kubernetes/test/api/Authentication_v1beta1Api.spec.js +++ /dev/null @@ -1,73 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.Authentication_v1beta1Api(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('Authentication_v1beta1Api', function() { - describe('createTokenReview', function() { - it('should call createTokenReview successfully', function(done) { - //uncomment below and update the code to test createTokenReview - //instance.createTokenReview(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('getAPIResources', function() { - it('should call getAPIResources successfully', function(done) { - //uncomment below and update the code to test getAPIResources - //instance.getAPIResources(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - }); - -})); diff --git a/kubernetes/test/api/AuthorizationApi.spec.js b/kubernetes/test/api/AuthorizationApi.spec.js deleted file mode 100644 index 530a5a3d6a..0000000000 --- a/kubernetes/test/api/AuthorizationApi.spec.js +++ /dev/null @@ -1,63 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.AuthorizationApi(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('AuthorizationApi', function() { - describe('getAPIGroup', function() { - it('should call getAPIGroup successfully', function(done) { - //uncomment below and update the code to test getAPIGroup - //instance.getAPIGroup(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - }); - -})); diff --git a/kubernetes/test/api/Authorization_v1Api.spec.js b/kubernetes/test/api/Authorization_v1Api.spec.js deleted file mode 100644 index 1f2908124f..0000000000 --- a/kubernetes/test/api/Authorization_v1Api.spec.js +++ /dev/null @@ -1,93 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.Authorization_v1Api(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('Authorization_v1Api', function() { - describe('createNamespacedLocalSubjectAccessReview', function() { - it('should call createNamespacedLocalSubjectAccessReview successfully', function(done) { - //uncomment below and update the code to test createNamespacedLocalSubjectAccessReview - //instance.createNamespacedLocalSubjectAccessReview(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('createSelfSubjectAccessReview', function() { - it('should call createSelfSubjectAccessReview successfully', function(done) { - //uncomment below and update the code to test createSelfSubjectAccessReview - //instance.createSelfSubjectAccessReview(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('createSubjectAccessReview', function() { - it('should call createSubjectAccessReview successfully', function(done) { - //uncomment below and update the code to test createSubjectAccessReview - //instance.createSubjectAccessReview(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('getAPIResources', function() { - it('should call getAPIResources successfully', function(done) { - //uncomment below and update the code to test getAPIResources - //instance.getAPIResources(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - }); - -})); diff --git a/kubernetes/test/api/Authorization_v1beta1Api.spec.js b/kubernetes/test/api/Authorization_v1beta1Api.spec.js deleted file mode 100644 index db1d4f4324..0000000000 --- a/kubernetes/test/api/Authorization_v1beta1Api.spec.js +++ /dev/null @@ -1,93 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.Authorization_v1beta1Api(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('Authorization_v1beta1Api', function() { - describe('createNamespacedLocalSubjectAccessReview', function() { - it('should call createNamespacedLocalSubjectAccessReview successfully', function(done) { - //uncomment below and update the code to test createNamespacedLocalSubjectAccessReview - //instance.createNamespacedLocalSubjectAccessReview(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('createSelfSubjectAccessReview', function() { - it('should call createSelfSubjectAccessReview successfully', function(done) { - //uncomment below and update the code to test createSelfSubjectAccessReview - //instance.createSelfSubjectAccessReview(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('createSubjectAccessReview', function() { - it('should call createSubjectAccessReview successfully', function(done) { - //uncomment below and update the code to test createSubjectAccessReview - //instance.createSubjectAccessReview(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('getAPIResources', function() { - it('should call getAPIResources successfully', function(done) { - //uncomment below and update the code to test getAPIResources - //instance.getAPIResources(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - }); - -})); diff --git a/kubernetes/test/api/AutoscalingApi.spec.js b/kubernetes/test/api/AutoscalingApi.spec.js deleted file mode 100644 index 30392bee4d..0000000000 --- a/kubernetes/test/api/AutoscalingApi.spec.js +++ /dev/null @@ -1,63 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.AutoscalingApi(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('AutoscalingApi', function() { - describe('getAPIGroup', function() { - it('should call getAPIGroup successfully', function(done) { - //uncomment below and update the code to test getAPIGroup - //instance.getAPIGroup(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - }); - -})); diff --git a/kubernetes/test/api/Autoscaling_v1Api.spec.js b/kubernetes/test/api/Autoscaling_v1Api.spec.js deleted file mode 100644 index 9a36a62742..0000000000 --- a/kubernetes/test/api/Autoscaling_v1Api.spec.js +++ /dev/null @@ -1,173 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.Autoscaling_v1Api(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('Autoscaling_v1Api', function() { - describe('createNamespacedHorizontalPodAutoscaler', function() { - it('should call createNamespacedHorizontalPodAutoscaler successfully', function(done) { - //uncomment below and update the code to test createNamespacedHorizontalPodAutoscaler - //instance.createNamespacedHorizontalPodAutoscaler(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('deleteCollectionNamespacedHorizontalPodAutoscaler', function() { - it('should call deleteCollectionNamespacedHorizontalPodAutoscaler successfully', function(done) { - //uncomment below and update the code to test deleteCollectionNamespacedHorizontalPodAutoscaler - //instance.deleteCollectionNamespacedHorizontalPodAutoscaler(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('deleteNamespacedHorizontalPodAutoscaler', function() { - it('should call deleteNamespacedHorizontalPodAutoscaler successfully', function(done) { - //uncomment below and update the code to test deleteNamespacedHorizontalPodAutoscaler - //instance.deleteNamespacedHorizontalPodAutoscaler(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('getAPIResources', function() { - it('should call getAPIResources successfully', function(done) { - //uncomment below and update the code to test getAPIResources - //instance.getAPIResources(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('listHorizontalPodAutoscalerForAllNamespaces', function() { - it('should call listHorizontalPodAutoscalerForAllNamespaces successfully', function(done) { - //uncomment below and update the code to test listHorizontalPodAutoscalerForAllNamespaces - //instance.listHorizontalPodAutoscalerForAllNamespaces(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('listNamespacedHorizontalPodAutoscaler', function() { - it('should call listNamespacedHorizontalPodAutoscaler successfully', function(done) { - //uncomment below and update the code to test listNamespacedHorizontalPodAutoscaler - //instance.listNamespacedHorizontalPodAutoscaler(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('patchNamespacedHorizontalPodAutoscaler', function() { - it('should call patchNamespacedHorizontalPodAutoscaler successfully', function(done) { - //uncomment below and update the code to test patchNamespacedHorizontalPodAutoscaler - //instance.patchNamespacedHorizontalPodAutoscaler(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('patchNamespacedHorizontalPodAutoscalerStatus', function() { - it('should call patchNamespacedHorizontalPodAutoscalerStatus successfully', function(done) { - //uncomment below and update the code to test patchNamespacedHorizontalPodAutoscalerStatus - //instance.patchNamespacedHorizontalPodAutoscalerStatus(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('readNamespacedHorizontalPodAutoscaler', function() { - it('should call readNamespacedHorizontalPodAutoscaler successfully', function(done) { - //uncomment below and update the code to test readNamespacedHorizontalPodAutoscaler - //instance.readNamespacedHorizontalPodAutoscaler(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('readNamespacedHorizontalPodAutoscalerStatus', function() { - it('should call readNamespacedHorizontalPodAutoscalerStatus successfully', function(done) { - //uncomment below and update the code to test readNamespacedHorizontalPodAutoscalerStatus - //instance.readNamespacedHorizontalPodAutoscalerStatus(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('replaceNamespacedHorizontalPodAutoscaler', function() { - it('should call replaceNamespacedHorizontalPodAutoscaler successfully', function(done) { - //uncomment below and update the code to test replaceNamespacedHorizontalPodAutoscaler - //instance.replaceNamespacedHorizontalPodAutoscaler(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('replaceNamespacedHorizontalPodAutoscalerStatus', function() { - it('should call replaceNamespacedHorizontalPodAutoscalerStatus successfully', function(done) { - //uncomment below and update the code to test replaceNamespacedHorizontalPodAutoscalerStatus - //instance.replaceNamespacedHorizontalPodAutoscalerStatus(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - }); - -})); diff --git a/kubernetes/test/api/Autoscaling_v2alpha1Api.spec.js b/kubernetes/test/api/Autoscaling_v2alpha1Api.spec.js deleted file mode 100644 index 8347c8a396..0000000000 --- a/kubernetes/test/api/Autoscaling_v2alpha1Api.spec.js +++ /dev/null @@ -1,173 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.Autoscaling_v2alpha1Api(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('Autoscaling_v2alpha1Api', function() { - describe('createNamespacedHorizontalPodAutoscaler', function() { - it('should call createNamespacedHorizontalPodAutoscaler successfully', function(done) { - //uncomment below and update the code to test createNamespacedHorizontalPodAutoscaler - //instance.createNamespacedHorizontalPodAutoscaler(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('deleteCollectionNamespacedHorizontalPodAutoscaler', function() { - it('should call deleteCollectionNamespacedHorizontalPodAutoscaler successfully', function(done) { - //uncomment below and update the code to test deleteCollectionNamespacedHorizontalPodAutoscaler - //instance.deleteCollectionNamespacedHorizontalPodAutoscaler(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('deleteNamespacedHorizontalPodAutoscaler', function() { - it('should call deleteNamespacedHorizontalPodAutoscaler successfully', function(done) { - //uncomment below and update the code to test deleteNamespacedHorizontalPodAutoscaler - //instance.deleteNamespacedHorizontalPodAutoscaler(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('getAPIResources', function() { - it('should call getAPIResources successfully', function(done) { - //uncomment below and update the code to test getAPIResources - //instance.getAPIResources(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('listHorizontalPodAutoscalerForAllNamespaces', function() { - it('should call listHorizontalPodAutoscalerForAllNamespaces successfully', function(done) { - //uncomment below and update the code to test listHorizontalPodAutoscalerForAllNamespaces - //instance.listHorizontalPodAutoscalerForAllNamespaces(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('listNamespacedHorizontalPodAutoscaler', function() { - it('should call listNamespacedHorizontalPodAutoscaler successfully', function(done) { - //uncomment below and update the code to test listNamespacedHorizontalPodAutoscaler - //instance.listNamespacedHorizontalPodAutoscaler(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('patchNamespacedHorizontalPodAutoscaler', function() { - it('should call patchNamespacedHorizontalPodAutoscaler successfully', function(done) { - //uncomment below and update the code to test patchNamespacedHorizontalPodAutoscaler - //instance.patchNamespacedHorizontalPodAutoscaler(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('patchNamespacedHorizontalPodAutoscalerStatus', function() { - it('should call patchNamespacedHorizontalPodAutoscalerStatus successfully', function(done) { - //uncomment below and update the code to test patchNamespacedHorizontalPodAutoscalerStatus - //instance.patchNamespacedHorizontalPodAutoscalerStatus(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('readNamespacedHorizontalPodAutoscaler', function() { - it('should call readNamespacedHorizontalPodAutoscaler successfully', function(done) { - //uncomment below and update the code to test readNamespacedHorizontalPodAutoscaler - //instance.readNamespacedHorizontalPodAutoscaler(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('readNamespacedHorizontalPodAutoscalerStatus', function() { - it('should call readNamespacedHorizontalPodAutoscalerStatus successfully', function(done) { - //uncomment below and update the code to test readNamespacedHorizontalPodAutoscalerStatus - //instance.readNamespacedHorizontalPodAutoscalerStatus(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('replaceNamespacedHorizontalPodAutoscaler', function() { - it('should call replaceNamespacedHorizontalPodAutoscaler successfully', function(done) { - //uncomment below and update the code to test replaceNamespacedHorizontalPodAutoscaler - //instance.replaceNamespacedHorizontalPodAutoscaler(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('replaceNamespacedHorizontalPodAutoscalerStatus', function() { - it('should call replaceNamespacedHorizontalPodAutoscalerStatus successfully', function(done) { - //uncomment below and update the code to test replaceNamespacedHorizontalPodAutoscalerStatus - //instance.replaceNamespacedHorizontalPodAutoscalerStatus(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - }); - -})); diff --git a/kubernetes/test/api/BatchApi.spec.js b/kubernetes/test/api/BatchApi.spec.js deleted file mode 100644 index bdfa2cd402..0000000000 --- a/kubernetes/test/api/BatchApi.spec.js +++ /dev/null @@ -1,63 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.BatchApi(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('BatchApi', function() { - describe('getAPIGroup', function() { - it('should call getAPIGroup successfully', function(done) { - //uncomment below and update the code to test getAPIGroup - //instance.getAPIGroup(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - }); - -})); diff --git a/kubernetes/test/api/Batch_v1Api.spec.js b/kubernetes/test/api/Batch_v1Api.spec.js deleted file mode 100644 index 3220cad582..0000000000 --- a/kubernetes/test/api/Batch_v1Api.spec.js +++ /dev/null @@ -1,173 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.Batch_v1Api(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('Batch_v1Api', function() { - describe('createNamespacedJob', function() { - it('should call createNamespacedJob successfully', function(done) { - //uncomment below and update the code to test createNamespacedJob - //instance.createNamespacedJob(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('deleteCollectionNamespacedJob', function() { - it('should call deleteCollectionNamespacedJob successfully', function(done) { - //uncomment below and update the code to test deleteCollectionNamespacedJob - //instance.deleteCollectionNamespacedJob(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('deleteNamespacedJob', function() { - it('should call deleteNamespacedJob successfully', function(done) { - //uncomment below and update the code to test deleteNamespacedJob - //instance.deleteNamespacedJob(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('getAPIResources', function() { - it('should call getAPIResources successfully', function(done) { - //uncomment below and update the code to test getAPIResources - //instance.getAPIResources(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('listJobForAllNamespaces', function() { - it('should call listJobForAllNamespaces successfully', function(done) { - //uncomment below and update the code to test listJobForAllNamespaces - //instance.listJobForAllNamespaces(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('listNamespacedJob', function() { - it('should call listNamespacedJob successfully', function(done) { - //uncomment below and update the code to test listNamespacedJob - //instance.listNamespacedJob(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('patchNamespacedJob', function() { - it('should call patchNamespacedJob successfully', function(done) { - //uncomment below and update the code to test patchNamespacedJob - //instance.patchNamespacedJob(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('patchNamespacedJobStatus', function() { - it('should call patchNamespacedJobStatus successfully', function(done) { - //uncomment below and update the code to test patchNamespacedJobStatus - //instance.patchNamespacedJobStatus(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('readNamespacedJob', function() { - it('should call readNamespacedJob successfully', function(done) { - //uncomment below and update the code to test readNamespacedJob - //instance.readNamespacedJob(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('readNamespacedJobStatus', function() { - it('should call readNamespacedJobStatus successfully', function(done) { - //uncomment below and update the code to test readNamespacedJobStatus - //instance.readNamespacedJobStatus(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('replaceNamespacedJob', function() { - it('should call replaceNamespacedJob successfully', function(done) { - //uncomment below and update the code to test replaceNamespacedJob - //instance.replaceNamespacedJob(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('replaceNamespacedJobStatus', function() { - it('should call replaceNamespacedJobStatus successfully', function(done) { - //uncomment below and update the code to test replaceNamespacedJobStatus - //instance.replaceNamespacedJobStatus(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - }); - -})); diff --git a/kubernetes/test/api/Batch_v2alpha1Api.spec.js b/kubernetes/test/api/Batch_v2alpha1Api.spec.js deleted file mode 100644 index 16f692086f..0000000000 --- a/kubernetes/test/api/Batch_v2alpha1Api.spec.js +++ /dev/null @@ -1,283 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.Batch_v2alpha1Api(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('Batch_v2alpha1Api', function() { - describe('createNamespacedCronJob', function() { - it('should call createNamespacedCronJob successfully', function(done) { - //uncomment below and update the code to test createNamespacedCronJob - //instance.createNamespacedCronJob(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('createNamespacedScheduledJob', function() { - it('should call createNamespacedScheduledJob successfully', function(done) { - //uncomment below and update the code to test createNamespacedScheduledJob - //instance.createNamespacedScheduledJob(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('deleteCollectionNamespacedCronJob', function() { - it('should call deleteCollectionNamespacedCronJob successfully', function(done) { - //uncomment below and update the code to test deleteCollectionNamespacedCronJob - //instance.deleteCollectionNamespacedCronJob(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('deleteCollectionNamespacedScheduledJob', function() { - it('should call deleteCollectionNamespacedScheduledJob successfully', function(done) { - //uncomment below and update the code to test deleteCollectionNamespacedScheduledJob - //instance.deleteCollectionNamespacedScheduledJob(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('deleteNamespacedCronJob', function() { - it('should call deleteNamespacedCronJob successfully', function(done) { - //uncomment below and update the code to test deleteNamespacedCronJob - //instance.deleteNamespacedCronJob(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('deleteNamespacedScheduledJob', function() { - it('should call deleteNamespacedScheduledJob successfully', function(done) { - //uncomment below and update the code to test deleteNamespacedScheduledJob - //instance.deleteNamespacedScheduledJob(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('getAPIResources', function() { - it('should call getAPIResources successfully', function(done) { - //uncomment below and update the code to test getAPIResources - //instance.getAPIResources(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('listCronJobForAllNamespaces', function() { - it('should call listCronJobForAllNamespaces successfully', function(done) { - //uncomment below and update the code to test listCronJobForAllNamespaces - //instance.listCronJobForAllNamespaces(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('listNamespacedCronJob', function() { - it('should call listNamespacedCronJob successfully', function(done) { - //uncomment below and update the code to test listNamespacedCronJob - //instance.listNamespacedCronJob(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('listNamespacedScheduledJob', function() { - it('should call listNamespacedScheduledJob successfully', function(done) { - //uncomment below and update the code to test listNamespacedScheduledJob - //instance.listNamespacedScheduledJob(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('listScheduledJobForAllNamespaces', function() { - it('should call listScheduledJobForAllNamespaces successfully', function(done) { - //uncomment below and update the code to test listScheduledJobForAllNamespaces - //instance.listScheduledJobForAllNamespaces(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('patchNamespacedCronJob', function() { - it('should call patchNamespacedCronJob successfully', function(done) { - //uncomment below and update the code to test patchNamespacedCronJob - //instance.patchNamespacedCronJob(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('patchNamespacedCronJobStatus', function() { - it('should call patchNamespacedCronJobStatus successfully', function(done) { - //uncomment below and update the code to test patchNamespacedCronJobStatus - //instance.patchNamespacedCronJobStatus(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('patchNamespacedScheduledJob', function() { - it('should call patchNamespacedScheduledJob successfully', function(done) { - //uncomment below and update the code to test patchNamespacedScheduledJob - //instance.patchNamespacedScheduledJob(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('patchNamespacedScheduledJobStatus', function() { - it('should call patchNamespacedScheduledJobStatus successfully', function(done) { - //uncomment below and update the code to test patchNamespacedScheduledJobStatus - //instance.patchNamespacedScheduledJobStatus(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('readNamespacedCronJob', function() { - it('should call readNamespacedCronJob successfully', function(done) { - //uncomment below and update the code to test readNamespacedCronJob - //instance.readNamespacedCronJob(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('readNamespacedCronJobStatus', function() { - it('should call readNamespacedCronJobStatus successfully', function(done) { - //uncomment below and update the code to test readNamespacedCronJobStatus - //instance.readNamespacedCronJobStatus(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('readNamespacedScheduledJob', function() { - it('should call readNamespacedScheduledJob successfully', function(done) { - //uncomment below and update the code to test readNamespacedScheduledJob - //instance.readNamespacedScheduledJob(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('readNamespacedScheduledJobStatus', function() { - it('should call readNamespacedScheduledJobStatus successfully', function(done) { - //uncomment below and update the code to test readNamespacedScheduledJobStatus - //instance.readNamespacedScheduledJobStatus(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('replaceNamespacedCronJob', function() { - it('should call replaceNamespacedCronJob successfully', function(done) { - //uncomment below and update the code to test replaceNamespacedCronJob - //instance.replaceNamespacedCronJob(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('replaceNamespacedCronJobStatus', function() { - it('should call replaceNamespacedCronJobStatus successfully', function(done) { - //uncomment below and update the code to test replaceNamespacedCronJobStatus - //instance.replaceNamespacedCronJobStatus(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('replaceNamespacedScheduledJob', function() { - it('should call replaceNamespacedScheduledJob successfully', function(done) { - //uncomment below and update the code to test replaceNamespacedScheduledJob - //instance.replaceNamespacedScheduledJob(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('replaceNamespacedScheduledJobStatus', function() { - it('should call replaceNamespacedScheduledJobStatus successfully', function(done) { - //uncomment below and update the code to test replaceNamespacedScheduledJobStatus - //instance.replaceNamespacedScheduledJobStatus(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - }); - -})); diff --git a/kubernetes/test/api/CertificatesApi.spec.js b/kubernetes/test/api/CertificatesApi.spec.js deleted file mode 100644 index 8c6f034065..0000000000 --- a/kubernetes/test/api/CertificatesApi.spec.js +++ /dev/null @@ -1,63 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.CertificatesApi(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('CertificatesApi', function() { - describe('getAPIGroup', function() { - it('should call getAPIGroup successfully', function(done) { - //uncomment below and update the code to test getAPIGroup - //instance.getAPIGroup(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - }); - -})); diff --git a/kubernetes/test/api/Certificates_v1beta1Api.spec.js b/kubernetes/test/api/Certificates_v1beta1Api.spec.js deleted file mode 100644 index 7de16ddea2..0000000000 --- a/kubernetes/test/api/Certificates_v1beta1Api.spec.js +++ /dev/null @@ -1,153 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.Certificates_v1beta1Api(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('Certificates_v1beta1Api', function() { - describe('createCertificateSigningRequest', function() { - it('should call createCertificateSigningRequest successfully', function(done) { - //uncomment below and update the code to test createCertificateSigningRequest - //instance.createCertificateSigningRequest(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('deleteCertificateSigningRequest', function() { - it('should call deleteCertificateSigningRequest successfully', function(done) { - //uncomment below and update the code to test deleteCertificateSigningRequest - //instance.deleteCertificateSigningRequest(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('deleteCollectionCertificateSigningRequest', function() { - it('should call deleteCollectionCertificateSigningRequest successfully', function(done) { - //uncomment below and update the code to test deleteCollectionCertificateSigningRequest - //instance.deleteCollectionCertificateSigningRequest(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('getAPIResources', function() { - it('should call getAPIResources successfully', function(done) { - //uncomment below and update the code to test getAPIResources - //instance.getAPIResources(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('listCertificateSigningRequest', function() { - it('should call listCertificateSigningRequest successfully', function(done) { - //uncomment below and update the code to test listCertificateSigningRequest - //instance.listCertificateSigningRequest(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('patchCertificateSigningRequest', function() { - it('should call patchCertificateSigningRequest successfully', function(done) { - //uncomment below and update the code to test patchCertificateSigningRequest - //instance.patchCertificateSigningRequest(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('readCertificateSigningRequest', function() { - it('should call readCertificateSigningRequest successfully', function(done) { - //uncomment below and update the code to test readCertificateSigningRequest - //instance.readCertificateSigningRequest(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('replaceCertificateSigningRequest', function() { - it('should call replaceCertificateSigningRequest successfully', function(done) { - //uncomment below and update the code to test replaceCertificateSigningRequest - //instance.replaceCertificateSigningRequest(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('replaceCertificateSigningRequestApproval', function() { - it('should call replaceCertificateSigningRequestApproval successfully', function(done) { - //uncomment below and update the code to test replaceCertificateSigningRequestApproval - //instance.replaceCertificateSigningRequestApproval(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('replaceCertificateSigningRequestStatus', function() { - it('should call replaceCertificateSigningRequestStatus successfully', function(done) { - //uncomment below and update the code to test replaceCertificateSigningRequestStatus - //instance.replaceCertificateSigningRequestStatus(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - }); - -})); diff --git a/kubernetes/test/api/CoreApi.spec.js b/kubernetes/test/api/CoreApi.spec.js deleted file mode 100644 index 7cc652ec90..0000000000 --- a/kubernetes/test/api/CoreApi.spec.js +++ /dev/null @@ -1,63 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.CoreApi(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('CoreApi', function() { - describe('getAPIVersions', function() { - it('should call getAPIVersions successfully', function(done) { - //uncomment below and update the code to test getAPIVersions - //instance.getAPIVersions(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - }); - -})); diff --git a/kubernetes/test/api/Core_v1Api.spec.js b/kubernetes/test/api/Core_v1Api.spec.js deleted file mode 100644 index 192e8631dc..0000000000 --- a/kubernetes/test/api/Core_v1Api.spec.js +++ /dev/null @@ -1,2403 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.Core_v1Api(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('Core_v1Api', function() { - describe('connectDeleteNamespacedPodProxy', function() { - it('should call connectDeleteNamespacedPodProxy successfully', function(done) { - //uncomment below and update the code to test connectDeleteNamespacedPodProxy - //instance.connectDeleteNamespacedPodProxy(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('connectDeleteNamespacedPodProxyWithPath', function() { - it('should call connectDeleteNamespacedPodProxyWithPath successfully', function(done) { - //uncomment below and update the code to test connectDeleteNamespacedPodProxyWithPath - //instance.connectDeleteNamespacedPodProxyWithPath(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('connectDeleteNamespacedServiceProxy', function() { - it('should call connectDeleteNamespacedServiceProxy successfully', function(done) { - //uncomment below and update the code to test connectDeleteNamespacedServiceProxy - //instance.connectDeleteNamespacedServiceProxy(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('connectDeleteNamespacedServiceProxyWithPath', function() { - it('should call connectDeleteNamespacedServiceProxyWithPath successfully', function(done) { - //uncomment below and update the code to test connectDeleteNamespacedServiceProxyWithPath - //instance.connectDeleteNamespacedServiceProxyWithPath(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('connectDeleteNodeProxy', function() { - it('should call connectDeleteNodeProxy successfully', function(done) { - //uncomment below and update the code to test connectDeleteNodeProxy - //instance.connectDeleteNodeProxy(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('connectDeleteNodeProxyWithPath', function() { - it('should call connectDeleteNodeProxyWithPath successfully', function(done) { - //uncomment below and update the code to test connectDeleteNodeProxyWithPath - //instance.connectDeleteNodeProxyWithPath(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('connectGetNamespacedPodAttach', function() { - it('should call connectGetNamespacedPodAttach successfully', function(done) { - //uncomment below and update the code to test connectGetNamespacedPodAttach - //instance.connectGetNamespacedPodAttach(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('connectGetNamespacedPodExec', function() { - it('should call connectGetNamespacedPodExec successfully', function(done) { - //uncomment below and update the code to test connectGetNamespacedPodExec - //instance.connectGetNamespacedPodExec(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('connectGetNamespacedPodPortforward', function() { - it('should call connectGetNamespacedPodPortforward successfully', function(done) { - //uncomment below and update the code to test connectGetNamespacedPodPortforward - //instance.connectGetNamespacedPodPortforward(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('connectGetNamespacedPodProxy', function() { - it('should call connectGetNamespacedPodProxy successfully', function(done) { - //uncomment below and update the code to test connectGetNamespacedPodProxy - //instance.connectGetNamespacedPodProxy(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('connectGetNamespacedPodProxyWithPath', function() { - it('should call connectGetNamespacedPodProxyWithPath successfully', function(done) { - //uncomment below and update the code to test connectGetNamespacedPodProxyWithPath - //instance.connectGetNamespacedPodProxyWithPath(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('connectGetNamespacedServiceProxy', function() { - it('should call connectGetNamespacedServiceProxy successfully', function(done) { - //uncomment below and update the code to test connectGetNamespacedServiceProxy - //instance.connectGetNamespacedServiceProxy(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('connectGetNamespacedServiceProxyWithPath', function() { - it('should call connectGetNamespacedServiceProxyWithPath successfully', function(done) { - //uncomment below and update the code to test connectGetNamespacedServiceProxyWithPath - //instance.connectGetNamespacedServiceProxyWithPath(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('connectGetNodeProxy', function() { - it('should call connectGetNodeProxy successfully', function(done) { - //uncomment below and update the code to test connectGetNodeProxy - //instance.connectGetNodeProxy(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('connectGetNodeProxyWithPath', function() { - it('should call connectGetNodeProxyWithPath successfully', function(done) { - //uncomment below and update the code to test connectGetNodeProxyWithPath - //instance.connectGetNodeProxyWithPath(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('connectHeadNamespacedPodProxy', function() { - it('should call connectHeadNamespacedPodProxy successfully', function(done) { - //uncomment below and update the code to test connectHeadNamespacedPodProxy - //instance.connectHeadNamespacedPodProxy(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('connectHeadNamespacedPodProxyWithPath', function() { - it('should call connectHeadNamespacedPodProxyWithPath successfully', function(done) { - //uncomment below and update the code to test connectHeadNamespacedPodProxyWithPath - //instance.connectHeadNamespacedPodProxyWithPath(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('connectHeadNamespacedServiceProxy', function() { - it('should call connectHeadNamespacedServiceProxy successfully', function(done) { - //uncomment below and update the code to test connectHeadNamespacedServiceProxy - //instance.connectHeadNamespacedServiceProxy(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('connectHeadNamespacedServiceProxyWithPath', function() { - it('should call connectHeadNamespacedServiceProxyWithPath successfully', function(done) { - //uncomment below and update the code to test connectHeadNamespacedServiceProxyWithPath - //instance.connectHeadNamespacedServiceProxyWithPath(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('connectHeadNodeProxy', function() { - it('should call connectHeadNodeProxy successfully', function(done) { - //uncomment below and update the code to test connectHeadNodeProxy - //instance.connectHeadNodeProxy(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('connectHeadNodeProxyWithPath', function() { - it('should call connectHeadNodeProxyWithPath successfully', function(done) { - //uncomment below and update the code to test connectHeadNodeProxyWithPath - //instance.connectHeadNodeProxyWithPath(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('connectOptionsNamespacedPodProxy', function() { - it('should call connectOptionsNamespacedPodProxy successfully', function(done) { - //uncomment below and update the code to test connectOptionsNamespacedPodProxy - //instance.connectOptionsNamespacedPodProxy(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('connectOptionsNamespacedPodProxyWithPath', function() { - it('should call connectOptionsNamespacedPodProxyWithPath successfully', function(done) { - //uncomment below and update the code to test connectOptionsNamespacedPodProxyWithPath - //instance.connectOptionsNamespacedPodProxyWithPath(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('connectOptionsNamespacedServiceProxy', function() { - it('should call connectOptionsNamespacedServiceProxy successfully', function(done) { - //uncomment below and update the code to test connectOptionsNamespacedServiceProxy - //instance.connectOptionsNamespacedServiceProxy(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('connectOptionsNamespacedServiceProxyWithPath', function() { - it('should call connectOptionsNamespacedServiceProxyWithPath successfully', function(done) { - //uncomment below and update the code to test connectOptionsNamespacedServiceProxyWithPath - //instance.connectOptionsNamespacedServiceProxyWithPath(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('connectOptionsNodeProxy', function() { - it('should call connectOptionsNodeProxy successfully', function(done) { - //uncomment below and update the code to test connectOptionsNodeProxy - //instance.connectOptionsNodeProxy(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('connectOptionsNodeProxyWithPath', function() { - it('should call connectOptionsNodeProxyWithPath successfully', function(done) { - //uncomment below and update the code to test connectOptionsNodeProxyWithPath - //instance.connectOptionsNodeProxyWithPath(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('connectPostNamespacedPodAttach', function() { - it('should call connectPostNamespacedPodAttach successfully', function(done) { - //uncomment below and update the code to test connectPostNamespacedPodAttach - //instance.connectPostNamespacedPodAttach(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('connectPostNamespacedPodExec', function() { - it('should call connectPostNamespacedPodExec successfully', function(done) { - //uncomment below and update the code to test connectPostNamespacedPodExec - //instance.connectPostNamespacedPodExec(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('connectPostNamespacedPodPortforward', function() { - it('should call connectPostNamespacedPodPortforward successfully', function(done) { - //uncomment below and update the code to test connectPostNamespacedPodPortforward - //instance.connectPostNamespacedPodPortforward(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('connectPostNamespacedPodProxy', function() { - it('should call connectPostNamespacedPodProxy successfully', function(done) { - //uncomment below and update the code to test connectPostNamespacedPodProxy - //instance.connectPostNamespacedPodProxy(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('connectPostNamespacedPodProxyWithPath', function() { - it('should call connectPostNamespacedPodProxyWithPath successfully', function(done) { - //uncomment below and update the code to test connectPostNamespacedPodProxyWithPath - //instance.connectPostNamespacedPodProxyWithPath(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('connectPostNamespacedServiceProxy', function() { - it('should call connectPostNamespacedServiceProxy successfully', function(done) { - //uncomment below and update the code to test connectPostNamespacedServiceProxy - //instance.connectPostNamespacedServiceProxy(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('connectPostNamespacedServiceProxyWithPath', function() { - it('should call connectPostNamespacedServiceProxyWithPath successfully', function(done) { - //uncomment below and update the code to test connectPostNamespacedServiceProxyWithPath - //instance.connectPostNamespacedServiceProxyWithPath(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('connectPostNodeProxy', function() { - it('should call connectPostNodeProxy successfully', function(done) { - //uncomment below and update the code to test connectPostNodeProxy - //instance.connectPostNodeProxy(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('connectPostNodeProxyWithPath', function() { - it('should call connectPostNodeProxyWithPath successfully', function(done) { - //uncomment below and update the code to test connectPostNodeProxyWithPath - //instance.connectPostNodeProxyWithPath(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('connectPutNamespacedPodProxy', function() { - it('should call connectPutNamespacedPodProxy successfully', function(done) { - //uncomment below and update the code to test connectPutNamespacedPodProxy - //instance.connectPutNamespacedPodProxy(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('connectPutNamespacedPodProxyWithPath', function() { - it('should call connectPutNamespacedPodProxyWithPath successfully', function(done) { - //uncomment below and update the code to test connectPutNamespacedPodProxyWithPath - //instance.connectPutNamespacedPodProxyWithPath(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('connectPutNamespacedServiceProxy', function() { - it('should call connectPutNamespacedServiceProxy successfully', function(done) { - //uncomment below and update the code to test connectPutNamespacedServiceProxy - //instance.connectPutNamespacedServiceProxy(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('connectPutNamespacedServiceProxyWithPath', function() { - it('should call connectPutNamespacedServiceProxyWithPath successfully', function(done) { - //uncomment below and update the code to test connectPutNamespacedServiceProxyWithPath - //instance.connectPutNamespacedServiceProxyWithPath(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('connectPutNodeProxy', function() { - it('should call connectPutNodeProxy successfully', function(done) { - //uncomment below and update the code to test connectPutNodeProxy - //instance.connectPutNodeProxy(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('connectPutNodeProxyWithPath', function() { - it('should call connectPutNodeProxyWithPath successfully', function(done) { - //uncomment below and update the code to test connectPutNodeProxyWithPath - //instance.connectPutNodeProxyWithPath(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('createNamespace', function() { - it('should call createNamespace successfully', function(done) { - //uncomment below and update the code to test createNamespace - //instance.createNamespace(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('createNamespacedBinding', function() { - it('should call createNamespacedBinding successfully', function(done) { - //uncomment below and update the code to test createNamespacedBinding - //instance.createNamespacedBinding(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('createNamespacedBindingBinding', function() { - it('should call createNamespacedBindingBinding successfully', function(done) { - //uncomment below and update the code to test createNamespacedBindingBinding - //instance.createNamespacedBindingBinding(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('createNamespacedConfigMap', function() { - it('should call createNamespacedConfigMap successfully', function(done) { - //uncomment below and update the code to test createNamespacedConfigMap - //instance.createNamespacedConfigMap(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('createNamespacedEndpoints', function() { - it('should call createNamespacedEndpoints successfully', function(done) { - //uncomment below and update the code to test createNamespacedEndpoints - //instance.createNamespacedEndpoints(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('createNamespacedEvent', function() { - it('should call createNamespacedEvent successfully', function(done) { - //uncomment below and update the code to test createNamespacedEvent - //instance.createNamespacedEvent(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('createNamespacedEvictionEviction', function() { - it('should call createNamespacedEvictionEviction successfully', function(done) { - //uncomment below and update the code to test createNamespacedEvictionEviction - //instance.createNamespacedEvictionEviction(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('createNamespacedLimitRange', function() { - it('should call createNamespacedLimitRange successfully', function(done) { - //uncomment below and update the code to test createNamespacedLimitRange - //instance.createNamespacedLimitRange(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('createNamespacedPersistentVolumeClaim', function() { - it('should call createNamespacedPersistentVolumeClaim successfully', function(done) { - //uncomment below and update the code to test createNamespacedPersistentVolumeClaim - //instance.createNamespacedPersistentVolumeClaim(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('createNamespacedPod', function() { - it('should call createNamespacedPod successfully', function(done) { - //uncomment below and update the code to test createNamespacedPod - //instance.createNamespacedPod(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('createNamespacedPodTemplate', function() { - it('should call createNamespacedPodTemplate successfully', function(done) { - //uncomment below and update the code to test createNamespacedPodTemplate - //instance.createNamespacedPodTemplate(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('createNamespacedReplicationController', function() { - it('should call createNamespacedReplicationController successfully', function(done) { - //uncomment below and update the code to test createNamespacedReplicationController - //instance.createNamespacedReplicationController(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('createNamespacedResourceQuota', function() { - it('should call createNamespacedResourceQuota successfully', function(done) { - //uncomment below and update the code to test createNamespacedResourceQuota - //instance.createNamespacedResourceQuota(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('createNamespacedSecret', function() { - it('should call createNamespacedSecret successfully', function(done) { - //uncomment below and update the code to test createNamespacedSecret - //instance.createNamespacedSecret(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('createNamespacedService', function() { - it('should call createNamespacedService successfully', function(done) { - //uncomment below and update the code to test createNamespacedService - //instance.createNamespacedService(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('createNamespacedServiceAccount', function() { - it('should call createNamespacedServiceAccount successfully', function(done) { - //uncomment below and update the code to test createNamespacedServiceAccount - //instance.createNamespacedServiceAccount(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('createNode', function() { - it('should call createNode successfully', function(done) { - //uncomment below and update the code to test createNode - //instance.createNode(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('createPersistentVolume', function() { - it('should call createPersistentVolume successfully', function(done) { - //uncomment below and update the code to test createPersistentVolume - //instance.createPersistentVolume(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('deleteCollectionNamespace', function() { - it('should call deleteCollectionNamespace successfully', function(done) { - //uncomment below and update the code to test deleteCollectionNamespace - //instance.deleteCollectionNamespace(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('deleteCollectionNamespacedConfigMap', function() { - it('should call deleteCollectionNamespacedConfigMap successfully', function(done) { - //uncomment below and update the code to test deleteCollectionNamespacedConfigMap - //instance.deleteCollectionNamespacedConfigMap(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('deleteCollectionNamespacedEndpoints', function() { - it('should call deleteCollectionNamespacedEndpoints successfully', function(done) { - //uncomment below and update the code to test deleteCollectionNamespacedEndpoints - //instance.deleteCollectionNamespacedEndpoints(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('deleteCollectionNamespacedEvent', function() { - it('should call deleteCollectionNamespacedEvent successfully', function(done) { - //uncomment below and update the code to test deleteCollectionNamespacedEvent - //instance.deleteCollectionNamespacedEvent(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('deleteCollectionNamespacedLimitRange', function() { - it('should call deleteCollectionNamespacedLimitRange successfully', function(done) { - //uncomment below and update the code to test deleteCollectionNamespacedLimitRange - //instance.deleteCollectionNamespacedLimitRange(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('deleteCollectionNamespacedPersistentVolumeClaim', function() { - it('should call deleteCollectionNamespacedPersistentVolumeClaim successfully', function(done) { - //uncomment below and update the code to test deleteCollectionNamespacedPersistentVolumeClaim - //instance.deleteCollectionNamespacedPersistentVolumeClaim(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('deleteCollectionNamespacedPod', function() { - it('should call deleteCollectionNamespacedPod successfully', function(done) { - //uncomment below and update the code to test deleteCollectionNamespacedPod - //instance.deleteCollectionNamespacedPod(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('deleteCollectionNamespacedPodTemplate', function() { - it('should call deleteCollectionNamespacedPodTemplate successfully', function(done) { - //uncomment below and update the code to test deleteCollectionNamespacedPodTemplate - //instance.deleteCollectionNamespacedPodTemplate(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('deleteCollectionNamespacedReplicationController', function() { - it('should call deleteCollectionNamespacedReplicationController successfully', function(done) { - //uncomment below and update the code to test deleteCollectionNamespacedReplicationController - //instance.deleteCollectionNamespacedReplicationController(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('deleteCollectionNamespacedResourceQuota', function() { - it('should call deleteCollectionNamespacedResourceQuota successfully', function(done) { - //uncomment below and update the code to test deleteCollectionNamespacedResourceQuota - //instance.deleteCollectionNamespacedResourceQuota(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('deleteCollectionNamespacedSecret', function() { - it('should call deleteCollectionNamespacedSecret successfully', function(done) { - //uncomment below and update the code to test deleteCollectionNamespacedSecret - //instance.deleteCollectionNamespacedSecret(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('deleteCollectionNamespacedServiceAccount', function() { - it('should call deleteCollectionNamespacedServiceAccount successfully', function(done) { - //uncomment below and update the code to test deleteCollectionNamespacedServiceAccount - //instance.deleteCollectionNamespacedServiceAccount(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('deleteCollectionNode', function() { - it('should call deleteCollectionNode successfully', function(done) { - //uncomment below and update the code to test deleteCollectionNode - //instance.deleteCollectionNode(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('deleteCollectionPersistentVolume', function() { - it('should call deleteCollectionPersistentVolume successfully', function(done) { - //uncomment below and update the code to test deleteCollectionPersistentVolume - //instance.deleteCollectionPersistentVolume(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('deleteNamespace', function() { - it('should call deleteNamespace successfully', function(done) { - //uncomment below and update the code to test deleteNamespace - //instance.deleteNamespace(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('deleteNamespacedConfigMap', function() { - it('should call deleteNamespacedConfigMap successfully', function(done) { - //uncomment below and update the code to test deleteNamespacedConfigMap - //instance.deleteNamespacedConfigMap(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('deleteNamespacedEndpoints', function() { - it('should call deleteNamespacedEndpoints successfully', function(done) { - //uncomment below and update the code to test deleteNamespacedEndpoints - //instance.deleteNamespacedEndpoints(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('deleteNamespacedEvent', function() { - it('should call deleteNamespacedEvent successfully', function(done) { - //uncomment below and update the code to test deleteNamespacedEvent - //instance.deleteNamespacedEvent(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('deleteNamespacedLimitRange', function() { - it('should call deleteNamespacedLimitRange successfully', function(done) { - //uncomment below and update the code to test deleteNamespacedLimitRange - //instance.deleteNamespacedLimitRange(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('deleteNamespacedPersistentVolumeClaim', function() { - it('should call deleteNamespacedPersistentVolumeClaim successfully', function(done) { - //uncomment below and update the code to test deleteNamespacedPersistentVolumeClaim - //instance.deleteNamespacedPersistentVolumeClaim(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('deleteNamespacedPod', function() { - it('should call deleteNamespacedPod successfully', function(done) { - //uncomment below and update the code to test deleteNamespacedPod - //instance.deleteNamespacedPod(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('deleteNamespacedPodTemplate', function() { - it('should call deleteNamespacedPodTemplate successfully', function(done) { - //uncomment below and update the code to test deleteNamespacedPodTemplate - //instance.deleteNamespacedPodTemplate(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('deleteNamespacedReplicationController', function() { - it('should call deleteNamespacedReplicationController successfully', function(done) { - //uncomment below and update the code to test deleteNamespacedReplicationController - //instance.deleteNamespacedReplicationController(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('deleteNamespacedResourceQuota', function() { - it('should call deleteNamespacedResourceQuota successfully', function(done) { - //uncomment below and update the code to test deleteNamespacedResourceQuota - //instance.deleteNamespacedResourceQuota(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('deleteNamespacedSecret', function() { - it('should call deleteNamespacedSecret successfully', function(done) { - //uncomment below and update the code to test deleteNamespacedSecret - //instance.deleteNamespacedSecret(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('deleteNamespacedService', function() { - it('should call deleteNamespacedService successfully', function(done) { - //uncomment below and update the code to test deleteNamespacedService - //instance.deleteNamespacedService(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('deleteNamespacedServiceAccount', function() { - it('should call deleteNamespacedServiceAccount successfully', function(done) { - //uncomment below and update the code to test deleteNamespacedServiceAccount - //instance.deleteNamespacedServiceAccount(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('deleteNode', function() { - it('should call deleteNode successfully', function(done) { - //uncomment below and update the code to test deleteNode - //instance.deleteNode(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('deletePersistentVolume', function() { - it('should call deletePersistentVolume successfully', function(done) { - //uncomment below and update the code to test deletePersistentVolume - //instance.deletePersistentVolume(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('getAPIResources', function() { - it('should call getAPIResources successfully', function(done) { - //uncomment below and update the code to test getAPIResources - //instance.getAPIResources(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('listComponentStatus', function() { - it('should call listComponentStatus successfully', function(done) { - //uncomment below and update the code to test listComponentStatus - //instance.listComponentStatus(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('listConfigMapForAllNamespaces', function() { - it('should call listConfigMapForAllNamespaces successfully', function(done) { - //uncomment below and update the code to test listConfigMapForAllNamespaces - //instance.listConfigMapForAllNamespaces(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('listEndpointsForAllNamespaces', function() { - it('should call listEndpointsForAllNamespaces successfully', function(done) { - //uncomment below and update the code to test listEndpointsForAllNamespaces - //instance.listEndpointsForAllNamespaces(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('listEventForAllNamespaces', function() { - it('should call listEventForAllNamespaces successfully', function(done) { - //uncomment below and update the code to test listEventForAllNamespaces - //instance.listEventForAllNamespaces(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('listLimitRangeForAllNamespaces', function() { - it('should call listLimitRangeForAllNamespaces successfully', function(done) { - //uncomment below and update the code to test listLimitRangeForAllNamespaces - //instance.listLimitRangeForAllNamespaces(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('listNamespace', function() { - it('should call listNamespace successfully', function(done) { - //uncomment below and update the code to test listNamespace - //instance.listNamespace(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('listNamespacedConfigMap', function() { - it('should call listNamespacedConfigMap successfully', function(done) { - //uncomment below and update the code to test listNamespacedConfigMap - //instance.listNamespacedConfigMap(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('listNamespacedEndpoints', function() { - it('should call listNamespacedEndpoints successfully', function(done) { - //uncomment below and update the code to test listNamespacedEndpoints - //instance.listNamespacedEndpoints(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('listNamespacedEvent', function() { - it('should call listNamespacedEvent successfully', function(done) { - //uncomment below and update the code to test listNamespacedEvent - //instance.listNamespacedEvent(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('listNamespacedLimitRange', function() { - it('should call listNamespacedLimitRange successfully', function(done) { - //uncomment below and update the code to test listNamespacedLimitRange - //instance.listNamespacedLimitRange(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('listNamespacedPersistentVolumeClaim', function() { - it('should call listNamespacedPersistentVolumeClaim successfully', function(done) { - //uncomment below and update the code to test listNamespacedPersistentVolumeClaim - //instance.listNamespacedPersistentVolumeClaim(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('listNamespacedPod', function() { - it('should call listNamespacedPod successfully', function(done) { - //uncomment below and update the code to test listNamespacedPod - //instance.listNamespacedPod(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('listNamespacedPodTemplate', function() { - it('should call listNamespacedPodTemplate successfully', function(done) { - //uncomment below and update the code to test listNamespacedPodTemplate - //instance.listNamespacedPodTemplate(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('listNamespacedReplicationController', function() { - it('should call listNamespacedReplicationController successfully', function(done) { - //uncomment below and update the code to test listNamespacedReplicationController - //instance.listNamespacedReplicationController(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('listNamespacedResourceQuota', function() { - it('should call listNamespacedResourceQuota successfully', function(done) { - //uncomment below and update the code to test listNamespacedResourceQuota - //instance.listNamespacedResourceQuota(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('listNamespacedSecret', function() { - it('should call listNamespacedSecret successfully', function(done) { - //uncomment below and update the code to test listNamespacedSecret - //instance.listNamespacedSecret(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('listNamespacedService', function() { - it('should call listNamespacedService successfully', function(done) { - //uncomment below and update the code to test listNamespacedService - //instance.listNamespacedService(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('listNamespacedServiceAccount', function() { - it('should call listNamespacedServiceAccount successfully', function(done) { - //uncomment below and update the code to test listNamespacedServiceAccount - //instance.listNamespacedServiceAccount(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('listNode', function() { - it('should call listNode successfully', function(done) { - //uncomment below and update the code to test listNode - //instance.listNode(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('listPersistentVolume', function() { - it('should call listPersistentVolume successfully', function(done) { - //uncomment below and update the code to test listPersistentVolume - //instance.listPersistentVolume(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('listPersistentVolumeClaimForAllNamespaces', function() { - it('should call listPersistentVolumeClaimForAllNamespaces successfully', function(done) { - //uncomment below and update the code to test listPersistentVolumeClaimForAllNamespaces - //instance.listPersistentVolumeClaimForAllNamespaces(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('listPodForAllNamespaces', function() { - it('should call listPodForAllNamespaces successfully', function(done) { - //uncomment below and update the code to test listPodForAllNamespaces - //instance.listPodForAllNamespaces(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('listPodTemplateForAllNamespaces', function() { - it('should call listPodTemplateForAllNamespaces successfully', function(done) { - //uncomment below and update the code to test listPodTemplateForAllNamespaces - //instance.listPodTemplateForAllNamespaces(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('listReplicationControllerForAllNamespaces', function() { - it('should call listReplicationControllerForAllNamespaces successfully', function(done) { - //uncomment below and update the code to test listReplicationControllerForAllNamespaces - //instance.listReplicationControllerForAllNamespaces(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('listResourceQuotaForAllNamespaces', function() { - it('should call listResourceQuotaForAllNamespaces successfully', function(done) { - //uncomment below and update the code to test listResourceQuotaForAllNamespaces - //instance.listResourceQuotaForAllNamespaces(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('listSecretForAllNamespaces', function() { - it('should call listSecretForAllNamespaces successfully', function(done) { - //uncomment below and update the code to test listSecretForAllNamespaces - //instance.listSecretForAllNamespaces(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('listServiceAccountForAllNamespaces', function() { - it('should call listServiceAccountForAllNamespaces successfully', function(done) { - //uncomment below and update the code to test listServiceAccountForAllNamespaces - //instance.listServiceAccountForAllNamespaces(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('listServiceForAllNamespaces', function() { - it('should call listServiceForAllNamespaces successfully', function(done) { - //uncomment below and update the code to test listServiceForAllNamespaces - //instance.listServiceForAllNamespaces(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('patchNamespace', function() { - it('should call patchNamespace successfully', function(done) { - //uncomment below and update the code to test patchNamespace - //instance.patchNamespace(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('patchNamespaceStatus', function() { - it('should call patchNamespaceStatus successfully', function(done) { - //uncomment below and update the code to test patchNamespaceStatus - //instance.patchNamespaceStatus(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('patchNamespacedConfigMap', function() { - it('should call patchNamespacedConfigMap successfully', function(done) { - //uncomment below and update the code to test patchNamespacedConfigMap - //instance.patchNamespacedConfigMap(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('patchNamespacedEndpoints', function() { - it('should call patchNamespacedEndpoints successfully', function(done) { - //uncomment below and update the code to test patchNamespacedEndpoints - //instance.patchNamespacedEndpoints(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('patchNamespacedEvent', function() { - it('should call patchNamespacedEvent successfully', function(done) { - //uncomment below and update the code to test patchNamespacedEvent - //instance.patchNamespacedEvent(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('patchNamespacedLimitRange', function() { - it('should call patchNamespacedLimitRange successfully', function(done) { - //uncomment below and update the code to test patchNamespacedLimitRange - //instance.patchNamespacedLimitRange(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('patchNamespacedPersistentVolumeClaim', function() { - it('should call patchNamespacedPersistentVolumeClaim successfully', function(done) { - //uncomment below and update the code to test patchNamespacedPersistentVolumeClaim - //instance.patchNamespacedPersistentVolumeClaim(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('patchNamespacedPersistentVolumeClaimStatus', function() { - it('should call patchNamespacedPersistentVolumeClaimStatus successfully', function(done) { - //uncomment below and update the code to test patchNamespacedPersistentVolumeClaimStatus - //instance.patchNamespacedPersistentVolumeClaimStatus(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('patchNamespacedPod', function() { - it('should call patchNamespacedPod successfully', function(done) { - //uncomment below and update the code to test patchNamespacedPod - //instance.patchNamespacedPod(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('patchNamespacedPodStatus', function() { - it('should call patchNamespacedPodStatus successfully', function(done) { - //uncomment below and update the code to test patchNamespacedPodStatus - //instance.patchNamespacedPodStatus(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('patchNamespacedPodTemplate', function() { - it('should call patchNamespacedPodTemplate successfully', function(done) { - //uncomment below and update the code to test patchNamespacedPodTemplate - //instance.patchNamespacedPodTemplate(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('patchNamespacedReplicationController', function() { - it('should call patchNamespacedReplicationController successfully', function(done) { - //uncomment below and update the code to test patchNamespacedReplicationController - //instance.patchNamespacedReplicationController(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('patchNamespacedReplicationControllerStatus', function() { - it('should call patchNamespacedReplicationControllerStatus successfully', function(done) { - //uncomment below and update the code to test patchNamespacedReplicationControllerStatus - //instance.patchNamespacedReplicationControllerStatus(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('patchNamespacedResourceQuota', function() { - it('should call patchNamespacedResourceQuota successfully', function(done) { - //uncomment below and update the code to test patchNamespacedResourceQuota - //instance.patchNamespacedResourceQuota(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('patchNamespacedResourceQuotaStatus', function() { - it('should call patchNamespacedResourceQuotaStatus successfully', function(done) { - //uncomment below and update the code to test patchNamespacedResourceQuotaStatus - //instance.patchNamespacedResourceQuotaStatus(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('patchNamespacedScaleScale', function() { - it('should call patchNamespacedScaleScale successfully', function(done) { - //uncomment below and update the code to test patchNamespacedScaleScale - //instance.patchNamespacedScaleScale(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('patchNamespacedSecret', function() { - it('should call patchNamespacedSecret successfully', function(done) { - //uncomment below and update the code to test patchNamespacedSecret - //instance.patchNamespacedSecret(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('patchNamespacedService', function() { - it('should call patchNamespacedService successfully', function(done) { - //uncomment below and update the code to test patchNamespacedService - //instance.patchNamespacedService(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('patchNamespacedServiceAccount', function() { - it('should call patchNamespacedServiceAccount successfully', function(done) { - //uncomment below and update the code to test patchNamespacedServiceAccount - //instance.patchNamespacedServiceAccount(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('patchNamespacedServiceStatus', function() { - it('should call patchNamespacedServiceStatus successfully', function(done) { - //uncomment below and update the code to test patchNamespacedServiceStatus - //instance.patchNamespacedServiceStatus(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('patchNode', function() { - it('should call patchNode successfully', function(done) { - //uncomment below and update the code to test patchNode - //instance.patchNode(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('patchNodeStatus', function() { - it('should call patchNodeStatus successfully', function(done) { - //uncomment below and update the code to test patchNodeStatus - //instance.patchNodeStatus(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('patchPersistentVolume', function() { - it('should call patchPersistentVolume successfully', function(done) { - //uncomment below and update the code to test patchPersistentVolume - //instance.patchPersistentVolume(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('patchPersistentVolumeStatus', function() { - it('should call patchPersistentVolumeStatus successfully', function(done) { - //uncomment below and update the code to test patchPersistentVolumeStatus - //instance.patchPersistentVolumeStatus(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('proxyDELETENamespacedPod', function() { - it('should call proxyDELETENamespacedPod successfully', function(done) { - //uncomment below and update the code to test proxyDELETENamespacedPod - //instance.proxyDELETENamespacedPod(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('proxyDELETENamespacedPodWithPath', function() { - it('should call proxyDELETENamespacedPodWithPath successfully', function(done) { - //uncomment below and update the code to test proxyDELETENamespacedPodWithPath - //instance.proxyDELETENamespacedPodWithPath(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('proxyDELETENamespacedService', function() { - it('should call proxyDELETENamespacedService successfully', function(done) { - //uncomment below and update the code to test proxyDELETENamespacedService - //instance.proxyDELETENamespacedService(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('proxyDELETENamespacedServiceWithPath', function() { - it('should call proxyDELETENamespacedServiceWithPath successfully', function(done) { - //uncomment below and update the code to test proxyDELETENamespacedServiceWithPath - //instance.proxyDELETENamespacedServiceWithPath(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('proxyDELETENode', function() { - it('should call proxyDELETENode successfully', function(done) { - //uncomment below and update the code to test proxyDELETENode - //instance.proxyDELETENode(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('proxyDELETENodeWithPath', function() { - it('should call proxyDELETENodeWithPath successfully', function(done) { - //uncomment below and update the code to test proxyDELETENodeWithPath - //instance.proxyDELETENodeWithPath(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('proxyGETNamespacedPod', function() { - it('should call proxyGETNamespacedPod successfully', function(done) { - //uncomment below and update the code to test proxyGETNamespacedPod - //instance.proxyGETNamespacedPod(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('proxyGETNamespacedPodWithPath', function() { - it('should call proxyGETNamespacedPodWithPath successfully', function(done) { - //uncomment below and update the code to test proxyGETNamespacedPodWithPath - //instance.proxyGETNamespacedPodWithPath(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('proxyGETNamespacedService', function() { - it('should call proxyGETNamespacedService successfully', function(done) { - //uncomment below and update the code to test proxyGETNamespacedService - //instance.proxyGETNamespacedService(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('proxyGETNamespacedServiceWithPath', function() { - it('should call proxyGETNamespacedServiceWithPath successfully', function(done) { - //uncomment below and update the code to test proxyGETNamespacedServiceWithPath - //instance.proxyGETNamespacedServiceWithPath(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('proxyGETNode', function() { - it('should call proxyGETNode successfully', function(done) { - //uncomment below and update the code to test proxyGETNode - //instance.proxyGETNode(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('proxyGETNodeWithPath', function() { - it('should call proxyGETNodeWithPath successfully', function(done) { - //uncomment below and update the code to test proxyGETNodeWithPath - //instance.proxyGETNodeWithPath(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('proxyHEADNamespacedPod', function() { - it('should call proxyHEADNamespacedPod successfully', function(done) { - //uncomment below and update the code to test proxyHEADNamespacedPod - //instance.proxyHEADNamespacedPod(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('proxyHEADNamespacedPodWithPath', function() { - it('should call proxyHEADNamespacedPodWithPath successfully', function(done) { - //uncomment below and update the code to test proxyHEADNamespacedPodWithPath - //instance.proxyHEADNamespacedPodWithPath(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('proxyHEADNamespacedService', function() { - it('should call proxyHEADNamespacedService successfully', function(done) { - //uncomment below and update the code to test proxyHEADNamespacedService - //instance.proxyHEADNamespacedService(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('proxyHEADNamespacedServiceWithPath', function() { - it('should call proxyHEADNamespacedServiceWithPath successfully', function(done) { - //uncomment below and update the code to test proxyHEADNamespacedServiceWithPath - //instance.proxyHEADNamespacedServiceWithPath(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('proxyHEADNode', function() { - it('should call proxyHEADNode successfully', function(done) { - //uncomment below and update the code to test proxyHEADNode - //instance.proxyHEADNode(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('proxyHEADNodeWithPath', function() { - it('should call proxyHEADNodeWithPath successfully', function(done) { - //uncomment below and update the code to test proxyHEADNodeWithPath - //instance.proxyHEADNodeWithPath(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('proxyOPTIONSNamespacedPod', function() { - it('should call proxyOPTIONSNamespacedPod successfully', function(done) { - //uncomment below and update the code to test proxyOPTIONSNamespacedPod - //instance.proxyOPTIONSNamespacedPod(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('proxyOPTIONSNamespacedPodWithPath', function() { - it('should call proxyOPTIONSNamespacedPodWithPath successfully', function(done) { - //uncomment below and update the code to test proxyOPTIONSNamespacedPodWithPath - //instance.proxyOPTIONSNamespacedPodWithPath(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('proxyOPTIONSNamespacedService', function() { - it('should call proxyOPTIONSNamespacedService successfully', function(done) { - //uncomment below and update the code to test proxyOPTIONSNamespacedService - //instance.proxyOPTIONSNamespacedService(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('proxyOPTIONSNamespacedServiceWithPath', function() { - it('should call proxyOPTIONSNamespacedServiceWithPath successfully', function(done) { - //uncomment below and update the code to test proxyOPTIONSNamespacedServiceWithPath - //instance.proxyOPTIONSNamespacedServiceWithPath(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('proxyOPTIONSNode', function() { - it('should call proxyOPTIONSNode successfully', function(done) { - //uncomment below and update the code to test proxyOPTIONSNode - //instance.proxyOPTIONSNode(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('proxyOPTIONSNodeWithPath', function() { - it('should call proxyOPTIONSNodeWithPath successfully', function(done) { - //uncomment below and update the code to test proxyOPTIONSNodeWithPath - //instance.proxyOPTIONSNodeWithPath(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('proxyPATCHNamespacedPod', function() { - it('should call proxyPATCHNamespacedPod successfully', function(done) { - //uncomment below and update the code to test proxyPATCHNamespacedPod - //instance.proxyPATCHNamespacedPod(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('proxyPATCHNamespacedPodWithPath', function() { - it('should call proxyPATCHNamespacedPodWithPath successfully', function(done) { - //uncomment below and update the code to test proxyPATCHNamespacedPodWithPath - //instance.proxyPATCHNamespacedPodWithPath(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('proxyPATCHNamespacedService', function() { - it('should call proxyPATCHNamespacedService successfully', function(done) { - //uncomment below and update the code to test proxyPATCHNamespacedService - //instance.proxyPATCHNamespacedService(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('proxyPATCHNamespacedServiceWithPath', function() { - it('should call proxyPATCHNamespacedServiceWithPath successfully', function(done) { - //uncomment below and update the code to test proxyPATCHNamespacedServiceWithPath - //instance.proxyPATCHNamespacedServiceWithPath(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('proxyPATCHNode', function() { - it('should call proxyPATCHNode successfully', function(done) { - //uncomment below and update the code to test proxyPATCHNode - //instance.proxyPATCHNode(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('proxyPATCHNodeWithPath', function() { - it('should call proxyPATCHNodeWithPath successfully', function(done) { - //uncomment below and update the code to test proxyPATCHNodeWithPath - //instance.proxyPATCHNodeWithPath(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('proxyPOSTNamespacedPod', function() { - it('should call proxyPOSTNamespacedPod successfully', function(done) { - //uncomment below and update the code to test proxyPOSTNamespacedPod - //instance.proxyPOSTNamespacedPod(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('proxyPOSTNamespacedPodWithPath', function() { - it('should call proxyPOSTNamespacedPodWithPath successfully', function(done) { - //uncomment below and update the code to test proxyPOSTNamespacedPodWithPath - //instance.proxyPOSTNamespacedPodWithPath(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('proxyPOSTNamespacedService', function() { - it('should call proxyPOSTNamespacedService successfully', function(done) { - //uncomment below and update the code to test proxyPOSTNamespacedService - //instance.proxyPOSTNamespacedService(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('proxyPOSTNamespacedServiceWithPath', function() { - it('should call proxyPOSTNamespacedServiceWithPath successfully', function(done) { - //uncomment below and update the code to test proxyPOSTNamespacedServiceWithPath - //instance.proxyPOSTNamespacedServiceWithPath(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('proxyPOSTNode', function() { - it('should call proxyPOSTNode successfully', function(done) { - //uncomment below and update the code to test proxyPOSTNode - //instance.proxyPOSTNode(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('proxyPOSTNodeWithPath', function() { - it('should call proxyPOSTNodeWithPath successfully', function(done) { - //uncomment below and update the code to test proxyPOSTNodeWithPath - //instance.proxyPOSTNodeWithPath(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('proxyPUTNamespacedPod', function() { - it('should call proxyPUTNamespacedPod successfully', function(done) { - //uncomment below and update the code to test proxyPUTNamespacedPod - //instance.proxyPUTNamespacedPod(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('proxyPUTNamespacedPodWithPath', function() { - it('should call proxyPUTNamespacedPodWithPath successfully', function(done) { - //uncomment below and update the code to test proxyPUTNamespacedPodWithPath - //instance.proxyPUTNamespacedPodWithPath(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('proxyPUTNamespacedService', function() { - it('should call proxyPUTNamespacedService successfully', function(done) { - //uncomment below and update the code to test proxyPUTNamespacedService - //instance.proxyPUTNamespacedService(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('proxyPUTNamespacedServiceWithPath', function() { - it('should call proxyPUTNamespacedServiceWithPath successfully', function(done) { - //uncomment below and update the code to test proxyPUTNamespacedServiceWithPath - //instance.proxyPUTNamespacedServiceWithPath(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('proxyPUTNode', function() { - it('should call proxyPUTNode successfully', function(done) { - //uncomment below and update the code to test proxyPUTNode - //instance.proxyPUTNode(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('proxyPUTNodeWithPath', function() { - it('should call proxyPUTNodeWithPath successfully', function(done) { - //uncomment below and update the code to test proxyPUTNodeWithPath - //instance.proxyPUTNodeWithPath(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('readComponentStatus', function() { - it('should call readComponentStatus successfully', function(done) { - //uncomment below and update the code to test readComponentStatus - //instance.readComponentStatus(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('readNamespace', function() { - it('should call readNamespace successfully', function(done) { - //uncomment below and update the code to test readNamespace - //instance.readNamespace(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('readNamespaceStatus', function() { - it('should call readNamespaceStatus successfully', function(done) { - //uncomment below and update the code to test readNamespaceStatus - //instance.readNamespaceStatus(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('readNamespacedConfigMap', function() { - it('should call readNamespacedConfigMap successfully', function(done) { - //uncomment below and update the code to test readNamespacedConfigMap - //instance.readNamespacedConfigMap(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('readNamespacedEndpoints', function() { - it('should call readNamespacedEndpoints successfully', function(done) { - //uncomment below and update the code to test readNamespacedEndpoints - //instance.readNamespacedEndpoints(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('readNamespacedEvent', function() { - it('should call readNamespacedEvent successfully', function(done) { - //uncomment below and update the code to test readNamespacedEvent - //instance.readNamespacedEvent(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('readNamespacedLimitRange', function() { - it('should call readNamespacedLimitRange successfully', function(done) { - //uncomment below and update the code to test readNamespacedLimitRange - //instance.readNamespacedLimitRange(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('readNamespacedPersistentVolumeClaim', function() { - it('should call readNamespacedPersistentVolumeClaim successfully', function(done) { - //uncomment below and update the code to test readNamespacedPersistentVolumeClaim - //instance.readNamespacedPersistentVolumeClaim(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('readNamespacedPersistentVolumeClaimStatus', function() { - it('should call readNamespacedPersistentVolumeClaimStatus successfully', function(done) { - //uncomment below and update the code to test readNamespacedPersistentVolumeClaimStatus - //instance.readNamespacedPersistentVolumeClaimStatus(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('readNamespacedPod', function() { - it('should call readNamespacedPod successfully', function(done) { - //uncomment below and update the code to test readNamespacedPod - //instance.readNamespacedPod(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('readNamespacedPodLog', function() { - it('should call readNamespacedPodLog successfully', function(done) { - //uncomment below and update the code to test readNamespacedPodLog - //instance.readNamespacedPodLog(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('readNamespacedPodStatus', function() { - it('should call readNamespacedPodStatus successfully', function(done) { - //uncomment below and update the code to test readNamespacedPodStatus - //instance.readNamespacedPodStatus(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('readNamespacedPodTemplate', function() { - it('should call readNamespacedPodTemplate successfully', function(done) { - //uncomment below and update the code to test readNamespacedPodTemplate - //instance.readNamespacedPodTemplate(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('readNamespacedReplicationController', function() { - it('should call readNamespacedReplicationController successfully', function(done) { - //uncomment below and update the code to test readNamespacedReplicationController - //instance.readNamespacedReplicationController(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('readNamespacedReplicationControllerStatus', function() { - it('should call readNamespacedReplicationControllerStatus successfully', function(done) { - //uncomment below and update the code to test readNamespacedReplicationControllerStatus - //instance.readNamespacedReplicationControllerStatus(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('readNamespacedResourceQuota', function() { - it('should call readNamespacedResourceQuota successfully', function(done) { - //uncomment below and update the code to test readNamespacedResourceQuota - //instance.readNamespacedResourceQuota(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('readNamespacedResourceQuotaStatus', function() { - it('should call readNamespacedResourceQuotaStatus successfully', function(done) { - //uncomment below and update the code to test readNamespacedResourceQuotaStatus - //instance.readNamespacedResourceQuotaStatus(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('readNamespacedScaleScale', function() { - it('should call readNamespacedScaleScale successfully', function(done) { - //uncomment below and update the code to test readNamespacedScaleScale - //instance.readNamespacedScaleScale(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('readNamespacedSecret', function() { - it('should call readNamespacedSecret successfully', function(done) { - //uncomment below and update the code to test readNamespacedSecret - //instance.readNamespacedSecret(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('readNamespacedService', function() { - it('should call readNamespacedService successfully', function(done) { - //uncomment below and update the code to test readNamespacedService - //instance.readNamespacedService(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('readNamespacedServiceAccount', function() { - it('should call readNamespacedServiceAccount successfully', function(done) { - //uncomment below and update the code to test readNamespacedServiceAccount - //instance.readNamespacedServiceAccount(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('readNamespacedServiceStatus', function() { - it('should call readNamespacedServiceStatus successfully', function(done) { - //uncomment below and update the code to test readNamespacedServiceStatus - //instance.readNamespacedServiceStatus(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('readNode', function() { - it('should call readNode successfully', function(done) { - //uncomment below and update the code to test readNode - //instance.readNode(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('readNodeStatus', function() { - it('should call readNodeStatus successfully', function(done) { - //uncomment below and update the code to test readNodeStatus - //instance.readNodeStatus(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('readPersistentVolume', function() { - it('should call readPersistentVolume successfully', function(done) { - //uncomment below and update the code to test readPersistentVolume - //instance.readPersistentVolume(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('readPersistentVolumeStatus', function() { - it('should call readPersistentVolumeStatus successfully', function(done) { - //uncomment below and update the code to test readPersistentVolumeStatus - //instance.readPersistentVolumeStatus(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('replaceNamespace', function() { - it('should call replaceNamespace successfully', function(done) { - //uncomment below and update the code to test replaceNamespace - //instance.replaceNamespace(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('replaceNamespaceFinalize', function() { - it('should call replaceNamespaceFinalize successfully', function(done) { - //uncomment below and update the code to test replaceNamespaceFinalize - //instance.replaceNamespaceFinalize(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('replaceNamespaceStatus', function() { - it('should call replaceNamespaceStatus successfully', function(done) { - //uncomment below and update the code to test replaceNamespaceStatus - //instance.replaceNamespaceStatus(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('replaceNamespacedConfigMap', function() { - it('should call replaceNamespacedConfigMap successfully', function(done) { - //uncomment below and update the code to test replaceNamespacedConfigMap - //instance.replaceNamespacedConfigMap(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('replaceNamespacedEndpoints', function() { - it('should call replaceNamespacedEndpoints successfully', function(done) { - //uncomment below and update the code to test replaceNamespacedEndpoints - //instance.replaceNamespacedEndpoints(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('replaceNamespacedEvent', function() { - it('should call replaceNamespacedEvent successfully', function(done) { - //uncomment below and update the code to test replaceNamespacedEvent - //instance.replaceNamespacedEvent(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('replaceNamespacedLimitRange', function() { - it('should call replaceNamespacedLimitRange successfully', function(done) { - //uncomment below and update the code to test replaceNamespacedLimitRange - //instance.replaceNamespacedLimitRange(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('replaceNamespacedPersistentVolumeClaim', function() { - it('should call replaceNamespacedPersistentVolumeClaim successfully', function(done) { - //uncomment below and update the code to test replaceNamespacedPersistentVolumeClaim - //instance.replaceNamespacedPersistentVolumeClaim(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('replaceNamespacedPersistentVolumeClaimStatus', function() { - it('should call replaceNamespacedPersistentVolumeClaimStatus successfully', function(done) { - //uncomment below and update the code to test replaceNamespacedPersistentVolumeClaimStatus - //instance.replaceNamespacedPersistentVolumeClaimStatus(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('replaceNamespacedPod', function() { - it('should call replaceNamespacedPod successfully', function(done) { - //uncomment below and update the code to test replaceNamespacedPod - //instance.replaceNamespacedPod(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('replaceNamespacedPodStatus', function() { - it('should call replaceNamespacedPodStatus successfully', function(done) { - //uncomment below and update the code to test replaceNamespacedPodStatus - //instance.replaceNamespacedPodStatus(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('replaceNamespacedPodTemplate', function() { - it('should call replaceNamespacedPodTemplate successfully', function(done) { - //uncomment below and update the code to test replaceNamespacedPodTemplate - //instance.replaceNamespacedPodTemplate(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('replaceNamespacedReplicationController', function() { - it('should call replaceNamespacedReplicationController successfully', function(done) { - //uncomment below and update the code to test replaceNamespacedReplicationController - //instance.replaceNamespacedReplicationController(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('replaceNamespacedReplicationControllerStatus', function() { - it('should call replaceNamespacedReplicationControllerStatus successfully', function(done) { - //uncomment below and update the code to test replaceNamespacedReplicationControllerStatus - //instance.replaceNamespacedReplicationControllerStatus(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('replaceNamespacedResourceQuota', function() { - it('should call replaceNamespacedResourceQuota successfully', function(done) { - //uncomment below and update the code to test replaceNamespacedResourceQuota - //instance.replaceNamespacedResourceQuota(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('replaceNamespacedResourceQuotaStatus', function() { - it('should call replaceNamespacedResourceQuotaStatus successfully', function(done) { - //uncomment below and update the code to test replaceNamespacedResourceQuotaStatus - //instance.replaceNamespacedResourceQuotaStatus(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('replaceNamespacedScaleScale', function() { - it('should call replaceNamespacedScaleScale successfully', function(done) { - //uncomment below and update the code to test replaceNamespacedScaleScale - //instance.replaceNamespacedScaleScale(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('replaceNamespacedSecret', function() { - it('should call replaceNamespacedSecret successfully', function(done) { - //uncomment below and update the code to test replaceNamespacedSecret - //instance.replaceNamespacedSecret(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('replaceNamespacedService', function() { - it('should call replaceNamespacedService successfully', function(done) { - //uncomment below and update the code to test replaceNamespacedService - //instance.replaceNamespacedService(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('replaceNamespacedServiceAccount', function() { - it('should call replaceNamespacedServiceAccount successfully', function(done) { - //uncomment below and update the code to test replaceNamespacedServiceAccount - //instance.replaceNamespacedServiceAccount(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('replaceNamespacedServiceStatus', function() { - it('should call replaceNamespacedServiceStatus successfully', function(done) { - //uncomment below and update the code to test replaceNamespacedServiceStatus - //instance.replaceNamespacedServiceStatus(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('replaceNode', function() { - it('should call replaceNode successfully', function(done) { - //uncomment below and update the code to test replaceNode - //instance.replaceNode(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('replaceNodeStatus', function() { - it('should call replaceNodeStatus successfully', function(done) { - //uncomment below and update the code to test replaceNodeStatus - //instance.replaceNodeStatus(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('replacePersistentVolume', function() { - it('should call replacePersistentVolume successfully', function(done) { - //uncomment below and update the code to test replacePersistentVolume - //instance.replacePersistentVolume(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('replacePersistentVolumeStatus', function() { - it('should call replacePersistentVolumeStatus successfully', function(done) { - //uncomment below and update the code to test replacePersistentVolumeStatus - //instance.replacePersistentVolumeStatus(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - }); - -})); diff --git a/kubernetes/test/api/ExtensionsApi.spec.js b/kubernetes/test/api/ExtensionsApi.spec.js deleted file mode 100644 index 07c47ba995..0000000000 --- a/kubernetes/test/api/ExtensionsApi.spec.js +++ /dev/null @@ -1,63 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.ExtensionsApi(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('ExtensionsApi', function() { - describe('getAPIGroup', function() { - it('should call getAPIGroup successfully', function(done) { - //uncomment below and update the code to test getAPIGroup - //instance.getAPIGroup(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - }); - -})); diff --git a/kubernetes/test/api/Extensions_v1beta1Api.spec.js b/kubernetes/test/api/Extensions_v1beta1Api.spec.js deleted file mode 100644 index 0ee6b12115..0000000000 --- a/kubernetes/test/api/Extensions_v1beta1Api.spec.js +++ /dev/null @@ -1,823 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.Extensions_v1beta1Api(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('Extensions_v1beta1Api', function() { - describe('createNamespacedDaemonSet', function() { - it('should call createNamespacedDaemonSet successfully', function(done) { - //uncomment below and update the code to test createNamespacedDaemonSet - //instance.createNamespacedDaemonSet(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('createNamespacedDeployment', function() { - it('should call createNamespacedDeployment successfully', function(done) { - //uncomment below and update the code to test createNamespacedDeployment - //instance.createNamespacedDeployment(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('createNamespacedDeploymentRollbackRollback', function() { - it('should call createNamespacedDeploymentRollbackRollback successfully', function(done) { - //uncomment below and update the code to test createNamespacedDeploymentRollbackRollback - //instance.createNamespacedDeploymentRollbackRollback(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('createNamespacedIngress', function() { - it('should call createNamespacedIngress successfully', function(done) { - //uncomment below and update the code to test createNamespacedIngress - //instance.createNamespacedIngress(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('createNamespacedNetworkPolicy', function() { - it('should call createNamespacedNetworkPolicy successfully', function(done) { - //uncomment below and update the code to test createNamespacedNetworkPolicy - //instance.createNamespacedNetworkPolicy(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('createNamespacedReplicaSet', function() { - it('should call createNamespacedReplicaSet successfully', function(done) { - //uncomment below and update the code to test createNamespacedReplicaSet - //instance.createNamespacedReplicaSet(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('createPodSecurityPolicy', function() { - it('should call createPodSecurityPolicy successfully', function(done) { - //uncomment below and update the code to test createPodSecurityPolicy - //instance.createPodSecurityPolicy(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('createThirdPartyResource', function() { - it('should call createThirdPartyResource successfully', function(done) { - //uncomment below and update the code to test createThirdPartyResource - //instance.createThirdPartyResource(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('deleteCollectionNamespacedDaemonSet', function() { - it('should call deleteCollectionNamespacedDaemonSet successfully', function(done) { - //uncomment below and update the code to test deleteCollectionNamespacedDaemonSet - //instance.deleteCollectionNamespacedDaemonSet(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('deleteCollectionNamespacedDeployment', function() { - it('should call deleteCollectionNamespacedDeployment successfully', function(done) { - //uncomment below and update the code to test deleteCollectionNamespacedDeployment - //instance.deleteCollectionNamespacedDeployment(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('deleteCollectionNamespacedIngress', function() { - it('should call deleteCollectionNamespacedIngress successfully', function(done) { - //uncomment below and update the code to test deleteCollectionNamespacedIngress - //instance.deleteCollectionNamespacedIngress(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('deleteCollectionNamespacedNetworkPolicy', function() { - it('should call deleteCollectionNamespacedNetworkPolicy successfully', function(done) { - //uncomment below and update the code to test deleteCollectionNamespacedNetworkPolicy - //instance.deleteCollectionNamespacedNetworkPolicy(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('deleteCollectionNamespacedReplicaSet', function() { - it('should call deleteCollectionNamespacedReplicaSet successfully', function(done) { - //uncomment below and update the code to test deleteCollectionNamespacedReplicaSet - //instance.deleteCollectionNamespacedReplicaSet(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('deleteCollectionPodSecurityPolicy', function() { - it('should call deleteCollectionPodSecurityPolicy successfully', function(done) { - //uncomment below and update the code to test deleteCollectionPodSecurityPolicy - //instance.deleteCollectionPodSecurityPolicy(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('deleteCollectionThirdPartyResource', function() { - it('should call deleteCollectionThirdPartyResource successfully', function(done) { - //uncomment below and update the code to test deleteCollectionThirdPartyResource - //instance.deleteCollectionThirdPartyResource(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('deleteNamespacedDaemonSet', function() { - it('should call deleteNamespacedDaemonSet successfully', function(done) { - //uncomment below and update the code to test deleteNamespacedDaemonSet - //instance.deleteNamespacedDaemonSet(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('deleteNamespacedDeployment', function() { - it('should call deleteNamespacedDeployment successfully', function(done) { - //uncomment below and update the code to test deleteNamespacedDeployment - //instance.deleteNamespacedDeployment(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('deleteNamespacedIngress', function() { - it('should call deleteNamespacedIngress successfully', function(done) { - //uncomment below and update the code to test deleteNamespacedIngress - //instance.deleteNamespacedIngress(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('deleteNamespacedNetworkPolicy', function() { - it('should call deleteNamespacedNetworkPolicy successfully', function(done) { - //uncomment below and update the code to test deleteNamespacedNetworkPolicy - //instance.deleteNamespacedNetworkPolicy(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('deleteNamespacedReplicaSet', function() { - it('should call deleteNamespacedReplicaSet successfully', function(done) { - //uncomment below and update the code to test deleteNamespacedReplicaSet - //instance.deleteNamespacedReplicaSet(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('deletePodSecurityPolicy', function() { - it('should call deletePodSecurityPolicy successfully', function(done) { - //uncomment below and update the code to test deletePodSecurityPolicy - //instance.deletePodSecurityPolicy(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('deleteThirdPartyResource', function() { - it('should call deleteThirdPartyResource successfully', function(done) { - //uncomment below and update the code to test deleteThirdPartyResource - //instance.deleteThirdPartyResource(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('getAPIResources', function() { - it('should call getAPIResources successfully', function(done) { - //uncomment below and update the code to test getAPIResources - //instance.getAPIResources(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('listDaemonSetForAllNamespaces', function() { - it('should call listDaemonSetForAllNamespaces successfully', function(done) { - //uncomment below and update the code to test listDaemonSetForAllNamespaces - //instance.listDaemonSetForAllNamespaces(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('listDeploymentForAllNamespaces', function() { - it('should call listDeploymentForAllNamespaces successfully', function(done) { - //uncomment below and update the code to test listDeploymentForAllNamespaces - //instance.listDeploymentForAllNamespaces(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('listIngressForAllNamespaces', function() { - it('should call listIngressForAllNamespaces successfully', function(done) { - //uncomment below and update the code to test listIngressForAllNamespaces - //instance.listIngressForAllNamespaces(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('listNamespacedDaemonSet', function() { - it('should call listNamespacedDaemonSet successfully', function(done) { - //uncomment below and update the code to test listNamespacedDaemonSet - //instance.listNamespacedDaemonSet(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('listNamespacedDeployment', function() { - it('should call listNamespacedDeployment successfully', function(done) { - //uncomment below and update the code to test listNamespacedDeployment - //instance.listNamespacedDeployment(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('listNamespacedIngress', function() { - it('should call listNamespacedIngress successfully', function(done) { - //uncomment below and update the code to test listNamespacedIngress - //instance.listNamespacedIngress(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('listNamespacedNetworkPolicy', function() { - it('should call listNamespacedNetworkPolicy successfully', function(done) { - //uncomment below and update the code to test listNamespacedNetworkPolicy - //instance.listNamespacedNetworkPolicy(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('listNamespacedReplicaSet', function() { - it('should call listNamespacedReplicaSet successfully', function(done) { - //uncomment below and update the code to test listNamespacedReplicaSet - //instance.listNamespacedReplicaSet(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('listNetworkPolicyForAllNamespaces', function() { - it('should call listNetworkPolicyForAllNamespaces successfully', function(done) { - //uncomment below and update the code to test listNetworkPolicyForAllNamespaces - //instance.listNetworkPolicyForAllNamespaces(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('listPodSecurityPolicy', function() { - it('should call listPodSecurityPolicy successfully', function(done) { - //uncomment below and update the code to test listPodSecurityPolicy - //instance.listPodSecurityPolicy(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('listReplicaSetForAllNamespaces', function() { - it('should call listReplicaSetForAllNamespaces successfully', function(done) { - //uncomment below and update the code to test listReplicaSetForAllNamespaces - //instance.listReplicaSetForAllNamespaces(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('listThirdPartyResource', function() { - it('should call listThirdPartyResource successfully', function(done) { - //uncomment below and update the code to test listThirdPartyResource - //instance.listThirdPartyResource(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('patchNamespacedDaemonSet', function() { - it('should call patchNamespacedDaemonSet successfully', function(done) { - //uncomment below and update the code to test patchNamespacedDaemonSet - //instance.patchNamespacedDaemonSet(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('patchNamespacedDaemonSetStatus', function() { - it('should call patchNamespacedDaemonSetStatus successfully', function(done) { - //uncomment below and update the code to test patchNamespacedDaemonSetStatus - //instance.patchNamespacedDaemonSetStatus(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('patchNamespacedDeployment', function() { - it('should call patchNamespacedDeployment successfully', function(done) { - //uncomment below and update the code to test patchNamespacedDeployment - //instance.patchNamespacedDeployment(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('patchNamespacedDeploymentStatus', function() { - it('should call patchNamespacedDeploymentStatus successfully', function(done) { - //uncomment below and update the code to test patchNamespacedDeploymentStatus - //instance.patchNamespacedDeploymentStatus(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('patchNamespacedDeploymentsScale', function() { - it('should call patchNamespacedDeploymentsScale successfully', function(done) { - //uncomment below and update the code to test patchNamespacedDeploymentsScale - //instance.patchNamespacedDeploymentsScale(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('patchNamespacedIngress', function() { - it('should call patchNamespacedIngress successfully', function(done) { - //uncomment below and update the code to test patchNamespacedIngress - //instance.patchNamespacedIngress(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('patchNamespacedIngressStatus', function() { - it('should call patchNamespacedIngressStatus successfully', function(done) { - //uncomment below and update the code to test patchNamespacedIngressStatus - //instance.patchNamespacedIngressStatus(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('patchNamespacedNetworkPolicy', function() { - it('should call patchNamespacedNetworkPolicy successfully', function(done) { - //uncomment below and update the code to test patchNamespacedNetworkPolicy - //instance.patchNamespacedNetworkPolicy(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('patchNamespacedReplicaSet', function() { - it('should call patchNamespacedReplicaSet successfully', function(done) { - //uncomment below and update the code to test patchNamespacedReplicaSet - //instance.patchNamespacedReplicaSet(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('patchNamespacedReplicaSetStatus', function() { - it('should call patchNamespacedReplicaSetStatus successfully', function(done) { - //uncomment below and update the code to test patchNamespacedReplicaSetStatus - //instance.patchNamespacedReplicaSetStatus(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('patchNamespacedReplicasetsScale', function() { - it('should call patchNamespacedReplicasetsScale successfully', function(done) { - //uncomment below and update the code to test patchNamespacedReplicasetsScale - //instance.patchNamespacedReplicasetsScale(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('patchNamespacedReplicationcontrollersScale', function() { - it('should call patchNamespacedReplicationcontrollersScale successfully', function(done) { - //uncomment below and update the code to test patchNamespacedReplicationcontrollersScale - //instance.patchNamespacedReplicationcontrollersScale(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('patchPodSecurityPolicy', function() { - it('should call patchPodSecurityPolicy successfully', function(done) { - //uncomment below and update the code to test patchPodSecurityPolicy - //instance.patchPodSecurityPolicy(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('patchThirdPartyResource', function() { - it('should call patchThirdPartyResource successfully', function(done) { - //uncomment below and update the code to test patchThirdPartyResource - //instance.patchThirdPartyResource(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('readNamespacedDaemonSet', function() { - it('should call readNamespacedDaemonSet successfully', function(done) { - //uncomment below and update the code to test readNamespacedDaemonSet - //instance.readNamespacedDaemonSet(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('readNamespacedDaemonSetStatus', function() { - it('should call readNamespacedDaemonSetStatus successfully', function(done) { - //uncomment below and update the code to test readNamespacedDaemonSetStatus - //instance.readNamespacedDaemonSetStatus(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('readNamespacedDeployment', function() { - it('should call readNamespacedDeployment successfully', function(done) { - //uncomment below and update the code to test readNamespacedDeployment - //instance.readNamespacedDeployment(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('readNamespacedDeploymentStatus', function() { - it('should call readNamespacedDeploymentStatus successfully', function(done) { - //uncomment below and update the code to test readNamespacedDeploymentStatus - //instance.readNamespacedDeploymentStatus(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('readNamespacedDeploymentsScale', function() { - it('should call readNamespacedDeploymentsScale successfully', function(done) { - //uncomment below and update the code to test readNamespacedDeploymentsScale - //instance.readNamespacedDeploymentsScale(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('readNamespacedIngress', function() { - it('should call readNamespacedIngress successfully', function(done) { - //uncomment below and update the code to test readNamespacedIngress - //instance.readNamespacedIngress(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('readNamespacedIngressStatus', function() { - it('should call readNamespacedIngressStatus successfully', function(done) { - //uncomment below and update the code to test readNamespacedIngressStatus - //instance.readNamespacedIngressStatus(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('readNamespacedNetworkPolicy', function() { - it('should call readNamespacedNetworkPolicy successfully', function(done) { - //uncomment below and update the code to test readNamespacedNetworkPolicy - //instance.readNamespacedNetworkPolicy(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('readNamespacedReplicaSet', function() { - it('should call readNamespacedReplicaSet successfully', function(done) { - //uncomment below and update the code to test readNamespacedReplicaSet - //instance.readNamespacedReplicaSet(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('readNamespacedReplicaSetStatus', function() { - it('should call readNamespacedReplicaSetStatus successfully', function(done) { - //uncomment below and update the code to test readNamespacedReplicaSetStatus - //instance.readNamespacedReplicaSetStatus(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('readNamespacedReplicasetsScale', function() { - it('should call readNamespacedReplicasetsScale successfully', function(done) { - //uncomment below and update the code to test readNamespacedReplicasetsScale - //instance.readNamespacedReplicasetsScale(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('readNamespacedReplicationcontrollersScale', function() { - it('should call readNamespacedReplicationcontrollersScale successfully', function(done) { - //uncomment below and update the code to test readNamespacedReplicationcontrollersScale - //instance.readNamespacedReplicationcontrollersScale(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('readPodSecurityPolicy', function() { - it('should call readPodSecurityPolicy successfully', function(done) { - //uncomment below and update the code to test readPodSecurityPolicy - //instance.readPodSecurityPolicy(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('readThirdPartyResource', function() { - it('should call readThirdPartyResource successfully', function(done) { - //uncomment below and update the code to test readThirdPartyResource - //instance.readThirdPartyResource(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('replaceNamespacedDaemonSet', function() { - it('should call replaceNamespacedDaemonSet successfully', function(done) { - //uncomment below and update the code to test replaceNamespacedDaemonSet - //instance.replaceNamespacedDaemonSet(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('replaceNamespacedDaemonSetStatus', function() { - it('should call replaceNamespacedDaemonSetStatus successfully', function(done) { - //uncomment below and update the code to test replaceNamespacedDaemonSetStatus - //instance.replaceNamespacedDaemonSetStatus(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('replaceNamespacedDeployment', function() { - it('should call replaceNamespacedDeployment successfully', function(done) { - //uncomment below and update the code to test replaceNamespacedDeployment - //instance.replaceNamespacedDeployment(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('replaceNamespacedDeploymentStatus', function() { - it('should call replaceNamespacedDeploymentStatus successfully', function(done) { - //uncomment below and update the code to test replaceNamespacedDeploymentStatus - //instance.replaceNamespacedDeploymentStatus(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('replaceNamespacedDeploymentsScale', function() { - it('should call replaceNamespacedDeploymentsScale successfully', function(done) { - //uncomment below and update the code to test replaceNamespacedDeploymentsScale - //instance.replaceNamespacedDeploymentsScale(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('replaceNamespacedIngress', function() { - it('should call replaceNamespacedIngress successfully', function(done) { - //uncomment below and update the code to test replaceNamespacedIngress - //instance.replaceNamespacedIngress(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('replaceNamespacedIngressStatus', function() { - it('should call replaceNamespacedIngressStatus successfully', function(done) { - //uncomment below and update the code to test replaceNamespacedIngressStatus - //instance.replaceNamespacedIngressStatus(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('replaceNamespacedNetworkPolicy', function() { - it('should call replaceNamespacedNetworkPolicy successfully', function(done) { - //uncomment below and update the code to test replaceNamespacedNetworkPolicy - //instance.replaceNamespacedNetworkPolicy(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('replaceNamespacedReplicaSet', function() { - it('should call replaceNamespacedReplicaSet successfully', function(done) { - //uncomment below and update the code to test replaceNamespacedReplicaSet - //instance.replaceNamespacedReplicaSet(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('replaceNamespacedReplicaSetStatus', function() { - it('should call replaceNamespacedReplicaSetStatus successfully', function(done) { - //uncomment below and update the code to test replaceNamespacedReplicaSetStatus - //instance.replaceNamespacedReplicaSetStatus(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('replaceNamespacedReplicasetsScale', function() { - it('should call replaceNamespacedReplicasetsScale successfully', function(done) { - //uncomment below and update the code to test replaceNamespacedReplicasetsScale - //instance.replaceNamespacedReplicasetsScale(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('replaceNamespacedReplicationcontrollersScale', function() { - it('should call replaceNamespacedReplicationcontrollersScale successfully', function(done) { - //uncomment below and update the code to test replaceNamespacedReplicationcontrollersScale - //instance.replaceNamespacedReplicationcontrollersScale(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('replacePodSecurityPolicy', function() { - it('should call replacePodSecurityPolicy successfully', function(done) { - //uncomment below and update the code to test replacePodSecurityPolicy - //instance.replacePodSecurityPolicy(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('replaceThirdPartyResource', function() { - it('should call replaceThirdPartyResource successfully', function(done) { - //uncomment below and update the code to test replaceThirdPartyResource - //instance.replaceThirdPartyResource(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - }); - -})); diff --git a/kubernetes/test/api/LogsApi.spec.js b/kubernetes/test/api/LogsApi.spec.js deleted file mode 100644 index 48b0cad57e..0000000000 --- a/kubernetes/test/api/LogsApi.spec.js +++ /dev/null @@ -1,73 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.LogsApi(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('LogsApi', function() { - describe('logFileHandler', function() { - it('should call logFileHandler successfully', function(done) { - //uncomment below and update the code to test logFileHandler - //instance.logFileHandler(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('logFileListHandler', function() { - it('should call logFileListHandler successfully', function(done) { - //uncomment below and update the code to test logFileListHandler - //instance.logFileListHandler(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - }); - -})); diff --git a/kubernetes/test/api/PolicyApi.spec.js b/kubernetes/test/api/PolicyApi.spec.js deleted file mode 100644 index 7ee58699cf..0000000000 --- a/kubernetes/test/api/PolicyApi.spec.js +++ /dev/null @@ -1,63 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.PolicyApi(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('PolicyApi', function() { - describe('getAPIGroup', function() { - it('should call getAPIGroup successfully', function(done) { - //uncomment below and update the code to test getAPIGroup - //instance.getAPIGroup(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - }); - -})); diff --git a/kubernetes/test/api/Policy_v1beta1Api.spec.js b/kubernetes/test/api/Policy_v1beta1Api.spec.js deleted file mode 100644 index 5c434eca9b..0000000000 --- a/kubernetes/test/api/Policy_v1beta1Api.spec.js +++ /dev/null @@ -1,173 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.Policy_v1beta1Api(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('Policy_v1beta1Api', function() { - describe('createNamespacedPodDisruptionBudget', function() { - it('should call createNamespacedPodDisruptionBudget successfully', function(done) { - //uncomment below and update the code to test createNamespacedPodDisruptionBudget - //instance.createNamespacedPodDisruptionBudget(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('deleteCollectionNamespacedPodDisruptionBudget', function() { - it('should call deleteCollectionNamespacedPodDisruptionBudget successfully', function(done) { - //uncomment below and update the code to test deleteCollectionNamespacedPodDisruptionBudget - //instance.deleteCollectionNamespacedPodDisruptionBudget(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('deleteNamespacedPodDisruptionBudget', function() { - it('should call deleteNamespacedPodDisruptionBudget successfully', function(done) { - //uncomment below and update the code to test deleteNamespacedPodDisruptionBudget - //instance.deleteNamespacedPodDisruptionBudget(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('getAPIResources', function() { - it('should call getAPIResources successfully', function(done) { - //uncomment below and update the code to test getAPIResources - //instance.getAPIResources(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('listNamespacedPodDisruptionBudget', function() { - it('should call listNamespacedPodDisruptionBudget successfully', function(done) { - //uncomment below and update the code to test listNamespacedPodDisruptionBudget - //instance.listNamespacedPodDisruptionBudget(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('listPodDisruptionBudgetForAllNamespaces', function() { - it('should call listPodDisruptionBudgetForAllNamespaces successfully', function(done) { - //uncomment below and update the code to test listPodDisruptionBudgetForAllNamespaces - //instance.listPodDisruptionBudgetForAllNamespaces(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('patchNamespacedPodDisruptionBudget', function() { - it('should call patchNamespacedPodDisruptionBudget successfully', function(done) { - //uncomment below and update the code to test patchNamespacedPodDisruptionBudget - //instance.patchNamespacedPodDisruptionBudget(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('patchNamespacedPodDisruptionBudgetStatus', function() { - it('should call patchNamespacedPodDisruptionBudgetStatus successfully', function(done) { - //uncomment below and update the code to test patchNamespacedPodDisruptionBudgetStatus - //instance.patchNamespacedPodDisruptionBudgetStatus(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('readNamespacedPodDisruptionBudget', function() { - it('should call readNamespacedPodDisruptionBudget successfully', function(done) { - //uncomment below and update the code to test readNamespacedPodDisruptionBudget - //instance.readNamespacedPodDisruptionBudget(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('readNamespacedPodDisruptionBudgetStatus', function() { - it('should call readNamespacedPodDisruptionBudgetStatus successfully', function(done) { - //uncomment below and update the code to test readNamespacedPodDisruptionBudgetStatus - //instance.readNamespacedPodDisruptionBudgetStatus(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('replaceNamespacedPodDisruptionBudget', function() { - it('should call replaceNamespacedPodDisruptionBudget successfully', function(done) { - //uncomment below and update the code to test replaceNamespacedPodDisruptionBudget - //instance.replaceNamespacedPodDisruptionBudget(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('replaceNamespacedPodDisruptionBudgetStatus', function() { - it('should call replaceNamespacedPodDisruptionBudgetStatus successfully', function(done) { - //uncomment below and update the code to test replaceNamespacedPodDisruptionBudgetStatus - //instance.replaceNamespacedPodDisruptionBudgetStatus(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - }); - -})); diff --git a/kubernetes/test/api/RbacAuthorizationApi.spec.js b/kubernetes/test/api/RbacAuthorizationApi.spec.js deleted file mode 100644 index 58713569ce..0000000000 --- a/kubernetes/test/api/RbacAuthorizationApi.spec.js +++ /dev/null @@ -1,63 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.RbacAuthorizationApi(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('RbacAuthorizationApi', function() { - describe('getAPIGroup', function() { - it('should call getAPIGroup successfully', function(done) { - //uncomment below and update the code to test getAPIGroup - //instance.getAPIGroup(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - }); - -})); diff --git a/kubernetes/test/api/RbacAuthorization_v1alpha1Api.spec.js b/kubernetes/test/api/RbacAuthorization_v1alpha1Api.spec.js deleted file mode 100644 index e2de5d5b6f..0000000000 --- a/kubernetes/test/api/RbacAuthorization_v1alpha1Api.spec.js +++ /dev/null @@ -1,363 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.RbacAuthorization_v1alpha1Api(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('RbacAuthorization_v1alpha1Api', function() { - describe('createClusterRole', function() { - it('should call createClusterRole successfully', function(done) { - //uncomment below and update the code to test createClusterRole - //instance.createClusterRole(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('createClusterRoleBinding', function() { - it('should call createClusterRoleBinding successfully', function(done) { - //uncomment below and update the code to test createClusterRoleBinding - //instance.createClusterRoleBinding(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('createNamespacedRole', function() { - it('should call createNamespacedRole successfully', function(done) { - //uncomment below and update the code to test createNamespacedRole - //instance.createNamespacedRole(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('createNamespacedRoleBinding', function() { - it('should call createNamespacedRoleBinding successfully', function(done) { - //uncomment below and update the code to test createNamespacedRoleBinding - //instance.createNamespacedRoleBinding(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('deleteClusterRole', function() { - it('should call deleteClusterRole successfully', function(done) { - //uncomment below and update the code to test deleteClusterRole - //instance.deleteClusterRole(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('deleteClusterRoleBinding', function() { - it('should call deleteClusterRoleBinding successfully', function(done) { - //uncomment below and update the code to test deleteClusterRoleBinding - //instance.deleteClusterRoleBinding(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('deleteCollectionClusterRole', function() { - it('should call deleteCollectionClusterRole successfully', function(done) { - //uncomment below and update the code to test deleteCollectionClusterRole - //instance.deleteCollectionClusterRole(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('deleteCollectionClusterRoleBinding', function() { - it('should call deleteCollectionClusterRoleBinding successfully', function(done) { - //uncomment below and update the code to test deleteCollectionClusterRoleBinding - //instance.deleteCollectionClusterRoleBinding(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('deleteCollectionNamespacedRole', function() { - it('should call deleteCollectionNamespacedRole successfully', function(done) { - //uncomment below and update the code to test deleteCollectionNamespacedRole - //instance.deleteCollectionNamespacedRole(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('deleteCollectionNamespacedRoleBinding', function() { - it('should call deleteCollectionNamespacedRoleBinding successfully', function(done) { - //uncomment below and update the code to test deleteCollectionNamespacedRoleBinding - //instance.deleteCollectionNamespacedRoleBinding(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('deleteNamespacedRole', function() { - it('should call deleteNamespacedRole successfully', function(done) { - //uncomment below and update the code to test deleteNamespacedRole - //instance.deleteNamespacedRole(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('deleteNamespacedRoleBinding', function() { - it('should call deleteNamespacedRoleBinding successfully', function(done) { - //uncomment below and update the code to test deleteNamespacedRoleBinding - //instance.deleteNamespacedRoleBinding(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('getAPIResources', function() { - it('should call getAPIResources successfully', function(done) { - //uncomment below and update the code to test getAPIResources - //instance.getAPIResources(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('listClusterRole', function() { - it('should call listClusterRole successfully', function(done) { - //uncomment below and update the code to test listClusterRole - //instance.listClusterRole(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('listClusterRoleBinding', function() { - it('should call listClusterRoleBinding successfully', function(done) { - //uncomment below and update the code to test listClusterRoleBinding - //instance.listClusterRoleBinding(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('listNamespacedRole', function() { - it('should call listNamespacedRole successfully', function(done) { - //uncomment below and update the code to test listNamespacedRole - //instance.listNamespacedRole(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('listNamespacedRoleBinding', function() { - it('should call listNamespacedRoleBinding successfully', function(done) { - //uncomment below and update the code to test listNamespacedRoleBinding - //instance.listNamespacedRoleBinding(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('listRoleBindingForAllNamespaces', function() { - it('should call listRoleBindingForAllNamespaces successfully', function(done) { - //uncomment below and update the code to test listRoleBindingForAllNamespaces - //instance.listRoleBindingForAllNamespaces(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('listRoleForAllNamespaces', function() { - it('should call listRoleForAllNamespaces successfully', function(done) { - //uncomment below and update the code to test listRoleForAllNamespaces - //instance.listRoleForAllNamespaces(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('patchClusterRole', function() { - it('should call patchClusterRole successfully', function(done) { - //uncomment below and update the code to test patchClusterRole - //instance.patchClusterRole(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('patchClusterRoleBinding', function() { - it('should call patchClusterRoleBinding successfully', function(done) { - //uncomment below and update the code to test patchClusterRoleBinding - //instance.patchClusterRoleBinding(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('patchNamespacedRole', function() { - it('should call patchNamespacedRole successfully', function(done) { - //uncomment below and update the code to test patchNamespacedRole - //instance.patchNamespacedRole(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('patchNamespacedRoleBinding', function() { - it('should call patchNamespacedRoleBinding successfully', function(done) { - //uncomment below and update the code to test patchNamespacedRoleBinding - //instance.patchNamespacedRoleBinding(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('readClusterRole', function() { - it('should call readClusterRole successfully', function(done) { - //uncomment below and update the code to test readClusterRole - //instance.readClusterRole(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('readClusterRoleBinding', function() { - it('should call readClusterRoleBinding successfully', function(done) { - //uncomment below and update the code to test readClusterRoleBinding - //instance.readClusterRoleBinding(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('readNamespacedRole', function() { - it('should call readNamespacedRole successfully', function(done) { - //uncomment below and update the code to test readNamespacedRole - //instance.readNamespacedRole(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('readNamespacedRoleBinding', function() { - it('should call readNamespacedRoleBinding successfully', function(done) { - //uncomment below and update the code to test readNamespacedRoleBinding - //instance.readNamespacedRoleBinding(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('replaceClusterRole', function() { - it('should call replaceClusterRole successfully', function(done) { - //uncomment below and update the code to test replaceClusterRole - //instance.replaceClusterRole(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('replaceClusterRoleBinding', function() { - it('should call replaceClusterRoleBinding successfully', function(done) { - //uncomment below and update the code to test replaceClusterRoleBinding - //instance.replaceClusterRoleBinding(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('replaceNamespacedRole', function() { - it('should call replaceNamespacedRole successfully', function(done) { - //uncomment below and update the code to test replaceNamespacedRole - //instance.replaceNamespacedRole(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('replaceNamespacedRoleBinding', function() { - it('should call replaceNamespacedRoleBinding successfully', function(done) { - //uncomment below and update the code to test replaceNamespacedRoleBinding - //instance.replaceNamespacedRoleBinding(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - }); - -})); diff --git a/kubernetes/test/api/RbacAuthorization_v1beta1Api.spec.js b/kubernetes/test/api/RbacAuthorization_v1beta1Api.spec.js deleted file mode 100644 index e3c633c705..0000000000 --- a/kubernetes/test/api/RbacAuthorization_v1beta1Api.spec.js +++ /dev/null @@ -1,363 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.RbacAuthorization_v1beta1Api(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('RbacAuthorization_v1beta1Api', function() { - describe('createClusterRole', function() { - it('should call createClusterRole successfully', function(done) { - //uncomment below and update the code to test createClusterRole - //instance.createClusterRole(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('createClusterRoleBinding', function() { - it('should call createClusterRoleBinding successfully', function(done) { - //uncomment below and update the code to test createClusterRoleBinding - //instance.createClusterRoleBinding(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('createNamespacedRole', function() { - it('should call createNamespacedRole successfully', function(done) { - //uncomment below and update the code to test createNamespacedRole - //instance.createNamespacedRole(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('createNamespacedRoleBinding', function() { - it('should call createNamespacedRoleBinding successfully', function(done) { - //uncomment below and update the code to test createNamespacedRoleBinding - //instance.createNamespacedRoleBinding(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('deleteClusterRole', function() { - it('should call deleteClusterRole successfully', function(done) { - //uncomment below and update the code to test deleteClusterRole - //instance.deleteClusterRole(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('deleteClusterRoleBinding', function() { - it('should call deleteClusterRoleBinding successfully', function(done) { - //uncomment below and update the code to test deleteClusterRoleBinding - //instance.deleteClusterRoleBinding(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('deleteCollectionClusterRole', function() { - it('should call deleteCollectionClusterRole successfully', function(done) { - //uncomment below and update the code to test deleteCollectionClusterRole - //instance.deleteCollectionClusterRole(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('deleteCollectionClusterRoleBinding', function() { - it('should call deleteCollectionClusterRoleBinding successfully', function(done) { - //uncomment below and update the code to test deleteCollectionClusterRoleBinding - //instance.deleteCollectionClusterRoleBinding(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('deleteCollectionNamespacedRole', function() { - it('should call deleteCollectionNamespacedRole successfully', function(done) { - //uncomment below and update the code to test deleteCollectionNamespacedRole - //instance.deleteCollectionNamespacedRole(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('deleteCollectionNamespacedRoleBinding', function() { - it('should call deleteCollectionNamespacedRoleBinding successfully', function(done) { - //uncomment below and update the code to test deleteCollectionNamespacedRoleBinding - //instance.deleteCollectionNamespacedRoleBinding(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('deleteNamespacedRole', function() { - it('should call deleteNamespacedRole successfully', function(done) { - //uncomment below and update the code to test deleteNamespacedRole - //instance.deleteNamespacedRole(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('deleteNamespacedRoleBinding', function() { - it('should call deleteNamespacedRoleBinding successfully', function(done) { - //uncomment below and update the code to test deleteNamespacedRoleBinding - //instance.deleteNamespacedRoleBinding(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('getAPIResources', function() { - it('should call getAPIResources successfully', function(done) { - //uncomment below and update the code to test getAPIResources - //instance.getAPIResources(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('listClusterRole', function() { - it('should call listClusterRole successfully', function(done) { - //uncomment below and update the code to test listClusterRole - //instance.listClusterRole(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('listClusterRoleBinding', function() { - it('should call listClusterRoleBinding successfully', function(done) { - //uncomment below and update the code to test listClusterRoleBinding - //instance.listClusterRoleBinding(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('listNamespacedRole', function() { - it('should call listNamespacedRole successfully', function(done) { - //uncomment below and update the code to test listNamespacedRole - //instance.listNamespacedRole(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('listNamespacedRoleBinding', function() { - it('should call listNamespacedRoleBinding successfully', function(done) { - //uncomment below and update the code to test listNamespacedRoleBinding - //instance.listNamespacedRoleBinding(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('listRoleBindingForAllNamespaces', function() { - it('should call listRoleBindingForAllNamespaces successfully', function(done) { - //uncomment below and update the code to test listRoleBindingForAllNamespaces - //instance.listRoleBindingForAllNamespaces(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('listRoleForAllNamespaces', function() { - it('should call listRoleForAllNamespaces successfully', function(done) { - //uncomment below and update the code to test listRoleForAllNamespaces - //instance.listRoleForAllNamespaces(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('patchClusterRole', function() { - it('should call patchClusterRole successfully', function(done) { - //uncomment below and update the code to test patchClusterRole - //instance.patchClusterRole(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('patchClusterRoleBinding', function() { - it('should call patchClusterRoleBinding successfully', function(done) { - //uncomment below and update the code to test patchClusterRoleBinding - //instance.patchClusterRoleBinding(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('patchNamespacedRole', function() { - it('should call patchNamespacedRole successfully', function(done) { - //uncomment below and update the code to test patchNamespacedRole - //instance.patchNamespacedRole(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('patchNamespacedRoleBinding', function() { - it('should call patchNamespacedRoleBinding successfully', function(done) { - //uncomment below and update the code to test patchNamespacedRoleBinding - //instance.patchNamespacedRoleBinding(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('readClusterRole', function() { - it('should call readClusterRole successfully', function(done) { - //uncomment below and update the code to test readClusterRole - //instance.readClusterRole(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('readClusterRoleBinding', function() { - it('should call readClusterRoleBinding successfully', function(done) { - //uncomment below and update the code to test readClusterRoleBinding - //instance.readClusterRoleBinding(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('readNamespacedRole', function() { - it('should call readNamespacedRole successfully', function(done) { - //uncomment below and update the code to test readNamespacedRole - //instance.readNamespacedRole(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('readNamespacedRoleBinding', function() { - it('should call readNamespacedRoleBinding successfully', function(done) { - //uncomment below and update the code to test readNamespacedRoleBinding - //instance.readNamespacedRoleBinding(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('replaceClusterRole', function() { - it('should call replaceClusterRole successfully', function(done) { - //uncomment below and update the code to test replaceClusterRole - //instance.replaceClusterRole(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('replaceClusterRoleBinding', function() { - it('should call replaceClusterRoleBinding successfully', function(done) { - //uncomment below and update the code to test replaceClusterRoleBinding - //instance.replaceClusterRoleBinding(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('replaceNamespacedRole', function() { - it('should call replaceNamespacedRole successfully', function(done) { - //uncomment below and update the code to test replaceNamespacedRole - //instance.replaceNamespacedRole(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('replaceNamespacedRoleBinding', function() { - it('should call replaceNamespacedRoleBinding successfully', function(done) { - //uncomment below and update the code to test replaceNamespacedRoleBinding - //instance.replaceNamespacedRoleBinding(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - }); - -})); diff --git a/kubernetes/test/api/SettingsApi.spec.js b/kubernetes/test/api/SettingsApi.spec.js deleted file mode 100644 index 539c40c019..0000000000 --- a/kubernetes/test/api/SettingsApi.spec.js +++ /dev/null @@ -1,63 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.SettingsApi(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('SettingsApi', function() { - describe('getAPIGroup', function() { - it('should call getAPIGroup successfully', function(done) { - //uncomment below and update the code to test getAPIGroup - //instance.getAPIGroup(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - }); - -})); diff --git a/kubernetes/test/api/Settings_v1alpha1Api.spec.js b/kubernetes/test/api/Settings_v1alpha1Api.spec.js deleted file mode 100644 index 19ae54ab72..0000000000 --- a/kubernetes/test/api/Settings_v1alpha1Api.spec.js +++ /dev/null @@ -1,143 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.Settings_v1alpha1Api(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('Settings_v1alpha1Api', function() { - describe('createNamespacedPodPreset', function() { - it('should call createNamespacedPodPreset successfully', function(done) { - //uncomment below and update the code to test createNamespacedPodPreset - //instance.createNamespacedPodPreset(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('deleteCollectionNamespacedPodPreset', function() { - it('should call deleteCollectionNamespacedPodPreset successfully', function(done) { - //uncomment below and update the code to test deleteCollectionNamespacedPodPreset - //instance.deleteCollectionNamespacedPodPreset(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('deleteNamespacedPodPreset', function() { - it('should call deleteNamespacedPodPreset successfully', function(done) { - //uncomment below and update the code to test deleteNamespacedPodPreset - //instance.deleteNamespacedPodPreset(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('getAPIResources', function() { - it('should call getAPIResources successfully', function(done) { - //uncomment below and update the code to test getAPIResources - //instance.getAPIResources(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('listNamespacedPodPreset', function() { - it('should call listNamespacedPodPreset successfully', function(done) { - //uncomment below and update the code to test listNamespacedPodPreset - //instance.listNamespacedPodPreset(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('listPodPresetForAllNamespaces', function() { - it('should call listPodPresetForAllNamespaces successfully', function(done) { - //uncomment below and update the code to test listPodPresetForAllNamespaces - //instance.listPodPresetForAllNamespaces(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('patchNamespacedPodPreset', function() { - it('should call patchNamespacedPodPreset successfully', function(done) { - //uncomment below and update the code to test patchNamespacedPodPreset - //instance.patchNamespacedPodPreset(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('readNamespacedPodPreset', function() { - it('should call readNamespacedPodPreset successfully', function(done) { - //uncomment below and update the code to test readNamespacedPodPreset - //instance.readNamespacedPodPreset(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('replaceNamespacedPodPreset', function() { - it('should call replaceNamespacedPodPreset successfully', function(done) { - //uncomment below and update the code to test replaceNamespacedPodPreset - //instance.replaceNamespacedPodPreset(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - }); - -})); diff --git a/kubernetes/test/api/StorageApi.spec.js b/kubernetes/test/api/StorageApi.spec.js deleted file mode 100644 index 4df7f2c36b..0000000000 --- a/kubernetes/test/api/StorageApi.spec.js +++ /dev/null @@ -1,63 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.StorageApi(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('StorageApi', function() { - describe('getAPIGroup', function() { - it('should call getAPIGroup successfully', function(done) { - //uncomment below and update the code to test getAPIGroup - //instance.getAPIGroup(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - }); - -})); diff --git a/kubernetes/test/api/Storage_v1Api.spec.js b/kubernetes/test/api/Storage_v1Api.spec.js deleted file mode 100644 index 8852cc0f70..0000000000 --- a/kubernetes/test/api/Storage_v1Api.spec.js +++ /dev/null @@ -1,133 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.Storage_v1Api(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('Storage_v1Api', function() { - describe('createStorageClass', function() { - it('should call createStorageClass successfully', function(done) { - //uncomment below and update the code to test createStorageClass - //instance.createStorageClass(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('deleteCollectionStorageClass', function() { - it('should call deleteCollectionStorageClass successfully', function(done) { - //uncomment below and update the code to test deleteCollectionStorageClass - //instance.deleteCollectionStorageClass(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('deleteStorageClass', function() { - it('should call deleteStorageClass successfully', function(done) { - //uncomment below and update the code to test deleteStorageClass - //instance.deleteStorageClass(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('getAPIResources', function() { - it('should call getAPIResources successfully', function(done) { - //uncomment below and update the code to test getAPIResources - //instance.getAPIResources(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('listStorageClass', function() { - it('should call listStorageClass successfully', function(done) { - //uncomment below and update the code to test listStorageClass - //instance.listStorageClass(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('patchStorageClass', function() { - it('should call patchStorageClass successfully', function(done) { - //uncomment below and update the code to test patchStorageClass - //instance.patchStorageClass(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('readStorageClass', function() { - it('should call readStorageClass successfully', function(done) { - //uncomment below and update the code to test readStorageClass - //instance.readStorageClass(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('replaceStorageClass', function() { - it('should call replaceStorageClass successfully', function(done) { - //uncomment below and update the code to test replaceStorageClass - //instance.replaceStorageClass(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - }); - -})); diff --git a/kubernetes/test/api/Storage_v1beta1Api.spec.js b/kubernetes/test/api/Storage_v1beta1Api.spec.js deleted file mode 100644 index 2c61232bee..0000000000 --- a/kubernetes/test/api/Storage_v1beta1Api.spec.js +++ /dev/null @@ -1,133 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.Storage_v1beta1Api(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('Storage_v1beta1Api', function() { - describe('createStorageClass', function() { - it('should call createStorageClass successfully', function(done) { - //uncomment below and update the code to test createStorageClass - //instance.createStorageClass(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('deleteCollectionStorageClass', function() { - it('should call deleteCollectionStorageClass successfully', function(done) { - //uncomment below and update the code to test deleteCollectionStorageClass - //instance.deleteCollectionStorageClass(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('deleteStorageClass', function() { - it('should call deleteStorageClass successfully', function(done) { - //uncomment below and update the code to test deleteStorageClass - //instance.deleteStorageClass(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('getAPIResources', function() { - it('should call getAPIResources successfully', function(done) { - //uncomment below and update the code to test getAPIResources - //instance.getAPIResources(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('listStorageClass', function() { - it('should call listStorageClass successfully', function(done) { - //uncomment below and update the code to test listStorageClass - //instance.listStorageClass(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('patchStorageClass', function() { - it('should call patchStorageClass successfully', function(done) { - //uncomment below and update the code to test patchStorageClass - //instance.patchStorageClass(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('readStorageClass', function() { - it('should call readStorageClass successfully', function(done) { - //uncomment below and update the code to test readStorageClass - //instance.readStorageClass(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('replaceStorageClass', function() { - it('should call replaceStorageClass successfully', function(done) { - //uncomment below and update the code to test replaceStorageClass - //instance.replaceStorageClass(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - }); - -})); diff --git a/kubernetes/test/api/VersionApi.spec.js b/kubernetes/test/api/VersionApi.spec.js deleted file mode 100644 index dc27a8a9af..0000000000 --- a/kubernetes/test/api/VersionApi.spec.js +++ /dev/null @@ -1,63 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.VersionApi(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('VersionApi', function() { - describe('getCode', function() { - it('should call getCode successfully', function(done) { - //uncomment below and update the code to test getCode - //instance.getCode(pet, function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - }); - -})); diff --git a/kubernetes/test/model/AppsV1beta1Deployment.spec.js b/kubernetes/test/model/AppsV1beta1Deployment.spec.js deleted file mode 100644 index 49596719a4..0000000000 --- a/kubernetes/test/model/AppsV1beta1Deployment.spec.js +++ /dev/null @@ -1,89 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.AppsV1beta1Deployment(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('AppsV1beta1Deployment', function() { - it('should create an instance of AppsV1beta1Deployment', function() { - // uncomment below and update the code to test AppsV1beta1Deployment - //var instane = new KubernetesJsClient.AppsV1beta1Deployment(); - //expect(instance).to.be.a(KubernetesJsClient.AppsV1beta1Deployment); - }); - - it('should have the property apiVersion (base name: "apiVersion")', function() { - // uncomment below and update the code to test the property apiVersion - //var instane = new KubernetesJsClient.AppsV1beta1Deployment(); - //expect(instance).to.be(); - }); - - it('should have the property kind (base name: "kind")', function() { - // uncomment below and update the code to test the property kind - //var instane = new KubernetesJsClient.AppsV1beta1Deployment(); - //expect(instance).to.be(); - }); - - it('should have the property metadata (base name: "metadata")', function() { - // uncomment below and update the code to test the property metadata - //var instane = new KubernetesJsClient.AppsV1beta1Deployment(); - //expect(instance).to.be(); - }); - - it('should have the property spec (base name: "spec")', function() { - // uncomment below and update the code to test the property spec - //var instane = new KubernetesJsClient.AppsV1beta1Deployment(); - //expect(instance).to.be(); - }); - - it('should have the property status (base name: "status")', function() { - // uncomment below and update the code to test the property status - //var instane = new KubernetesJsClient.AppsV1beta1Deployment(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/AppsV1beta1DeploymentCondition.spec.js b/kubernetes/test/model/AppsV1beta1DeploymentCondition.spec.js deleted file mode 100644 index 0b9b9f5600..0000000000 --- a/kubernetes/test/model/AppsV1beta1DeploymentCondition.spec.js +++ /dev/null @@ -1,95 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.AppsV1beta1DeploymentCondition(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('AppsV1beta1DeploymentCondition', function() { - it('should create an instance of AppsV1beta1DeploymentCondition', function() { - // uncomment below and update the code to test AppsV1beta1DeploymentCondition - //var instane = new KubernetesJsClient.AppsV1beta1DeploymentCondition(); - //expect(instance).to.be.a(KubernetesJsClient.AppsV1beta1DeploymentCondition); - }); - - it('should have the property lastTransitionTime (base name: "lastTransitionTime")', function() { - // uncomment below and update the code to test the property lastTransitionTime - //var instane = new KubernetesJsClient.AppsV1beta1DeploymentCondition(); - //expect(instance).to.be(); - }); - - it('should have the property lastUpdateTime (base name: "lastUpdateTime")', function() { - // uncomment below and update the code to test the property lastUpdateTime - //var instane = new KubernetesJsClient.AppsV1beta1DeploymentCondition(); - //expect(instance).to.be(); - }); - - it('should have the property message (base name: "message")', function() { - // uncomment below and update the code to test the property message - //var instane = new KubernetesJsClient.AppsV1beta1DeploymentCondition(); - //expect(instance).to.be(); - }); - - it('should have the property reason (base name: "reason")', function() { - // uncomment below and update the code to test the property reason - //var instane = new KubernetesJsClient.AppsV1beta1DeploymentCondition(); - //expect(instance).to.be(); - }); - - it('should have the property status (base name: "status")', function() { - // uncomment below and update the code to test the property status - //var instane = new KubernetesJsClient.AppsV1beta1DeploymentCondition(); - //expect(instance).to.be(); - }); - - it('should have the property type (base name: "type")', function() { - // uncomment below and update the code to test the property type - //var instane = new KubernetesJsClient.AppsV1beta1DeploymentCondition(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/AppsV1beta1DeploymentList.spec.js b/kubernetes/test/model/AppsV1beta1DeploymentList.spec.js deleted file mode 100644 index bfb239ec63..0000000000 --- a/kubernetes/test/model/AppsV1beta1DeploymentList.spec.js +++ /dev/null @@ -1,83 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.AppsV1beta1DeploymentList(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('AppsV1beta1DeploymentList', function() { - it('should create an instance of AppsV1beta1DeploymentList', function() { - // uncomment below and update the code to test AppsV1beta1DeploymentList - //var instane = new KubernetesJsClient.AppsV1beta1DeploymentList(); - //expect(instance).to.be.a(KubernetesJsClient.AppsV1beta1DeploymentList); - }); - - it('should have the property apiVersion (base name: "apiVersion")', function() { - // uncomment below and update the code to test the property apiVersion - //var instane = new KubernetesJsClient.AppsV1beta1DeploymentList(); - //expect(instance).to.be(); - }); - - it('should have the property items (base name: "items")', function() { - // uncomment below and update the code to test the property items - //var instane = new KubernetesJsClient.AppsV1beta1DeploymentList(); - //expect(instance).to.be(); - }); - - it('should have the property kind (base name: "kind")', function() { - // uncomment below and update the code to test the property kind - //var instane = new KubernetesJsClient.AppsV1beta1DeploymentList(); - //expect(instance).to.be(); - }); - - it('should have the property metadata (base name: "metadata")', function() { - // uncomment below and update the code to test the property metadata - //var instane = new KubernetesJsClient.AppsV1beta1DeploymentList(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/AppsV1beta1DeploymentRollback.spec.js b/kubernetes/test/model/AppsV1beta1DeploymentRollback.spec.js deleted file mode 100644 index 0e68accd11..0000000000 --- a/kubernetes/test/model/AppsV1beta1DeploymentRollback.spec.js +++ /dev/null @@ -1,89 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.AppsV1beta1DeploymentRollback(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('AppsV1beta1DeploymentRollback', function() { - it('should create an instance of AppsV1beta1DeploymentRollback', function() { - // uncomment below and update the code to test AppsV1beta1DeploymentRollback - //var instane = new KubernetesJsClient.AppsV1beta1DeploymentRollback(); - //expect(instance).to.be.a(KubernetesJsClient.AppsV1beta1DeploymentRollback); - }); - - it('should have the property apiVersion (base name: "apiVersion")', function() { - // uncomment below and update the code to test the property apiVersion - //var instane = new KubernetesJsClient.AppsV1beta1DeploymentRollback(); - //expect(instance).to.be(); - }); - - it('should have the property kind (base name: "kind")', function() { - // uncomment below and update the code to test the property kind - //var instane = new KubernetesJsClient.AppsV1beta1DeploymentRollback(); - //expect(instance).to.be(); - }); - - it('should have the property name (base name: "name")', function() { - // uncomment below and update the code to test the property name - //var instane = new KubernetesJsClient.AppsV1beta1DeploymentRollback(); - //expect(instance).to.be(); - }); - - it('should have the property rollbackTo (base name: "rollbackTo")', function() { - // uncomment below and update the code to test the property rollbackTo - //var instane = new KubernetesJsClient.AppsV1beta1DeploymentRollback(); - //expect(instance).to.be(); - }); - - it('should have the property updatedAnnotations (base name: "updatedAnnotations")', function() { - // uncomment below and update the code to test the property updatedAnnotations - //var instane = new KubernetesJsClient.AppsV1beta1DeploymentRollback(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/AppsV1beta1DeploymentSpec.spec.js b/kubernetes/test/model/AppsV1beta1DeploymentSpec.spec.js deleted file mode 100644 index ad0778f13c..0000000000 --- a/kubernetes/test/model/AppsV1beta1DeploymentSpec.spec.js +++ /dev/null @@ -1,113 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.AppsV1beta1DeploymentSpec(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('AppsV1beta1DeploymentSpec', function() { - it('should create an instance of AppsV1beta1DeploymentSpec', function() { - // uncomment below and update the code to test AppsV1beta1DeploymentSpec - //var instane = new KubernetesJsClient.AppsV1beta1DeploymentSpec(); - //expect(instance).to.be.a(KubernetesJsClient.AppsV1beta1DeploymentSpec); - }); - - it('should have the property minReadySeconds (base name: "minReadySeconds")', function() { - // uncomment below and update the code to test the property minReadySeconds - //var instane = new KubernetesJsClient.AppsV1beta1DeploymentSpec(); - //expect(instance).to.be(); - }); - - it('should have the property paused (base name: "paused")', function() { - // uncomment below and update the code to test the property paused - //var instane = new KubernetesJsClient.AppsV1beta1DeploymentSpec(); - //expect(instance).to.be(); - }); - - it('should have the property progressDeadlineSeconds (base name: "progressDeadlineSeconds")', function() { - // uncomment below and update the code to test the property progressDeadlineSeconds - //var instane = new KubernetesJsClient.AppsV1beta1DeploymentSpec(); - //expect(instance).to.be(); - }); - - it('should have the property replicas (base name: "replicas")', function() { - // uncomment below and update the code to test the property replicas - //var instane = new KubernetesJsClient.AppsV1beta1DeploymentSpec(); - //expect(instance).to.be(); - }); - - it('should have the property revisionHistoryLimit (base name: "revisionHistoryLimit")', function() { - // uncomment below and update the code to test the property revisionHistoryLimit - //var instane = new KubernetesJsClient.AppsV1beta1DeploymentSpec(); - //expect(instance).to.be(); - }); - - it('should have the property rollbackTo (base name: "rollbackTo")', function() { - // uncomment below and update the code to test the property rollbackTo - //var instane = new KubernetesJsClient.AppsV1beta1DeploymentSpec(); - //expect(instance).to.be(); - }); - - it('should have the property selector (base name: "selector")', function() { - // uncomment below and update the code to test the property selector - //var instane = new KubernetesJsClient.AppsV1beta1DeploymentSpec(); - //expect(instance).to.be(); - }); - - it('should have the property strategy (base name: "strategy")', function() { - // uncomment below and update the code to test the property strategy - //var instane = new KubernetesJsClient.AppsV1beta1DeploymentSpec(); - //expect(instance).to.be(); - }); - - it('should have the property template (base name: "template")', function() { - // uncomment below and update the code to test the property template - //var instane = new KubernetesJsClient.AppsV1beta1DeploymentSpec(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/AppsV1beta1DeploymentStatus.spec.js b/kubernetes/test/model/AppsV1beta1DeploymentStatus.spec.js deleted file mode 100644 index 41c0c30290..0000000000 --- a/kubernetes/test/model/AppsV1beta1DeploymentStatus.spec.js +++ /dev/null @@ -1,101 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.AppsV1beta1DeploymentStatus(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('AppsV1beta1DeploymentStatus', function() { - it('should create an instance of AppsV1beta1DeploymentStatus', function() { - // uncomment below and update the code to test AppsV1beta1DeploymentStatus - //var instane = new KubernetesJsClient.AppsV1beta1DeploymentStatus(); - //expect(instance).to.be.a(KubernetesJsClient.AppsV1beta1DeploymentStatus); - }); - - it('should have the property availableReplicas (base name: "availableReplicas")', function() { - // uncomment below and update the code to test the property availableReplicas - //var instane = new KubernetesJsClient.AppsV1beta1DeploymentStatus(); - //expect(instance).to.be(); - }); - - it('should have the property conditions (base name: "conditions")', function() { - // uncomment below and update the code to test the property conditions - //var instane = new KubernetesJsClient.AppsV1beta1DeploymentStatus(); - //expect(instance).to.be(); - }); - - it('should have the property observedGeneration (base name: "observedGeneration")', function() { - // uncomment below and update the code to test the property observedGeneration - //var instane = new KubernetesJsClient.AppsV1beta1DeploymentStatus(); - //expect(instance).to.be(); - }); - - it('should have the property readyReplicas (base name: "readyReplicas")', function() { - // uncomment below and update the code to test the property readyReplicas - //var instane = new KubernetesJsClient.AppsV1beta1DeploymentStatus(); - //expect(instance).to.be(); - }); - - it('should have the property replicas (base name: "replicas")', function() { - // uncomment below and update the code to test the property replicas - //var instane = new KubernetesJsClient.AppsV1beta1DeploymentStatus(); - //expect(instance).to.be(); - }); - - it('should have the property unavailableReplicas (base name: "unavailableReplicas")', function() { - // uncomment below and update the code to test the property unavailableReplicas - //var instane = new KubernetesJsClient.AppsV1beta1DeploymentStatus(); - //expect(instance).to.be(); - }); - - it('should have the property updatedReplicas (base name: "updatedReplicas")', function() { - // uncomment below and update the code to test the property updatedReplicas - //var instane = new KubernetesJsClient.AppsV1beta1DeploymentStatus(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/AppsV1beta1DeploymentStrategy.spec.js b/kubernetes/test/model/AppsV1beta1DeploymentStrategy.spec.js deleted file mode 100644 index ab34bbee6d..0000000000 --- a/kubernetes/test/model/AppsV1beta1DeploymentStrategy.spec.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.AppsV1beta1DeploymentStrategy(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('AppsV1beta1DeploymentStrategy', function() { - it('should create an instance of AppsV1beta1DeploymentStrategy', function() { - // uncomment below and update the code to test AppsV1beta1DeploymentStrategy - //var instane = new KubernetesJsClient.AppsV1beta1DeploymentStrategy(); - //expect(instance).to.be.a(KubernetesJsClient.AppsV1beta1DeploymentStrategy); - }); - - it('should have the property rollingUpdate (base name: "rollingUpdate")', function() { - // uncomment below and update the code to test the property rollingUpdate - //var instane = new KubernetesJsClient.AppsV1beta1DeploymentStrategy(); - //expect(instance).to.be(); - }); - - it('should have the property type (base name: "type")', function() { - // uncomment below and update the code to test the property type - //var instane = new KubernetesJsClient.AppsV1beta1DeploymentStrategy(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/AppsV1beta1RollbackConfig.spec.js b/kubernetes/test/model/AppsV1beta1RollbackConfig.spec.js deleted file mode 100644 index 48ada39ac9..0000000000 --- a/kubernetes/test/model/AppsV1beta1RollbackConfig.spec.js +++ /dev/null @@ -1,65 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.AppsV1beta1RollbackConfig(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('AppsV1beta1RollbackConfig', function() { - it('should create an instance of AppsV1beta1RollbackConfig', function() { - // uncomment below and update the code to test AppsV1beta1RollbackConfig - //var instane = new KubernetesJsClient.AppsV1beta1RollbackConfig(); - //expect(instance).to.be.a(KubernetesJsClient.AppsV1beta1RollbackConfig); - }); - - it('should have the property revision (base name: "revision")', function() { - // uncomment below and update the code to test the property revision - //var instane = new KubernetesJsClient.AppsV1beta1RollbackConfig(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/AppsV1beta1RollingUpdateDeployment.spec.js b/kubernetes/test/model/AppsV1beta1RollingUpdateDeployment.spec.js deleted file mode 100644 index 6c68842063..0000000000 --- a/kubernetes/test/model/AppsV1beta1RollingUpdateDeployment.spec.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.AppsV1beta1RollingUpdateDeployment(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('AppsV1beta1RollingUpdateDeployment', function() { - it('should create an instance of AppsV1beta1RollingUpdateDeployment', function() { - // uncomment below and update the code to test AppsV1beta1RollingUpdateDeployment - //var instane = new KubernetesJsClient.AppsV1beta1RollingUpdateDeployment(); - //expect(instance).to.be.a(KubernetesJsClient.AppsV1beta1RollingUpdateDeployment); - }); - - it('should have the property maxSurge (base name: "maxSurge")', function() { - // uncomment below and update the code to test the property maxSurge - //var instane = new KubernetesJsClient.AppsV1beta1RollingUpdateDeployment(); - //expect(instance).to.be(); - }); - - it('should have the property maxUnavailable (base name: "maxUnavailable")', function() { - // uncomment below and update the code to test the property maxUnavailable - //var instane = new KubernetesJsClient.AppsV1beta1RollingUpdateDeployment(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/AppsV1beta1Scale.spec.js b/kubernetes/test/model/AppsV1beta1Scale.spec.js deleted file mode 100644 index e8d27eb4d5..0000000000 --- a/kubernetes/test/model/AppsV1beta1Scale.spec.js +++ /dev/null @@ -1,89 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.AppsV1beta1Scale(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('AppsV1beta1Scale', function() { - it('should create an instance of AppsV1beta1Scale', function() { - // uncomment below and update the code to test AppsV1beta1Scale - //var instane = new KubernetesJsClient.AppsV1beta1Scale(); - //expect(instance).to.be.a(KubernetesJsClient.AppsV1beta1Scale); - }); - - it('should have the property apiVersion (base name: "apiVersion")', function() { - // uncomment below and update the code to test the property apiVersion - //var instane = new KubernetesJsClient.AppsV1beta1Scale(); - //expect(instance).to.be(); - }); - - it('should have the property kind (base name: "kind")', function() { - // uncomment below and update the code to test the property kind - //var instane = new KubernetesJsClient.AppsV1beta1Scale(); - //expect(instance).to.be(); - }); - - it('should have the property metadata (base name: "metadata")', function() { - // uncomment below and update the code to test the property metadata - //var instane = new KubernetesJsClient.AppsV1beta1Scale(); - //expect(instance).to.be(); - }); - - it('should have the property spec (base name: "spec")', function() { - // uncomment below and update the code to test the property spec - //var instane = new KubernetesJsClient.AppsV1beta1Scale(); - //expect(instance).to.be(); - }); - - it('should have the property status (base name: "status")', function() { - // uncomment below and update the code to test the property status - //var instane = new KubernetesJsClient.AppsV1beta1Scale(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/AppsV1beta1ScaleSpec.spec.js b/kubernetes/test/model/AppsV1beta1ScaleSpec.spec.js deleted file mode 100644 index 6d00cfa906..0000000000 --- a/kubernetes/test/model/AppsV1beta1ScaleSpec.spec.js +++ /dev/null @@ -1,65 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.AppsV1beta1ScaleSpec(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('AppsV1beta1ScaleSpec', function() { - it('should create an instance of AppsV1beta1ScaleSpec', function() { - // uncomment below and update the code to test AppsV1beta1ScaleSpec - //var instane = new KubernetesJsClient.AppsV1beta1ScaleSpec(); - //expect(instance).to.be.a(KubernetesJsClient.AppsV1beta1ScaleSpec); - }); - - it('should have the property replicas (base name: "replicas")', function() { - // uncomment below and update the code to test the property replicas - //var instane = new KubernetesJsClient.AppsV1beta1ScaleSpec(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/AppsV1beta1ScaleStatus.spec.js b/kubernetes/test/model/AppsV1beta1ScaleStatus.spec.js deleted file mode 100644 index c396abc387..0000000000 --- a/kubernetes/test/model/AppsV1beta1ScaleStatus.spec.js +++ /dev/null @@ -1,77 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.AppsV1beta1ScaleStatus(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('AppsV1beta1ScaleStatus', function() { - it('should create an instance of AppsV1beta1ScaleStatus', function() { - // uncomment below and update the code to test AppsV1beta1ScaleStatus - //var instane = new KubernetesJsClient.AppsV1beta1ScaleStatus(); - //expect(instance).to.be.a(KubernetesJsClient.AppsV1beta1ScaleStatus); - }); - - it('should have the property replicas (base name: "replicas")', function() { - // uncomment below and update the code to test the property replicas - //var instane = new KubernetesJsClient.AppsV1beta1ScaleStatus(); - //expect(instance).to.be(); - }); - - it('should have the property selector (base name: "selector")', function() { - // uncomment below and update the code to test the property selector - //var instane = new KubernetesJsClient.AppsV1beta1ScaleStatus(); - //expect(instance).to.be(); - }); - - it('should have the property targetSelector (base name: "targetSelector")', function() { - // uncomment below and update the code to test the property targetSelector - //var instane = new KubernetesJsClient.AppsV1beta1ScaleStatus(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/ExtensionsV1beta1Deployment.spec.js b/kubernetes/test/model/ExtensionsV1beta1Deployment.spec.js deleted file mode 100644 index 41e6999286..0000000000 --- a/kubernetes/test/model/ExtensionsV1beta1Deployment.spec.js +++ /dev/null @@ -1,89 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.ExtensionsV1beta1Deployment(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('ExtensionsV1beta1Deployment', function() { - it('should create an instance of ExtensionsV1beta1Deployment', function() { - // uncomment below and update the code to test ExtensionsV1beta1Deployment - //var instane = new KubernetesJsClient.ExtensionsV1beta1Deployment(); - //expect(instance).to.be.a(KubernetesJsClient.ExtensionsV1beta1Deployment); - }); - - it('should have the property apiVersion (base name: "apiVersion")', function() { - // uncomment below and update the code to test the property apiVersion - //var instane = new KubernetesJsClient.ExtensionsV1beta1Deployment(); - //expect(instance).to.be(); - }); - - it('should have the property kind (base name: "kind")', function() { - // uncomment below and update the code to test the property kind - //var instane = new KubernetesJsClient.ExtensionsV1beta1Deployment(); - //expect(instance).to.be(); - }); - - it('should have the property metadata (base name: "metadata")', function() { - // uncomment below and update the code to test the property metadata - //var instane = new KubernetesJsClient.ExtensionsV1beta1Deployment(); - //expect(instance).to.be(); - }); - - it('should have the property spec (base name: "spec")', function() { - // uncomment below and update the code to test the property spec - //var instane = new KubernetesJsClient.ExtensionsV1beta1Deployment(); - //expect(instance).to.be(); - }); - - it('should have the property status (base name: "status")', function() { - // uncomment below and update the code to test the property status - //var instane = new KubernetesJsClient.ExtensionsV1beta1Deployment(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/ExtensionsV1beta1DeploymentCondition.spec.js b/kubernetes/test/model/ExtensionsV1beta1DeploymentCondition.spec.js deleted file mode 100644 index 488853745a..0000000000 --- a/kubernetes/test/model/ExtensionsV1beta1DeploymentCondition.spec.js +++ /dev/null @@ -1,95 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.ExtensionsV1beta1DeploymentCondition(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('ExtensionsV1beta1DeploymentCondition', function() { - it('should create an instance of ExtensionsV1beta1DeploymentCondition', function() { - // uncomment below and update the code to test ExtensionsV1beta1DeploymentCondition - //var instane = new KubernetesJsClient.ExtensionsV1beta1DeploymentCondition(); - //expect(instance).to.be.a(KubernetesJsClient.ExtensionsV1beta1DeploymentCondition); - }); - - it('should have the property lastTransitionTime (base name: "lastTransitionTime")', function() { - // uncomment below and update the code to test the property lastTransitionTime - //var instane = new KubernetesJsClient.ExtensionsV1beta1DeploymentCondition(); - //expect(instance).to.be(); - }); - - it('should have the property lastUpdateTime (base name: "lastUpdateTime")', function() { - // uncomment below and update the code to test the property lastUpdateTime - //var instane = new KubernetesJsClient.ExtensionsV1beta1DeploymentCondition(); - //expect(instance).to.be(); - }); - - it('should have the property message (base name: "message")', function() { - // uncomment below and update the code to test the property message - //var instane = new KubernetesJsClient.ExtensionsV1beta1DeploymentCondition(); - //expect(instance).to.be(); - }); - - it('should have the property reason (base name: "reason")', function() { - // uncomment below and update the code to test the property reason - //var instane = new KubernetesJsClient.ExtensionsV1beta1DeploymentCondition(); - //expect(instance).to.be(); - }); - - it('should have the property status (base name: "status")', function() { - // uncomment below and update the code to test the property status - //var instane = new KubernetesJsClient.ExtensionsV1beta1DeploymentCondition(); - //expect(instance).to.be(); - }); - - it('should have the property type (base name: "type")', function() { - // uncomment below and update the code to test the property type - //var instane = new KubernetesJsClient.ExtensionsV1beta1DeploymentCondition(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/ExtensionsV1beta1DeploymentList.spec.js b/kubernetes/test/model/ExtensionsV1beta1DeploymentList.spec.js deleted file mode 100644 index 2eee0fa6b1..0000000000 --- a/kubernetes/test/model/ExtensionsV1beta1DeploymentList.spec.js +++ /dev/null @@ -1,83 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.ExtensionsV1beta1DeploymentList(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('ExtensionsV1beta1DeploymentList', function() { - it('should create an instance of ExtensionsV1beta1DeploymentList', function() { - // uncomment below and update the code to test ExtensionsV1beta1DeploymentList - //var instane = new KubernetesJsClient.ExtensionsV1beta1DeploymentList(); - //expect(instance).to.be.a(KubernetesJsClient.ExtensionsV1beta1DeploymentList); - }); - - it('should have the property apiVersion (base name: "apiVersion")', function() { - // uncomment below and update the code to test the property apiVersion - //var instane = new KubernetesJsClient.ExtensionsV1beta1DeploymentList(); - //expect(instance).to.be(); - }); - - it('should have the property items (base name: "items")', function() { - // uncomment below and update the code to test the property items - //var instane = new KubernetesJsClient.ExtensionsV1beta1DeploymentList(); - //expect(instance).to.be(); - }); - - it('should have the property kind (base name: "kind")', function() { - // uncomment below and update the code to test the property kind - //var instane = new KubernetesJsClient.ExtensionsV1beta1DeploymentList(); - //expect(instance).to.be(); - }); - - it('should have the property metadata (base name: "metadata")', function() { - // uncomment below and update the code to test the property metadata - //var instane = new KubernetesJsClient.ExtensionsV1beta1DeploymentList(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/ExtensionsV1beta1DeploymentRollback.spec.js b/kubernetes/test/model/ExtensionsV1beta1DeploymentRollback.spec.js deleted file mode 100644 index 653a51b2fe..0000000000 --- a/kubernetes/test/model/ExtensionsV1beta1DeploymentRollback.spec.js +++ /dev/null @@ -1,89 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.ExtensionsV1beta1DeploymentRollback(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('ExtensionsV1beta1DeploymentRollback', function() { - it('should create an instance of ExtensionsV1beta1DeploymentRollback', function() { - // uncomment below and update the code to test ExtensionsV1beta1DeploymentRollback - //var instane = new KubernetesJsClient.ExtensionsV1beta1DeploymentRollback(); - //expect(instance).to.be.a(KubernetesJsClient.ExtensionsV1beta1DeploymentRollback); - }); - - it('should have the property apiVersion (base name: "apiVersion")', function() { - // uncomment below and update the code to test the property apiVersion - //var instane = new KubernetesJsClient.ExtensionsV1beta1DeploymentRollback(); - //expect(instance).to.be(); - }); - - it('should have the property kind (base name: "kind")', function() { - // uncomment below and update the code to test the property kind - //var instane = new KubernetesJsClient.ExtensionsV1beta1DeploymentRollback(); - //expect(instance).to.be(); - }); - - it('should have the property name (base name: "name")', function() { - // uncomment below and update the code to test the property name - //var instane = new KubernetesJsClient.ExtensionsV1beta1DeploymentRollback(); - //expect(instance).to.be(); - }); - - it('should have the property rollbackTo (base name: "rollbackTo")', function() { - // uncomment below and update the code to test the property rollbackTo - //var instane = new KubernetesJsClient.ExtensionsV1beta1DeploymentRollback(); - //expect(instance).to.be(); - }); - - it('should have the property updatedAnnotations (base name: "updatedAnnotations")', function() { - // uncomment below and update the code to test the property updatedAnnotations - //var instane = new KubernetesJsClient.ExtensionsV1beta1DeploymentRollback(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/ExtensionsV1beta1DeploymentSpec.spec.js b/kubernetes/test/model/ExtensionsV1beta1DeploymentSpec.spec.js deleted file mode 100644 index 5c7cdaf15b..0000000000 --- a/kubernetes/test/model/ExtensionsV1beta1DeploymentSpec.spec.js +++ /dev/null @@ -1,113 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.ExtensionsV1beta1DeploymentSpec(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('ExtensionsV1beta1DeploymentSpec', function() { - it('should create an instance of ExtensionsV1beta1DeploymentSpec', function() { - // uncomment below and update the code to test ExtensionsV1beta1DeploymentSpec - //var instane = new KubernetesJsClient.ExtensionsV1beta1DeploymentSpec(); - //expect(instance).to.be.a(KubernetesJsClient.ExtensionsV1beta1DeploymentSpec); - }); - - it('should have the property minReadySeconds (base name: "minReadySeconds")', function() { - // uncomment below and update the code to test the property minReadySeconds - //var instane = new KubernetesJsClient.ExtensionsV1beta1DeploymentSpec(); - //expect(instance).to.be(); - }); - - it('should have the property paused (base name: "paused")', function() { - // uncomment below and update the code to test the property paused - //var instane = new KubernetesJsClient.ExtensionsV1beta1DeploymentSpec(); - //expect(instance).to.be(); - }); - - it('should have the property progressDeadlineSeconds (base name: "progressDeadlineSeconds")', function() { - // uncomment below and update the code to test the property progressDeadlineSeconds - //var instane = new KubernetesJsClient.ExtensionsV1beta1DeploymentSpec(); - //expect(instance).to.be(); - }); - - it('should have the property replicas (base name: "replicas")', function() { - // uncomment below and update the code to test the property replicas - //var instane = new KubernetesJsClient.ExtensionsV1beta1DeploymentSpec(); - //expect(instance).to.be(); - }); - - it('should have the property revisionHistoryLimit (base name: "revisionHistoryLimit")', function() { - // uncomment below and update the code to test the property revisionHistoryLimit - //var instane = new KubernetesJsClient.ExtensionsV1beta1DeploymentSpec(); - //expect(instance).to.be(); - }); - - it('should have the property rollbackTo (base name: "rollbackTo")', function() { - // uncomment below and update the code to test the property rollbackTo - //var instane = new KubernetesJsClient.ExtensionsV1beta1DeploymentSpec(); - //expect(instance).to.be(); - }); - - it('should have the property selector (base name: "selector")', function() { - // uncomment below and update the code to test the property selector - //var instane = new KubernetesJsClient.ExtensionsV1beta1DeploymentSpec(); - //expect(instance).to.be(); - }); - - it('should have the property strategy (base name: "strategy")', function() { - // uncomment below and update the code to test the property strategy - //var instane = new KubernetesJsClient.ExtensionsV1beta1DeploymentSpec(); - //expect(instance).to.be(); - }); - - it('should have the property template (base name: "template")', function() { - // uncomment below and update the code to test the property template - //var instane = new KubernetesJsClient.ExtensionsV1beta1DeploymentSpec(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/ExtensionsV1beta1DeploymentStatus.spec.js b/kubernetes/test/model/ExtensionsV1beta1DeploymentStatus.spec.js deleted file mode 100644 index 59d78ac417..0000000000 --- a/kubernetes/test/model/ExtensionsV1beta1DeploymentStatus.spec.js +++ /dev/null @@ -1,101 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.ExtensionsV1beta1DeploymentStatus(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('ExtensionsV1beta1DeploymentStatus', function() { - it('should create an instance of ExtensionsV1beta1DeploymentStatus', function() { - // uncomment below and update the code to test ExtensionsV1beta1DeploymentStatus - //var instane = new KubernetesJsClient.ExtensionsV1beta1DeploymentStatus(); - //expect(instance).to.be.a(KubernetesJsClient.ExtensionsV1beta1DeploymentStatus); - }); - - it('should have the property availableReplicas (base name: "availableReplicas")', function() { - // uncomment below and update the code to test the property availableReplicas - //var instane = new KubernetesJsClient.ExtensionsV1beta1DeploymentStatus(); - //expect(instance).to.be(); - }); - - it('should have the property conditions (base name: "conditions")', function() { - // uncomment below and update the code to test the property conditions - //var instane = new KubernetesJsClient.ExtensionsV1beta1DeploymentStatus(); - //expect(instance).to.be(); - }); - - it('should have the property observedGeneration (base name: "observedGeneration")', function() { - // uncomment below and update the code to test the property observedGeneration - //var instane = new KubernetesJsClient.ExtensionsV1beta1DeploymentStatus(); - //expect(instance).to.be(); - }); - - it('should have the property readyReplicas (base name: "readyReplicas")', function() { - // uncomment below and update the code to test the property readyReplicas - //var instane = new KubernetesJsClient.ExtensionsV1beta1DeploymentStatus(); - //expect(instance).to.be(); - }); - - it('should have the property replicas (base name: "replicas")', function() { - // uncomment below and update the code to test the property replicas - //var instane = new KubernetesJsClient.ExtensionsV1beta1DeploymentStatus(); - //expect(instance).to.be(); - }); - - it('should have the property unavailableReplicas (base name: "unavailableReplicas")', function() { - // uncomment below and update the code to test the property unavailableReplicas - //var instane = new KubernetesJsClient.ExtensionsV1beta1DeploymentStatus(); - //expect(instance).to.be(); - }); - - it('should have the property updatedReplicas (base name: "updatedReplicas")', function() { - // uncomment below and update the code to test the property updatedReplicas - //var instane = new KubernetesJsClient.ExtensionsV1beta1DeploymentStatus(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/ExtensionsV1beta1DeploymentStrategy.spec.js b/kubernetes/test/model/ExtensionsV1beta1DeploymentStrategy.spec.js deleted file mode 100644 index 81edd47f60..0000000000 --- a/kubernetes/test/model/ExtensionsV1beta1DeploymentStrategy.spec.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.ExtensionsV1beta1DeploymentStrategy(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('ExtensionsV1beta1DeploymentStrategy', function() { - it('should create an instance of ExtensionsV1beta1DeploymentStrategy', function() { - // uncomment below and update the code to test ExtensionsV1beta1DeploymentStrategy - //var instane = new KubernetesJsClient.ExtensionsV1beta1DeploymentStrategy(); - //expect(instance).to.be.a(KubernetesJsClient.ExtensionsV1beta1DeploymentStrategy); - }); - - it('should have the property rollingUpdate (base name: "rollingUpdate")', function() { - // uncomment below and update the code to test the property rollingUpdate - //var instane = new KubernetesJsClient.ExtensionsV1beta1DeploymentStrategy(); - //expect(instance).to.be(); - }); - - it('should have the property type (base name: "type")', function() { - // uncomment below and update the code to test the property type - //var instane = new KubernetesJsClient.ExtensionsV1beta1DeploymentStrategy(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/ExtensionsV1beta1RollbackConfig.spec.js b/kubernetes/test/model/ExtensionsV1beta1RollbackConfig.spec.js deleted file mode 100644 index b0dfdf8156..0000000000 --- a/kubernetes/test/model/ExtensionsV1beta1RollbackConfig.spec.js +++ /dev/null @@ -1,65 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.ExtensionsV1beta1RollbackConfig(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('ExtensionsV1beta1RollbackConfig', function() { - it('should create an instance of ExtensionsV1beta1RollbackConfig', function() { - // uncomment below and update the code to test ExtensionsV1beta1RollbackConfig - //var instane = new KubernetesJsClient.ExtensionsV1beta1RollbackConfig(); - //expect(instance).to.be.a(KubernetesJsClient.ExtensionsV1beta1RollbackConfig); - }); - - it('should have the property revision (base name: "revision")', function() { - // uncomment below and update the code to test the property revision - //var instane = new KubernetesJsClient.ExtensionsV1beta1RollbackConfig(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/ExtensionsV1beta1RollingUpdateDeployment.spec.js b/kubernetes/test/model/ExtensionsV1beta1RollingUpdateDeployment.spec.js deleted file mode 100644 index 1ddff4b799..0000000000 --- a/kubernetes/test/model/ExtensionsV1beta1RollingUpdateDeployment.spec.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.ExtensionsV1beta1RollingUpdateDeployment(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('ExtensionsV1beta1RollingUpdateDeployment', function() { - it('should create an instance of ExtensionsV1beta1RollingUpdateDeployment', function() { - // uncomment below and update the code to test ExtensionsV1beta1RollingUpdateDeployment - //var instane = new KubernetesJsClient.ExtensionsV1beta1RollingUpdateDeployment(); - //expect(instance).to.be.a(KubernetesJsClient.ExtensionsV1beta1RollingUpdateDeployment); - }); - - it('should have the property maxSurge (base name: "maxSurge")', function() { - // uncomment below and update the code to test the property maxSurge - //var instane = new KubernetesJsClient.ExtensionsV1beta1RollingUpdateDeployment(); - //expect(instance).to.be(); - }); - - it('should have the property maxUnavailable (base name: "maxUnavailable")', function() { - // uncomment below and update the code to test the property maxUnavailable - //var instane = new KubernetesJsClient.ExtensionsV1beta1RollingUpdateDeployment(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/ExtensionsV1beta1Scale.spec.js b/kubernetes/test/model/ExtensionsV1beta1Scale.spec.js deleted file mode 100644 index e3480ecc5a..0000000000 --- a/kubernetes/test/model/ExtensionsV1beta1Scale.spec.js +++ /dev/null @@ -1,89 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.ExtensionsV1beta1Scale(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('ExtensionsV1beta1Scale', function() { - it('should create an instance of ExtensionsV1beta1Scale', function() { - // uncomment below and update the code to test ExtensionsV1beta1Scale - //var instane = new KubernetesJsClient.ExtensionsV1beta1Scale(); - //expect(instance).to.be.a(KubernetesJsClient.ExtensionsV1beta1Scale); - }); - - it('should have the property apiVersion (base name: "apiVersion")', function() { - // uncomment below and update the code to test the property apiVersion - //var instane = new KubernetesJsClient.ExtensionsV1beta1Scale(); - //expect(instance).to.be(); - }); - - it('should have the property kind (base name: "kind")', function() { - // uncomment below and update the code to test the property kind - //var instane = new KubernetesJsClient.ExtensionsV1beta1Scale(); - //expect(instance).to.be(); - }); - - it('should have the property metadata (base name: "metadata")', function() { - // uncomment below and update the code to test the property metadata - //var instane = new KubernetesJsClient.ExtensionsV1beta1Scale(); - //expect(instance).to.be(); - }); - - it('should have the property spec (base name: "spec")', function() { - // uncomment below and update the code to test the property spec - //var instane = new KubernetesJsClient.ExtensionsV1beta1Scale(); - //expect(instance).to.be(); - }); - - it('should have the property status (base name: "status")', function() { - // uncomment below and update the code to test the property status - //var instane = new KubernetesJsClient.ExtensionsV1beta1Scale(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/ExtensionsV1beta1ScaleSpec.spec.js b/kubernetes/test/model/ExtensionsV1beta1ScaleSpec.spec.js deleted file mode 100644 index 9295e8b789..0000000000 --- a/kubernetes/test/model/ExtensionsV1beta1ScaleSpec.spec.js +++ /dev/null @@ -1,65 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.ExtensionsV1beta1ScaleSpec(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('ExtensionsV1beta1ScaleSpec', function() { - it('should create an instance of ExtensionsV1beta1ScaleSpec', function() { - // uncomment below and update the code to test ExtensionsV1beta1ScaleSpec - //var instane = new KubernetesJsClient.ExtensionsV1beta1ScaleSpec(); - //expect(instance).to.be.a(KubernetesJsClient.ExtensionsV1beta1ScaleSpec); - }); - - it('should have the property replicas (base name: "replicas")', function() { - // uncomment below and update the code to test the property replicas - //var instane = new KubernetesJsClient.ExtensionsV1beta1ScaleSpec(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/ExtensionsV1beta1ScaleStatus.spec.js b/kubernetes/test/model/ExtensionsV1beta1ScaleStatus.spec.js deleted file mode 100644 index 0171f6ecc5..0000000000 --- a/kubernetes/test/model/ExtensionsV1beta1ScaleStatus.spec.js +++ /dev/null @@ -1,77 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.ExtensionsV1beta1ScaleStatus(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('ExtensionsV1beta1ScaleStatus', function() { - it('should create an instance of ExtensionsV1beta1ScaleStatus', function() { - // uncomment below and update the code to test ExtensionsV1beta1ScaleStatus - //var instane = new KubernetesJsClient.ExtensionsV1beta1ScaleStatus(); - //expect(instance).to.be.a(KubernetesJsClient.ExtensionsV1beta1ScaleStatus); - }); - - it('should have the property replicas (base name: "replicas")', function() { - // uncomment below and update the code to test the property replicas - //var instane = new KubernetesJsClient.ExtensionsV1beta1ScaleStatus(); - //expect(instance).to.be(); - }); - - it('should have the property selector (base name: "selector")', function() { - // uncomment below and update the code to test the property selector - //var instane = new KubernetesJsClient.ExtensionsV1beta1ScaleStatus(); - //expect(instance).to.be(); - }); - - it('should have the property targetSelector (base name: "targetSelector")', function() { - // uncomment below and update the code to test the property targetSelector - //var instane = new KubernetesJsClient.ExtensionsV1beta1ScaleStatus(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/RuntimeRawExtension.spec.js b/kubernetes/test/model/RuntimeRawExtension.spec.js deleted file mode 100644 index ea7494ee43..0000000000 --- a/kubernetes/test/model/RuntimeRawExtension.spec.js +++ /dev/null @@ -1,65 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.RuntimeRawExtension(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('RuntimeRawExtension', function() { - it('should create an instance of RuntimeRawExtension', function() { - // uncomment below and update the code to test RuntimeRawExtension - //var instane = new KubernetesJsClient.RuntimeRawExtension(); - //expect(instance).to.be.a(KubernetesJsClient.RuntimeRawExtension); - }); - - it('should have the property raw (base name: "Raw")', function() { - // uncomment below and update the code to test the property raw - //var instane = new KubernetesJsClient.RuntimeRawExtension(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1APIGroup.spec.js b/kubernetes/test/model/V1APIGroup.spec.js deleted file mode 100644 index f70f3087a0..0000000000 --- a/kubernetes/test/model/V1APIGroup.spec.js +++ /dev/null @@ -1,95 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1APIGroup(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1APIGroup', function() { - it('should create an instance of V1APIGroup', function() { - // uncomment below and update the code to test V1APIGroup - //var instane = new KubernetesJsClient.V1APIGroup(); - //expect(instance).to.be.a(KubernetesJsClient.V1APIGroup); - }); - - it('should have the property apiVersion (base name: "apiVersion")', function() { - // uncomment below and update the code to test the property apiVersion - //var instane = new KubernetesJsClient.V1APIGroup(); - //expect(instance).to.be(); - }); - - it('should have the property kind (base name: "kind")', function() { - // uncomment below and update the code to test the property kind - //var instane = new KubernetesJsClient.V1APIGroup(); - //expect(instance).to.be(); - }); - - it('should have the property name (base name: "name")', function() { - // uncomment below and update the code to test the property name - //var instane = new KubernetesJsClient.V1APIGroup(); - //expect(instance).to.be(); - }); - - it('should have the property preferredVersion (base name: "preferredVersion")', function() { - // uncomment below and update the code to test the property preferredVersion - //var instane = new KubernetesJsClient.V1APIGroup(); - //expect(instance).to.be(); - }); - - it('should have the property serverAddressByClientCIDRs (base name: "serverAddressByClientCIDRs")', function() { - // uncomment below and update the code to test the property serverAddressByClientCIDRs - //var instane = new KubernetesJsClient.V1APIGroup(); - //expect(instance).to.be(); - }); - - it('should have the property versions (base name: "versions")', function() { - // uncomment below and update the code to test the property versions - //var instane = new KubernetesJsClient.V1APIGroup(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1APIGroupList.spec.js b/kubernetes/test/model/V1APIGroupList.spec.js deleted file mode 100644 index 9013b1eec8..0000000000 --- a/kubernetes/test/model/V1APIGroupList.spec.js +++ /dev/null @@ -1,77 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1APIGroupList(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1APIGroupList', function() { - it('should create an instance of V1APIGroupList', function() { - // uncomment below and update the code to test V1APIGroupList - //var instane = new KubernetesJsClient.V1APIGroupList(); - //expect(instance).to.be.a(KubernetesJsClient.V1APIGroupList); - }); - - it('should have the property apiVersion (base name: "apiVersion")', function() { - // uncomment below and update the code to test the property apiVersion - //var instane = new KubernetesJsClient.V1APIGroupList(); - //expect(instance).to.be(); - }); - - it('should have the property groups (base name: "groups")', function() { - // uncomment below and update the code to test the property groups - //var instane = new KubernetesJsClient.V1APIGroupList(); - //expect(instance).to.be(); - }); - - it('should have the property kind (base name: "kind")', function() { - // uncomment below and update the code to test the property kind - //var instane = new KubernetesJsClient.V1APIGroupList(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1APIResource.spec.js b/kubernetes/test/model/V1APIResource.spec.js deleted file mode 100644 index 00f6bab730..0000000000 --- a/kubernetes/test/model/V1APIResource.spec.js +++ /dev/null @@ -1,89 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1APIResource(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1APIResource', function() { - it('should create an instance of V1APIResource', function() { - // uncomment below and update the code to test V1APIResource - //var instane = new KubernetesJsClient.V1APIResource(); - //expect(instance).to.be.a(KubernetesJsClient.V1APIResource); - }); - - it('should have the property kind (base name: "kind")', function() { - // uncomment below and update the code to test the property kind - //var instane = new KubernetesJsClient.V1APIResource(); - //expect(instance).to.be(); - }); - - it('should have the property name (base name: "name")', function() { - // uncomment below and update the code to test the property name - //var instane = new KubernetesJsClient.V1APIResource(); - //expect(instance).to.be(); - }); - - it('should have the property namespaced (base name: "namespaced")', function() { - // uncomment below and update the code to test the property namespaced - //var instane = new KubernetesJsClient.V1APIResource(); - //expect(instance).to.be(); - }); - - it('should have the property shortNames (base name: "shortNames")', function() { - // uncomment below and update the code to test the property shortNames - //var instane = new KubernetesJsClient.V1APIResource(); - //expect(instance).to.be(); - }); - - it('should have the property verbs (base name: "verbs")', function() { - // uncomment below and update the code to test the property verbs - //var instane = new KubernetesJsClient.V1APIResource(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1APIResourceList.spec.js b/kubernetes/test/model/V1APIResourceList.spec.js deleted file mode 100644 index ae825e176f..0000000000 --- a/kubernetes/test/model/V1APIResourceList.spec.js +++ /dev/null @@ -1,83 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1APIResourceList(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1APIResourceList', function() { - it('should create an instance of V1APIResourceList', function() { - // uncomment below and update the code to test V1APIResourceList - //var instane = new KubernetesJsClient.V1APIResourceList(); - //expect(instance).to.be.a(KubernetesJsClient.V1APIResourceList); - }); - - it('should have the property apiVersion (base name: "apiVersion")', function() { - // uncomment below and update the code to test the property apiVersion - //var instane = new KubernetesJsClient.V1APIResourceList(); - //expect(instance).to.be(); - }); - - it('should have the property groupVersion (base name: "groupVersion")', function() { - // uncomment below and update the code to test the property groupVersion - //var instane = new KubernetesJsClient.V1APIResourceList(); - //expect(instance).to.be(); - }); - - it('should have the property kind (base name: "kind")', function() { - // uncomment below and update the code to test the property kind - //var instane = new KubernetesJsClient.V1APIResourceList(); - //expect(instance).to.be(); - }); - - it('should have the property resources (base name: "resources")', function() { - // uncomment below and update the code to test the property resources - //var instane = new KubernetesJsClient.V1APIResourceList(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1APIVersions.spec.js b/kubernetes/test/model/V1APIVersions.spec.js deleted file mode 100644 index 9e2eae7ba9..0000000000 --- a/kubernetes/test/model/V1APIVersions.spec.js +++ /dev/null @@ -1,83 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1APIVersions(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1APIVersions', function() { - it('should create an instance of V1APIVersions', function() { - // uncomment below and update the code to test V1APIVersions - //var instane = new KubernetesJsClient.V1APIVersions(); - //expect(instance).to.be.a(KubernetesJsClient.V1APIVersions); - }); - - it('should have the property apiVersion (base name: "apiVersion")', function() { - // uncomment below and update the code to test the property apiVersion - //var instane = new KubernetesJsClient.V1APIVersions(); - //expect(instance).to.be(); - }); - - it('should have the property kind (base name: "kind")', function() { - // uncomment below and update the code to test the property kind - //var instane = new KubernetesJsClient.V1APIVersions(); - //expect(instance).to.be(); - }); - - it('should have the property serverAddressByClientCIDRs (base name: "serverAddressByClientCIDRs")', function() { - // uncomment below and update the code to test the property serverAddressByClientCIDRs - //var instane = new KubernetesJsClient.V1APIVersions(); - //expect(instance).to.be(); - }); - - it('should have the property versions (base name: "versions")', function() { - // uncomment below and update the code to test the property versions - //var instane = new KubernetesJsClient.V1APIVersions(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1AWSElasticBlockStoreVolumeSource.spec.js b/kubernetes/test/model/V1AWSElasticBlockStoreVolumeSource.spec.js deleted file mode 100644 index 43ea7e6a6f..0000000000 --- a/kubernetes/test/model/V1AWSElasticBlockStoreVolumeSource.spec.js +++ /dev/null @@ -1,83 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1AWSElasticBlockStoreVolumeSource(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1AWSElasticBlockStoreVolumeSource', function() { - it('should create an instance of V1AWSElasticBlockStoreVolumeSource', function() { - // uncomment below and update the code to test V1AWSElasticBlockStoreVolumeSource - //var instane = new KubernetesJsClient.V1AWSElasticBlockStoreVolumeSource(); - //expect(instance).to.be.a(KubernetesJsClient.V1AWSElasticBlockStoreVolumeSource); - }); - - it('should have the property fsType (base name: "fsType")', function() { - // uncomment below and update the code to test the property fsType - //var instane = new KubernetesJsClient.V1AWSElasticBlockStoreVolumeSource(); - //expect(instance).to.be(); - }); - - it('should have the property partition (base name: "partition")', function() { - // uncomment below and update the code to test the property partition - //var instane = new KubernetesJsClient.V1AWSElasticBlockStoreVolumeSource(); - //expect(instance).to.be(); - }); - - it('should have the property readOnly (base name: "readOnly")', function() { - // uncomment below and update the code to test the property readOnly - //var instane = new KubernetesJsClient.V1AWSElasticBlockStoreVolumeSource(); - //expect(instance).to.be(); - }); - - it('should have the property volumeID (base name: "volumeID")', function() { - // uncomment below and update the code to test the property volumeID - //var instane = new KubernetesJsClient.V1AWSElasticBlockStoreVolumeSource(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1Affinity.spec.js b/kubernetes/test/model/V1Affinity.spec.js deleted file mode 100644 index f02ffe52eb..0000000000 --- a/kubernetes/test/model/V1Affinity.spec.js +++ /dev/null @@ -1,77 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1Affinity(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1Affinity', function() { - it('should create an instance of V1Affinity', function() { - // uncomment below and update the code to test V1Affinity - //var instane = new KubernetesJsClient.V1Affinity(); - //expect(instance).to.be.a(KubernetesJsClient.V1Affinity); - }); - - it('should have the property nodeAffinity (base name: "nodeAffinity")', function() { - // uncomment below and update the code to test the property nodeAffinity - //var instane = new KubernetesJsClient.V1Affinity(); - //expect(instance).to.be(); - }); - - it('should have the property podAffinity (base name: "podAffinity")', function() { - // uncomment below and update the code to test the property podAffinity - //var instane = new KubernetesJsClient.V1Affinity(); - //expect(instance).to.be(); - }); - - it('should have the property podAntiAffinity (base name: "podAntiAffinity")', function() { - // uncomment below and update the code to test the property podAntiAffinity - //var instane = new KubernetesJsClient.V1Affinity(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1AttachedVolume.spec.js b/kubernetes/test/model/V1AttachedVolume.spec.js deleted file mode 100644 index 0075285f57..0000000000 --- a/kubernetes/test/model/V1AttachedVolume.spec.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1AttachedVolume(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1AttachedVolume', function() { - it('should create an instance of V1AttachedVolume', function() { - // uncomment below and update the code to test V1AttachedVolume - //var instane = new KubernetesJsClient.V1AttachedVolume(); - //expect(instance).to.be.a(KubernetesJsClient.V1AttachedVolume); - }); - - it('should have the property devicePath (base name: "devicePath")', function() { - // uncomment below and update the code to test the property devicePath - //var instane = new KubernetesJsClient.V1AttachedVolume(); - //expect(instance).to.be(); - }); - - it('should have the property name (base name: "name")', function() { - // uncomment below and update the code to test the property name - //var instane = new KubernetesJsClient.V1AttachedVolume(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1AzureDiskVolumeSource.spec.js b/kubernetes/test/model/V1AzureDiskVolumeSource.spec.js deleted file mode 100644 index a29eb4613a..0000000000 --- a/kubernetes/test/model/V1AzureDiskVolumeSource.spec.js +++ /dev/null @@ -1,89 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1AzureDiskVolumeSource(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1AzureDiskVolumeSource', function() { - it('should create an instance of V1AzureDiskVolumeSource', function() { - // uncomment below and update the code to test V1AzureDiskVolumeSource - //var instane = new KubernetesJsClient.V1AzureDiskVolumeSource(); - //expect(instance).to.be.a(KubernetesJsClient.V1AzureDiskVolumeSource); - }); - - it('should have the property cachingMode (base name: "cachingMode")', function() { - // uncomment below and update the code to test the property cachingMode - //var instane = new KubernetesJsClient.V1AzureDiskVolumeSource(); - //expect(instance).to.be(); - }); - - it('should have the property diskName (base name: "diskName")', function() { - // uncomment below and update the code to test the property diskName - //var instane = new KubernetesJsClient.V1AzureDiskVolumeSource(); - //expect(instance).to.be(); - }); - - it('should have the property diskURI (base name: "diskURI")', function() { - // uncomment below and update the code to test the property diskURI - //var instane = new KubernetesJsClient.V1AzureDiskVolumeSource(); - //expect(instance).to.be(); - }); - - it('should have the property fsType (base name: "fsType")', function() { - // uncomment below and update the code to test the property fsType - //var instane = new KubernetesJsClient.V1AzureDiskVolumeSource(); - //expect(instance).to.be(); - }); - - it('should have the property readOnly (base name: "readOnly")', function() { - // uncomment below and update the code to test the property readOnly - //var instane = new KubernetesJsClient.V1AzureDiskVolumeSource(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1AzureFileVolumeSource.spec.js b/kubernetes/test/model/V1AzureFileVolumeSource.spec.js deleted file mode 100644 index 6137434799..0000000000 --- a/kubernetes/test/model/V1AzureFileVolumeSource.spec.js +++ /dev/null @@ -1,77 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1AzureFileVolumeSource(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1AzureFileVolumeSource', function() { - it('should create an instance of V1AzureFileVolumeSource', function() { - // uncomment below and update the code to test V1AzureFileVolumeSource - //var instane = new KubernetesJsClient.V1AzureFileVolumeSource(); - //expect(instance).to.be.a(KubernetesJsClient.V1AzureFileVolumeSource); - }); - - it('should have the property readOnly (base name: "readOnly")', function() { - // uncomment below and update the code to test the property readOnly - //var instane = new KubernetesJsClient.V1AzureFileVolumeSource(); - //expect(instance).to.be(); - }); - - it('should have the property secretName (base name: "secretName")', function() { - // uncomment below and update the code to test the property secretName - //var instane = new KubernetesJsClient.V1AzureFileVolumeSource(); - //expect(instance).to.be(); - }); - - it('should have the property shareName (base name: "shareName")', function() { - // uncomment below and update the code to test the property shareName - //var instane = new KubernetesJsClient.V1AzureFileVolumeSource(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1Binding.spec.js b/kubernetes/test/model/V1Binding.spec.js deleted file mode 100644 index 0f3954bf8e..0000000000 --- a/kubernetes/test/model/V1Binding.spec.js +++ /dev/null @@ -1,83 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1Binding(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1Binding', function() { - it('should create an instance of V1Binding', function() { - // uncomment below and update the code to test V1Binding - //var instane = new KubernetesJsClient.V1Binding(); - //expect(instance).to.be.a(KubernetesJsClient.V1Binding); - }); - - it('should have the property apiVersion (base name: "apiVersion")', function() { - // uncomment below and update the code to test the property apiVersion - //var instane = new KubernetesJsClient.V1Binding(); - //expect(instance).to.be(); - }); - - it('should have the property kind (base name: "kind")', function() { - // uncomment below and update the code to test the property kind - //var instane = new KubernetesJsClient.V1Binding(); - //expect(instance).to.be(); - }); - - it('should have the property metadata (base name: "metadata")', function() { - // uncomment below and update the code to test the property metadata - //var instane = new KubernetesJsClient.V1Binding(); - //expect(instance).to.be(); - }); - - it('should have the property target (base name: "target")', function() { - // uncomment below and update the code to test the property target - //var instane = new KubernetesJsClient.V1Binding(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1Capabilities.spec.js b/kubernetes/test/model/V1Capabilities.spec.js deleted file mode 100644 index 3e7b0cbdbb..0000000000 --- a/kubernetes/test/model/V1Capabilities.spec.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1Capabilities(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1Capabilities', function() { - it('should create an instance of V1Capabilities', function() { - // uncomment below and update the code to test V1Capabilities - //var instane = new KubernetesJsClient.V1Capabilities(); - //expect(instance).to.be.a(KubernetesJsClient.V1Capabilities); - }); - - it('should have the property add (base name: "add")', function() { - // uncomment below and update the code to test the property add - //var instane = new KubernetesJsClient.V1Capabilities(); - //expect(instance).to.be(); - }); - - it('should have the property drop (base name: "drop")', function() { - // uncomment below and update the code to test the property drop - //var instane = new KubernetesJsClient.V1Capabilities(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1CephFSVolumeSource.spec.js b/kubernetes/test/model/V1CephFSVolumeSource.spec.js deleted file mode 100644 index 641b9e4251..0000000000 --- a/kubernetes/test/model/V1CephFSVolumeSource.spec.js +++ /dev/null @@ -1,95 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1CephFSVolumeSource(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1CephFSVolumeSource', function() { - it('should create an instance of V1CephFSVolumeSource', function() { - // uncomment below and update the code to test V1CephFSVolumeSource - //var instane = new KubernetesJsClient.V1CephFSVolumeSource(); - //expect(instance).to.be.a(KubernetesJsClient.V1CephFSVolumeSource); - }); - - it('should have the property monitors (base name: "monitors")', function() { - // uncomment below and update the code to test the property monitors - //var instane = new KubernetesJsClient.V1CephFSVolumeSource(); - //expect(instance).to.be(); - }); - - it('should have the property path (base name: "path")', function() { - // uncomment below and update the code to test the property path - //var instane = new KubernetesJsClient.V1CephFSVolumeSource(); - //expect(instance).to.be(); - }); - - it('should have the property readOnly (base name: "readOnly")', function() { - // uncomment below and update the code to test the property readOnly - //var instane = new KubernetesJsClient.V1CephFSVolumeSource(); - //expect(instance).to.be(); - }); - - it('should have the property secretFile (base name: "secretFile")', function() { - // uncomment below and update the code to test the property secretFile - //var instane = new KubernetesJsClient.V1CephFSVolumeSource(); - //expect(instance).to.be(); - }); - - it('should have the property secretRef (base name: "secretRef")', function() { - // uncomment below and update the code to test the property secretRef - //var instane = new KubernetesJsClient.V1CephFSVolumeSource(); - //expect(instance).to.be(); - }); - - it('should have the property user (base name: "user")', function() { - // uncomment below and update the code to test the property user - //var instane = new KubernetesJsClient.V1CephFSVolumeSource(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1CinderVolumeSource.spec.js b/kubernetes/test/model/V1CinderVolumeSource.spec.js deleted file mode 100644 index 3ac8b18e16..0000000000 --- a/kubernetes/test/model/V1CinderVolumeSource.spec.js +++ /dev/null @@ -1,77 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1CinderVolumeSource(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1CinderVolumeSource', function() { - it('should create an instance of V1CinderVolumeSource', function() { - // uncomment below and update the code to test V1CinderVolumeSource - //var instane = new KubernetesJsClient.V1CinderVolumeSource(); - //expect(instance).to.be.a(KubernetesJsClient.V1CinderVolumeSource); - }); - - it('should have the property fsType (base name: "fsType")', function() { - // uncomment below and update the code to test the property fsType - //var instane = new KubernetesJsClient.V1CinderVolumeSource(); - //expect(instance).to.be(); - }); - - it('should have the property readOnly (base name: "readOnly")', function() { - // uncomment below and update the code to test the property readOnly - //var instane = new KubernetesJsClient.V1CinderVolumeSource(); - //expect(instance).to.be(); - }); - - it('should have the property volumeID (base name: "volumeID")', function() { - // uncomment below and update the code to test the property volumeID - //var instane = new KubernetesJsClient.V1CinderVolumeSource(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1ComponentCondition.spec.js b/kubernetes/test/model/V1ComponentCondition.spec.js deleted file mode 100644 index 6a7b21d2cc..0000000000 --- a/kubernetes/test/model/V1ComponentCondition.spec.js +++ /dev/null @@ -1,83 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1ComponentCondition(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1ComponentCondition', function() { - it('should create an instance of V1ComponentCondition', function() { - // uncomment below and update the code to test V1ComponentCondition - //var instane = new KubernetesJsClient.V1ComponentCondition(); - //expect(instance).to.be.a(KubernetesJsClient.V1ComponentCondition); - }); - - it('should have the property error (base name: "error")', function() { - // uncomment below and update the code to test the property error - //var instane = new KubernetesJsClient.V1ComponentCondition(); - //expect(instance).to.be(); - }); - - it('should have the property message (base name: "message")', function() { - // uncomment below and update the code to test the property message - //var instane = new KubernetesJsClient.V1ComponentCondition(); - //expect(instance).to.be(); - }); - - it('should have the property status (base name: "status")', function() { - // uncomment below and update the code to test the property status - //var instane = new KubernetesJsClient.V1ComponentCondition(); - //expect(instance).to.be(); - }); - - it('should have the property type (base name: "type")', function() { - // uncomment below and update the code to test the property type - //var instane = new KubernetesJsClient.V1ComponentCondition(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1ComponentStatus.spec.js b/kubernetes/test/model/V1ComponentStatus.spec.js deleted file mode 100644 index 34bcd4aa14..0000000000 --- a/kubernetes/test/model/V1ComponentStatus.spec.js +++ /dev/null @@ -1,83 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1ComponentStatus(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1ComponentStatus', function() { - it('should create an instance of V1ComponentStatus', function() { - // uncomment below and update the code to test V1ComponentStatus - //var instane = new KubernetesJsClient.V1ComponentStatus(); - //expect(instance).to.be.a(KubernetesJsClient.V1ComponentStatus); - }); - - it('should have the property apiVersion (base name: "apiVersion")', function() { - // uncomment below and update the code to test the property apiVersion - //var instane = new KubernetesJsClient.V1ComponentStatus(); - //expect(instance).to.be(); - }); - - it('should have the property conditions (base name: "conditions")', function() { - // uncomment below and update the code to test the property conditions - //var instane = new KubernetesJsClient.V1ComponentStatus(); - //expect(instance).to.be(); - }); - - it('should have the property kind (base name: "kind")', function() { - // uncomment below and update the code to test the property kind - //var instane = new KubernetesJsClient.V1ComponentStatus(); - //expect(instance).to.be(); - }); - - it('should have the property metadata (base name: "metadata")', function() { - // uncomment below and update the code to test the property metadata - //var instane = new KubernetesJsClient.V1ComponentStatus(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1ComponentStatusList.spec.js b/kubernetes/test/model/V1ComponentStatusList.spec.js deleted file mode 100644 index 51e1be6038..0000000000 --- a/kubernetes/test/model/V1ComponentStatusList.spec.js +++ /dev/null @@ -1,83 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1ComponentStatusList(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1ComponentStatusList', function() { - it('should create an instance of V1ComponentStatusList', function() { - // uncomment below and update the code to test V1ComponentStatusList - //var instane = new KubernetesJsClient.V1ComponentStatusList(); - //expect(instance).to.be.a(KubernetesJsClient.V1ComponentStatusList); - }); - - it('should have the property apiVersion (base name: "apiVersion")', function() { - // uncomment below and update the code to test the property apiVersion - //var instane = new KubernetesJsClient.V1ComponentStatusList(); - //expect(instance).to.be(); - }); - - it('should have the property items (base name: "items")', function() { - // uncomment below and update the code to test the property items - //var instane = new KubernetesJsClient.V1ComponentStatusList(); - //expect(instance).to.be(); - }); - - it('should have the property kind (base name: "kind")', function() { - // uncomment below and update the code to test the property kind - //var instane = new KubernetesJsClient.V1ComponentStatusList(); - //expect(instance).to.be(); - }); - - it('should have the property metadata (base name: "metadata")', function() { - // uncomment below and update the code to test the property metadata - //var instane = new KubernetesJsClient.V1ComponentStatusList(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1ConfigMap.spec.js b/kubernetes/test/model/V1ConfigMap.spec.js deleted file mode 100644 index 96f78ec432..0000000000 --- a/kubernetes/test/model/V1ConfigMap.spec.js +++ /dev/null @@ -1,83 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1ConfigMap(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1ConfigMap', function() { - it('should create an instance of V1ConfigMap', function() { - // uncomment below and update the code to test V1ConfigMap - //var instane = new KubernetesJsClient.V1ConfigMap(); - //expect(instance).to.be.a(KubernetesJsClient.V1ConfigMap); - }); - - it('should have the property apiVersion (base name: "apiVersion")', function() { - // uncomment below and update the code to test the property apiVersion - //var instane = new KubernetesJsClient.V1ConfigMap(); - //expect(instance).to.be(); - }); - - it('should have the property data (base name: "data")', function() { - // uncomment below and update the code to test the property data - //var instane = new KubernetesJsClient.V1ConfigMap(); - //expect(instance).to.be(); - }); - - it('should have the property kind (base name: "kind")', function() { - // uncomment below and update the code to test the property kind - //var instane = new KubernetesJsClient.V1ConfigMap(); - //expect(instance).to.be(); - }); - - it('should have the property metadata (base name: "metadata")', function() { - // uncomment below and update the code to test the property metadata - //var instane = new KubernetesJsClient.V1ConfigMap(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1ConfigMapEnvSource.spec.js b/kubernetes/test/model/V1ConfigMapEnvSource.spec.js deleted file mode 100644 index 135a327e77..0000000000 --- a/kubernetes/test/model/V1ConfigMapEnvSource.spec.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1ConfigMapEnvSource(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1ConfigMapEnvSource', function() { - it('should create an instance of V1ConfigMapEnvSource', function() { - // uncomment below and update the code to test V1ConfigMapEnvSource - //var instane = new KubernetesJsClient.V1ConfigMapEnvSource(); - //expect(instance).to.be.a(KubernetesJsClient.V1ConfigMapEnvSource); - }); - - it('should have the property name (base name: "name")', function() { - // uncomment below and update the code to test the property name - //var instane = new KubernetesJsClient.V1ConfigMapEnvSource(); - //expect(instance).to.be(); - }); - - it('should have the property optional (base name: "optional")', function() { - // uncomment below and update the code to test the property optional - //var instane = new KubernetesJsClient.V1ConfigMapEnvSource(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1ConfigMapKeySelector.spec.js b/kubernetes/test/model/V1ConfigMapKeySelector.spec.js deleted file mode 100644 index d11b4bd567..0000000000 --- a/kubernetes/test/model/V1ConfigMapKeySelector.spec.js +++ /dev/null @@ -1,77 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1ConfigMapKeySelector(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1ConfigMapKeySelector', function() { - it('should create an instance of V1ConfigMapKeySelector', function() { - // uncomment below and update the code to test V1ConfigMapKeySelector - //var instane = new KubernetesJsClient.V1ConfigMapKeySelector(); - //expect(instance).to.be.a(KubernetesJsClient.V1ConfigMapKeySelector); - }); - - it('should have the property key (base name: "key")', function() { - // uncomment below and update the code to test the property key - //var instane = new KubernetesJsClient.V1ConfigMapKeySelector(); - //expect(instance).to.be(); - }); - - it('should have the property name (base name: "name")', function() { - // uncomment below and update the code to test the property name - //var instane = new KubernetesJsClient.V1ConfigMapKeySelector(); - //expect(instance).to.be(); - }); - - it('should have the property optional (base name: "optional")', function() { - // uncomment below and update the code to test the property optional - //var instane = new KubernetesJsClient.V1ConfigMapKeySelector(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1ConfigMapList.spec.js b/kubernetes/test/model/V1ConfigMapList.spec.js deleted file mode 100644 index a2d85376f8..0000000000 --- a/kubernetes/test/model/V1ConfigMapList.spec.js +++ /dev/null @@ -1,83 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1ConfigMapList(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1ConfigMapList', function() { - it('should create an instance of V1ConfigMapList', function() { - // uncomment below and update the code to test V1ConfigMapList - //var instane = new KubernetesJsClient.V1ConfigMapList(); - //expect(instance).to.be.a(KubernetesJsClient.V1ConfigMapList); - }); - - it('should have the property apiVersion (base name: "apiVersion")', function() { - // uncomment below and update the code to test the property apiVersion - //var instane = new KubernetesJsClient.V1ConfigMapList(); - //expect(instance).to.be(); - }); - - it('should have the property items (base name: "items")', function() { - // uncomment below and update the code to test the property items - //var instane = new KubernetesJsClient.V1ConfigMapList(); - //expect(instance).to.be(); - }); - - it('should have the property kind (base name: "kind")', function() { - // uncomment below and update the code to test the property kind - //var instane = new KubernetesJsClient.V1ConfigMapList(); - //expect(instance).to.be(); - }); - - it('should have the property metadata (base name: "metadata")', function() { - // uncomment below and update the code to test the property metadata - //var instane = new KubernetesJsClient.V1ConfigMapList(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1ConfigMapProjection.spec.js b/kubernetes/test/model/V1ConfigMapProjection.spec.js deleted file mode 100644 index ed2dca5121..0000000000 --- a/kubernetes/test/model/V1ConfigMapProjection.spec.js +++ /dev/null @@ -1,77 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1ConfigMapProjection(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1ConfigMapProjection', function() { - it('should create an instance of V1ConfigMapProjection', function() { - // uncomment below and update the code to test V1ConfigMapProjection - //var instane = new KubernetesJsClient.V1ConfigMapProjection(); - //expect(instance).to.be.a(KubernetesJsClient.V1ConfigMapProjection); - }); - - it('should have the property items (base name: "items")', function() { - // uncomment below and update the code to test the property items - //var instane = new KubernetesJsClient.V1ConfigMapProjection(); - //expect(instance).to.be(); - }); - - it('should have the property name (base name: "name")', function() { - // uncomment below and update the code to test the property name - //var instane = new KubernetesJsClient.V1ConfigMapProjection(); - //expect(instance).to.be(); - }); - - it('should have the property optional (base name: "optional")', function() { - // uncomment below and update the code to test the property optional - //var instane = new KubernetesJsClient.V1ConfigMapProjection(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1ConfigMapVolumeSource.spec.js b/kubernetes/test/model/V1ConfigMapVolumeSource.spec.js deleted file mode 100644 index b36241fbd3..0000000000 --- a/kubernetes/test/model/V1ConfigMapVolumeSource.spec.js +++ /dev/null @@ -1,83 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1ConfigMapVolumeSource(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1ConfigMapVolumeSource', function() { - it('should create an instance of V1ConfigMapVolumeSource', function() { - // uncomment below and update the code to test V1ConfigMapVolumeSource - //var instane = new KubernetesJsClient.V1ConfigMapVolumeSource(); - //expect(instance).to.be.a(KubernetesJsClient.V1ConfigMapVolumeSource); - }); - - it('should have the property defaultMode (base name: "defaultMode")', function() { - // uncomment below and update the code to test the property defaultMode - //var instane = new KubernetesJsClient.V1ConfigMapVolumeSource(); - //expect(instance).to.be(); - }); - - it('should have the property items (base name: "items")', function() { - // uncomment below and update the code to test the property items - //var instane = new KubernetesJsClient.V1ConfigMapVolumeSource(); - //expect(instance).to.be(); - }); - - it('should have the property name (base name: "name")', function() { - // uncomment below and update the code to test the property name - //var instane = new KubernetesJsClient.V1ConfigMapVolumeSource(); - //expect(instance).to.be(); - }); - - it('should have the property optional (base name: "optional")', function() { - // uncomment below and update the code to test the property optional - //var instane = new KubernetesJsClient.V1ConfigMapVolumeSource(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1Container.spec.js b/kubernetes/test/model/V1Container.spec.js deleted file mode 100644 index 7e0db1a92b..0000000000 --- a/kubernetes/test/model/V1Container.spec.js +++ /dev/null @@ -1,179 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1Container(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1Container', function() { - it('should create an instance of V1Container', function() { - // uncomment below and update the code to test V1Container - //var instane = new KubernetesJsClient.V1Container(); - //expect(instance).to.be.a(KubernetesJsClient.V1Container); - }); - - it('should have the property args (base name: "args")', function() { - // uncomment below and update the code to test the property args - //var instane = new KubernetesJsClient.V1Container(); - //expect(instance).to.be(); - }); - - it('should have the property command (base name: "command")', function() { - // uncomment below and update the code to test the property command - //var instane = new KubernetesJsClient.V1Container(); - //expect(instance).to.be(); - }); - - it('should have the property env (base name: "env")', function() { - // uncomment below and update the code to test the property env - //var instane = new KubernetesJsClient.V1Container(); - //expect(instance).to.be(); - }); - - it('should have the property envFrom (base name: "envFrom")', function() { - // uncomment below and update the code to test the property envFrom - //var instane = new KubernetesJsClient.V1Container(); - //expect(instance).to.be(); - }); - - it('should have the property image (base name: "image")', function() { - // uncomment below and update the code to test the property image - //var instane = new KubernetesJsClient.V1Container(); - //expect(instance).to.be(); - }); - - it('should have the property imagePullPolicy (base name: "imagePullPolicy")', function() { - // uncomment below and update the code to test the property imagePullPolicy - //var instane = new KubernetesJsClient.V1Container(); - //expect(instance).to.be(); - }); - - it('should have the property lifecycle (base name: "lifecycle")', function() { - // uncomment below and update the code to test the property lifecycle - //var instane = new KubernetesJsClient.V1Container(); - //expect(instance).to.be(); - }); - - it('should have the property livenessProbe (base name: "livenessProbe")', function() { - // uncomment below and update the code to test the property livenessProbe - //var instane = new KubernetesJsClient.V1Container(); - //expect(instance).to.be(); - }); - - it('should have the property name (base name: "name")', function() { - // uncomment below and update the code to test the property name - //var instane = new KubernetesJsClient.V1Container(); - //expect(instance).to.be(); - }); - - it('should have the property ports (base name: "ports")', function() { - // uncomment below and update the code to test the property ports - //var instane = new KubernetesJsClient.V1Container(); - //expect(instance).to.be(); - }); - - it('should have the property readinessProbe (base name: "readinessProbe")', function() { - // uncomment below and update the code to test the property readinessProbe - //var instane = new KubernetesJsClient.V1Container(); - //expect(instance).to.be(); - }); - - it('should have the property resources (base name: "resources")', function() { - // uncomment below and update the code to test the property resources - //var instane = new KubernetesJsClient.V1Container(); - //expect(instance).to.be(); - }); - - it('should have the property securityContext (base name: "securityContext")', function() { - // uncomment below and update the code to test the property securityContext - //var instane = new KubernetesJsClient.V1Container(); - //expect(instance).to.be(); - }); - - it('should have the property stdin (base name: "stdin")', function() { - // uncomment below and update the code to test the property stdin - //var instane = new KubernetesJsClient.V1Container(); - //expect(instance).to.be(); - }); - - it('should have the property stdinOnce (base name: "stdinOnce")', function() { - // uncomment below and update the code to test the property stdinOnce - //var instane = new KubernetesJsClient.V1Container(); - //expect(instance).to.be(); - }); - - it('should have the property terminationMessagePath (base name: "terminationMessagePath")', function() { - // uncomment below and update the code to test the property terminationMessagePath - //var instane = new KubernetesJsClient.V1Container(); - //expect(instance).to.be(); - }); - - it('should have the property terminationMessagePolicy (base name: "terminationMessagePolicy")', function() { - // uncomment below and update the code to test the property terminationMessagePolicy - //var instane = new KubernetesJsClient.V1Container(); - //expect(instance).to.be(); - }); - - it('should have the property tty (base name: "tty")', function() { - // uncomment below and update the code to test the property tty - //var instane = new KubernetesJsClient.V1Container(); - //expect(instance).to.be(); - }); - - it('should have the property volumeMounts (base name: "volumeMounts")', function() { - // uncomment below and update the code to test the property volumeMounts - //var instane = new KubernetesJsClient.V1Container(); - //expect(instance).to.be(); - }); - - it('should have the property workingDir (base name: "workingDir")', function() { - // uncomment below and update the code to test the property workingDir - //var instane = new KubernetesJsClient.V1Container(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1ContainerImage.spec.js b/kubernetes/test/model/V1ContainerImage.spec.js deleted file mode 100644 index d12560c121..0000000000 --- a/kubernetes/test/model/V1ContainerImage.spec.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1ContainerImage(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1ContainerImage', function() { - it('should create an instance of V1ContainerImage', function() { - // uncomment below and update the code to test V1ContainerImage - //var instane = new KubernetesJsClient.V1ContainerImage(); - //expect(instance).to.be.a(KubernetesJsClient.V1ContainerImage); - }); - - it('should have the property names (base name: "names")', function() { - // uncomment below and update the code to test the property names - //var instane = new KubernetesJsClient.V1ContainerImage(); - //expect(instance).to.be(); - }); - - it('should have the property sizeBytes (base name: "sizeBytes")', function() { - // uncomment below and update the code to test the property sizeBytes - //var instane = new KubernetesJsClient.V1ContainerImage(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1ContainerPort.spec.js b/kubernetes/test/model/V1ContainerPort.spec.js deleted file mode 100644 index 733c2c434e..0000000000 --- a/kubernetes/test/model/V1ContainerPort.spec.js +++ /dev/null @@ -1,89 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1ContainerPort(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1ContainerPort', function() { - it('should create an instance of V1ContainerPort', function() { - // uncomment below and update the code to test V1ContainerPort - //var instane = new KubernetesJsClient.V1ContainerPort(); - //expect(instance).to.be.a(KubernetesJsClient.V1ContainerPort); - }); - - it('should have the property containerPort (base name: "containerPort")', function() { - // uncomment below and update the code to test the property containerPort - //var instane = new KubernetesJsClient.V1ContainerPort(); - //expect(instance).to.be(); - }); - - it('should have the property hostIP (base name: "hostIP")', function() { - // uncomment below and update the code to test the property hostIP - //var instane = new KubernetesJsClient.V1ContainerPort(); - //expect(instance).to.be(); - }); - - it('should have the property hostPort (base name: "hostPort")', function() { - // uncomment below and update the code to test the property hostPort - //var instane = new KubernetesJsClient.V1ContainerPort(); - //expect(instance).to.be(); - }); - - it('should have the property name (base name: "name")', function() { - // uncomment below and update the code to test the property name - //var instane = new KubernetesJsClient.V1ContainerPort(); - //expect(instance).to.be(); - }); - - it('should have the property protocol (base name: "protocol")', function() { - // uncomment below and update the code to test the property protocol - //var instane = new KubernetesJsClient.V1ContainerPort(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1ContainerState.spec.js b/kubernetes/test/model/V1ContainerState.spec.js deleted file mode 100644 index 6758141523..0000000000 --- a/kubernetes/test/model/V1ContainerState.spec.js +++ /dev/null @@ -1,77 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1ContainerState(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1ContainerState', function() { - it('should create an instance of V1ContainerState', function() { - // uncomment below and update the code to test V1ContainerState - //var instane = new KubernetesJsClient.V1ContainerState(); - //expect(instance).to.be.a(KubernetesJsClient.V1ContainerState); - }); - - it('should have the property running (base name: "running")', function() { - // uncomment below and update the code to test the property running - //var instane = new KubernetesJsClient.V1ContainerState(); - //expect(instance).to.be(); - }); - - it('should have the property terminated (base name: "terminated")', function() { - // uncomment below and update the code to test the property terminated - //var instane = new KubernetesJsClient.V1ContainerState(); - //expect(instance).to.be(); - }); - - it('should have the property waiting (base name: "waiting")', function() { - // uncomment below and update the code to test the property waiting - //var instane = new KubernetesJsClient.V1ContainerState(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1ContainerStateRunning.spec.js b/kubernetes/test/model/V1ContainerStateRunning.spec.js deleted file mode 100644 index 137b4617a7..0000000000 --- a/kubernetes/test/model/V1ContainerStateRunning.spec.js +++ /dev/null @@ -1,65 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1ContainerStateRunning(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1ContainerStateRunning', function() { - it('should create an instance of V1ContainerStateRunning', function() { - // uncomment below and update the code to test V1ContainerStateRunning - //var instane = new KubernetesJsClient.V1ContainerStateRunning(); - //expect(instance).to.be.a(KubernetesJsClient.V1ContainerStateRunning); - }); - - it('should have the property startedAt (base name: "startedAt")', function() { - // uncomment below and update the code to test the property startedAt - //var instane = new KubernetesJsClient.V1ContainerStateRunning(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1ContainerStateTerminated.spec.js b/kubernetes/test/model/V1ContainerStateTerminated.spec.js deleted file mode 100644 index 52366116a8..0000000000 --- a/kubernetes/test/model/V1ContainerStateTerminated.spec.js +++ /dev/null @@ -1,101 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1ContainerStateTerminated(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1ContainerStateTerminated', function() { - it('should create an instance of V1ContainerStateTerminated', function() { - // uncomment below and update the code to test V1ContainerStateTerminated - //var instane = new KubernetesJsClient.V1ContainerStateTerminated(); - //expect(instance).to.be.a(KubernetesJsClient.V1ContainerStateTerminated); - }); - - it('should have the property containerID (base name: "containerID")', function() { - // uncomment below and update the code to test the property containerID - //var instane = new KubernetesJsClient.V1ContainerStateTerminated(); - //expect(instance).to.be(); - }); - - it('should have the property exitCode (base name: "exitCode")', function() { - // uncomment below and update the code to test the property exitCode - //var instane = new KubernetesJsClient.V1ContainerStateTerminated(); - //expect(instance).to.be(); - }); - - it('should have the property finishedAt (base name: "finishedAt")', function() { - // uncomment below and update the code to test the property finishedAt - //var instane = new KubernetesJsClient.V1ContainerStateTerminated(); - //expect(instance).to.be(); - }); - - it('should have the property message (base name: "message")', function() { - // uncomment below and update the code to test the property message - //var instane = new KubernetesJsClient.V1ContainerStateTerminated(); - //expect(instance).to.be(); - }); - - it('should have the property reason (base name: "reason")', function() { - // uncomment below and update the code to test the property reason - //var instane = new KubernetesJsClient.V1ContainerStateTerminated(); - //expect(instance).to.be(); - }); - - it('should have the property signal (base name: "signal")', function() { - // uncomment below and update the code to test the property signal - //var instane = new KubernetesJsClient.V1ContainerStateTerminated(); - //expect(instance).to.be(); - }); - - it('should have the property startedAt (base name: "startedAt")', function() { - // uncomment below and update the code to test the property startedAt - //var instane = new KubernetesJsClient.V1ContainerStateTerminated(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1ContainerStateWaiting.spec.js b/kubernetes/test/model/V1ContainerStateWaiting.spec.js deleted file mode 100644 index 686234b699..0000000000 --- a/kubernetes/test/model/V1ContainerStateWaiting.spec.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1ContainerStateWaiting(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1ContainerStateWaiting', function() { - it('should create an instance of V1ContainerStateWaiting', function() { - // uncomment below and update the code to test V1ContainerStateWaiting - //var instane = new KubernetesJsClient.V1ContainerStateWaiting(); - //expect(instance).to.be.a(KubernetesJsClient.V1ContainerStateWaiting); - }); - - it('should have the property message (base name: "message")', function() { - // uncomment below and update the code to test the property message - //var instane = new KubernetesJsClient.V1ContainerStateWaiting(); - //expect(instance).to.be(); - }); - - it('should have the property reason (base name: "reason")', function() { - // uncomment below and update the code to test the property reason - //var instane = new KubernetesJsClient.V1ContainerStateWaiting(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1ContainerStatus.spec.js b/kubernetes/test/model/V1ContainerStatus.spec.js deleted file mode 100644 index 21630b2bc6..0000000000 --- a/kubernetes/test/model/V1ContainerStatus.spec.js +++ /dev/null @@ -1,107 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1ContainerStatus(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1ContainerStatus', function() { - it('should create an instance of V1ContainerStatus', function() { - // uncomment below and update the code to test V1ContainerStatus - //var instane = new KubernetesJsClient.V1ContainerStatus(); - //expect(instance).to.be.a(KubernetesJsClient.V1ContainerStatus); - }); - - it('should have the property containerID (base name: "containerID")', function() { - // uncomment below and update the code to test the property containerID - //var instane = new KubernetesJsClient.V1ContainerStatus(); - //expect(instance).to.be(); - }); - - it('should have the property image (base name: "image")', function() { - // uncomment below and update the code to test the property image - //var instane = new KubernetesJsClient.V1ContainerStatus(); - //expect(instance).to.be(); - }); - - it('should have the property imageID (base name: "imageID")', function() { - // uncomment below and update the code to test the property imageID - //var instane = new KubernetesJsClient.V1ContainerStatus(); - //expect(instance).to.be(); - }); - - it('should have the property lastState (base name: "lastState")', function() { - // uncomment below and update the code to test the property lastState - //var instane = new KubernetesJsClient.V1ContainerStatus(); - //expect(instance).to.be(); - }); - - it('should have the property name (base name: "name")', function() { - // uncomment below and update the code to test the property name - //var instane = new KubernetesJsClient.V1ContainerStatus(); - //expect(instance).to.be(); - }); - - it('should have the property ready (base name: "ready")', function() { - // uncomment below and update the code to test the property ready - //var instane = new KubernetesJsClient.V1ContainerStatus(); - //expect(instance).to.be(); - }); - - it('should have the property restartCount (base name: "restartCount")', function() { - // uncomment below and update the code to test the property restartCount - //var instane = new KubernetesJsClient.V1ContainerStatus(); - //expect(instance).to.be(); - }); - - it('should have the property state (base name: "state")', function() { - // uncomment below and update the code to test the property state - //var instane = new KubernetesJsClient.V1ContainerStatus(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1CrossVersionObjectReference.spec.js b/kubernetes/test/model/V1CrossVersionObjectReference.spec.js deleted file mode 100644 index b6e162495a..0000000000 --- a/kubernetes/test/model/V1CrossVersionObjectReference.spec.js +++ /dev/null @@ -1,77 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1CrossVersionObjectReference(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1CrossVersionObjectReference', function() { - it('should create an instance of V1CrossVersionObjectReference', function() { - // uncomment below and update the code to test V1CrossVersionObjectReference - //var instane = new KubernetesJsClient.V1CrossVersionObjectReference(); - //expect(instance).to.be.a(KubernetesJsClient.V1CrossVersionObjectReference); - }); - - it('should have the property apiVersion (base name: "apiVersion")', function() { - // uncomment below and update the code to test the property apiVersion - //var instane = new KubernetesJsClient.V1CrossVersionObjectReference(); - //expect(instance).to.be(); - }); - - it('should have the property kind (base name: "kind")', function() { - // uncomment below and update the code to test the property kind - //var instane = new KubernetesJsClient.V1CrossVersionObjectReference(); - //expect(instance).to.be(); - }); - - it('should have the property name (base name: "name")', function() { - // uncomment below and update the code to test the property name - //var instane = new KubernetesJsClient.V1CrossVersionObjectReference(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1DaemonEndpoint.spec.js b/kubernetes/test/model/V1DaemonEndpoint.spec.js deleted file mode 100644 index d714382299..0000000000 --- a/kubernetes/test/model/V1DaemonEndpoint.spec.js +++ /dev/null @@ -1,65 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1DaemonEndpoint(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1DaemonEndpoint', function() { - it('should create an instance of V1DaemonEndpoint', function() { - // uncomment below and update the code to test V1DaemonEndpoint - //var instane = new KubernetesJsClient.V1DaemonEndpoint(); - //expect(instance).to.be.a(KubernetesJsClient.V1DaemonEndpoint); - }); - - it('should have the property port (base name: "Port")', function() { - // uncomment below and update the code to test the property port - //var instane = new KubernetesJsClient.V1DaemonEndpoint(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1DeleteOptions.spec.js b/kubernetes/test/model/V1DeleteOptions.spec.js deleted file mode 100644 index 062fbd715f..0000000000 --- a/kubernetes/test/model/V1DeleteOptions.spec.js +++ /dev/null @@ -1,95 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1DeleteOptions(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1DeleteOptions', function() { - it('should create an instance of V1DeleteOptions', function() { - // uncomment below and update the code to test V1DeleteOptions - //var instane = new KubernetesJsClient.V1DeleteOptions(); - //expect(instance).to.be.a(KubernetesJsClient.V1DeleteOptions); - }); - - it('should have the property apiVersion (base name: "apiVersion")', function() { - // uncomment below and update the code to test the property apiVersion - //var instane = new KubernetesJsClient.V1DeleteOptions(); - //expect(instance).to.be(); - }); - - it('should have the property gracePeriodSeconds (base name: "gracePeriodSeconds")', function() { - // uncomment below and update the code to test the property gracePeriodSeconds - //var instane = new KubernetesJsClient.V1DeleteOptions(); - //expect(instance).to.be(); - }); - - it('should have the property kind (base name: "kind")', function() { - // uncomment below and update the code to test the property kind - //var instane = new KubernetesJsClient.V1DeleteOptions(); - //expect(instance).to.be(); - }); - - it('should have the property orphanDependents (base name: "orphanDependents")', function() { - // uncomment below and update the code to test the property orphanDependents - //var instane = new KubernetesJsClient.V1DeleteOptions(); - //expect(instance).to.be(); - }); - - it('should have the property preconditions (base name: "preconditions")', function() { - // uncomment below and update the code to test the property preconditions - //var instane = new KubernetesJsClient.V1DeleteOptions(); - //expect(instance).to.be(); - }); - - it('should have the property propagationPolicy (base name: "propagationPolicy")', function() { - // uncomment below and update the code to test the property propagationPolicy - //var instane = new KubernetesJsClient.V1DeleteOptions(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1DownwardAPIProjection.spec.js b/kubernetes/test/model/V1DownwardAPIProjection.spec.js deleted file mode 100644 index 413f3e61f0..0000000000 --- a/kubernetes/test/model/V1DownwardAPIProjection.spec.js +++ /dev/null @@ -1,65 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1DownwardAPIProjection(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1DownwardAPIProjection', function() { - it('should create an instance of V1DownwardAPIProjection', function() { - // uncomment below and update the code to test V1DownwardAPIProjection - //var instane = new KubernetesJsClient.V1DownwardAPIProjection(); - //expect(instance).to.be.a(KubernetesJsClient.V1DownwardAPIProjection); - }); - - it('should have the property items (base name: "items")', function() { - // uncomment below and update the code to test the property items - //var instane = new KubernetesJsClient.V1DownwardAPIProjection(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1DownwardAPIVolumeFile.spec.js b/kubernetes/test/model/V1DownwardAPIVolumeFile.spec.js deleted file mode 100644 index 4260969a7c..0000000000 --- a/kubernetes/test/model/V1DownwardAPIVolumeFile.spec.js +++ /dev/null @@ -1,83 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1DownwardAPIVolumeFile(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1DownwardAPIVolumeFile', function() { - it('should create an instance of V1DownwardAPIVolumeFile', function() { - // uncomment below and update the code to test V1DownwardAPIVolumeFile - //var instane = new KubernetesJsClient.V1DownwardAPIVolumeFile(); - //expect(instance).to.be.a(KubernetesJsClient.V1DownwardAPIVolumeFile); - }); - - it('should have the property fieldRef (base name: "fieldRef")', function() { - // uncomment below and update the code to test the property fieldRef - //var instane = new KubernetesJsClient.V1DownwardAPIVolumeFile(); - //expect(instance).to.be(); - }); - - it('should have the property mode (base name: "mode")', function() { - // uncomment below and update the code to test the property mode - //var instane = new KubernetesJsClient.V1DownwardAPIVolumeFile(); - //expect(instance).to.be(); - }); - - it('should have the property path (base name: "path")', function() { - // uncomment below and update the code to test the property path - //var instane = new KubernetesJsClient.V1DownwardAPIVolumeFile(); - //expect(instance).to.be(); - }); - - it('should have the property resourceFieldRef (base name: "resourceFieldRef")', function() { - // uncomment below and update the code to test the property resourceFieldRef - //var instane = new KubernetesJsClient.V1DownwardAPIVolumeFile(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1DownwardAPIVolumeSource.spec.js b/kubernetes/test/model/V1DownwardAPIVolumeSource.spec.js deleted file mode 100644 index b368b8a54b..0000000000 --- a/kubernetes/test/model/V1DownwardAPIVolumeSource.spec.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1DownwardAPIVolumeSource(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1DownwardAPIVolumeSource', function() { - it('should create an instance of V1DownwardAPIVolumeSource', function() { - // uncomment below and update the code to test V1DownwardAPIVolumeSource - //var instane = new KubernetesJsClient.V1DownwardAPIVolumeSource(); - //expect(instance).to.be.a(KubernetesJsClient.V1DownwardAPIVolumeSource); - }); - - it('should have the property defaultMode (base name: "defaultMode")', function() { - // uncomment below and update the code to test the property defaultMode - //var instane = new KubernetesJsClient.V1DownwardAPIVolumeSource(); - //expect(instance).to.be(); - }); - - it('should have the property items (base name: "items")', function() { - // uncomment below and update the code to test the property items - //var instane = new KubernetesJsClient.V1DownwardAPIVolumeSource(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1EmptyDirVolumeSource.spec.js b/kubernetes/test/model/V1EmptyDirVolumeSource.spec.js deleted file mode 100644 index 4b86692878..0000000000 --- a/kubernetes/test/model/V1EmptyDirVolumeSource.spec.js +++ /dev/null @@ -1,65 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1EmptyDirVolumeSource(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1EmptyDirVolumeSource', function() { - it('should create an instance of V1EmptyDirVolumeSource', function() { - // uncomment below and update the code to test V1EmptyDirVolumeSource - //var instane = new KubernetesJsClient.V1EmptyDirVolumeSource(); - //expect(instance).to.be.a(KubernetesJsClient.V1EmptyDirVolumeSource); - }); - - it('should have the property medium (base name: "medium")', function() { - // uncomment below and update the code to test the property medium - //var instane = new KubernetesJsClient.V1EmptyDirVolumeSource(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1EndpointAddress.spec.js b/kubernetes/test/model/V1EndpointAddress.spec.js deleted file mode 100644 index 4c8b50cbc6..0000000000 --- a/kubernetes/test/model/V1EndpointAddress.spec.js +++ /dev/null @@ -1,83 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1EndpointAddress(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1EndpointAddress', function() { - it('should create an instance of V1EndpointAddress', function() { - // uncomment below and update the code to test V1EndpointAddress - //var instane = new KubernetesJsClient.V1EndpointAddress(); - //expect(instance).to.be.a(KubernetesJsClient.V1EndpointAddress); - }); - - it('should have the property hostname (base name: "hostname")', function() { - // uncomment below and update the code to test the property hostname - //var instane = new KubernetesJsClient.V1EndpointAddress(); - //expect(instance).to.be(); - }); - - it('should have the property ip (base name: "ip")', function() { - // uncomment below and update the code to test the property ip - //var instane = new KubernetesJsClient.V1EndpointAddress(); - //expect(instance).to.be(); - }); - - it('should have the property nodeName (base name: "nodeName")', function() { - // uncomment below and update the code to test the property nodeName - //var instane = new KubernetesJsClient.V1EndpointAddress(); - //expect(instance).to.be(); - }); - - it('should have the property targetRef (base name: "targetRef")', function() { - // uncomment below and update the code to test the property targetRef - //var instane = new KubernetesJsClient.V1EndpointAddress(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1EndpointPort.spec.js b/kubernetes/test/model/V1EndpointPort.spec.js deleted file mode 100644 index 3da72c4e06..0000000000 --- a/kubernetes/test/model/V1EndpointPort.spec.js +++ /dev/null @@ -1,77 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1EndpointPort(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1EndpointPort', function() { - it('should create an instance of V1EndpointPort', function() { - // uncomment below and update the code to test V1EndpointPort - //var instane = new KubernetesJsClient.V1EndpointPort(); - //expect(instance).to.be.a(KubernetesJsClient.V1EndpointPort); - }); - - it('should have the property name (base name: "name")', function() { - // uncomment below and update the code to test the property name - //var instane = new KubernetesJsClient.V1EndpointPort(); - //expect(instance).to.be(); - }); - - it('should have the property port (base name: "port")', function() { - // uncomment below and update the code to test the property port - //var instane = new KubernetesJsClient.V1EndpointPort(); - //expect(instance).to.be(); - }); - - it('should have the property protocol (base name: "protocol")', function() { - // uncomment below and update the code to test the property protocol - //var instane = new KubernetesJsClient.V1EndpointPort(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1EndpointSubset.spec.js b/kubernetes/test/model/V1EndpointSubset.spec.js deleted file mode 100644 index f9dafd6ca5..0000000000 --- a/kubernetes/test/model/V1EndpointSubset.spec.js +++ /dev/null @@ -1,77 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1EndpointSubset(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1EndpointSubset', function() { - it('should create an instance of V1EndpointSubset', function() { - // uncomment below and update the code to test V1EndpointSubset - //var instane = new KubernetesJsClient.V1EndpointSubset(); - //expect(instance).to.be.a(KubernetesJsClient.V1EndpointSubset); - }); - - it('should have the property addresses (base name: "addresses")', function() { - // uncomment below and update the code to test the property addresses - //var instane = new KubernetesJsClient.V1EndpointSubset(); - //expect(instance).to.be(); - }); - - it('should have the property notReadyAddresses (base name: "notReadyAddresses")', function() { - // uncomment below and update the code to test the property notReadyAddresses - //var instane = new KubernetesJsClient.V1EndpointSubset(); - //expect(instance).to.be(); - }); - - it('should have the property ports (base name: "ports")', function() { - // uncomment below and update the code to test the property ports - //var instane = new KubernetesJsClient.V1EndpointSubset(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1Endpoints.spec.js b/kubernetes/test/model/V1Endpoints.spec.js deleted file mode 100644 index 8d10c06f37..0000000000 --- a/kubernetes/test/model/V1Endpoints.spec.js +++ /dev/null @@ -1,83 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1Endpoints(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1Endpoints', function() { - it('should create an instance of V1Endpoints', function() { - // uncomment below and update the code to test V1Endpoints - //var instane = new KubernetesJsClient.V1Endpoints(); - //expect(instance).to.be.a(KubernetesJsClient.V1Endpoints); - }); - - it('should have the property apiVersion (base name: "apiVersion")', function() { - // uncomment below and update the code to test the property apiVersion - //var instane = new KubernetesJsClient.V1Endpoints(); - //expect(instance).to.be(); - }); - - it('should have the property kind (base name: "kind")', function() { - // uncomment below and update the code to test the property kind - //var instane = new KubernetesJsClient.V1Endpoints(); - //expect(instance).to.be(); - }); - - it('should have the property metadata (base name: "metadata")', function() { - // uncomment below and update the code to test the property metadata - //var instane = new KubernetesJsClient.V1Endpoints(); - //expect(instance).to.be(); - }); - - it('should have the property subsets (base name: "subsets")', function() { - // uncomment below and update the code to test the property subsets - //var instane = new KubernetesJsClient.V1Endpoints(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1EndpointsList.spec.js b/kubernetes/test/model/V1EndpointsList.spec.js deleted file mode 100644 index c870f519af..0000000000 --- a/kubernetes/test/model/V1EndpointsList.spec.js +++ /dev/null @@ -1,83 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1EndpointsList(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1EndpointsList', function() { - it('should create an instance of V1EndpointsList', function() { - // uncomment below and update the code to test V1EndpointsList - //var instane = new KubernetesJsClient.V1EndpointsList(); - //expect(instance).to.be.a(KubernetesJsClient.V1EndpointsList); - }); - - it('should have the property apiVersion (base name: "apiVersion")', function() { - // uncomment below and update the code to test the property apiVersion - //var instane = new KubernetesJsClient.V1EndpointsList(); - //expect(instance).to.be(); - }); - - it('should have the property items (base name: "items")', function() { - // uncomment below and update the code to test the property items - //var instane = new KubernetesJsClient.V1EndpointsList(); - //expect(instance).to.be(); - }); - - it('should have the property kind (base name: "kind")', function() { - // uncomment below and update the code to test the property kind - //var instane = new KubernetesJsClient.V1EndpointsList(); - //expect(instance).to.be(); - }); - - it('should have the property metadata (base name: "metadata")', function() { - // uncomment below and update the code to test the property metadata - //var instane = new KubernetesJsClient.V1EndpointsList(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1EnvFromSource.spec.js b/kubernetes/test/model/V1EnvFromSource.spec.js deleted file mode 100644 index 48b48f66c0..0000000000 --- a/kubernetes/test/model/V1EnvFromSource.spec.js +++ /dev/null @@ -1,77 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1EnvFromSource(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1EnvFromSource', function() { - it('should create an instance of V1EnvFromSource', function() { - // uncomment below and update the code to test V1EnvFromSource - //var instane = new KubernetesJsClient.V1EnvFromSource(); - //expect(instance).to.be.a(KubernetesJsClient.V1EnvFromSource); - }); - - it('should have the property configMapRef (base name: "configMapRef")', function() { - // uncomment below and update the code to test the property configMapRef - //var instane = new KubernetesJsClient.V1EnvFromSource(); - //expect(instance).to.be(); - }); - - it('should have the property prefix (base name: "prefix")', function() { - // uncomment below and update the code to test the property prefix - //var instane = new KubernetesJsClient.V1EnvFromSource(); - //expect(instance).to.be(); - }); - - it('should have the property secretRef (base name: "secretRef")', function() { - // uncomment below and update the code to test the property secretRef - //var instane = new KubernetesJsClient.V1EnvFromSource(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1EnvVar.spec.js b/kubernetes/test/model/V1EnvVar.spec.js deleted file mode 100644 index ceb8f2f316..0000000000 --- a/kubernetes/test/model/V1EnvVar.spec.js +++ /dev/null @@ -1,77 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1EnvVar(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1EnvVar', function() { - it('should create an instance of V1EnvVar', function() { - // uncomment below and update the code to test V1EnvVar - //var instane = new KubernetesJsClient.V1EnvVar(); - //expect(instance).to.be.a(KubernetesJsClient.V1EnvVar); - }); - - it('should have the property name (base name: "name")', function() { - // uncomment below and update the code to test the property name - //var instane = new KubernetesJsClient.V1EnvVar(); - //expect(instance).to.be(); - }); - - it('should have the property value (base name: "value")', function() { - // uncomment below and update the code to test the property value - //var instane = new KubernetesJsClient.V1EnvVar(); - //expect(instance).to.be(); - }); - - it('should have the property valueFrom (base name: "valueFrom")', function() { - // uncomment below and update the code to test the property valueFrom - //var instane = new KubernetesJsClient.V1EnvVar(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1EnvVarSource.spec.js b/kubernetes/test/model/V1EnvVarSource.spec.js deleted file mode 100644 index 6606e56067..0000000000 --- a/kubernetes/test/model/V1EnvVarSource.spec.js +++ /dev/null @@ -1,83 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1EnvVarSource(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1EnvVarSource', function() { - it('should create an instance of V1EnvVarSource', function() { - // uncomment below and update the code to test V1EnvVarSource - //var instane = new KubernetesJsClient.V1EnvVarSource(); - //expect(instance).to.be.a(KubernetesJsClient.V1EnvVarSource); - }); - - it('should have the property configMapKeyRef (base name: "configMapKeyRef")', function() { - // uncomment below and update the code to test the property configMapKeyRef - //var instane = new KubernetesJsClient.V1EnvVarSource(); - //expect(instance).to.be(); - }); - - it('should have the property fieldRef (base name: "fieldRef")', function() { - // uncomment below and update the code to test the property fieldRef - //var instane = new KubernetesJsClient.V1EnvVarSource(); - //expect(instance).to.be(); - }); - - it('should have the property resourceFieldRef (base name: "resourceFieldRef")', function() { - // uncomment below and update the code to test the property resourceFieldRef - //var instane = new KubernetesJsClient.V1EnvVarSource(); - //expect(instance).to.be(); - }); - - it('should have the property secretKeyRef (base name: "secretKeyRef")', function() { - // uncomment below and update the code to test the property secretKeyRef - //var instane = new KubernetesJsClient.V1EnvVarSource(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1Event.spec.js b/kubernetes/test/model/V1Event.spec.js deleted file mode 100644 index 7ab4e2322c..0000000000 --- a/kubernetes/test/model/V1Event.spec.js +++ /dev/null @@ -1,125 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1Event(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1Event', function() { - it('should create an instance of V1Event', function() { - // uncomment below and update the code to test V1Event - //var instane = new KubernetesJsClient.V1Event(); - //expect(instance).to.be.a(KubernetesJsClient.V1Event); - }); - - it('should have the property apiVersion (base name: "apiVersion")', function() { - // uncomment below and update the code to test the property apiVersion - //var instane = new KubernetesJsClient.V1Event(); - //expect(instance).to.be(); - }); - - it('should have the property count (base name: "count")', function() { - // uncomment below and update the code to test the property count - //var instane = new KubernetesJsClient.V1Event(); - //expect(instance).to.be(); - }); - - it('should have the property firstTimestamp (base name: "firstTimestamp")', function() { - // uncomment below and update the code to test the property firstTimestamp - //var instane = new KubernetesJsClient.V1Event(); - //expect(instance).to.be(); - }); - - it('should have the property involvedObject (base name: "involvedObject")', function() { - // uncomment below and update the code to test the property involvedObject - //var instane = new KubernetesJsClient.V1Event(); - //expect(instance).to.be(); - }); - - it('should have the property kind (base name: "kind")', function() { - // uncomment below and update the code to test the property kind - //var instane = new KubernetesJsClient.V1Event(); - //expect(instance).to.be(); - }); - - it('should have the property lastTimestamp (base name: "lastTimestamp")', function() { - // uncomment below and update the code to test the property lastTimestamp - //var instane = new KubernetesJsClient.V1Event(); - //expect(instance).to.be(); - }); - - it('should have the property message (base name: "message")', function() { - // uncomment below and update the code to test the property message - //var instane = new KubernetesJsClient.V1Event(); - //expect(instance).to.be(); - }); - - it('should have the property metadata (base name: "metadata")', function() { - // uncomment below and update the code to test the property metadata - //var instane = new KubernetesJsClient.V1Event(); - //expect(instance).to.be(); - }); - - it('should have the property reason (base name: "reason")', function() { - // uncomment below and update the code to test the property reason - //var instane = new KubernetesJsClient.V1Event(); - //expect(instance).to.be(); - }); - - it('should have the property source (base name: "source")', function() { - // uncomment below and update the code to test the property source - //var instane = new KubernetesJsClient.V1Event(); - //expect(instance).to.be(); - }); - - it('should have the property type (base name: "type")', function() { - // uncomment below and update the code to test the property type - //var instane = new KubernetesJsClient.V1Event(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1EventList.spec.js b/kubernetes/test/model/V1EventList.spec.js deleted file mode 100644 index 05bca0151d..0000000000 --- a/kubernetes/test/model/V1EventList.spec.js +++ /dev/null @@ -1,83 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1EventList(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1EventList', function() { - it('should create an instance of V1EventList', function() { - // uncomment below and update the code to test V1EventList - //var instane = new KubernetesJsClient.V1EventList(); - //expect(instance).to.be.a(KubernetesJsClient.V1EventList); - }); - - it('should have the property apiVersion (base name: "apiVersion")', function() { - // uncomment below and update the code to test the property apiVersion - //var instane = new KubernetesJsClient.V1EventList(); - //expect(instance).to.be(); - }); - - it('should have the property items (base name: "items")', function() { - // uncomment below and update the code to test the property items - //var instane = new KubernetesJsClient.V1EventList(); - //expect(instance).to.be(); - }); - - it('should have the property kind (base name: "kind")', function() { - // uncomment below and update the code to test the property kind - //var instane = new KubernetesJsClient.V1EventList(); - //expect(instance).to.be(); - }); - - it('should have the property metadata (base name: "metadata")', function() { - // uncomment below and update the code to test the property metadata - //var instane = new KubernetesJsClient.V1EventList(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1EventSource.spec.js b/kubernetes/test/model/V1EventSource.spec.js deleted file mode 100644 index f00e2f33a4..0000000000 --- a/kubernetes/test/model/V1EventSource.spec.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1EventSource(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1EventSource', function() { - it('should create an instance of V1EventSource', function() { - // uncomment below and update the code to test V1EventSource - //var instane = new KubernetesJsClient.V1EventSource(); - //expect(instance).to.be.a(KubernetesJsClient.V1EventSource); - }); - - it('should have the property component (base name: "component")', function() { - // uncomment below and update the code to test the property component - //var instane = new KubernetesJsClient.V1EventSource(); - //expect(instance).to.be(); - }); - - it('should have the property host (base name: "host")', function() { - // uncomment below and update the code to test the property host - //var instane = new KubernetesJsClient.V1EventSource(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1ExecAction.spec.js b/kubernetes/test/model/V1ExecAction.spec.js deleted file mode 100644 index 7edb7f3750..0000000000 --- a/kubernetes/test/model/V1ExecAction.spec.js +++ /dev/null @@ -1,65 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1ExecAction(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1ExecAction', function() { - it('should create an instance of V1ExecAction', function() { - // uncomment below and update the code to test V1ExecAction - //var instane = new KubernetesJsClient.V1ExecAction(); - //expect(instance).to.be.a(KubernetesJsClient.V1ExecAction); - }); - - it('should have the property command (base name: "command")', function() { - // uncomment below and update the code to test the property command - //var instane = new KubernetesJsClient.V1ExecAction(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1FCVolumeSource.spec.js b/kubernetes/test/model/V1FCVolumeSource.spec.js deleted file mode 100644 index 142d7ea950..0000000000 --- a/kubernetes/test/model/V1FCVolumeSource.spec.js +++ /dev/null @@ -1,83 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1FCVolumeSource(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1FCVolumeSource', function() { - it('should create an instance of V1FCVolumeSource', function() { - // uncomment below and update the code to test V1FCVolumeSource - //var instane = new KubernetesJsClient.V1FCVolumeSource(); - //expect(instance).to.be.a(KubernetesJsClient.V1FCVolumeSource); - }); - - it('should have the property fsType (base name: "fsType")', function() { - // uncomment below and update the code to test the property fsType - //var instane = new KubernetesJsClient.V1FCVolumeSource(); - //expect(instance).to.be(); - }); - - it('should have the property lun (base name: "lun")', function() { - // uncomment below and update the code to test the property lun - //var instane = new KubernetesJsClient.V1FCVolumeSource(); - //expect(instance).to.be(); - }); - - it('should have the property readOnly (base name: "readOnly")', function() { - // uncomment below and update the code to test the property readOnly - //var instane = new KubernetesJsClient.V1FCVolumeSource(); - //expect(instance).to.be(); - }); - - it('should have the property targetWWNs (base name: "targetWWNs")', function() { - // uncomment below and update the code to test the property targetWWNs - //var instane = new KubernetesJsClient.V1FCVolumeSource(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1FlexVolumeSource.spec.js b/kubernetes/test/model/V1FlexVolumeSource.spec.js deleted file mode 100644 index 5bdd06b7b8..0000000000 --- a/kubernetes/test/model/V1FlexVolumeSource.spec.js +++ /dev/null @@ -1,89 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1FlexVolumeSource(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1FlexVolumeSource', function() { - it('should create an instance of V1FlexVolumeSource', function() { - // uncomment below and update the code to test V1FlexVolumeSource - //var instane = new KubernetesJsClient.V1FlexVolumeSource(); - //expect(instance).to.be.a(KubernetesJsClient.V1FlexVolumeSource); - }); - - it('should have the property driver (base name: "driver")', function() { - // uncomment below and update the code to test the property driver - //var instane = new KubernetesJsClient.V1FlexVolumeSource(); - //expect(instance).to.be(); - }); - - it('should have the property fsType (base name: "fsType")', function() { - // uncomment below and update the code to test the property fsType - //var instane = new KubernetesJsClient.V1FlexVolumeSource(); - //expect(instance).to.be(); - }); - - it('should have the property options (base name: "options")', function() { - // uncomment below and update the code to test the property options - //var instane = new KubernetesJsClient.V1FlexVolumeSource(); - //expect(instance).to.be(); - }); - - it('should have the property readOnly (base name: "readOnly")', function() { - // uncomment below and update the code to test the property readOnly - //var instane = new KubernetesJsClient.V1FlexVolumeSource(); - //expect(instance).to.be(); - }); - - it('should have the property secretRef (base name: "secretRef")', function() { - // uncomment below and update the code to test the property secretRef - //var instane = new KubernetesJsClient.V1FlexVolumeSource(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1FlockerVolumeSource.spec.js b/kubernetes/test/model/V1FlockerVolumeSource.spec.js deleted file mode 100644 index aadd6b8827..0000000000 --- a/kubernetes/test/model/V1FlockerVolumeSource.spec.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1FlockerVolumeSource(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1FlockerVolumeSource', function() { - it('should create an instance of V1FlockerVolumeSource', function() { - // uncomment below and update the code to test V1FlockerVolumeSource - //var instane = new KubernetesJsClient.V1FlockerVolumeSource(); - //expect(instance).to.be.a(KubernetesJsClient.V1FlockerVolumeSource); - }); - - it('should have the property datasetName (base name: "datasetName")', function() { - // uncomment below and update the code to test the property datasetName - //var instane = new KubernetesJsClient.V1FlockerVolumeSource(); - //expect(instance).to.be(); - }); - - it('should have the property datasetUUID (base name: "datasetUUID")', function() { - // uncomment below and update the code to test the property datasetUUID - //var instane = new KubernetesJsClient.V1FlockerVolumeSource(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1GCEPersistentDiskVolumeSource.spec.js b/kubernetes/test/model/V1GCEPersistentDiskVolumeSource.spec.js deleted file mode 100644 index 241201da90..0000000000 --- a/kubernetes/test/model/V1GCEPersistentDiskVolumeSource.spec.js +++ /dev/null @@ -1,83 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1GCEPersistentDiskVolumeSource(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1GCEPersistentDiskVolumeSource', function() { - it('should create an instance of V1GCEPersistentDiskVolumeSource', function() { - // uncomment below and update the code to test V1GCEPersistentDiskVolumeSource - //var instane = new KubernetesJsClient.V1GCEPersistentDiskVolumeSource(); - //expect(instance).to.be.a(KubernetesJsClient.V1GCEPersistentDiskVolumeSource); - }); - - it('should have the property fsType (base name: "fsType")', function() { - // uncomment below and update the code to test the property fsType - //var instane = new KubernetesJsClient.V1GCEPersistentDiskVolumeSource(); - //expect(instance).to.be(); - }); - - it('should have the property partition (base name: "partition")', function() { - // uncomment below and update the code to test the property partition - //var instane = new KubernetesJsClient.V1GCEPersistentDiskVolumeSource(); - //expect(instance).to.be(); - }); - - it('should have the property pdName (base name: "pdName")', function() { - // uncomment below and update the code to test the property pdName - //var instane = new KubernetesJsClient.V1GCEPersistentDiskVolumeSource(); - //expect(instance).to.be(); - }); - - it('should have the property readOnly (base name: "readOnly")', function() { - // uncomment below and update the code to test the property readOnly - //var instane = new KubernetesJsClient.V1GCEPersistentDiskVolumeSource(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1GitRepoVolumeSource.spec.js b/kubernetes/test/model/V1GitRepoVolumeSource.spec.js deleted file mode 100644 index 3ce888f612..0000000000 --- a/kubernetes/test/model/V1GitRepoVolumeSource.spec.js +++ /dev/null @@ -1,77 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1GitRepoVolumeSource(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1GitRepoVolumeSource', function() { - it('should create an instance of V1GitRepoVolumeSource', function() { - // uncomment below and update the code to test V1GitRepoVolumeSource - //var instane = new KubernetesJsClient.V1GitRepoVolumeSource(); - //expect(instance).to.be.a(KubernetesJsClient.V1GitRepoVolumeSource); - }); - - it('should have the property directory (base name: "directory")', function() { - // uncomment below and update the code to test the property directory - //var instane = new KubernetesJsClient.V1GitRepoVolumeSource(); - //expect(instance).to.be(); - }); - - it('should have the property repository (base name: "repository")', function() { - // uncomment below and update the code to test the property repository - //var instane = new KubernetesJsClient.V1GitRepoVolumeSource(); - //expect(instance).to.be(); - }); - - it('should have the property revision (base name: "revision")', function() { - // uncomment below and update the code to test the property revision - //var instane = new KubernetesJsClient.V1GitRepoVolumeSource(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1GlusterfsVolumeSource.spec.js b/kubernetes/test/model/V1GlusterfsVolumeSource.spec.js deleted file mode 100644 index d1731fc02c..0000000000 --- a/kubernetes/test/model/V1GlusterfsVolumeSource.spec.js +++ /dev/null @@ -1,77 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1GlusterfsVolumeSource(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1GlusterfsVolumeSource', function() { - it('should create an instance of V1GlusterfsVolumeSource', function() { - // uncomment below and update the code to test V1GlusterfsVolumeSource - //var instane = new KubernetesJsClient.V1GlusterfsVolumeSource(); - //expect(instance).to.be.a(KubernetesJsClient.V1GlusterfsVolumeSource); - }); - - it('should have the property endpoints (base name: "endpoints")', function() { - // uncomment below and update the code to test the property endpoints - //var instane = new KubernetesJsClient.V1GlusterfsVolumeSource(); - //expect(instance).to.be(); - }); - - it('should have the property path (base name: "path")', function() { - // uncomment below and update the code to test the property path - //var instane = new KubernetesJsClient.V1GlusterfsVolumeSource(); - //expect(instance).to.be(); - }); - - it('should have the property readOnly (base name: "readOnly")', function() { - // uncomment below and update the code to test the property readOnly - //var instane = new KubernetesJsClient.V1GlusterfsVolumeSource(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1GroupVersionForDiscovery.spec.js b/kubernetes/test/model/V1GroupVersionForDiscovery.spec.js deleted file mode 100644 index 7d8eea10d9..0000000000 --- a/kubernetes/test/model/V1GroupVersionForDiscovery.spec.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1GroupVersionForDiscovery(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1GroupVersionForDiscovery', function() { - it('should create an instance of V1GroupVersionForDiscovery', function() { - // uncomment below and update the code to test V1GroupVersionForDiscovery - //var instane = new KubernetesJsClient.V1GroupVersionForDiscovery(); - //expect(instance).to.be.a(KubernetesJsClient.V1GroupVersionForDiscovery); - }); - - it('should have the property groupVersion (base name: "groupVersion")', function() { - // uncomment below and update the code to test the property groupVersion - //var instane = new KubernetesJsClient.V1GroupVersionForDiscovery(); - //expect(instance).to.be(); - }); - - it('should have the property version (base name: "version")', function() { - // uncomment below and update the code to test the property version - //var instane = new KubernetesJsClient.V1GroupVersionForDiscovery(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1HTTPGetAction.spec.js b/kubernetes/test/model/V1HTTPGetAction.spec.js deleted file mode 100644 index ec0a0afdae..0000000000 --- a/kubernetes/test/model/V1HTTPGetAction.spec.js +++ /dev/null @@ -1,89 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1HTTPGetAction(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1HTTPGetAction', function() { - it('should create an instance of V1HTTPGetAction', function() { - // uncomment below and update the code to test V1HTTPGetAction - //var instane = new KubernetesJsClient.V1HTTPGetAction(); - //expect(instance).to.be.a(KubernetesJsClient.V1HTTPGetAction); - }); - - it('should have the property host (base name: "host")', function() { - // uncomment below and update the code to test the property host - //var instane = new KubernetesJsClient.V1HTTPGetAction(); - //expect(instance).to.be(); - }); - - it('should have the property httpHeaders (base name: "httpHeaders")', function() { - // uncomment below and update the code to test the property httpHeaders - //var instane = new KubernetesJsClient.V1HTTPGetAction(); - //expect(instance).to.be(); - }); - - it('should have the property path (base name: "path")', function() { - // uncomment below and update the code to test the property path - //var instane = new KubernetesJsClient.V1HTTPGetAction(); - //expect(instance).to.be(); - }); - - it('should have the property port (base name: "port")', function() { - // uncomment below and update the code to test the property port - //var instane = new KubernetesJsClient.V1HTTPGetAction(); - //expect(instance).to.be(); - }); - - it('should have the property scheme (base name: "scheme")', function() { - // uncomment below and update the code to test the property scheme - //var instane = new KubernetesJsClient.V1HTTPGetAction(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1HTTPHeader.spec.js b/kubernetes/test/model/V1HTTPHeader.spec.js deleted file mode 100644 index bbc3cdb952..0000000000 --- a/kubernetes/test/model/V1HTTPHeader.spec.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1HTTPHeader(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1HTTPHeader', function() { - it('should create an instance of V1HTTPHeader', function() { - // uncomment below and update the code to test V1HTTPHeader - //var instane = new KubernetesJsClient.V1HTTPHeader(); - //expect(instance).to.be.a(KubernetesJsClient.V1HTTPHeader); - }); - - it('should have the property name (base name: "name")', function() { - // uncomment below and update the code to test the property name - //var instane = new KubernetesJsClient.V1HTTPHeader(); - //expect(instance).to.be(); - }); - - it('should have the property value (base name: "value")', function() { - // uncomment below and update the code to test the property value - //var instane = new KubernetesJsClient.V1HTTPHeader(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1Handler.spec.js b/kubernetes/test/model/V1Handler.spec.js deleted file mode 100644 index 3a95f73775..0000000000 --- a/kubernetes/test/model/V1Handler.spec.js +++ /dev/null @@ -1,77 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1Handler(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1Handler', function() { - it('should create an instance of V1Handler', function() { - // uncomment below and update the code to test V1Handler - //var instane = new KubernetesJsClient.V1Handler(); - //expect(instance).to.be.a(KubernetesJsClient.V1Handler); - }); - - it('should have the property exec (base name: "exec")', function() { - // uncomment below and update the code to test the property exec - //var instane = new KubernetesJsClient.V1Handler(); - //expect(instance).to.be(); - }); - - it('should have the property httpGet (base name: "httpGet")', function() { - // uncomment below and update the code to test the property httpGet - //var instane = new KubernetesJsClient.V1Handler(); - //expect(instance).to.be(); - }); - - it('should have the property tcpSocket (base name: "tcpSocket")', function() { - // uncomment below and update the code to test the property tcpSocket - //var instane = new KubernetesJsClient.V1Handler(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1HorizontalPodAutoscaler.spec.js b/kubernetes/test/model/V1HorizontalPodAutoscaler.spec.js deleted file mode 100644 index e22fae8cfe..0000000000 --- a/kubernetes/test/model/V1HorizontalPodAutoscaler.spec.js +++ /dev/null @@ -1,89 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1HorizontalPodAutoscaler(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1HorizontalPodAutoscaler', function() { - it('should create an instance of V1HorizontalPodAutoscaler', function() { - // uncomment below and update the code to test V1HorizontalPodAutoscaler - //var instane = new KubernetesJsClient.V1HorizontalPodAutoscaler(); - //expect(instance).to.be.a(KubernetesJsClient.V1HorizontalPodAutoscaler); - }); - - it('should have the property apiVersion (base name: "apiVersion")', function() { - // uncomment below and update the code to test the property apiVersion - //var instane = new KubernetesJsClient.V1HorizontalPodAutoscaler(); - //expect(instance).to.be(); - }); - - it('should have the property kind (base name: "kind")', function() { - // uncomment below and update the code to test the property kind - //var instane = new KubernetesJsClient.V1HorizontalPodAutoscaler(); - //expect(instance).to.be(); - }); - - it('should have the property metadata (base name: "metadata")', function() { - // uncomment below and update the code to test the property metadata - //var instane = new KubernetesJsClient.V1HorizontalPodAutoscaler(); - //expect(instance).to.be(); - }); - - it('should have the property spec (base name: "spec")', function() { - // uncomment below and update the code to test the property spec - //var instane = new KubernetesJsClient.V1HorizontalPodAutoscaler(); - //expect(instance).to.be(); - }); - - it('should have the property status (base name: "status")', function() { - // uncomment below and update the code to test the property status - //var instane = new KubernetesJsClient.V1HorizontalPodAutoscaler(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1HorizontalPodAutoscalerList.spec.js b/kubernetes/test/model/V1HorizontalPodAutoscalerList.spec.js deleted file mode 100644 index adae89fdb1..0000000000 --- a/kubernetes/test/model/V1HorizontalPodAutoscalerList.spec.js +++ /dev/null @@ -1,83 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1HorizontalPodAutoscalerList(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1HorizontalPodAutoscalerList', function() { - it('should create an instance of V1HorizontalPodAutoscalerList', function() { - // uncomment below and update the code to test V1HorizontalPodAutoscalerList - //var instane = new KubernetesJsClient.V1HorizontalPodAutoscalerList(); - //expect(instance).to.be.a(KubernetesJsClient.V1HorizontalPodAutoscalerList); - }); - - it('should have the property apiVersion (base name: "apiVersion")', function() { - // uncomment below and update the code to test the property apiVersion - //var instane = new KubernetesJsClient.V1HorizontalPodAutoscalerList(); - //expect(instance).to.be(); - }); - - it('should have the property items (base name: "items")', function() { - // uncomment below and update the code to test the property items - //var instane = new KubernetesJsClient.V1HorizontalPodAutoscalerList(); - //expect(instance).to.be(); - }); - - it('should have the property kind (base name: "kind")', function() { - // uncomment below and update the code to test the property kind - //var instane = new KubernetesJsClient.V1HorizontalPodAutoscalerList(); - //expect(instance).to.be(); - }); - - it('should have the property metadata (base name: "metadata")', function() { - // uncomment below and update the code to test the property metadata - //var instane = new KubernetesJsClient.V1HorizontalPodAutoscalerList(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1HorizontalPodAutoscalerSpec.spec.js b/kubernetes/test/model/V1HorizontalPodAutoscalerSpec.spec.js deleted file mode 100644 index ebab7e5f67..0000000000 --- a/kubernetes/test/model/V1HorizontalPodAutoscalerSpec.spec.js +++ /dev/null @@ -1,83 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1HorizontalPodAutoscalerSpec(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1HorizontalPodAutoscalerSpec', function() { - it('should create an instance of V1HorizontalPodAutoscalerSpec', function() { - // uncomment below and update the code to test V1HorizontalPodAutoscalerSpec - //var instane = new KubernetesJsClient.V1HorizontalPodAutoscalerSpec(); - //expect(instance).to.be.a(KubernetesJsClient.V1HorizontalPodAutoscalerSpec); - }); - - it('should have the property maxReplicas (base name: "maxReplicas")', function() { - // uncomment below and update the code to test the property maxReplicas - //var instane = new KubernetesJsClient.V1HorizontalPodAutoscalerSpec(); - //expect(instance).to.be(); - }); - - it('should have the property minReplicas (base name: "minReplicas")', function() { - // uncomment below and update the code to test the property minReplicas - //var instane = new KubernetesJsClient.V1HorizontalPodAutoscalerSpec(); - //expect(instance).to.be(); - }); - - it('should have the property scaleTargetRef (base name: "scaleTargetRef")', function() { - // uncomment below and update the code to test the property scaleTargetRef - //var instane = new KubernetesJsClient.V1HorizontalPodAutoscalerSpec(); - //expect(instance).to.be(); - }); - - it('should have the property targetCPUUtilizationPercentage (base name: "targetCPUUtilizationPercentage")', function() { - // uncomment below and update the code to test the property targetCPUUtilizationPercentage - //var instane = new KubernetesJsClient.V1HorizontalPodAutoscalerSpec(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1HorizontalPodAutoscalerStatus.spec.js b/kubernetes/test/model/V1HorizontalPodAutoscalerStatus.spec.js deleted file mode 100644 index f774b36ef8..0000000000 --- a/kubernetes/test/model/V1HorizontalPodAutoscalerStatus.spec.js +++ /dev/null @@ -1,89 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1HorizontalPodAutoscalerStatus(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1HorizontalPodAutoscalerStatus', function() { - it('should create an instance of V1HorizontalPodAutoscalerStatus', function() { - // uncomment below and update the code to test V1HorizontalPodAutoscalerStatus - //var instane = new KubernetesJsClient.V1HorizontalPodAutoscalerStatus(); - //expect(instance).to.be.a(KubernetesJsClient.V1HorizontalPodAutoscalerStatus); - }); - - it('should have the property currentCPUUtilizationPercentage (base name: "currentCPUUtilizationPercentage")', function() { - // uncomment below and update the code to test the property currentCPUUtilizationPercentage - //var instane = new KubernetesJsClient.V1HorizontalPodAutoscalerStatus(); - //expect(instance).to.be(); - }); - - it('should have the property currentReplicas (base name: "currentReplicas")', function() { - // uncomment below and update the code to test the property currentReplicas - //var instane = new KubernetesJsClient.V1HorizontalPodAutoscalerStatus(); - //expect(instance).to.be(); - }); - - it('should have the property desiredReplicas (base name: "desiredReplicas")', function() { - // uncomment below and update the code to test the property desiredReplicas - //var instane = new KubernetesJsClient.V1HorizontalPodAutoscalerStatus(); - //expect(instance).to.be(); - }); - - it('should have the property lastScaleTime (base name: "lastScaleTime")', function() { - // uncomment below and update the code to test the property lastScaleTime - //var instane = new KubernetesJsClient.V1HorizontalPodAutoscalerStatus(); - //expect(instance).to.be(); - }); - - it('should have the property observedGeneration (base name: "observedGeneration")', function() { - // uncomment below and update the code to test the property observedGeneration - //var instane = new KubernetesJsClient.V1HorizontalPodAutoscalerStatus(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1HostPathVolumeSource.spec.js b/kubernetes/test/model/V1HostPathVolumeSource.spec.js deleted file mode 100644 index 14f1bd0b61..0000000000 --- a/kubernetes/test/model/V1HostPathVolumeSource.spec.js +++ /dev/null @@ -1,65 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1HostPathVolumeSource(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1HostPathVolumeSource', function() { - it('should create an instance of V1HostPathVolumeSource', function() { - // uncomment below and update the code to test V1HostPathVolumeSource - //var instane = new KubernetesJsClient.V1HostPathVolumeSource(); - //expect(instance).to.be.a(KubernetesJsClient.V1HostPathVolumeSource); - }); - - it('should have the property path (base name: "path")', function() { - // uncomment below and update the code to test the property path - //var instane = new KubernetesJsClient.V1HostPathVolumeSource(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1ISCSIVolumeSource.spec.js b/kubernetes/test/model/V1ISCSIVolumeSource.spec.js deleted file mode 100644 index c47f803159..0000000000 --- a/kubernetes/test/model/V1ISCSIVolumeSource.spec.js +++ /dev/null @@ -1,101 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1ISCSIVolumeSource(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1ISCSIVolumeSource', function() { - it('should create an instance of V1ISCSIVolumeSource', function() { - // uncomment below and update the code to test V1ISCSIVolumeSource - //var instane = new KubernetesJsClient.V1ISCSIVolumeSource(); - //expect(instance).to.be.a(KubernetesJsClient.V1ISCSIVolumeSource); - }); - - it('should have the property fsType (base name: "fsType")', function() { - // uncomment below and update the code to test the property fsType - //var instane = new KubernetesJsClient.V1ISCSIVolumeSource(); - //expect(instance).to.be(); - }); - - it('should have the property iqn (base name: "iqn")', function() { - // uncomment below and update the code to test the property iqn - //var instane = new KubernetesJsClient.V1ISCSIVolumeSource(); - //expect(instance).to.be(); - }); - - it('should have the property iscsiInterface (base name: "iscsiInterface")', function() { - // uncomment below and update the code to test the property iscsiInterface - //var instane = new KubernetesJsClient.V1ISCSIVolumeSource(); - //expect(instance).to.be(); - }); - - it('should have the property lun (base name: "lun")', function() { - // uncomment below and update the code to test the property lun - //var instane = new KubernetesJsClient.V1ISCSIVolumeSource(); - //expect(instance).to.be(); - }); - - it('should have the property portals (base name: "portals")', function() { - // uncomment below and update the code to test the property portals - //var instane = new KubernetesJsClient.V1ISCSIVolumeSource(); - //expect(instance).to.be(); - }); - - it('should have the property readOnly (base name: "readOnly")', function() { - // uncomment below and update the code to test the property readOnly - //var instane = new KubernetesJsClient.V1ISCSIVolumeSource(); - //expect(instance).to.be(); - }); - - it('should have the property targetPortal (base name: "targetPortal")', function() { - // uncomment below and update the code to test the property targetPortal - //var instane = new KubernetesJsClient.V1ISCSIVolumeSource(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1Job.spec.js b/kubernetes/test/model/V1Job.spec.js deleted file mode 100644 index 389ceadf38..0000000000 --- a/kubernetes/test/model/V1Job.spec.js +++ /dev/null @@ -1,89 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1Job(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1Job', function() { - it('should create an instance of V1Job', function() { - // uncomment below and update the code to test V1Job - //var instane = new KubernetesJsClient.V1Job(); - //expect(instance).to.be.a(KubernetesJsClient.V1Job); - }); - - it('should have the property apiVersion (base name: "apiVersion")', function() { - // uncomment below and update the code to test the property apiVersion - //var instane = new KubernetesJsClient.V1Job(); - //expect(instance).to.be(); - }); - - it('should have the property kind (base name: "kind")', function() { - // uncomment below and update the code to test the property kind - //var instane = new KubernetesJsClient.V1Job(); - //expect(instance).to.be(); - }); - - it('should have the property metadata (base name: "metadata")', function() { - // uncomment below and update the code to test the property metadata - //var instane = new KubernetesJsClient.V1Job(); - //expect(instance).to.be(); - }); - - it('should have the property spec (base name: "spec")', function() { - // uncomment below and update the code to test the property spec - //var instane = new KubernetesJsClient.V1Job(); - //expect(instance).to.be(); - }); - - it('should have the property status (base name: "status")', function() { - // uncomment below and update the code to test the property status - //var instane = new KubernetesJsClient.V1Job(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1JobCondition.spec.js b/kubernetes/test/model/V1JobCondition.spec.js deleted file mode 100644 index 165b25b96a..0000000000 --- a/kubernetes/test/model/V1JobCondition.spec.js +++ /dev/null @@ -1,95 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1JobCondition(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1JobCondition', function() { - it('should create an instance of V1JobCondition', function() { - // uncomment below and update the code to test V1JobCondition - //var instane = new KubernetesJsClient.V1JobCondition(); - //expect(instance).to.be.a(KubernetesJsClient.V1JobCondition); - }); - - it('should have the property lastProbeTime (base name: "lastProbeTime")', function() { - // uncomment below and update the code to test the property lastProbeTime - //var instane = new KubernetesJsClient.V1JobCondition(); - //expect(instance).to.be(); - }); - - it('should have the property lastTransitionTime (base name: "lastTransitionTime")', function() { - // uncomment below and update the code to test the property lastTransitionTime - //var instane = new KubernetesJsClient.V1JobCondition(); - //expect(instance).to.be(); - }); - - it('should have the property message (base name: "message")', function() { - // uncomment below and update the code to test the property message - //var instane = new KubernetesJsClient.V1JobCondition(); - //expect(instance).to.be(); - }); - - it('should have the property reason (base name: "reason")', function() { - // uncomment below and update the code to test the property reason - //var instane = new KubernetesJsClient.V1JobCondition(); - //expect(instance).to.be(); - }); - - it('should have the property status (base name: "status")', function() { - // uncomment below and update the code to test the property status - //var instane = new KubernetesJsClient.V1JobCondition(); - //expect(instance).to.be(); - }); - - it('should have the property type (base name: "type")', function() { - // uncomment below and update the code to test the property type - //var instane = new KubernetesJsClient.V1JobCondition(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1JobList.spec.js b/kubernetes/test/model/V1JobList.spec.js deleted file mode 100644 index 2fe0c67532..0000000000 --- a/kubernetes/test/model/V1JobList.spec.js +++ /dev/null @@ -1,83 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1JobList(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1JobList', function() { - it('should create an instance of V1JobList', function() { - // uncomment below and update the code to test V1JobList - //var instane = new KubernetesJsClient.V1JobList(); - //expect(instance).to.be.a(KubernetesJsClient.V1JobList); - }); - - it('should have the property apiVersion (base name: "apiVersion")', function() { - // uncomment below and update the code to test the property apiVersion - //var instane = new KubernetesJsClient.V1JobList(); - //expect(instance).to.be(); - }); - - it('should have the property items (base name: "items")', function() { - // uncomment below and update the code to test the property items - //var instane = new KubernetesJsClient.V1JobList(); - //expect(instance).to.be(); - }); - - it('should have the property kind (base name: "kind")', function() { - // uncomment below and update the code to test the property kind - //var instane = new KubernetesJsClient.V1JobList(); - //expect(instance).to.be(); - }); - - it('should have the property metadata (base name: "metadata")', function() { - // uncomment below and update the code to test the property metadata - //var instane = new KubernetesJsClient.V1JobList(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1JobSpec.spec.js b/kubernetes/test/model/V1JobSpec.spec.js deleted file mode 100644 index 55e7834b7a..0000000000 --- a/kubernetes/test/model/V1JobSpec.spec.js +++ /dev/null @@ -1,95 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1JobSpec(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1JobSpec', function() { - it('should create an instance of V1JobSpec', function() { - // uncomment below and update the code to test V1JobSpec - //var instane = new KubernetesJsClient.V1JobSpec(); - //expect(instance).to.be.a(KubernetesJsClient.V1JobSpec); - }); - - it('should have the property activeDeadlineSeconds (base name: "activeDeadlineSeconds")', function() { - // uncomment below and update the code to test the property activeDeadlineSeconds - //var instane = new KubernetesJsClient.V1JobSpec(); - //expect(instance).to.be(); - }); - - it('should have the property completions (base name: "completions")', function() { - // uncomment below and update the code to test the property completions - //var instane = new KubernetesJsClient.V1JobSpec(); - //expect(instance).to.be(); - }); - - it('should have the property manualSelector (base name: "manualSelector")', function() { - // uncomment below and update the code to test the property manualSelector - //var instane = new KubernetesJsClient.V1JobSpec(); - //expect(instance).to.be(); - }); - - it('should have the property parallelism (base name: "parallelism")', function() { - // uncomment below and update the code to test the property parallelism - //var instane = new KubernetesJsClient.V1JobSpec(); - //expect(instance).to.be(); - }); - - it('should have the property selector (base name: "selector")', function() { - // uncomment below and update the code to test the property selector - //var instane = new KubernetesJsClient.V1JobSpec(); - //expect(instance).to.be(); - }); - - it('should have the property template (base name: "template")', function() { - // uncomment below and update the code to test the property template - //var instane = new KubernetesJsClient.V1JobSpec(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1JobStatus.spec.js b/kubernetes/test/model/V1JobStatus.spec.js deleted file mode 100644 index 97f8b3f24c..0000000000 --- a/kubernetes/test/model/V1JobStatus.spec.js +++ /dev/null @@ -1,95 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1JobStatus(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1JobStatus', function() { - it('should create an instance of V1JobStatus', function() { - // uncomment below and update the code to test V1JobStatus - //var instane = new KubernetesJsClient.V1JobStatus(); - //expect(instance).to.be.a(KubernetesJsClient.V1JobStatus); - }); - - it('should have the property active (base name: "active")', function() { - // uncomment below and update the code to test the property active - //var instane = new KubernetesJsClient.V1JobStatus(); - //expect(instance).to.be(); - }); - - it('should have the property completionTime (base name: "completionTime")', function() { - // uncomment below and update the code to test the property completionTime - //var instane = new KubernetesJsClient.V1JobStatus(); - //expect(instance).to.be(); - }); - - it('should have the property conditions (base name: "conditions")', function() { - // uncomment below and update the code to test the property conditions - //var instane = new KubernetesJsClient.V1JobStatus(); - //expect(instance).to.be(); - }); - - it('should have the property failed (base name: "failed")', function() { - // uncomment below and update the code to test the property failed - //var instane = new KubernetesJsClient.V1JobStatus(); - //expect(instance).to.be(); - }); - - it('should have the property startTime (base name: "startTime")', function() { - // uncomment below and update the code to test the property startTime - //var instane = new KubernetesJsClient.V1JobStatus(); - //expect(instance).to.be(); - }); - - it('should have the property succeeded (base name: "succeeded")', function() { - // uncomment below and update the code to test the property succeeded - //var instane = new KubernetesJsClient.V1JobStatus(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1KeyToPath.spec.js b/kubernetes/test/model/V1KeyToPath.spec.js deleted file mode 100644 index 45fa317a2b..0000000000 --- a/kubernetes/test/model/V1KeyToPath.spec.js +++ /dev/null @@ -1,77 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1KeyToPath(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1KeyToPath', function() { - it('should create an instance of V1KeyToPath', function() { - // uncomment below and update the code to test V1KeyToPath - //var instane = new KubernetesJsClient.V1KeyToPath(); - //expect(instance).to.be.a(KubernetesJsClient.V1KeyToPath); - }); - - it('should have the property key (base name: "key")', function() { - // uncomment below and update the code to test the property key - //var instane = new KubernetesJsClient.V1KeyToPath(); - //expect(instance).to.be(); - }); - - it('should have the property mode (base name: "mode")', function() { - // uncomment below and update the code to test the property mode - //var instane = new KubernetesJsClient.V1KeyToPath(); - //expect(instance).to.be(); - }); - - it('should have the property path (base name: "path")', function() { - // uncomment below and update the code to test the property path - //var instane = new KubernetesJsClient.V1KeyToPath(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1LabelSelector.spec.js b/kubernetes/test/model/V1LabelSelector.spec.js deleted file mode 100644 index ee62952324..0000000000 --- a/kubernetes/test/model/V1LabelSelector.spec.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1LabelSelector(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1LabelSelector', function() { - it('should create an instance of V1LabelSelector', function() { - // uncomment below and update the code to test V1LabelSelector - //var instane = new KubernetesJsClient.V1LabelSelector(); - //expect(instance).to.be.a(KubernetesJsClient.V1LabelSelector); - }); - - it('should have the property matchExpressions (base name: "matchExpressions")', function() { - // uncomment below and update the code to test the property matchExpressions - //var instane = new KubernetesJsClient.V1LabelSelector(); - //expect(instance).to.be(); - }); - - it('should have the property matchLabels (base name: "matchLabels")', function() { - // uncomment below and update the code to test the property matchLabels - //var instane = new KubernetesJsClient.V1LabelSelector(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1LabelSelectorRequirement.spec.js b/kubernetes/test/model/V1LabelSelectorRequirement.spec.js deleted file mode 100644 index 710b1319bb..0000000000 --- a/kubernetes/test/model/V1LabelSelectorRequirement.spec.js +++ /dev/null @@ -1,77 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1LabelSelectorRequirement(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1LabelSelectorRequirement', function() { - it('should create an instance of V1LabelSelectorRequirement', function() { - // uncomment below and update the code to test V1LabelSelectorRequirement - //var instane = new KubernetesJsClient.V1LabelSelectorRequirement(); - //expect(instance).to.be.a(KubernetesJsClient.V1LabelSelectorRequirement); - }); - - it('should have the property key (base name: "key")', function() { - // uncomment below and update the code to test the property key - //var instane = new KubernetesJsClient.V1LabelSelectorRequirement(); - //expect(instance).to.be(); - }); - - it('should have the property operator (base name: "operator")', function() { - // uncomment below and update the code to test the property operator - //var instane = new KubernetesJsClient.V1LabelSelectorRequirement(); - //expect(instance).to.be(); - }); - - it('should have the property values (base name: "values")', function() { - // uncomment below and update the code to test the property values - //var instane = new KubernetesJsClient.V1LabelSelectorRequirement(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1Lifecycle.spec.js b/kubernetes/test/model/V1Lifecycle.spec.js deleted file mode 100644 index ac9e9bb7a4..0000000000 --- a/kubernetes/test/model/V1Lifecycle.spec.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1Lifecycle(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1Lifecycle', function() { - it('should create an instance of V1Lifecycle', function() { - // uncomment below and update the code to test V1Lifecycle - //var instane = new KubernetesJsClient.V1Lifecycle(); - //expect(instance).to.be.a(KubernetesJsClient.V1Lifecycle); - }); - - it('should have the property postStart (base name: "postStart")', function() { - // uncomment below and update the code to test the property postStart - //var instane = new KubernetesJsClient.V1Lifecycle(); - //expect(instance).to.be(); - }); - - it('should have the property preStop (base name: "preStop")', function() { - // uncomment below and update the code to test the property preStop - //var instane = new KubernetesJsClient.V1Lifecycle(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1LimitRange.spec.js b/kubernetes/test/model/V1LimitRange.spec.js deleted file mode 100644 index 0d1995c3a0..0000000000 --- a/kubernetes/test/model/V1LimitRange.spec.js +++ /dev/null @@ -1,83 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1LimitRange(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1LimitRange', function() { - it('should create an instance of V1LimitRange', function() { - // uncomment below and update the code to test V1LimitRange - //var instane = new KubernetesJsClient.V1LimitRange(); - //expect(instance).to.be.a(KubernetesJsClient.V1LimitRange); - }); - - it('should have the property apiVersion (base name: "apiVersion")', function() { - // uncomment below and update the code to test the property apiVersion - //var instane = new KubernetesJsClient.V1LimitRange(); - //expect(instance).to.be(); - }); - - it('should have the property kind (base name: "kind")', function() { - // uncomment below and update the code to test the property kind - //var instane = new KubernetesJsClient.V1LimitRange(); - //expect(instance).to.be(); - }); - - it('should have the property metadata (base name: "metadata")', function() { - // uncomment below and update the code to test the property metadata - //var instane = new KubernetesJsClient.V1LimitRange(); - //expect(instance).to.be(); - }); - - it('should have the property spec (base name: "spec")', function() { - // uncomment below and update the code to test the property spec - //var instane = new KubernetesJsClient.V1LimitRange(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1LimitRangeItem.spec.js b/kubernetes/test/model/V1LimitRangeItem.spec.js deleted file mode 100644 index 866d975c47..0000000000 --- a/kubernetes/test/model/V1LimitRangeItem.spec.js +++ /dev/null @@ -1,95 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1LimitRangeItem(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1LimitRangeItem', function() { - it('should create an instance of V1LimitRangeItem', function() { - // uncomment below and update the code to test V1LimitRangeItem - //var instane = new KubernetesJsClient.V1LimitRangeItem(); - //expect(instance).to.be.a(KubernetesJsClient.V1LimitRangeItem); - }); - - it('should have the property _default (base name: "default")', function() { - // uncomment below and update the code to test the property _default - //var instane = new KubernetesJsClient.V1LimitRangeItem(); - //expect(instance).to.be(); - }); - - it('should have the property defaultRequest (base name: "defaultRequest")', function() { - // uncomment below and update the code to test the property defaultRequest - //var instane = new KubernetesJsClient.V1LimitRangeItem(); - //expect(instance).to.be(); - }); - - it('should have the property max (base name: "max")', function() { - // uncomment below and update the code to test the property max - //var instane = new KubernetesJsClient.V1LimitRangeItem(); - //expect(instance).to.be(); - }); - - it('should have the property maxLimitRequestRatio (base name: "maxLimitRequestRatio")', function() { - // uncomment below and update the code to test the property maxLimitRequestRatio - //var instane = new KubernetesJsClient.V1LimitRangeItem(); - //expect(instance).to.be(); - }); - - it('should have the property min (base name: "min")', function() { - // uncomment below and update the code to test the property min - //var instane = new KubernetesJsClient.V1LimitRangeItem(); - //expect(instance).to.be(); - }); - - it('should have the property type (base name: "type")', function() { - // uncomment below and update the code to test the property type - //var instane = new KubernetesJsClient.V1LimitRangeItem(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1LimitRangeList.spec.js b/kubernetes/test/model/V1LimitRangeList.spec.js deleted file mode 100644 index fb16327a87..0000000000 --- a/kubernetes/test/model/V1LimitRangeList.spec.js +++ /dev/null @@ -1,83 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1LimitRangeList(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1LimitRangeList', function() { - it('should create an instance of V1LimitRangeList', function() { - // uncomment below and update the code to test V1LimitRangeList - //var instane = new KubernetesJsClient.V1LimitRangeList(); - //expect(instance).to.be.a(KubernetesJsClient.V1LimitRangeList); - }); - - it('should have the property apiVersion (base name: "apiVersion")', function() { - // uncomment below and update the code to test the property apiVersion - //var instane = new KubernetesJsClient.V1LimitRangeList(); - //expect(instance).to.be(); - }); - - it('should have the property items (base name: "items")', function() { - // uncomment below and update the code to test the property items - //var instane = new KubernetesJsClient.V1LimitRangeList(); - //expect(instance).to.be(); - }); - - it('should have the property kind (base name: "kind")', function() { - // uncomment below and update the code to test the property kind - //var instane = new KubernetesJsClient.V1LimitRangeList(); - //expect(instance).to.be(); - }); - - it('should have the property metadata (base name: "metadata")', function() { - // uncomment below and update the code to test the property metadata - //var instane = new KubernetesJsClient.V1LimitRangeList(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1LimitRangeSpec.spec.js b/kubernetes/test/model/V1LimitRangeSpec.spec.js deleted file mode 100644 index 6ffd03d7ce..0000000000 --- a/kubernetes/test/model/V1LimitRangeSpec.spec.js +++ /dev/null @@ -1,65 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1LimitRangeSpec(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1LimitRangeSpec', function() { - it('should create an instance of V1LimitRangeSpec', function() { - // uncomment below and update the code to test V1LimitRangeSpec - //var instane = new KubernetesJsClient.V1LimitRangeSpec(); - //expect(instance).to.be.a(KubernetesJsClient.V1LimitRangeSpec); - }); - - it('should have the property limits (base name: "limits")', function() { - // uncomment below and update the code to test the property limits - //var instane = new KubernetesJsClient.V1LimitRangeSpec(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1ListMeta.spec.js b/kubernetes/test/model/V1ListMeta.spec.js deleted file mode 100644 index 890b9a16a9..0000000000 --- a/kubernetes/test/model/V1ListMeta.spec.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1ListMeta(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1ListMeta', function() { - it('should create an instance of V1ListMeta', function() { - // uncomment below and update the code to test V1ListMeta - //var instane = new KubernetesJsClient.V1ListMeta(); - //expect(instance).to.be.a(KubernetesJsClient.V1ListMeta); - }); - - it('should have the property resourceVersion (base name: "resourceVersion")', function() { - // uncomment below and update the code to test the property resourceVersion - //var instane = new KubernetesJsClient.V1ListMeta(); - //expect(instance).to.be(); - }); - - it('should have the property selfLink (base name: "selfLink")', function() { - // uncomment below and update the code to test the property selfLink - //var instane = new KubernetesJsClient.V1ListMeta(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1LoadBalancerIngress.spec.js b/kubernetes/test/model/V1LoadBalancerIngress.spec.js deleted file mode 100644 index 0bdac30ad6..0000000000 --- a/kubernetes/test/model/V1LoadBalancerIngress.spec.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1LoadBalancerIngress(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1LoadBalancerIngress', function() { - it('should create an instance of V1LoadBalancerIngress', function() { - // uncomment below and update the code to test V1LoadBalancerIngress - //var instane = new KubernetesJsClient.V1LoadBalancerIngress(); - //expect(instance).to.be.a(KubernetesJsClient.V1LoadBalancerIngress); - }); - - it('should have the property hostname (base name: "hostname")', function() { - // uncomment below and update the code to test the property hostname - //var instane = new KubernetesJsClient.V1LoadBalancerIngress(); - //expect(instance).to.be(); - }); - - it('should have the property ip (base name: "ip")', function() { - // uncomment below and update the code to test the property ip - //var instane = new KubernetesJsClient.V1LoadBalancerIngress(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1LoadBalancerStatus.spec.js b/kubernetes/test/model/V1LoadBalancerStatus.spec.js deleted file mode 100644 index 89a6728599..0000000000 --- a/kubernetes/test/model/V1LoadBalancerStatus.spec.js +++ /dev/null @@ -1,65 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1LoadBalancerStatus(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1LoadBalancerStatus', function() { - it('should create an instance of V1LoadBalancerStatus', function() { - // uncomment below and update the code to test V1LoadBalancerStatus - //var instane = new KubernetesJsClient.V1LoadBalancerStatus(); - //expect(instance).to.be.a(KubernetesJsClient.V1LoadBalancerStatus); - }); - - it('should have the property ingress (base name: "ingress")', function() { - // uncomment below and update the code to test the property ingress - //var instane = new KubernetesJsClient.V1LoadBalancerStatus(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1LocalObjectReference.spec.js b/kubernetes/test/model/V1LocalObjectReference.spec.js deleted file mode 100644 index 71b6361397..0000000000 --- a/kubernetes/test/model/V1LocalObjectReference.spec.js +++ /dev/null @@ -1,65 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1LocalObjectReference(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1LocalObjectReference', function() { - it('should create an instance of V1LocalObjectReference', function() { - // uncomment below and update the code to test V1LocalObjectReference - //var instane = new KubernetesJsClient.V1LocalObjectReference(); - //expect(instance).to.be.a(KubernetesJsClient.V1LocalObjectReference); - }); - - it('should have the property name (base name: "name")', function() { - // uncomment below and update the code to test the property name - //var instane = new KubernetesJsClient.V1LocalObjectReference(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1LocalSubjectAccessReview.spec.js b/kubernetes/test/model/V1LocalSubjectAccessReview.spec.js deleted file mode 100644 index 41084234ba..0000000000 --- a/kubernetes/test/model/V1LocalSubjectAccessReview.spec.js +++ /dev/null @@ -1,89 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1LocalSubjectAccessReview(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1LocalSubjectAccessReview', function() { - it('should create an instance of V1LocalSubjectAccessReview', function() { - // uncomment below and update the code to test V1LocalSubjectAccessReview - //var instane = new KubernetesJsClient.V1LocalSubjectAccessReview(); - //expect(instance).to.be.a(KubernetesJsClient.V1LocalSubjectAccessReview); - }); - - it('should have the property apiVersion (base name: "apiVersion")', function() { - // uncomment below and update the code to test the property apiVersion - //var instane = new KubernetesJsClient.V1LocalSubjectAccessReview(); - //expect(instance).to.be(); - }); - - it('should have the property kind (base name: "kind")', function() { - // uncomment below and update the code to test the property kind - //var instane = new KubernetesJsClient.V1LocalSubjectAccessReview(); - //expect(instance).to.be(); - }); - - it('should have the property metadata (base name: "metadata")', function() { - // uncomment below and update the code to test the property metadata - //var instane = new KubernetesJsClient.V1LocalSubjectAccessReview(); - //expect(instance).to.be(); - }); - - it('should have the property spec (base name: "spec")', function() { - // uncomment below and update the code to test the property spec - //var instane = new KubernetesJsClient.V1LocalSubjectAccessReview(); - //expect(instance).to.be(); - }); - - it('should have the property status (base name: "status")', function() { - // uncomment below and update the code to test the property status - //var instane = new KubernetesJsClient.V1LocalSubjectAccessReview(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1NFSVolumeSource.spec.js b/kubernetes/test/model/V1NFSVolumeSource.spec.js deleted file mode 100644 index 5ff7254490..0000000000 --- a/kubernetes/test/model/V1NFSVolumeSource.spec.js +++ /dev/null @@ -1,77 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1NFSVolumeSource(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1NFSVolumeSource', function() { - it('should create an instance of V1NFSVolumeSource', function() { - // uncomment below and update the code to test V1NFSVolumeSource - //var instane = new KubernetesJsClient.V1NFSVolumeSource(); - //expect(instance).to.be.a(KubernetesJsClient.V1NFSVolumeSource); - }); - - it('should have the property path (base name: "path")', function() { - // uncomment below and update the code to test the property path - //var instane = new KubernetesJsClient.V1NFSVolumeSource(); - //expect(instance).to.be(); - }); - - it('should have the property readOnly (base name: "readOnly")', function() { - // uncomment below and update the code to test the property readOnly - //var instane = new KubernetesJsClient.V1NFSVolumeSource(); - //expect(instance).to.be(); - }); - - it('should have the property server (base name: "server")', function() { - // uncomment below and update the code to test the property server - //var instane = new KubernetesJsClient.V1NFSVolumeSource(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1Namespace.spec.js b/kubernetes/test/model/V1Namespace.spec.js deleted file mode 100644 index cd4bdf6468..0000000000 --- a/kubernetes/test/model/V1Namespace.spec.js +++ /dev/null @@ -1,89 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1Namespace(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1Namespace', function() { - it('should create an instance of V1Namespace', function() { - // uncomment below and update the code to test V1Namespace - //var instane = new KubernetesJsClient.V1Namespace(); - //expect(instance).to.be.a(KubernetesJsClient.V1Namespace); - }); - - it('should have the property apiVersion (base name: "apiVersion")', function() { - // uncomment below and update the code to test the property apiVersion - //var instane = new KubernetesJsClient.V1Namespace(); - //expect(instance).to.be(); - }); - - it('should have the property kind (base name: "kind")', function() { - // uncomment below and update the code to test the property kind - //var instane = new KubernetesJsClient.V1Namespace(); - //expect(instance).to.be(); - }); - - it('should have the property metadata (base name: "metadata")', function() { - // uncomment below and update the code to test the property metadata - //var instane = new KubernetesJsClient.V1Namespace(); - //expect(instance).to.be(); - }); - - it('should have the property spec (base name: "spec")', function() { - // uncomment below and update the code to test the property spec - //var instane = new KubernetesJsClient.V1Namespace(); - //expect(instance).to.be(); - }); - - it('should have the property status (base name: "status")', function() { - // uncomment below and update the code to test the property status - //var instane = new KubernetesJsClient.V1Namespace(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1NamespaceList.spec.js b/kubernetes/test/model/V1NamespaceList.spec.js deleted file mode 100644 index 2319f1c675..0000000000 --- a/kubernetes/test/model/V1NamespaceList.spec.js +++ /dev/null @@ -1,83 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1NamespaceList(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1NamespaceList', function() { - it('should create an instance of V1NamespaceList', function() { - // uncomment below and update the code to test V1NamespaceList - //var instane = new KubernetesJsClient.V1NamespaceList(); - //expect(instance).to.be.a(KubernetesJsClient.V1NamespaceList); - }); - - it('should have the property apiVersion (base name: "apiVersion")', function() { - // uncomment below and update the code to test the property apiVersion - //var instane = new KubernetesJsClient.V1NamespaceList(); - //expect(instance).to.be(); - }); - - it('should have the property items (base name: "items")', function() { - // uncomment below and update the code to test the property items - //var instane = new KubernetesJsClient.V1NamespaceList(); - //expect(instance).to.be(); - }); - - it('should have the property kind (base name: "kind")', function() { - // uncomment below and update the code to test the property kind - //var instane = new KubernetesJsClient.V1NamespaceList(); - //expect(instance).to.be(); - }); - - it('should have the property metadata (base name: "metadata")', function() { - // uncomment below and update the code to test the property metadata - //var instane = new KubernetesJsClient.V1NamespaceList(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1NamespaceSpec.spec.js b/kubernetes/test/model/V1NamespaceSpec.spec.js deleted file mode 100644 index 0e3ff1df60..0000000000 --- a/kubernetes/test/model/V1NamespaceSpec.spec.js +++ /dev/null @@ -1,65 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1NamespaceSpec(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1NamespaceSpec', function() { - it('should create an instance of V1NamespaceSpec', function() { - // uncomment below and update the code to test V1NamespaceSpec - //var instane = new KubernetesJsClient.V1NamespaceSpec(); - //expect(instance).to.be.a(KubernetesJsClient.V1NamespaceSpec); - }); - - it('should have the property finalizers (base name: "finalizers")', function() { - // uncomment below and update the code to test the property finalizers - //var instane = new KubernetesJsClient.V1NamespaceSpec(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1NamespaceStatus.spec.js b/kubernetes/test/model/V1NamespaceStatus.spec.js deleted file mode 100644 index ea47e57dc5..0000000000 --- a/kubernetes/test/model/V1NamespaceStatus.spec.js +++ /dev/null @@ -1,65 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1NamespaceStatus(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1NamespaceStatus', function() { - it('should create an instance of V1NamespaceStatus', function() { - // uncomment below and update the code to test V1NamespaceStatus - //var instane = new KubernetesJsClient.V1NamespaceStatus(); - //expect(instance).to.be.a(KubernetesJsClient.V1NamespaceStatus); - }); - - it('should have the property phase (base name: "phase")', function() { - // uncomment below and update the code to test the property phase - //var instane = new KubernetesJsClient.V1NamespaceStatus(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1Node.spec.js b/kubernetes/test/model/V1Node.spec.js deleted file mode 100644 index bfa8489d3d..0000000000 --- a/kubernetes/test/model/V1Node.spec.js +++ /dev/null @@ -1,89 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1Node(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1Node', function() { - it('should create an instance of V1Node', function() { - // uncomment below and update the code to test V1Node - //var instane = new KubernetesJsClient.V1Node(); - //expect(instance).to.be.a(KubernetesJsClient.V1Node); - }); - - it('should have the property apiVersion (base name: "apiVersion")', function() { - // uncomment below and update the code to test the property apiVersion - //var instane = new KubernetesJsClient.V1Node(); - //expect(instance).to.be(); - }); - - it('should have the property kind (base name: "kind")', function() { - // uncomment below and update the code to test the property kind - //var instane = new KubernetesJsClient.V1Node(); - //expect(instance).to.be(); - }); - - it('should have the property metadata (base name: "metadata")', function() { - // uncomment below and update the code to test the property metadata - //var instane = new KubernetesJsClient.V1Node(); - //expect(instance).to.be(); - }); - - it('should have the property spec (base name: "spec")', function() { - // uncomment below and update the code to test the property spec - //var instane = new KubernetesJsClient.V1Node(); - //expect(instance).to.be(); - }); - - it('should have the property status (base name: "status")', function() { - // uncomment below and update the code to test the property status - //var instane = new KubernetesJsClient.V1Node(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1NodeAddress.spec.js b/kubernetes/test/model/V1NodeAddress.spec.js deleted file mode 100644 index 094d609a2f..0000000000 --- a/kubernetes/test/model/V1NodeAddress.spec.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1NodeAddress(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1NodeAddress', function() { - it('should create an instance of V1NodeAddress', function() { - // uncomment below and update the code to test V1NodeAddress - //var instane = new KubernetesJsClient.V1NodeAddress(); - //expect(instance).to.be.a(KubernetesJsClient.V1NodeAddress); - }); - - it('should have the property address (base name: "address")', function() { - // uncomment below and update the code to test the property address - //var instane = new KubernetesJsClient.V1NodeAddress(); - //expect(instance).to.be(); - }); - - it('should have the property type (base name: "type")', function() { - // uncomment below and update the code to test the property type - //var instane = new KubernetesJsClient.V1NodeAddress(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1NodeAffinity.spec.js b/kubernetes/test/model/V1NodeAffinity.spec.js deleted file mode 100644 index 985300a5bc..0000000000 --- a/kubernetes/test/model/V1NodeAffinity.spec.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1NodeAffinity(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1NodeAffinity', function() { - it('should create an instance of V1NodeAffinity', function() { - // uncomment below and update the code to test V1NodeAffinity - //var instane = new KubernetesJsClient.V1NodeAffinity(); - //expect(instance).to.be.a(KubernetesJsClient.V1NodeAffinity); - }); - - it('should have the property preferredDuringSchedulingIgnoredDuringExecution (base name: "preferredDuringSchedulingIgnoredDuringExecution")', function() { - // uncomment below and update the code to test the property preferredDuringSchedulingIgnoredDuringExecution - //var instane = new KubernetesJsClient.V1NodeAffinity(); - //expect(instance).to.be(); - }); - - it('should have the property requiredDuringSchedulingIgnoredDuringExecution (base name: "requiredDuringSchedulingIgnoredDuringExecution")', function() { - // uncomment below and update the code to test the property requiredDuringSchedulingIgnoredDuringExecution - //var instane = new KubernetesJsClient.V1NodeAffinity(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1NodeCondition.spec.js b/kubernetes/test/model/V1NodeCondition.spec.js deleted file mode 100644 index ceb35b126a..0000000000 --- a/kubernetes/test/model/V1NodeCondition.spec.js +++ /dev/null @@ -1,95 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1NodeCondition(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1NodeCondition', function() { - it('should create an instance of V1NodeCondition', function() { - // uncomment below and update the code to test V1NodeCondition - //var instane = new KubernetesJsClient.V1NodeCondition(); - //expect(instance).to.be.a(KubernetesJsClient.V1NodeCondition); - }); - - it('should have the property lastHeartbeatTime (base name: "lastHeartbeatTime")', function() { - // uncomment below and update the code to test the property lastHeartbeatTime - //var instane = new KubernetesJsClient.V1NodeCondition(); - //expect(instance).to.be(); - }); - - it('should have the property lastTransitionTime (base name: "lastTransitionTime")', function() { - // uncomment below and update the code to test the property lastTransitionTime - //var instane = new KubernetesJsClient.V1NodeCondition(); - //expect(instance).to.be(); - }); - - it('should have the property message (base name: "message")', function() { - // uncomment below and update the code to test the property message - //var instane = new KubernetesJsClient.V1NodeCondition(); - //expect(instance).to.be(); - }); - - it('should have the property reason (base name: "reason")', function() { - // uncomment below and update the code to test the property reason - //var instane = new KubernetesJsClient.V1NodeCondition(); - //expect(instance).to.be(); - }); - - it('should have the property status (base name: "status")', function() { - // uncomment below and update the code to test the property status - //var instane = new KubernetesJsClient.V1NodeCondition(); - //expect(instance).to.be(); - }); - - it('should have the property type (base name: "type")', function() { - // uncomment below and update the code to test the property type - //var instane = new KubernetesJsClient.V1NodeCondition(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1NodeDaemonEndpoints.spec.js b/kubernetes/test/model/V1NodeDaemonEndpoints.spec.js deleted file mode 100644 index 1e4b324194..0000000000 --- a/kubernetes/test/model/V1NodeDaemonEndpoints.spec.js +++ /dev/null @@ -1,65 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1NodeDaemonEndpoints(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1NodeDaemonEndpoints', function() { - it('should create an instance of V1NodeDaemonEndpoints', function() { - // uncomment below and update the code to test V1NodeDaemonEndpoints - //var instane = new KubernetesJsClient.V1NodeDaemonEndpoints(); - //expect(instance).to.be.a(KubernetesJsClient.V1NodeDaemonEndpoints); - }); - - it('should have the property kubeletEndpoint (base name: "kubeletEndpoint")', function() { - // uncomment below and update the code to test the property kubeletEndpoint - //var instane = new KubernetesJsClient.V1NodeDaemonEndpoints(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1NodeList.spec.js b/kubernetes/test/model/V1NodeList.spec.js deleted file mode 100644 index a68da40ae6..0000000000 --- a/kubernetes/test/model/V1NodeList.spec.js +++ /dev/null @@ -1,83 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1NodeList(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1NodeList', function() { - it('should create an instance of V1NodeList', function() { - // uncomment below and update the code to test V1NodeList - //var instane = new KubernetesJsClient.V1NodeList(); - //expect(instance).to.be.a(KubernetesJsClient.V1NodeList); - }); - - it('should have the property apiVersion (base name: "apiVersion")', function() { - // uncomment below and update the code to test the property apiVersion - //var instane = new KubernetesJsClient.V1NodeList(); - //expect(instance).to.be(); - }); - - it('should have the property items (base name: "items")', function() { - // uncomment below and update the code to test the property items - //var instane = new KubernetesJsClient.V1NodeList(); - //expect(instance).to.be(); - }); - - it('should have the property kind (base name: "kind")', function() { - // uncomment below and update the code to test the property kind - //var instane = new KubernetesJsClient.V1NodeList(); - //expect(instance).to.be(); - }); - - it('should have the property metadata (base name: "metadata")', function() { - // uncomment below and update the code to test the property metadata - //var instane = new KubernetesJsClient.V1NodeList(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1NodeSelector.spec.js b/kubernetes/test/model/V1NodeSelector.spec.js deleted file mode 100644 index deae17b080..0000000000 --- a/kubernetes/test/model/V1NodeSelector.spec.js +++ /dev/null @@ -1,65 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1NodeSelector(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1NodeSelector', function() { - it('should create an instance of V1NodeSelector', function() { - // uncomment below and update the code to test V1NodeSelector - //var instane = new KubernetesJsClient.V1NodeSelector(); - //expect(instance).to.be.a(KubernetesJsClient.V1NodeSelector); - }); - - it('should have the property nodeSelectorTerms (base name: "nodeSelectorTerms")', function() { - // uncomment below and update the code to test the property nodeSelectorTerms - //var instane = new KubernetesJsClient.V1NodeSelector(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1NodeSelectorRequirement.spec.js b/kubernetes/test/model/V1NodeSelectorRequirement.spec.js deleted file mode 100644 index d791de807a..0000000000 --- a/kubernetes/test/model/V1NodeSelectorRequirement.spec.js +++ /dev/null @@ -1,77 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1NodeSelectorRequirement(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1NodeSelectorRequirement', function() { - it('should create an instance of V1NodeSelectorRequirement', function() { - // uncomment below and update the code to test V1NodeSelectorRequirement - //var instane = new KubernetesJsClient.V1NodeSelectorRequirement(); - //expect(instance).to.be.a(KubernetesJsClient.V1NodeSelectorRequirement); - }); - - it('should have the property key (base name: "key")', function() { - // uncomment below and update the code to test the property key - //var instane = new KubernetesJsClient.V1NodeSelectorRequirement(); - //expect(instance).to.be(); - }); - - it('should have the property operator (base name: "operator")', function() { - // uncomment below and update the code to test the property operator - //var instane = new KubernetesJsClient.V1NodeSelectorRequirement(); - //expect(instance).to.be(); - }); - - it('should have the property values (base name: "values")', function() { - // uncomment below and update the code to test the property values - //var instane = new KubernetesJsClient.V1NodeSelectorRequirement(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1NodeSelectorTerm.spec.js b/kubernetes/test/model/V1NodeSelectorTerm.spec.js deleted file mode 100644 index dfa8c26182..0000000000 --- a/kubernetes/test/model/V1NodeSelectorTerm.spec.js +++ /dev/null @@ -1,65 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1NodeSelectorTerm(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1NodeSelectorTerm', function() { - it('should create an instance of V1NodeSelectorTerm', function() { - // uncomment below and update the code to test V1NodeSelectorTerm - //var instane = new KubernetesJsClient.V1NodeSelectorTerm(); - //expect(instance).to.be.a(KubernetesJsClient.V1NodeSelectorTerm); - }); - - it('should have the property matchExpressions (base name: "matchExpressions")', function() { - // uncomment below and update the code to test the property matchExpressions - //var instane = new KubernetesJsClient.V1NodeSelectorTerm(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1NodeSpec.spec.js b/kubernetes/test/model/V1NodeSpec.spec.js deleted file mode 100644 index 590057114a..0000000000 --- a/kubernetes/test/model/V1NodeSpec.spec.js +++ /dev/null @@ -1,89 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1NodeSpec(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1NodeSpec', function() { - it('should create an instance of V1NodeSpec', function() { - // uncomment below and update the code to test V1NodeSpec - //var instane = new KubernetesJsClient.V1NodeSpec(); - //expect(instance).to.be.a(KubernetesJsClient.V1NodeSpec); - }); - - it('should have the property externalID (base name: "externalID")', function() { - // uncomment below and update the code to test the property externalID - //var instane = new KubernetesJsClient.V1NodeSpec(); - //expect(instance).to.be(); - }); - - it('should have the property podCIDR (base name: "podCIDR")', function() { - // uncomment below and update the code to test the property podCIDR - //var instane = new KubernetesJsClient.V1NodeSpec(); - //expect(instance).to.be(); - }); - - it('should have the property providerID (base name: "providerID")', function() { - // uncomment below and update the code to test the property providerID - //var instane = new KubernetesJsClient.V1NodeSpec(); - //expect(instance).to.be(); - }); - - it('should have the property taints (base name: "taints")', function() { - // uncomment below and update the code to test the property taints - //var instane = new KubernetesJsClient.V1NodeSpec(); - //expect(instance).to.be(); - }); - - it('should have the property unschedulable (base name: "unschedulable")', function() { - // uncomment below and update the code to test the property unschedulable - //var instane = new KubernetesJsClient.V1NodeSpec(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1NodeStatus.spec.js b/kubernetes/test/model/V1NodeStatus.spec.js deleted file mode 100644 index 974f1c04c6..0000000000 --- a/kubernetes/test/model/V1NodeStatus.spec.js +++ /dev/null @@ -1,119 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1NodeStatus(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1NodeStatus', function() { - it('should create an instance of V1NodeStatus', function() { - // uncomment below and update the code to test V1NodeStatus - //var instane = new KubernetesJsClient.V1NodeStatus(); - //expect(instance).to.be.a(KubernetesJsClient.V1NodeStatus); - }); - - it('should have the property addresses (base name: "addresses")', function() { - // uncomment below and update the code to test the property addresses - //var instane = new KubernetesJsClient.V1NodeStatus(); - //expect(instance).to.be(); - }); - - it('should have the property allocatable (base name: "allocatable")', function() { - // uncomment below and update the code to test the property allocatable - //var instane = new KubernetesJsClient.V1NodeStatus(); - //expect(instance).to.be(); - }); - - it('should have the property capacity (base name: "capacity")', function() { - // uncomment below and update the code to test the property capacity - //var instane = new KubernetesJsClient.V1NodeStatus(); - //expect(instance).to.be(); - }); - - it('should have the property conditions (base name: "conditions")', function() { - // uncomment below and update the code to test the property conditions - //var instane = new KubernetesJsClient.V1NodeStatus(); - //expect(instance).to.be(); - }); - - it('should have the property daemonEndpoints (base name: "daemonEndpoints")', function() { - // uncomment below and update the code to test the property daemonEndpoints - //var instane = new KubernetesJsClient.V1NodeStatus(); - //expect(instance).to.be(); - }); - - it('should have the property images (base name: "images")', function() { - // uncomment below and update the code to test the property images - //var instane = new KubernetesJsClient.V1NodeStatus(); - //expect(instance).to.be(); - }); - - it('should have the property nodeInfo (base name: "nodeInfo")', function() { - // uncomment below and update the code to test the property nodeInfo - //var instane = new KubernetesJsClient.V1NodeStatus(); - //expect(instance).to.be(); - }); - - it('should have the property phase (base name: "phase")', function() { - // uncomment below and update the code to test the property phase - //var instane = new KubernetesJsClient.V1NodeStatus(); - //expect(instance).to.be(); - }); - - it('should have the property volumesAttached (base name: "volumesAttached")', function() { - // uncomment below and update the code to test the property volumesAttached - //var instane = new KubernetesJsClient.V1NodeStatus(); - //expect(instance).to.be(); - }); - - it('should have the property volumesInUse (base name: "volumesInUse")', function() { - // uncomment below and update the code to test the property volumesInUse - //var instane = new KubernetesJsClient.V1NodeStatus(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1NodeSystemInfo.spec.js b/kubernetes/test/model/V1NodeSystemInfo.spec.js deleted file mode 100644 index 9890a6965a..0000000000 --- a/kubernetes/test/model/V1NodeSystemInfo.spec.js +++ /dev/null @@ -1,119 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1NodeSystemInfo(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1NodeSystemInfo', function() { - it('should create an instance of V1NodeSystemInfo', function() { - // uncomment below and update the code to test V1NodeSystemInfo - //var instane = new KubernetesJsClient.V1NodeSystemInfo(); - //expect(instance).to.be.a(KubernetesJsClient.V1NodeSystemInfo); - }); - - it('should have the property architecture (base name: "architecture")', function() { - // uncomment below and update the code to test the property architecture - //var instane = new KubernetesJsClient.V1NodeSystemInfo(); - //expect(instance).to.be(); - }); - - it('should have the property bootID (base name: "bootID")', function() { - // uncomment below and update the code to test the property bootID - //var instane = new KubernetesJsClient.V1NodeSystemInfo(); - //expect(instance).to.be(); - }); - - it('should have the property containerRuntimeVersion (base name: "containerRuntimeVersion")', function() { - // uncomment below and update the code to test the property containerRuntimeVersion - //var instane = new KubernetesJsClient.V1NodeSystemInfo(); - //expect(instance).to.be(); - }); - - it('should have the property kernelVersion (base name: "kernelVersion")', function() { - // uncomment below and update the code to test the property kernelVersion - //var instane = new KubernetesJsClient.V1NodeSystemInfo(); - //expect(instance).to.be(); - }); - - it('should have the property kubeProxyVersion (base name: "kubeProxyVersion")', function() { - // uncomment below and update the code to test the property kubeProxyVersion - //var instane = new KubernetesJsClient.V1NodeSystemInfo(); - //expect(instance).to.be(); - }); - - it('should have the property kubeletVersion (base name: "kubeletVersion")', function() { - // uncomment below and update the code to test the property kubeletVersion - //var instane = new KubernetesJsClient.V1NodeSystemInfo(); - //expect(instance).to.be(); - }); - - it('should have the property machineID (base name: "machineID")', function() { - // uncomment below and update the code to test the property machineID - //var instane = new KubernetesJsClient.V1NodeSystemInfo(); - //expect(instance).to.be(); - }); - - it('should have the property operatingSystem (base name: "operatingSystem")', function() { - // uncomment below and update the code to test the property operatingSystem - //var instane = new KubernetesJsClient.V1NodeSystemInfo(); - //expect(instance).to.be(); - }); - - it('should have the property osImage (base name: "osImage")', function() { - // uncomment below and update the code to test the property osImage - //var instane = new KubernetesJsClient.V1NodeSystemInfo(); - //expect(instance).to.be(); - }); - - it('should have the property systemUUID (base name: "systemUUID")', function() { - // uncomment below and update the code to test the property systemUUID - //var instane = new KubernetesJsClient.V1NodeSystemInfo(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1NonResourceAttributes.spec.js b/kubernetes/test/model/V1NonResourceAttributes.spec.js deleted file mode 100644 index 12d2c36cc5..0000000000 --- a/kubernetes/test/model/V1NonResourceAttributes.spec.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1NonResourceAttributes(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1NonResourceAttributes', function() { - it('should create an instance of V1NonResourceAttributes', function() { - // uncomment below and update the code to test V1NonResourceAttributes - //var instane = new KubernetesJsClient.V1NonResourceAttributes(); - //expect(instance).to.be.a(KubernetesJsClient.V1NonResourceAttributes); - }); - - it('should have the property path (base name: "path")', function() { - // uncomment below and update the code to test the property path - //var instane = new KubernetesJsClient.V1NonResourceAttributes(); - //expect(instance).to.be(); - }); - - it('should have the property verb (base name: "verb")', function() { - // uncomment below and update the code to test the property verb - //var instane = new KubernetesJsClient.V1NonResourceAttributes(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1ObjectFieldSelector.spec.js b/kubernetes/test/model/V1ObjectFieldSelector.spec.js deleted file mode 100644 index 2f09fc6016..0000000000 --- a/kubernetes/test/model/V1ObjectFieldSelector.spec.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1ObjectFieldSelector(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1ObjectFieldSelector', function() { - it('should create an instance of V1ObjectFieldSelector', function() { - // uncomment below and update the code to test V1ObjectFieldSelector - //var instane = new KubernetesJsClient.V1ObjectFieldSelector(); - //expect(instance).to.be.a(KubernetesJsClient.V1ObjectFieldSelector); - }); - - it('should have the property apiVersion (base name: "apiVersion")', function() { - // uncomment below and update the code to test the property apiVersion - //var instane = new KubernetesJsClient.V1ObjectFieldSelector(); - //expect(instance).to.be(); - }); - - it('should have the property fieldPath (base name: "fieldPath")', function() { - // uncomment below and update the code to test the property fieldPath - //var instane = new KubernetesJsClient.V1ObjectFieldSelector(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1ObjectMeta.spec.js b/kubernetes/test/model/V1ObjectMeta.spec.js deleted file mode 100644 index 86b866d5d3..0000000000 --- a/kubernetes/test/model/V1ObjectMeta.spec.js +++ /dev/null @@ -1,149 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1ObjectMeta(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1ObjectMeta', function() { - it('should create an instance of V1ObjectMeta', function() { - // uncomment below and update the code to test V1ObjectMeta - //var instane = new KubernetesJsClient.V1ObjectMeta(); - //expect(instance).to.be.a(KubernetesJsClient.V1ObjectMeta); - }); - - it('should have the property annotations (base name: "annotations")', function() { - // uncomment below and update the code to test the property annotations - //var instane = new KubernetesJsClient.V1ObjectMeta(); - //expect(instance).to.be(); - }); - - it('should have the property clusterName (base name: "clusterName")', function() { - // uncomment below and update the code to test the property clusterName - //var instane = new KubernetesJsClient.V1ObjectMeta(); - //expect(instance).to.be(); - }); - - it('should have the property creationTimestamp (base name: "creationTimestamp")', function() { - // uncomment below and update the code to test the property creationTimestamp - //var instane = new KubernetesJsClient.V1ObjectMeta(); - //expect(instance).to.be(); - }); - - it('should have the property deletionGracePeriodSeconds (base name: "deletionGracePeriodSeconds")', function() { - // uncomment below and update the code to test the property deletionGracePeriodSeconds - //var instane = new KubernetesJsClient.V1ObjectMeta(); - //expect(instance).to.be(); - }); - - it('should have the property deletionTimestamp (base name: "deletionTimestamp")', function() { - // uncomment below and update the code to test the property deletionTimestamp - //var instane = new KubernetesJsClient.V1ObjectMeta(); - //expect(instance).to.be(); - }); - - it('should have the property finalizers (base name: "finalizers")', function() { - // uncomment below and update the code to test the property finalizers - //var instane = new KubernetesJsClient.V1ObjectMeta(); - //expect(instance).to.be(); - }); - - it('should have the property generateName (base name: "generateName")', function() { - // uncomment below and update the code to test the property generateName - //var instane = new KubernetesJsClient.V1ObjectMeta(); - //expect(instance).to.be(); - }); - - it('should have the property generation (base name: "generation")', function() { - // uncomment below and update the code to test the property generation - //var instane = new KubernetesJsClient.V1ObjectMeta(); - //expect(instance).to.be(); - }); - - it('should have the property labels (base name: "labels")', function() { - // uncomment below and update the code to test the property labels - //var instane = new KubernetesJsClient.V1ObjectMeta(); - //expect(instance).to.be(); - }); - - it('should have the property name (base name: "name")', function() { - // uncomment below and update the code to test the property name - //var instane = new KubernetesJsClient.V1ObjectMeta(); - //expect(instance).to.be(); - }); - - it('should have the property namespace (base name: "namespace")', function() { - // uncomment below and update the code to test the property namespace - //var instane = new KubernetesJsClient.V1ObjectMeta(); - //expect(instance).to.be(); - }); - - it('should have the property ownerReferences (base name: "ownerReferences")', function() { - // uncomment below and update the code to test the property ownerReferences - //var instane = new KubernetesJsClient.V1ObjectMeta(); - //expect(instance).to.be(); - }); - - it('should have the property resourceVersion (base name: "resourceVersion")', function() { - // uncomment below and update the code to test the property resourceVersion - //var instane = new KubernetesJsClient.V1ObjectMeta(); - //expect(instance).to.be(); - }); - - it('should have the property selfLink (base name: "selfLink")', function() { - // uncomment below and update the code to test the property selfLink - //var instane = new KubernetesJsClient.V1ObjectMeta(); - //expect(instance).to.be(); - }); - - it('should have the property uid (base name: "uid")', function() { - // uncomment below and update the code to test the property uid - //var instane = new KubernetesJsClient.V1ObjectMeta(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1ObjectReference.spec.js b/kubernetes/test/model/V1ObjectReference.spec.js deleted file mode 100644 index f90289e7a2..0000000000 --- a/kubernetes/test/model/V1ObjectReference.spec.js +++ /dev/null @@ -1,101 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1ObjectReference(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1ObjectReference', function() { - it('should create an instance of V1ObjectReference', function() { - // uncomment below and update the code to test V1ObjectReference - //var instane = new KubernetesJsClient.V1ObjectReference(); - //expect(instance).to.be.a(KubernetesJsClient.V1ObjectReference); - }); - - it('should have the property apiVersion (base name: "apiVersion")', function() { - // uncomment below and update the code to test the property apiVersion - //var instane = new KubernetesJsClient.V1ObjectReference(); - //expect(instance).to.be(); - }); - - it('should have the property fieldPath (base name: "fieldPath")', function() { - // uncomment below and update the code to test the property fieldPath - //var instane = new KubernetesJsClient.V1ObjectReference(); - //expect(instance).to.be(); - }); - - it('should have the property kind (base name: "kind")', function() { - // uncomment below and update the code to test the property kind - //var instane = new KubernetesJsClient.V1ObjectReference(); - //expect(instance).to.be(); - }); - - it('should have the property name (base name: "name")', function() { - // uncomment below and update the code to test the property name - //var instane = new KubernetesJsClient.V1ObjectReference(); - //expect(instance).to.be(); - }); - - it('should have the property namespace (base name: "namespace")', function() { - // uncomment below and update the code to test the property namespace - //var instane = new KubernetesJsClient.V1ObjectReference(); - //expect(instance).to.be(); - }); - - it('should have the property resourceVersion (base name: "resourceVersion")', function() { - // uncomment below and update the code to test the property resourceVersion - //var instane = new KubernetesJsClient.V1ObjectReference(); - //expect(instance).to.be(); - }); - - it('should have the property uid (base name: "uid")', function() { - // uncomment below and update the code to test the property uid - //var instane = new KubernetesJsClient.V1ObjectReference(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1OwnerReference.spec.js b/kubernetes/test/model/V1OwnerReference.spec.js deleted file mode 100644 index c7f9c1a068..0000000000 --- a/kubernetes/test/model/V1OwnerReference.spec.js +++ /dev/null @@ -1,95 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1OwnerReference(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1OwnerReference', function() { - it('should create an instance of V1OwnerReference', function() { - // uncomment below and update the code to test V1OwnerReference - //var instane = new KubernetesJsClient.V1OwnerReference(); - //expect(instance).to.be.a(KubernetesJsClient.V1OwnerReference); - }); - - it('should have the property apiVersion (base name: "apiVersion")', function() { - // uncomment below and update the code to test the property apiVersion - //var instane = new KubernetesJsClient.V1OwnerReference(); - //expect(instance).to.be(); - }); - - it('should have the property blockOwnerDeletion (base name: "blockOwnerDeletion")', function() { - // uncomment below and update the code to test the property blockOwnerDeletion - //var instane = new KubernetesJsClient.V1OwnerReference(); - //expect(instance).to.be(); - }); - - it('should have the property controller (base name: "controller")', function() { - // uncomment below and update the code to test the property controller - //var instane = new KubernetesJsClient.V1OwnerReference(); - //expect(instance).to.be(); - }); - - it('should have the property kind (base name: "kind")', function() { - // uncomment below and update the code to test the property kind - //var instane = new KubernetesJsClient.V1OwnerReference(); - //expect(instance).to.be(); - }); - - it('should have the property name (base name: "name")', function() { - // uncomment below and update the code to test the property name - //var instane = new KubernetesJsClient.V1OwnerReference(); - //expect(instance).to.be(); - }); - - it('should have the property uid (base name: "uid")', function() { - // uncomment below and update the code to test the property uid - //var instane = new KubernetesJsClient.V1OwnerReference(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1PersistentVolume.spec.js b/kubernetes/test/model/V1PersistentVolume.spec.js deleted file mode 100644 index fa4ef9a9c2..0000000000 --- a/kubernetes/test/model/V1PersistentVolume.spec.js +++ /dev/null @@ -1,89 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1PersistentVolume(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1PersistentVolume', function() { - it('should create an instance of V1PersistentVolume', function() { - // uncomment below and update the code to test V1PersistentVolume - //var instane = new KubernetesJsClient.V1PersistentVolume(); - //expect(instance).to.be.a(KubernetesJsClient.V1PersistentVolume); - }); - - it('should have the property apiVersion (base name: "apiVersion")', function() { - // uncomment below and update the code to test the property apiVersion - //var instane = new KubernetesJsClient.V1PersistentVolume(); - //expect(instance).to.be(); - }); - - it('should have the property kind (base name: "kind")', function() { - // uncomment below and update the code to test the property kind - //var instane = new KubernetesJsClient.V1PersistentVolume(); - //expect(instance).to.be(); - }); - - it('should have the property metadata (base name: "metadata")', function() { - // uncomment below and update the code to test the property metadata - //var instane = new KubernetesJsClient.V1PersistentVolume(); - //expect(instance).to.be(); - }); - - it('should have the property spec (base name: "spec")', function() { - // uncomment below and update the code to test the property spec - //var instane = new KubernetesJsClient.V1PersistentVolume(); - //expect(instance).to.be(); - }); - - it('should have the property status (base name: "status")', function() { - // uncomment below and update the code to test the property status - //var instane = new KubernetesJsClient.V1PersistentVolume(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1PersistentVolumeClaim.spec.js b/kubernetes/test/model/V1PersistentVolumeClaim.spec.js deleted file mode 100644 index 922ad583cc..0000000000 --- a/kubernetes/test/model/V1PersistentVolumeClaim.spec.js +++ /dev/null @@ -1,89 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1PersistentVolumeClaim(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1PersistentVolumeClaim', function() { - it('should create an instance of V1PersistentVolumeClaim', function() { - // uncomment below and update the code to test V1PersistentVolumeClaim - //var instane = new KubernetesJsClient.V1PersistentVolumeClaim(); - //expect(instance).to.be.a(KubernetesJsClient.V1PersistentVolumeClaim); - }); - - it('should have the property apiVersion (base name: "apiVersion")', function() { - // uncomment below and update the code to test the property apiVersion - //var instane = new KubernetesJsClient.V1PersistentVolumeClaim(); - //expect(instance).to.be(); - }); - - it('should have the property kind (base name: "kind")', function() { - // uncomment below and update the code to test the property kind - //var instane = new KubernetesJsClient.V1PersistentVolumeClaim(); - //expect(instance).to.be(); - }); - - it('should have the property metadata (base name: "metadata")', function() { - // uncomment below and update the code to test the property metadata - //var instane = new KubernetesJsClient.V1PersistentVolumeClaim(); - //expect(instance).to.be(); - }); - - it('should have the property spec (base name: "spec")', function() { - // uncomment below and update the code to test the property spec - //var instane = new KubernetesJsClient.V1PersistentVolumeClaim(); - //expect(instance).to.be(); - }); - - it('should have the property status (base name: "status")', function() { - // uncomment below and update the code to test the property status - //var instane = new KubernetesJsClient.V1PersistentVolumeClaim(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1PersistentVolumeClaimList.spec.js b/kubernetes/test/model/V1PersistentVolumeClaimList.spec.js deleted file mode 100644 index f27cc3b553..0000000000 --- a/kubernetes/test/model/V1PersistentVolumeClaimList.spec.js +++ /dev/null @@ -1,83 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1PersistentVolumeClaimList(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1PersistentVolumeClaimList', function() { - it('should create an instance of V1PersistentVolumeClaimList', function() { - // uncomment below and update the code to test V1PersistentVolumeClaimList - //var instane = new KubernetesJsClient.V1PersistentVolumeClaimList(); - //expect(instance).to.be.a(KubernetesJsClient.V1PersistentVolumeClaimList); - }); - - it('should have the property apiVersion (base name: "apiVersion")', function() { - // uncomment below and update the code to test the property apiVersion - //var instane = new KubernetesJsClient.V1PersistentVolumeClaimList(); - //expect(instance).to.be(); - }); - - it('should have the property items (base name: "items")', function() { - // uncomment below and update the code to test the property items - //var instane = new KubernetesJsClient.V1PersistentVolumeClaimList(); - //expect(instance).to.be(); - }); - - it('should have the property kind (base name: "kind")', function() { - // uncomment below and update the code to test the property kind - //var instane = new KubernetesJsClient.V1PersistentVolumeClaimList(); - //expect(instance).to.be(); - }); - - it('should have the property metadata (base name: "metadata")', function() { - // uncomment below and update the code to test the property metadata - //var instane = new KubernetesJsClient.V1PersistentVolumeClaimList(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1PersistentVolumeClaimSpec.spec.js b/kubernetes/test/model/V1PersistentVolumeClaimSpec.spec.js deleted file mode 100644 index 0560081014..0000000000 --- a/kubernetes/test/model/V1PersistentVolumeClaimSpec.spec.js +++ /dev/null @@ -1,89 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1PersistentVolumeClaimSpec(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1PersistentVolumeClaimSpec', function() { - it('should create an instance of V1PersistentVolumeClaimSpec', function() { - // uncomment below and update the code to test V1PersistentVolumeClaimSpec - //var instane = new KubernetesJsClient.V1PersistentVolumeClaimSpec(); - //expect(instance).to.be.a(KubernetesJsClient.V1PersistentVolumeClaimSpec); - }); - - it('should have the property accessModes (base name: "accessModes")', function() { - // uncomment below and update the code to test the property accessModes - //var instane = new KubernetesJsClient.V1PersistentVolumeClaimSpec(); - //expect(instance).to.be(); - }); - - it('should have the property resources (base name: "resources")', function() { - // uncomment below and update the code to test the property resources - //var instane = new KubernetesJsClient.V1PersistentVolumeClaimSpec(); - //expect(instance).to.be(); - }); - - it('should have the property selector (base name: "selector")', function() { - // uncomment below and update the code to test the property selector - //var instane = new KubernetesJsClient.V1PersistentVolumeClaimSpec(); - //expect(instance).to.be(); - }); - - it('should have the property storageClassName (base name: "storageClassName")', function() { - // uncomment below and update the code to test the property storageClassName - //var instane = new KubernetesJsClient.V1PersistentVolumeClaimSpec(); - //expect(instance).to.be(); - }); - - it('should have the property volumeName (base name: "volumeName")', function() { - // uncomment below and update the code to test the property volumeName - //var instane = new KubernetesJsClient.V1PersistentVolumeClaimSpec(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1PersistentVolumeClaimStatus.spec.js b/kubernetes/test/model/V1PersistentVolumeClaimStatus.spec.js deleted file mode 100644 index eb2c47eaf4..0000000000 --- a/kubernetes/test/model/V1PersistentVolumeClaimStatus.spec.js +++ /dev/null @@ -1,77 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1PersistentVolumeClaimStatus(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1PersistentVolumeClaimStatus', function() { - it('should create an instance of V1PersistentVolumeClaimStatus', function() { - // uncomment below and update the code to test V1PersistentVolumeClaimStatus - //var instane = new KubernetesJsClient.V1PersistentVolumeClaimStatus(); - //expect(instance).to.be.a(KubernetesJsClient.V1PersistentVolumeClaimStatus); - }); - - it('should have the property accessModes (base name: "accessModes")', function() { - // uncomment below and update the code to test the property accessModes - //var instane = new KubernetesJsClient.V1PersistentVolumeClaimStatus(); - //expect(instance).to.be(); - }); - - it('should have the property capacity (base name: "capacity")', function() { - // uncomment below and update the code to test the property capacity - //var instane = new KubernetesJsClient.V1PersistentVolumeClaimStatus(); - //expect(instance).to.be(); - }); - - it('should have the property phase (base name: "phase")', function() { - // uncomment below and update the code to test the property phase - //var instane = new KubernetesJsClient.V1PersistentVolumeClaimStatus(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1PersistentVolumeClaimVolumeSource.spec.js b/kubernetes/test/model/V1PersistentVolumeClaimVolumeSource.spec.js deleted file mode 100644 index 4184d9e683..0000000000 --- a/kubernetes/test/model/V1PersistentVolumeClaimVolumeSource.spec.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1PersistentVolumeClaimVolumeSource(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1PersistentVolumeClaimVolumeSource', function() { - it('should create an instance of V1PersistentVolumeClaimVolumeSource', function() { - // uncomment below and update the code to test V1PersistentVolumeClaimVolumeSource - //var instane = new KubernetesJsClient.V1PersistentVolumeClaimVolumeSource(); - //expect(instance).to.be.a(KubernetesJsClient.V1PersistentVolumeClaimVolumeSource); - }); - - it('should have the property claimName (base name: "claimName")', function() { - // uncomment below and update the code to test the property claimName - //var instane = new KubernetesJsClient.V1PersistentVolumeClaimVolumeSource(); - //expect(instance).to.be(); - }); - - it('should have the property readOnly (base name: "readOnly")', function() { - // uncomment below and update the code to test the property readOnly - //var instane = new KubernetesJsClient.V1PersistentVolumeClaimVolumeSource(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1PersistentVolumeList.spec.js b/kubernetes/test/model/V1PersistentVolumeList.spec.js deleted file mode 100644 index 422331ff32..0000000000 --- a/kubernetes/test/model/V1PersistentVolumeList.spec.js +++ /dev/null @@ -1,83 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1PersistentVolumeList(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1PersistentVolumeList', function() { - it('should create an instance of V1PersistentVolumeList', function() { - // uncomment below and update the code to test V1PersistentVolumeList - //var instane = new KubernetesJsClient.V1PersistentVolumeList(); - //expect(instance).to.be.a(KubernetesJsClient.V1PersistentVolumeList); - }); - - it('should have the property apiVersion (base name: "apiVersion")', function() { - // uncomment below and update the code to test the property apiVersion - //var instane = new KubernetesJsClient.V1PersistentVolumeList(); - //expect(instance).to.be(); - }); - - it('should have the property items (base name: "items")', function() { - // uncomment below and update the code to test the property items - //var instane = new KubernetesJsClient.V1PersistentVolumeList(); - //expect(instance).to.be(); - }); - - it('should have the property kind (base name: "kind")', function() { - // uncomment below and update the code to test the property kind - //var instane = new KubernetesJsClient.V1PersistentVolumeList(); - //expect(instance).to.be(); - }); - - it('should have the property metadata (base name: "metadata")', function() { - // uncomment below and update the code to test the property metadata - //var instane = new KubernetesJsClient.V1PersistentVolumeList(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1PersistentVolumeSpec.spec.js b/kubernetes/test/model/V1PersistentVolumeSpec.spec.js deleted file mode 100644 index c7c2d7ad09..0000000000 --- a/kubernetes/test/model/V1PersistentVolumeSpec.spec.js +++ /dev/null @@ -1,203 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1PersistentVolumeSpec(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1PersistentVolumeSpec', function() { - it('should create an instance of V1PersistentVolumeSpec', function() { - // uncomment below and update the code to test V1PersistentVolumeSpec - //var instane = new KubernetesJsClient.V1PersistentVolumeSpec(); - //expect(instance).to.be.a(KubernetesJsClient.V1PersistentVolumeSpec); - }); - - it('should have the property accessModes (base name: "accessModes")', function() { - // uncomment below and update the code to test the property accessModes - //var instane = new KubernetesJsClient.V1PersistentVolumeSpec(); - //expect(instance).to.be(); - }); - - it('should have the property awsElasticBlockStore (base name: "awsElasticBlockStore")', function() { - // uncomment below and update the code to test the property awsElasticBlockStore - //var instane = new KubernetesJsClient.V1PersistentVolumeSpec(); - //expect(instance).to.be(); - }); - - it('should have the property azureDisk (base name: "azureDisk")', function() { - // uncomment below and update the code to test the property azureDisk - //var instane = new KubernetesJsClient.V1PersistentVolumeSpec(); - //expect(instance).to.be(); - }); - - it('should have the property azureFile (base name: "azureFile")', function() { - // uncomment below and update the code to test the property azureFile - //var instane = new KubernetesJsClient.V1PersistentVolumeSpec(); - //expect(instance).to.be(); - }); - - it('should have the property capacity (base name: "capacity")', function() { - // uncomment below and update the code to test the property capacity - //var instane = new KubernetesJsClient.V1PersistentVolumeSpec(); - //expect(instance).to.be(); - }); - - it('should have the property cephfs (base name: "cephfs")', function() { - // uncomment below and update the code to test the property cephfs - //var instane = new KubernetesJsClient.V1PersistentVolumeSpec(); - //expect(instance).to.be(); - }); - - it('should have the property cinder (base name: "cinder")', function() { - // uncomment below and update the code to test the property cinder - //var instane = new KubernetesJsClient.V1PersistentVolumeSpec(); - //expect(instance).to.be(); - }); - - it('should have the property claimRef (base name: "claimRef")', function() { - // uncomment below and update the code to test the property claimRef - //var instane = new KubernetesJsClient.V1PersistentVolumeSpec(); - //expect(instance).to.be(); - }); - - it('should have the property fc (base name: "fc")', function() { - // uncomment below and update the code to test the property fc - //var instane = new KubernetesJsClient.V1PersistentVolumeSpec(); - //expect(instance).to.be(); - }); - - it('should have the property flexVolume (base name: "flexVolume")', function() { - // uncomment below and update the code to test the property flexVolume - //var instane = new KubernetesJsClient.V1PersistentVolumeSpec(); - //expect(instance).to.be(); - }); - - it('should have the property flocker (base name: "flocker")', function() { - // uncomment below and update the code to test the property flocker - //var instane = new KubernetesJsClient.V1PersistentVolumeSpec(); - //expect(instance).to.be(); - }); - - it('should have the property gcePersistentDisk (base name: "gcePersistentDisk")', function() { - // uncomment below and update the code to test the property gcePersistentDisk - //var instane = new KubernetesJsClient.V1PersistentVolumeSpec(); - //expect(instance).to.be(); - }); - - it('should have the property glusterfs (base name: "glusterfs")', function() { - // uncomment below and update the code to test the property glusterfs - //var instane = new KubernetesJsClient.V1PersistentVolumeSpec(); - //expect(instance).to.be(); - }); - - it('should have the property hostPath (base name: "hostPath")', function() { - // uncomment below and update the code to test the property hostPath - //var instane = new KubernetesJsClient.V1PersistentVolumeSpec(); - //expect(instance).to.be(); - }); - - it('should have the property iscsi (base name: "iscsi")', function() { - // uncomment below and update the code to test the property iscsi - //var instane = new KubernetesJsClient.V1PersistentVolumeSpec(); - //expect(instance).to.be(); - }); - - it('should have the property nfs (base name: "nfs")', function() { - // uncomment below and update the code to test the property nfs - //var instane = new KubernetesJsClient.V1PersistentVolumeSpec(); - //expect(instance).to.be(); - }); - - it('should have the property persistentVolumeReclaimPolicy (base name: "persistentVolumeReclaimPolicy")', function() { - // uncomment below and update the code to test the property persistentVolumeReclaimPolicy - //var instane = new KubernetesJsClient.V1PersistentVolumeSpec(); - //expect(instance).to.be(); - }); - - it('should have the property photonPersistentDisk (base name: "photonPersistentDisk")', function() { - // uncomment below and update the code to test the property photonPersistentDisk - //var instane = new KubernetesJsClient.V1PersistentVolumeSpec(); - //expect(instance).to.be(); - }); - - it('should have the property portworxVolume (base name: "portworxVolume")', function() { - // uncomment below and update the code to test the property portworxVolume - //var instane = new KubernetesJsClient.V1PersistentVolumeSpec(); - //expect(instance).to.be(); - }); - - it('should have the property quobyte (base name: "quobyte")', function() { - // uncomment below and update the code to test the property quobyte - //var instane = new KubernetesJsClient.V1PersistentVolumeSpec(); - //expect(instance).to.be(); - }); - - it('should have the property rbd (base name: "rbd")', function() { - // uncomment below and update the code to test the property rbd - //var instane = new KubernetesJsClient.V1PersistentVolumeSpec(); - //expect(instance).to.be(); - }); - - it('should have the property scaleIO (base name: "scaleIO")', function() { - // uncomment below and update the code to test the property scaleIO - //var instane = new KubernetesJsClient.V1PersistentVolumeSpec(); - //expect(instance).to.be(); - }); - - it('should have the property storageClassName (base name: "storageClassName")', function() { - // uncomment below and update the code to test the property storageClassName - //var instane = new KubernetesJsClient.V1PersistentVolumeSpec(); - //expect(instance).to.be(); - }); - - it('should have the property vsphereVolume (base name: "vsphereVolume")', function() { - // uncomment below and update the code to test the property vsphereVolume - //var instane = new KubernetesJsClient.V1PersistentVolumeSpec(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1PersistentVolumeStatus.spec.js b/kubernetes/test/model/V1PersistentVolumeStatus.spec.js deleted file mode 100644 index 86e33a1fdb..0000000000 --- a/kubernetes/test/model/V1PersistentVolumeStatus.spec.js +++ /dev/null @@ -1,77 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1PersistentVolumeStatus(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1PersistentVolumeStatus', function() { - it('should create an instance of V1PersistentVolumeStatus', function() { - // uncomment below and update the code to test V1PersistentVolumeStatus - //var instane = new KubernetesJsClient.V1PersistentVolumeStatus(); - //expect(instance).to.be.a(KubernetesJsClient.V1PersistentVolumeStatus); - }); - - it('should have the property message (base name: "message")', function() { - // uncomment below and update the code to test the property message - //var instane = new KubernetesJsClient.V1PersistentVolumeStatus(); - //expect(instance).to.be(); - }); - - it('should have the property phase (base name: "phase")', function() { - // uncomment below and update the code to test the property phase - //var instane = new KubernetesJsClient.V1PersistentVolumeStatus(); - //expect(instance).to.be(); - }); - - it('should have the property reason (base name: "reason")', function() { - // uncomment below and update the code to test the property reason - //var instane = new KubernetesJsClient.V1PersistentVolumeStatus(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1PhotonPersistentDiskVolumeSource.spec.js b/kubernetes/test/model/V1PhotonPersistentDiskVolumeSource.spec.js deleted file mode 100644 index 788d459536..0000000000 --- a/kubernetes/test/model/V1PhotonPersistentDiskVolumeSource.spec.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1PhotonPersistentDiskVolumeSource(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1PhotonPersistentDiskVolumeSource', function() { - it('should create an instance of V1PhotonPersistentDiskVolumeSource', function() { - // uncomment below and update the code to test V1PhotonPersistentDiskVolumeSource - //var instane = new KubernetesJsClient.V1PhotonPersistentDiskVolumeSource(); - //expect(instance).to.be.a(KubernetesJsClient.V1PhotonPersistentDiskVolumeSource); - }); - - it('should have the property fsType (base name: "fsType")', function() { - // uncomment below and update the code to test the property fsType - //var instane = new KubernetesJsClient.V1PhotonPersistentDiskVolumeSource(); - //expect(instance).to.be(); - }); - - it('should have the property pdID (base name: "pdID")', function() { - // uncomment below and update the code to test the property pdID - //var instane = new KubernetesJsClient.V1PhotonPersistentDiskVolumeSource(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1Pod.spec.js b/kubernetes/test/model/V1Pod.spec.js deleted file mode 100644 index 1a45690eef..0000000000 --- a/kubernetes/test/model/V1Pod.spec.js +++ /dev/null @@ -1,89 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1Pod(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1Pod', function() { - it('should create an instance of V1Pod', function() { - // uncomment below and update the code to test V1Pod - //var instane = new KubernetesJsClient.V1Pod(); - //expect(instance).to.be.a(KubernetesJsClient.V1Pod); - }); - - it('should have the property apiVersion (base name: "apiVersion")', function() { - // uncomment below and update the code to test the property apiVersion - //var instane = new KubernetesJsClient.V1Pod(); - //expect(instance).to.be(); - }); - - it('should have the property kind (base name: "kind")', function() { - // uncomment below and update the code to test the property kind - //var instane = new KubernetesJsClient.V1Pod(); - //expect(instance).to.be(); - }); - - it('should have the property metadata (base name: "metadata")', function() { - // uncomment below and update the code to test the property metadata - //var instane = new KubernetesJsClient.V1Pod(); - //expect(instance).to.be(); - }); - - it('should have the property spec (base name: "spec")', function() { - // uncomment below and update the code to test the property spec - //var instane = new KubernetesJsClient.V1Pod(); - //expect(instance).to.be(); - }); - - it('should have the property status (base name: "status")', function() { - // uncomment below and update the code to test the property status - //var instane = new KubernetesJsClient.V1Pod(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1PodAffinity.spec.js b/kubernetes/test/model/V1PodAffinity.spec.js deleted file mode 100644 index 860432b6f7..0000000000 --- a/kubernetes/test/model/V1PodAffinity.spec.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1PodAffinity(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1PodAffinity', function() { - it('should create an instance of V1PodAffinity', function() { - // uncomment below and update the code to test V1PodAffinity - //var instane = new KubernetesJsClient.V1PodAffinity(); - //expect(instance).to.be.a(KubernetesJsClient.V1PodAffinity); - }); - - it('should have the property preferredDuringSchedulingIgnoredDuringExecution (base name: "preferredDuringSchedulingIgnoredDuringExecution")', function() { - // uncomment below and update the code to test the property preferredDuringSchedulingIgnoredDuringExecution - //var instane = new KubernetesJsClient.V1PodAffinity(); - //expect(instance).to.be(); - }); - - it('should have the property requiredDuringSchedulingIgnoredDuringExecution (base name: "requiredDuringSchedulingIgnoredDuringExecution")', function() { - // uncomment below and update the code to test the property requiredDuringSchedulingIgnoredDuringExecution - //var instane = new KubernetesJsClient.V1PodAffinity(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1PodAffinityTerm.spec.js b/kubernetes/test/model/V1PodAffinityTerm.spec.js deleted file mode 100644 index 2c0a482922..0000000000 --- a/kubernetes/test/model/V1PodAffinityTerm.spec.js +++ /dev/null @@ -1,77 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1PodAffinityTerm(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1PodAffinityTerm', function() { - it('should create an instance of V1PodAffinityTerm', function() { - // uncomment below and update the code to test V1PodAffinityTerm - //var instane = new KubernetesJsClient.V1PodAffinityTerm(); - //expect(instance).to.be.a(KubernetesJsClient.V1PodAffinityTerm); - }); - - it('should have the property labelSelector (base name: "labelSelector")', function() { - // uncomment below and update the code to test the property labelSelector - //var instane = new KubernetesJsClient.V1PodAffinityTerm(); - //expect(instance).to.be(); - }); - - it('should have the property namespaces (base name: "namespaces")', function() { - // uncomment below and update the code to test the property namespaces - //var instane = new KubernetesJsClient.V1PodAffinityTerm(); - //expect(instance).to.be(); - }); - - it('should have the property topologyKey (base name: "topologyKey")', function() { - // uncomment below and update the code to test the property topologyKey - //var instane = new KubernetesJsClient.V1PodAffinityTerm(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1PodAntiAffinity.spec.js b/kubernetes/test/model/V1PodAntiAffinity.spec.js deleted file mode 100644 index 9466d17a48..0000000000 --- a/kubernetes/test/model/V1PodAntiAffinity.spec.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1PodAntiAffinity(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1PodAntiAffinity', function() { - it('should create an instance of V1PodAntiAffinity', function() { - // uncomment below and update the code to test V1PodAntiAffinity - //var instane = new KubernetesJsClient.V1PodAntiAffinity(); - //expect(instance).to.be.a(KubernetesJsClient.V1PodAntiAffinity); - }); - - it('should have the property preferredDuringSchedulingIgnoredDuringExecution (base name: "preferredDuringSchedulingIgnoredDuringExecution")', function() { - // uncomment below and update the code to test the property preferredDuringSchedulingIgnoredDuringExecution - //var instane = new KubernetesJsClient.V1PodAntiAffinity(); - //expect(instance).to.be(); - }); - - it('should have the property requiredDuringSchedulingIgnoredDuringExecution (base name: "requiredDuringSchedulingIgnoredDuringExecution")', function() { - // uncomment below and update the code to test the property requiredDuringSchedulingIgnoredDuringExecution - //var instane = new KubernetesJsClient.V1PodAntiAffinity(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1PodCondition.spec.js b/kubernetes/test/model/V1PodCondition.spec.js deleted file mode 100644 index 22067eecb5..0000000000 --- a/kubernetes/test/model/V1PodCondition.spec.js +++ /dev/null @@ -1,95 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1PodCondition(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1PodCondition', function() { - it('should create an instance of V1PodCondition', function() { - // uncomment below and update the code to test V1PodCondition - //var instane = new KubernetesJsClient.V1PodCondition(); - //expect(instance).to.be.a(KubernetesJsClient.V1PodCondition); - }); - - it('should have the property lastProbeTime (base name: "lastProbeTime")', function() { - // uncomment below and update the code to test the property lastProbeTime - //var instane = new KubernetesJsClient.V1PodCondition(); - //expect(instance).to.be(); - }); - - it('should have the property lastTransitionTime (base name: "lastTransitionTime")', function() { - // uncomment below and update the code to test the property lastTransitionTime - //var instane = new KubernetesJsClient.V1PodCondition(); - //expect(instance).to.be(); - }); - - it('should have the property message (base name: "message")', function() { - // uncomment below and update the code to test the property message - //var instane = new KubernetesJsClient.V1PodCondition(); - //expect(instance).to.be(); - }); - - it('should have the property reason (base name: "reason")', function() { - // uncomment below and update the code to test the property reason - //var instane = new KubernetesJsClient.V1PodCondition(); - //expect(instance).to.be(); - }); - - it('should have the property status (base name: "status")', function() { - // uncomment below and update the code to test the property status - //var instane = new KubernetesJsClient.V1PodCondition(); - //expect(instance).to.be(); - }); - - it('should have the property type (base name: "type")', function() { - // uncomment below and update the code to test the property type - //var instane = new KubernetesJsClient.V1PodCondition(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1PodList.spec.js b/kubernetes/test/model/V1PodList.spec.js deleted file mode 100644 index 4e3a68d937..0000000000 --- a/kubernetes/test/model/V1PodList.spec.js +++ /dev/null @@ -1,83 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1PodList(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1PodList', function() { - it('should create an instance of V1PodList', function() { - // uncomment below and update the code to test V1PodList - //var instane = new KubernetesJsClient.V1PodList(); - //expect(instance).to.be.a(KubernetesJsClient.V1PodList); - }); - - it('should have the property apiVersion (base name: "apiVersion")', function() { - // uncomment below and update the code to test the property apiVersion - //var instane = new KubernetesJsClient.V1PodList(); - //expect(instance).to.be(); - }); - - it('should have the property items (base name: "items")', function() { - // uncomment below and update the code to test the property items - //var instane = new KubernetesJsClient.V1PodList(); - //expect(instance).to.be(); - }); - - it('should have the property kind (base name: "kind")', function() { - // uncomment below and update the code to test the property kind - //var instane = new KubernetesJsClient.V1PodList(); - //expect(instance).to.be(); - }); - - it('should have the property metadata (base name: "metadata")', function() { - // uncomment below and update the code to test the property metadata - //var instane = new KubernetesJsClient.V1PodList(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1PodSecurityContext.spec.js b/kubernetes/test/model/V1PodSecurityContext.spec.js deleted file mode 100644 index 412e33e691..0000000000 --- a/kubernetes/test/model/V1PodSecurityContext.spec.js +++ /dev/null @@ -1,89 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1PodSecurityContext(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1PodSecurityContext', function() { - it('should create an instance of V1PodSecurityContext', function() { - // uncomment below and update the code to test V1PodSecurityContext - //var instane = new KubernetesJsClient.V1PodSecurityContext(); - //expect(instance).to.be.a(KubernetesJsClient.V1PodSecurityContext); - }); - - it('should have the property fsGroup (base name: "fsGroup")', function() { - // uncomment below and update the code to test the property fsGroup - //var instane = new KubernetesJsClient.V1PodSecurityContext(); - //expect(instance).to.be(); - }); - - it('should have the property runAsNonRoot (base name: "runAsNonRoot")', function() { - // uncomment below and update the code to test the property runAsNonRoot - //var instane = new KubernetesJsClient.V1PodSecurityContext(); - //expect(instance).to.be(); - }); - - it('should have the property runAsUser (base name: "runAsUser")', function() { - // uncomment below and update the code to test the property runAsUser - //var instane = new KubernetesJsClient.V1PodSecurityContext(); - //expect(instance).to.be(); - }); - - it('should have the property seLinuxOptions (base name: "seLinuxOptions")', function() { - // uncomment below and update the code to test the property seLinuxOptions - //var instane = new KubernetesJsClient.V1PodSecurityContext(); - //expect(instance).to.be(); - }); - - it('should have the property supplementalGroups (base name: "supplementalGroups")', function() { - // uncomment below and update the code to test the property supplementalGroups - //var instane = new KubernetesJsClient.V1PodSecurityContext(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1PodSpec.spec.js b/kubernetes/test/model/V1PodSpec.spec.js deleted file mode 100644 index d1c68f3ca0..0000000000 --- a/kubernetes/test/model/V1PodSpec.spec.js +++ /dev/null @@ -1,191 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1PodSpec(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1PodSpec', function() { - it('should create an instance of V1PodSpec', function() { - // uncomment below and update the code to test V1PodSpec - //var instane = new KubernetesJsClient.V1PodSpec(); - //expect(instance).to.be.a(KubernetesJsClient.V1PodSpec); - }); - - it('should have the property activeDeadlineSeconds (base name: "activeDeadlineSeconds")', function() { - // uncomment below and update the code to test the property activeDeadlineSeconds - //var instane = new KubernetesJsClient.V1PodSpec(); - //expect(instance).to.be(); - }); - - it('should have the property affinity (base name: "affinity")', function() { - // uncomment below and update the code to test the property affinity - //var instane = new KubernetesJsClient.V1PodSpec(); - //expect(instance).to.be(); - }); - - it('should have the property automountServiceAccountToken (base name: "automountServiceAccountToken")', function() { - // uncomment below and update the code to test the property automountServiceAccountToken - //var instane = new KubernetesJsClient.V1PodSpec(); - //expect(instance).to.be(); - }); - - it('should have the property containers (base name: "containers")', function() { - // uncomment below and update the code to test the property containers - //var instane = new KubernetesJsClient.V1PodSpec(); - //expect(instance).to.be(); - }); - - it('should have the property dnsPolicy (base name: "dnsPolicy")', function() { - // uncomment below and update the code to test the property dnsPolicy - //var instane = new KubernetesJsClient.V1PodSpec(); - //expect(instance).to.be(); - }); - - it('should have the property hostIPC (base name: "hostIPC")', function() { - // uncomment below and update the code to test the property hostIPC - //var instane = new KubernetesJsClient.V1PodSpec(); - //expect(instance).to.be(); - }); - - it('should have the property hostNetwork (base name: "hostNetwork")', function() { - // uncomment below and update the code to test the property hostNetwork - //var instane = new KubernetesJsClient.V1PodSpec(); - //expect(instance).to.be(); - }); - - it('should have the property hostPID (base name: "hostPID")', function() { - // uncomment below and update the code to test the property hostPID - //var instane = new KubernetesJsClient.V1PodSpec(); - //expect(instance).to.be(); - }); - - it('should have the property hostname (base name: "hostname")', function() { - // uncomment below and update the code to test the property hostname - //var instane = new KubernetesJsClient.V1PodSpec(); - //expect(instance).to.be(); - }); - - it('should have the property imagePullSecrets (base name: "imagePullSecrets")', function() { - // uncomment below and update the code to test the property imagePullSecrets - //var instane = new KubernetesJsClient.V1PodSpec(); - //expect(instance).to.be(); - }); - - it('should have the property initContainers (base name: "initContainers")', function() { - // uncomment below and update the code to test the property initContainers - //var instane = new KubernetesJsClient.V1PodSpec(); - //expect(instance).to.be(); - }); - - it('should have the property nodeName (base name: "nodeName")', function() { - // uncomment below and update the code to test the property nodeName - //var instane = new KubernetesJsClient.V1PodSpec(); - //expect(instance).to.be(); - }); - - it('should have the property nodeSelector (base name: "nodeSelector")', function() { - // uncomment below and update the code to test the property nodeSelector - //var instane = new KubernetesJsClient.V1PodSpec(); - //expect(instance).to.be(); - }); - - it('should have the property restartPolicy (base name: "restartPolicy")', function() { - // uncomment below and update the code to test the property restartPolicy - //var instane = new KubernetesJsClient.V1PodSpec(); - //expect(instance).to.be(); - }); - - it('should have the property schedulerName (base name: "schedulerName")', function() { - // uncomment below and update the code to test the property schedulerName - //var instane = new KubernetesJsClient.V1PodSpec(); - //expect(instance).to.be(); - }); - - it('should have the property securityContext (base name: "securityContext")', function() { - // uncomment below and update the code to test the property securityContext - //var instane = new KubernetesJsClient.V1PodSpec(); - //expect(instance).to.be(); - }); - - it('should have the property serviceAccount (base name: "serviceAccount")', function() { - // uncomment below and update the code to test the property serviceAccount - //var instane = new KubernetesJsClient.V1PodSpec(); - //expect(instance).to.be(); - }); - - it('should have the property serviceAccountName (base name: "serviceAccountName")', function() { - // uncomment below and update the code to test the property serviceAccountName - //var instane = new KubernetesJsClient.V1PodSpec(); - //expect(instance).to.be(); - }); - - it('should have the property subdomain (base name: "subdomain")', function() { - // uncomment below and update the code to test the property subdomain - //var instane = new KubernetesJsClient.V1PodSpec(); - //expect(instance).to.be(); - }); - - it('should have the property terminationGracePeriodSeconds (base name: "terminationGracePeriodSeconds")', function() { - // uncomment below and update the code to test the property terminationGracePeriodSeconds - //var instane = new KubernetesJsClient.V1PodSpec(); - //expect(instance).to.be(); - }); - - it('should have the property tolerations (base name: "tolerations")', function() { - // uncomment below and update the code to test the property tolerations - //var instane = new KubernetesJsClient.V1PodSpec(); - //expect(instance).to.be(); - }); - - it('should have the property volumes (base name: "volumes")', function() { - // uncomment below and update the code to test the property volumes - //var instane = new KubernetesJsClient.V1PodSpec(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1PodStatus.spec.js b/kubernetes/test/model/V1PodStatus.spec.js deleted file mode 100644 index 1336346734..0000000000 --- a/kubernetes/test/model/V1PodStatus.spec.js +++ /dev/null @@ -1,119 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1PodStatus(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1PodStatus', function() { - it('should create an instance of V1PodStatus', function() { - // uncomment below and update the code to test V1PodStatus - //var instane = new KubernetesJsClient.V1PodStatus(); - //expect(instance).to.be.a(KubernetesJsClient.V1PodStatus); - }); - - it('should have the property conditions (base name: "conditions")', function() { - // uncomment below and update the code to test the property conditions - //var instane = new KubernetesJsClient.V1PodStatus(); - //expect(instance).to.be(); - }); - - it('should have the property containerStatuses (base name: "containerStatuses")', function() { - // uncomment below and update the code to test the property containerStatuses - //var instane = new KubernetesJsClient.V1PodStatus(); - //expect(instance).to.be(); - }); - - it('should have the property hostIP (base name: "hostIP")', function() { - // uncomment below and update the code to test the property hostIP - //var instane = new KubernetesJsClient.V1PodStatus(); - //expect(instance).to.be(); - }); - - it('should have the property initContainerStatuses (base name: "initContainerStatuses")', function() { - // uncomment below and update the code to test the property initContainerStatuses - //var instane = new KubernetesJsClient.V1PodStatus(); - //expect(instance).to.be(); - }); - - it('should have the property message (base name: "message")', function() { - // uncomment below and update the code to test the property message - //var instane = new KubernetesJsClient.V1PodStatus(); - //expect(instance).to.be(); - }); - - it('should have the property phase (base name: "phase")', function() { - // uncomment below and update the code to test the property phase - //var instane = new KubernetesJsClient.V1PodStatus(); - //expect(instance).to.be(); - }); - - it('should have the property podIP (base name: "podIP")', function() { - // uncomment below and update the code to test the property podIP - //var instane = new KubernetesJsClient.V1PodStatus(); - //expect(instance).to.be(); - }); - - it('should have the property qosClass (base name: "qosClass")', function() { - // uncomment below and update the code to test the property qosClass - //var instane = new KubernetesJsClient.V1PodStatus(); - //expect(instance).to.be(); - }); - - it('should have the property reason (base name: "reason")', function() { - // uncomment below and update the code to test the property reason - //var instane = new KubernetesJsClient.V1PodStatus(); - //expect(instance).to.be(); - }); - - it('should have the property startTime (base name: "startTime")', function() { - // uncomment below and update the code to test the property startTime - //var instane = new KubernetesJsClient.V1PodStatus(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1PodTemplate.spec.js b/kubernetes/test/model/V1PodTemplate.spec.js deleted file mode 100644 index 4b9051d7b4..0000000000 --- a/kubernetes/test/model/V1PodTemplate.spec.js +++ /dev/null @@ -1,83 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1PodTemplate(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1PodTemplate', function() { - it('should create an instance of V1PodTemplate', function() { - // uncomment below and update the code to test V1PodTemplate - //var instane = new KubernetesJsClient.V1PodTemplate(); - //expect(instance).to.be.a(KubernetesJsClient.V1PodTemplate); - }); - - it('should have the property apiVersion (base name: "apiVersion")', function() { - // uncomment below and update the code to test the property apiVersion - //var instane = new KubernetesJsClient.V1PodTemplate(); - //expect(instance).to.be(); - }); - - it('should have the property kind (base name: "kind")', function() { - // uncomment below and update the code to test the property kind - //var instane = new KubernetesJsClient.V1PodTemplate(); - //expect(instance).to.be(); - }); - - it('should have the property metadata (base name: "metadata")', function() { - // uncomment below and update the code to test the property metadata - //var instane = new KubernetesJsClient.V1PodTemplate(); - //expect(instance).to.be(); - }); - - it('should have the property template (base name: "template")', function() { - // uncomment below and update the code to test the property template - //var instane = new KubernetesJsClient.V1PodTemplate(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1PodTemplateList.spec.js b/kubernetes/test/model/V1PodTemplateList.spec.js deleted file mode 100644 index 56de89e4df..0000000000 --- a/kubernetes/test/model/V1PodTemplateList.spec.js +++ /dev/null @@ -1,83 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1PodTemplateList(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1PodTemplateList', function() { - it('should create an instance of V1PodTemplateList', function() { - // uncomment below and update the code to test V1PodTemplateList - //var instane = new KubernetesJsClient.V1PodTemplateList(); - //expect(instance).to.be.a(KubernetesJsClient.V1PodTemplateList); - }); - - it('should have the property apiVersion (base name: "apiVersion")', function() { - // uncomment below and update the code to test the property apiVersion - //var instane = new KubernetesJsClient.V1PodTemplateList(); - //expect(instance).to.be(); - }); - - it('should have the property items (base name: "items")', function() { - // uncomment below and update the code to test the property items - //var instane = new KubernetesJsClient.V1PodTemplateList(); - //expect(instance).to.be(); - }); - - it('should have the property kind (base name: "kind")', function() { - // uncomment below and update the code to test the property kind - //var instane = new KubernetesJsClient.V1PodTemplateList(); - //expect(instance).to.be(); - }); - - it('should have the property metadata (base name: "metadata")', function() { - // uncomment below and update the code to test the property metadata - //var instane = new KubernetesJsClient.V1PodTemplateList(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1PodTemplateSpec.spec.js b/kubernetes/test/model/V1PodTemplateSpec.spec.js deleted file mode 100644 index 50fdd9e284..0000000000 --- a/kubernetes/test/model/V1PodTemplateSpec.spec.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1PodTemplateSpec(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1PodTemplateSpec', function() { - it('should create an instance of V1PodTemplateSpec', function() { - // uncomment below and update the code to test V1PodTemplateSpec - //var instane = new KubernetesJsClient.V1PodTemplateSpec(); - //expect(instance).to.be.a(KubernetesJsClient.V1PodTemplateSpec); - }); - - it('should have the property metadata (base name: "metadata")', function() { - // uncomment below and update the code to test the property metadata - //var instane = new KubernetesJsClient.V1PodTemplateSpec(); - //expect(instance).to.be(); - }); - - it('should have the property spec (base name: "spec")', function() { - // uncomment below and update the code to test the property spec - //var instane = new KubernetesJsClient.V1PodTemplateSpec(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1PortworxVolumeSource.spec.js b/kubernetes/test/model/V1PortworxVolumeSource.spec.js deleted file mode 100644 index f432da1c6c..0000000000 --- a/kubernetes/test/model/V1PortworxVolumeSource.spec.js +++ /dev/null @@ -1,77 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1PortworxVolumeSource(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1PortworxVolumeSource', function() { - it('should create an instance of V1PortworxVolumeSource', function() { - // uncomment below and update the code to test V1PortworxVolumeSource - //var instane = new KubernetesJsClient.V1PortworxVolumeSource(); - //expect(instance).to.be.a(KubernetesJsClient.V1PortworxVolumeSource); - }); - - it('should have the property fsType (base name: "fsType")', function() { - // uncomment below and update the code to test the property fsType - //var instane = new KubernetesJsClient.V1PortworxVolumeSource(); - //expect(instance).to.be(); - }); - - it('should have the property readOnly (base name: "readOnly")', function() { - // uncomment below and update the code to test the property readOnly - //var instane = new KubernetesJsClient.V1PortworxVolumeSource(); - //expect(instance).to.be(); - }); - - it('should have the property volumeID (base name: "volumeID")', function() { - // uncomment below and update the code to test the property volumeID - //var instane = new KubernetesJsClient.V1PortworxVolumeSource(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1Preconditions.spec.js b/kubernetes/test/model/V1Preconditions.spec.js deleted file mode 100644 index f1a18006ab..0000000000 --- a/kubernetes/test/model/V1Preconditions.spec.js +++ /dev/null @@ -1,65 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1Preconditions(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1Preconditions', function() { - it('should create an instance of V1Preconditions', function() { - // uncomment below and update the code to test V1Preconditions - //var instane = new KubernetesJsClient.V1Preconditions(); - //expect(instance).to.be.a(KubernetesJsClient.V1Preconditions); - }); - - it('should have the property uid (base name: "uid")', function() { - // uncomment below and update the code to test the property uid - //var instane = new KubernetesJsClient.V1Preconditions(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1PreferredSchedulingTerm.spec.js b/kubernetes/test/model/V1PreferredSchedulingTerm.spec.js deleted file mode 100644 index a791715ae0..0000000000 --- a/kubernetes/test/model/V1PreferredSchedulingTerm.spec.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1PreferredSchedulingTerm(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1PreferredSchedulingTerm', function() { - it('should create an instance of V1PreferredSchedulingTerm', function() { - // uncomment below and update the code to test V1PreferredSchedulingTerm - //var instane = new KubernetesJsClient.V1PreferredSchedulingTerm(); - //expect(instance).to.be.a(KubernetesJsClient.V1PreferredSchedulingTerm); - }); - - it('should have the property preference (base name: "preference")', function() { - // uncomment below and update the code to test the property preference - //var instane = new KubernetesJsClient.V1PreferredSchedulingTerm(); - //expect(instance).to.be(); - }); - - it('should have the property weight (base name: "weight")', function() { - // uncomment below and update the code to test the property weight - //var instane = new KubernetesJsClient.V1PreferredSchedulingTerm(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1Probe.spec.js b/kubernetes/test/model/V1Probe.spec.js deleted file mode 100644 index 6358bd5c72..0000000000 --- a/kubernetes/test/model/V1Probe.spec.js +++ /dev/null @@ -1,107 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1Probe(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1Probe', function() { - it('should create an instance of V1Probe', function() { - // uncomment below and update the code to test V1Probe - //var instane = new KubernetesJsClient.V1Probe(); - //expect(instance).to.be.a(KubernetesJsClient.V1Probe); - }); - - it('should have the property exec (base name: "exec")', function() { - // uncomment below and update the code to test the property exec - //var instane = new KubernetesJsClient.V1Probe(); - //expect(instance).to.be(); - }); - - it('should have the property failureThreshold (base name: "failureThreshold")', function() { - // uncomment below and update the code to test the property failureThreshold - //var instane = new KubernetesJsClient.V1Probe(); - //expect(instance).to.be(); - }); - - it('should have the property httpGet (base name: "httpGet")', function() { - // uncomment below and update the code to test the property httpGet - //var instane = new KubernetesJsClient.V1Probe(); - //expect(instance).to.be(); - }); - - it('should have the property initialDelaySeconds (base name: "initialDelaySeconds")', function() { - // uncomment below and update the code to test the property initialDelaySeconds - //var instane = new KubernetesJsClient.V1Probe(); - //expect(instance).to.be(); - }); - - it('should have the property periodSeconds (base name: "periodSeconds")', function() { - // uncomment below and update the code to test the property periodSeconds - //var instane = new KubernetesJsClient.V1Probe(); - //expect(instance).to.be(); - }); - - it('should have the property successThreshold (base name: "successThreshold")', function() { - // uncomment below and update the code to test the property successThreshold - //var instane = new KubernetesJsClient.V1Probe(); - //expect(instance).to.be(); - }); - - it('should have the property tcpSocket (base name: "tcpSocket")', function() { - // uncomment below and update the code to test the property tcpSocket - //var instane = new KubernetesJsClient.V1Probe(); - //expect(instance).to.be(); - }); - - it('should have the property timeoutSeconds (base name: "timeoutSeconds")', function() { - // uncomment below and update the code to test the property timeoutSeconds - //var instane = new KubernetesJsClient.V1Probe(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1ProjectedVolumeSource.spec.js b/kubernetes/test/model/V1ProjectedVolumeSource.spec.js deleted file mode 100644 index ce3c851006..0000000000 --- a/kubernetes/test/model/V1ProjectedVolumeSource.spec.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1ProjectedVolumeSource(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1ProjectedVolumeSource', function() { - it('should create an instance of V1ProjectedVolumeSource', function() { - // uncomment below and update the code to test V1ProjectedVolumeSource - //var instane = new KubernetesJsClient.V1ProjectedVolumeSource(); - //expect(instance).to.be.a(KubernetesJsClient.V1ProjectedVolumeSource); - }); - - it('should have the property defaultMode (base name: "defaultMode")', function() { - // uncomment below and update the code to test the property defaultMode - //var instane = new KubernetesJsClient.V1ProjectedVolumeSource(); - //expect(instance).to.be(); - }); - - it('should have the property sources (base name: "sources")', function() { - // uncomment below and update the code to test the property sources - //var instane = new KubernetesJsClient.V1ProjectedVolumeSource(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1QuobyteVolumeSource.spec.js b/kubernetes/test/model/V1QuobyteVolumeSource.spec.js deleted file mode 100644 index ba9af961eb..0000000000 --- a/kubernetes/test/model/V1QuobyteVolumeSource.spec.js +++ /dev/null @@ -1,89 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1QuobyteVolumeSource(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1QuobyteVolumeSource', function() { - it('should create an instance of V1QuobyteVolumeSource', function() { - // uncomment below and update the code to test V1QuobyteVolumeSource - //var instane = new KubernetesJsClient.V1QuobyteVolumeSource(); - //expect(instance).to.be.a(KubernetesJsClient.V1QuobyteVolumeSource); - }); - - it('should have the property group (base name: "group")', function() { - // uncomment below and update the code to test the property group - //var instane = new KubernetesJsClient.V1QuobyteVolumeSource(); - //expect(instance).to.be(); - }); - - it('should have the property readOnly (base name: "readOnly")', function() { - // uncomment below and update the code to test the property readOnly - //var instane = new KubernetesJsClient.V1QuobyteVolumeSource(); - //expect(instance).to.be(); - }); - - it('should have the property registry (base name: "registry")', function() { - // uncomment below and update the code to test the property registry - //var instane = new KubernetesJsClient.V1QuobyteVolumeSource(); - //expect(instance).to.be(); - }); - - it('should have the property user (base name: "user")', function() { - // uncomment below and update the code to test the property user - //var instane = new KubernetesJsClient.V1QuobyteVolumeSource(); - //expect(instance).to.be(); - }); - - it('should have the property volume (base name: "volume")', function() { - // uncomment below and update the code to test the property volume - //var instane = new KubernetesJsClient.V1QuobyteVolumeSource(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1RBDVolumeSource.spec.js b/kubernetes/test/model/V1RBDVolumeSource.spec.js deleted file mode 100644 index 6fbc6c33ee..0000000000 --- a/kubernetes/test/model/V1RBDVolumeSource.spec.js +++ /dev/null @@ -1,107 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1RBDVolumeSource(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1RBDVolumeSource', function() { - it('should create an instance of V1RBDVolumeSource', function() { - // uncomment below and update the code to test V1RBDVolumeSource - //var instane = new KubernetesJsClient.V1RBDVolumeSource(); - //expect(instance).to.be.a(KubernetesJsClient.V1RBDVolumeSource); - }); - - it('should have the property fsType (base name: "fsType")', function() { - // uncomment below and update the code to test the property fsType - //var instane = new KubernetesJsClient.V1RBDVolumeSource(); - //expect(instance).to.be(); - }); - - it('should have the property image (base name: "image")', function() { - // uncomment below and update the code to test the property image - //var instane = new KubernetesJsClient.V1RBDVolumeSource(); - //expect(instance).to.be(); - }); - - it('should have the property keyring (base name: "keyring")', function() { - // uncomment below and update the code to test the property keyring - //var instane = new KubernetesJsClient.V1RBDVolumeSource(); - //expect(instance).to.be(); - }); - - it('should have the property monitors (base name: "monitors")', function() { - // uncomment below and update the code to test the property monitors - //var instane = new KubernetesJsClient.V1RBDVolumeSource(); - //expect(instance).to.be(); - }); - - it('should have the property pool (base name: "pool")', function() { - // uncomment below and update the code to test the property pool - //var instane = new KubernetesJsClient.V1RBDVolumeSource(); - //expect(instance).to.be(); - }); - - it('should have the property readOnly (base name: "readOnly")', function() { - // uncomment below and update the code to test the property readOnly - //var instane = new KubernetesJsClient.V1RBDVolumeSource(); - //expect(instance).to.be(); - }); - - it('should have the property secretRef (base name: "secretRef")', function() { - // uncomment below and update the code to test the property secretRef - //var instane = new KubernetesJsClient.V1RBDVolumeSource(); - //expect(instance).to.be(); - }); - - it('should have the property user (base name: "user")', function() { - // uncomment below and update the code to test the property user - //var instane = new KubernetesJsClient.V1RBDVolumeSource(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1ReplicationController.spec.js b/kubernetes/test/model/V1ReplicationController.spec.js deleted file mode 100644 index a1bff3d9a1..0000000000 --- a/kubernetes/test/model/V1ReplicationController.spec.js +++ /dev/null @@ -1,89 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1ReplicationController(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1ReplicationController', function() { - it('should create an instance of V1ReplicationController', function() { - // uncomment below and update the code to test V1ReplicationController - //var instane = new KubernetesJsClient.V1ReplicationController(); - //expect(instance).to.be.a(KubernetesJsClient.V1ReplicationController); - }); - - it('should have the property apiVersion (base name: "apiVersion")', function() { - // uncomment below and update the code to test the property apiVersion - //var instane = new KubernetesJsClient.V1ReplicationController(); - //expect(instance).to.be(); - }); - - it('should have the property kind (base name: "kind")', function() { - // uncomment below and update the code to test the property kind - //var instane = new KubernetesJsClient.V1ReplicationController(); - //expect(instance).to.be(); - }); - - it('should have the property metadata (base name: "metadata")', function() { - // uncomment below and update the code to test the property metadata - //var instane = new KubernetesJsClient.V1ReplicationController(); - //expect(instance).to.be(); - }); - - it('should have the property spec (base name: "spec")', function() { - // uncomment below and update the code to test the property spec - //var instane = new KubernetesJsClient.V1ReplicationController(); - //expect(instance).to.be(); - }); - - it('should have the property status (base name: "status")', function() { - // uncomment below and update the code to test the property status - //var instane = new KubernetesJsClient.V1ReplicationController(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1ReplicationControllerCondition.spec.js b/kubernetes/test/model/V1ReplicationControllerCondition.spec.js deleted file mode 100644 index 5bdce27e93..0000000000 --- a/kubernetes/test/model/V1ReplicationControllerCondition.spec.js +++ /dev/null @@ -1,89 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1ReplicationControllerCondition(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1ReplicationControllerCondition', function() { - it('should create an instance of V1ReplicationControllerCondition', function() { - // uncomment below and update the code to test V1ReplicationControllerCondition - //var instane = new KubernetesJsClient.V1ReplicationControllerCondition(); - //expect(instance).to.be.a(KubernetesJsClient.V1ReplicationControllerCondition); - }); - - it('should have the property lastTransitionTime (base name: "lastTransitionTime")', function() { - // uncomment below and update the code to test the property lastTransitionTime - //var instane = new KubernetesJsClient.V1ReplicationControllerCondition(); - //expect(instance).to.be(); - }); - - it('should have the property message (base name: "message")', function() { - // uncomment below and update the code to test the property message - //var instane = new KubernetesJsClient.V1ReplicationControllerCondition(); - //expect(instance).to.be(); - }); - - it('should have the property reason (base name: "reason")', function() { - // uncomment below and update the code to test the property reason - //var instane = new KubernetesJsClient.V1ReplicationControllerCondition(); - //expect(instance).to.be(); - }); - - it('should have the property status (base name: "status")', function() { - // uncomment below and update the code to test the property status - //var instane = new KubernetesJsClient.V1ReplicationControllerCondition(); - //expect(instance).to.be(); - }); - - it('should have the property type (base name: "type")', function() { - // uncomment below and update the code to test the property type - //var instane = new KubernetesJsClient.V1ReplicationControllerCondition(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1ReplicationControllerList.spec.js b/kubernetes/test/model/V1ReplicationControllerList.spec.js deleted file mode 100644 index 4fe12bf6bd..0000000000 --- a/kubernetes/test/model/V1ReplicationControllerList.spec.js +++ /dev/null @@ -1,83 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1ReplicationControllerList(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1ReplicationControllerList', function() { - it('should create an instance of V1ReplicationControllerList', function() { - // uncomment below and update the code to test V1ReplicationControllerList - //var instane = new KubernetesJsClient.V1ReplicationControllerList(); - //expect(instance).to.be.a(KubernetesJsClient.V1ReplicationControllerList); - }); - - it('should have the property apiVersion (base name: "apiVersion")', function() { - // uncomment below and update the code to test the property apiVersion - //var instane = new KubernetesJsClient.V1ReplicationControllerList(); - //expect(instance).to.be(); - }); - - it('should have the property items (base name: "items")', function() { - // uncomment below and update the code to test the property items - //var instane = new KubernetesJsClient.V1ReplicationControllerList(); - //expect(instance).to.be(); - }); - - it('should have the property kind (base name: "kind")', function() { - // uncomment below and update the code to test the property kind - //var instane = new KubernetesJsClient.V1ReplicationControllerList(); - //expect(instance).to.be(); - }); - - it('should have the property metadata (base name: "metadata")', function() { - // uncomment below and update the code to test the property metadata - //var instane = new KubernetesJsClient.V1ReplicationControllerList(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1ReplicationControllerSpec.spec.js b/kubernetes/test/model/V1ReplicationControllerSpec.spec.js deleted file mode 100644 index 4d5e3c4991..0000000000 --- a/kubernetes/test/model/V1ReplicationControllerSpec.spec.js +++ /dev/null @@ -1,83 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1ReplicationControllerSpec(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1ReplicationControllerSpec', function() { - it('should create an instance of V1ReplicationControllerSpec', function() { - // uncomment below and update the code to test V1ReplicationControllerSpec - //var instane = new KubernetesJsClient.V1ReplicationControllerSpec(); - //expect(instance).to.be.a(KubernetesJsClient.V1ReplicationControllerSpec); - }); - - it('should have the property minReadySeconds (base name: "minReadySeconds")', function() { - // uncomment below and update the code to test the property minReadySeconds - //var instane = new KubernetesJsClient.V1ReplicationControllerSpec(); - //expect(instance).to.be(); - }); - - it('should have the property replicas (base name: "replicas")', function() { - // uncomment below and update the code to test the property replicas - //var instane = new KubernetesJsClient.V1ReplicationControllerSpec(); - //expect(instance).to.be(); - }); - - it('should have the property selector (base name: "selector")', function() { - // uncomment below and update the code to test the property selector - //var instane = new KubernetesJsClient.V1ReplicationControllerSpec(); - //expect(instance).to.be(); - }); - - it('should have the property template (base name: "template")', function() { - // uncomment below and update the code to test the property template - //var instane = new KubernetesJsClient.V1ReplicationControllerSpec(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1ReplicationControllerStatus.spec.js b/kubernetes/test/model/V1ReplicationControllerStatus.spec.js deleted file mode 100644 index 2fd957a10c..0000000000 --- a/kubernetes/test/model/V1ReplicationControllerStatus.spec.js +++ /dev/null @@ -1,95 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1ReplicationControllerStatus(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1ReplicationControllerStatus', function() { - it('should create an instance of V1ReplicationControllerStatus', function() { - // uncomment below and update the code to test V1ReplicationControllerStatus - //var instane = new KubernetesJsClient.V1ReplicationControllerStatus(); - //expect(instance).to.be.a(KubernetesJsClient.V1ReplicationControllerStatus); - }); - - it('should have the property availableReplicas (base name: "availableReplicas")', function() { - // uncomment below and update the code to test the property availableReplicas - //var instane = new KubernetesJsClient.V1ReplicationControllerStatus(); - //expect(instance).to.be(); - }); - - it('should have the property conditions (base name: "conditions")', function() { - // uncomment below and update the code to test the property conditions - //var instane = new KubernetesJsClient.V1ReplicationControllerStatus(); - //expect(instance).to.be(); - }); - - it('should have the property fullyLabeledReplicas (base name: "fullyLabeledReplicas")', function() { - // uncomment below and update the code to test the property fullyLabeledReplicas - //var instane = new KubernetesJsClient.V1ReplicationControllerStatus(); - //expect(instance).to.be(); - }); - - it('should have the property observedGeneration (base name: "observedGeneration")', function() { - // uncomment below and update the code to test the property observedGeneration - //var instane = new KubernetesJsClient.V1ReplicationControllerStatus(); - //expect(instance).to.be(); - }); - - it('should have the property readyReplicas (base name: "readyReplicas")', function() { - // uncomment below and update the code to test the property readyReplicas - //var instane = new KubernetesJsClient.V1ReplicationControllerStatus(); - //expect(instance).to.be(); - }); - - it('should have the property replicas (base name: "replicas")', function() { - // uncomment below and update the code to test the property replicas - //var instane = new KubernetesJsClient.V1ReplicationControllerStatus(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1ResourceAttributes.spec.js b/kubernetes/test/model/V1ResourceAttributes.spec.js deleted file mode 100644 index ccdf9e0011..0000000000 --- a/kubernetes/test/model/V1ResourceAttributes.spec.js +++ /dev/null @@ -1,101 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1ResourceAttributes(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1ResourceAttributes', function() { - it('should create an instance of V1ResourceAttributes', function() { - // uncomment below and update the code to test V1ResourceAttributes - //var instane = new KubernetesJsClient.V1ResourceAttributes(); - //expect(instance).to.be.a(KubernetesJsClient.V1ResourceAttributes); - }); - - it('should have the property group (base name: "group")', function() { - // uncomment below and update the code to test the property group - //var instane = new KubernetesJsClient.V1ResourceAttributes(); - //expect(instance).to.be(); - }); - - it('should have the property name (base name: "name")', function() { - // uncomment below and update the code to test the property name - //var instane = new KubernetesJsClient.V1ResourceAttributes(); - //expect(instance).to.be(); - }); - - it('should have the property namespace (base name: "namespace")', function() { - // uncomment below and update the code to test the property namespace - //var instane = new KubernetesJsClient.V1ResourceAttributes(); - //expect(instance).to.be(); - }); - - it('should have the property resource (base name: "resource")', function() { - // uncomment below and update the code to test the property resource - //var instane = new KubernetesJsClient.V1ResourceAttributes(); - //expect(instance).to.be(); - }); - - it('should have the property subresource (base name: "subresource")', function() { - // uncomment below and update the code to test the property subresource - //var instane = new KubernetesJsClient.V1ResourceAttributes(); - //expect(instance).to.be(); - }); - - it('should have the property verb (base name: "verb")', function() { - // uncomment below and update the code to test the property verb - //var instane = new KubernetesJsClient.V1ResourceAttributes(); - //expect(instance).to.be(); - }); - - it('should have the property version (base name: "version")', function() { - // uncomment below and update the code to test the property version - //var instane = new KubernetesJsClient.V1ResourceAttributes(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1ResourceFieldSelector.spec.js b/kubernetes/test/model/V1ResourceFieldSelector.spec.js deleted file mode 100644 index 49b3ad6481..0000000000 --- a/kubernetes/test/model/V1ResourceFieldSelector.spec.js +++ /dev/null @@ -1,77 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1ResourceFieldSelector(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1ResourceFieldSelector', function() { - it('should create an instance of V1ResourceFieldSelector', function() { - // uncomment below and update the code to test V1ResourceFieldSelector - //var instane = new KubernetesJsClient.V1ResourceFieldSelector(); - //expect(instance).to.be.a(KubernetesJsClient.V1ResourceFieldSelector); - }); - - it('should have the property containerName (base name: "containerName")', function() { - // uncomment below and update the code to test the property containerName - //var instane = new KubernetesJsClient.V1ResourceFieldSelector(); - //expect(instance).to.be(); - }); - - it('should have the property divisor (base name: "divisor")', function() { - // uncomment below and update the code to test the property divisor - //var instane = new KubernetesJsClient.V1ResourceFieldSelector(); - //expect(instance).to.be(); - }); - - it('should have the property resource (base name: "resource")', function() { - // uncomment below and update the code to test the property resource - //var instane = new KubernetesJsClient.V1ResourceFieldSelector(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1ResourceQuota.spec.js b/kubernetes/test/model/V1ResourceQuota.spec.js deleted file mode 100644 index 96d3e052cd..0000000000 --- a/kubernetes/test/model/V1ResourceQuota.spec.js +++ /dev/null @@ -1,89 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1ResourceQuota(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1ResourceQuota', function() { - it('should create an instance of V1ResourceQuota', function() { - // uncomment below and update the code to test V1ResourceQuota - //var instane = new KubernetesJsClient.V1ResourceQuota(); - //expect(instance).to.be.a(KubernetesJsClient.V1ResourceQuota); - }); - - it('should have the property apiVersion (base name: "apiVersion")', function() { - // uncomment below and update the code to test the property apiVersion - //var instane = new KubernetesJsClient.V1ResourceQuota(); - //expect(instance).to.be(); - }); - - it('should have the property kind (base name: "kind")', function() { - // uncomment below and update the code to test the property kind - //var instane = new KubernetesJsClient.V1ResourceQuota(); - //expect(instance).to.be(); - }); - - it('should have the property metadata (base name: "metadata")', function() { - // uncomment below and update the code to test the property metadata - //var instane = new KubernetesJsClient.V1ResourceQuota(); - //expect(instance).to.be(); - }); - - it('should have the property spec (base name: "spec")', function() { - // uncomment below and update the code to test the property spec - //var instane = new KubernetesJsClient.V1ResourceQuota(); - //expect(instance).to.be(); - }); - - it('should have the property status (base name: "status")', function() { - // uncomment below and update the code to test the property status - //var instane = new KubernetesJsClient.V1ResourceQuota(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1ResourceQuotaList.spec.js b/kubernetes/test/model/V1ResourceQuotaList.spec.js deleted file mode 100644 index 6c67024afa..0000000000 --- a/kubernetes/test/model/V1ResourceQuotaList.spec.js +++ /dev/null @@ -1,83 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1ResourceQuotaList(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1ResourceQuotaList', function() { - it('should create an instance of V1ResourceQuotaList', function() { - // uncomment below and update the code to test V1ResourceQuotaList - //var instane = new KubernetesJsClient.V1ResourceQuotaList(); - //expect(instance).to.be.a(KubernetesJsClient.V1ResourceQuotaList); - }); - - it('should have the property apiVersion (base name: "apiVersion")', function() { - // uncomment below and update the code to test the property apiVersion - //var instane = new KubernetesJsClient.V1ResourceQuotaList(); - //expect(instance).to.be(); - }); - - it('should have the property items (base name: "items")', function() { - // uncomment below and update the code to test the property items - //var instane = new KubernetesJsClient.V1ResourceQuotaList(); - //expect(instance).to.be(); - }); - - it('should have the property kind (base name: "kind")', function() { - // uncomment below and update the code to test the property kind - //var instane = new KubernetesJsClient.V1ResourceQuotaList(); - //expect(instance).to.be(); - }); - - it('should have the property metadata (base name: "metadata")', function() { - // uncomment below and update the code to test the property metadata - //var instane = new KubernetesJsClient.V1ResourceQuotaList(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1ResourceQuotaSpec.spec.js b/kubernetes/test/model/V1ResourceQuotaSpec.spec.js deleted file mode 100644 index 795b71e52c..0000000000 --- a/kubernetes/test/model/V1ResourceQuotaSpec.spec.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1ResourceQuotaSpec(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1ResourceQuotaSpec', function() { - it('should create an instance of V1ResourceQuotaSpec', function() { - // uncomment below and update the code to test V1ResourceQuotaSpec - //var instane = new KubernetesJsClient.V1ResourceQuotaSpec(); - //expect(instance).to.be.a(KubernetesJsClient.V1ResourceQuotaSpec); - }); - - it('should have the property hard (base name: "hard")', function() { - // uncomment below and update the code to test the property hard - //var instane = new KubernetesJsClient.V1ResourceQuotaSpec(); - //expect(instance).to.be(); - }); - - it('should have the property scopes (base name: "scopes")', function() { - // uncomment below and update the code to test the property scopes - //var instane = new KubernetesJsClient.V1ResourceQuotaSpec(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1ResourceQuotaStatus.spec.js b/kubernetes/test/model/V1ResourceQuotaStatus.spec.js deleted file mode 100644 index 89a5b0d2a3..0000000000 --- a/kubernetes/test/model/V1ResourceQuotaStatus.spec.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1ResourceQuotaStatus(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1ResourceQuotaStatus', function() { - it('should create an instance of V1ResourceQuotaStatus', function() { - // uncomment below and update the code to test V1ResourceQuotaStatus - //var instane = new KubernetesJsClient.V1ResourceQuotaStatus(); - //expect(instance).to.be.a(KubernetesJsClient.V1ResourceQuotaStatus); - }); - - it('should have the property hard (base name: "hard")', function() { - // uncomment below and update the code to test the property hard - //var instane = new KubernetesJsClient.V1ResourceQuotaStatus(); - //expect(instance).to.be(); - }); - - it('should have the property used (base name: "used")', function() { - // uncomment below and update the code to test the property used - //var instane = new KubernetesJsClient.V1ResourceQuotaStatus(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1ResourceRequirements.spec.js b/kubernetes/test/model/V1ResourceRequirements.spec.js deleted file mode 100644 index 33f173a751..0000000000 --- a/kubernetes/test/model/V1ResourceRequirements.spec.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1ResourceRequirements(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1ResourceRequirements', function() { - it('should create an instance of V1ResourceRequirements', function() { - // uncomment below and update the code to test V1ResourceRequirements - //var instane = new KubernetesJsClient.V1ResourceRequirements(); - //expect(instance).to.be.a(KubernetesJsClient.V1ResourceRequirements); - }); - - it('should have the property limits (base name: "limits")', function() { - // uncomment below and update the code to test the property limits - //var instane = new KubernetesJsClient.V1ResourceRequirements(); - //expect(instance).to.be(); - }); - - it('should have the property requests (base name: "requests")', function() { - // uncomment below and update the code to test the property requests - //var instane = new KubernetesJsClient.V1ResourceRequirements(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1SELinuxOptions.spec.js b/kubernetes/test/model/V1SELinuxOptions.spec.js deleted file mode 100644 index b15a1261d8..0000000000 --- a/kubernetes/test/model/V1SELinuxOptions.spec.js +++ /dev/null @@ -1,83 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1SELinuxOptions(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1SELinuxOptions', function() { - it('should create an instance of V1SELinuxOptions', function() { - // uncomment below and update the code to test V1SELinuxOptions - //var instane = new KubernetesJsClient.V1SELinuxOptions(); - //expect(instance).to.be.a(KubernetesJsClient.V1SELinuxOptions); - }); - - it('should have the property level (base name: "level")', function() { - // uncomment below and update the code to test the property level - //var instane = new KubernetesJsClient.V1SELinuxOptions(); - //expect(instance).to.be(); - }); - - it('should have the property role (base name: "role")', function() { - // uncomment below and update the code to test the property role - //var instane = new KubernetesJsClient.V1SELinuxOptions(); - //expect(instance).to.be(); - }); - - it('should have the property type (base name: "type")', function() { - // uncomment below and update the code to test the property type - //var instane = new KubernetesJsClient.V1SELinuxOptions(); - //expect(instance).to.be(); - }); - - it('should have the property user (base name: "user")', function() { - // uncomment below and update the code to test the property user - //var instane = new KubernetesJsClient.V1SELinuxOptions(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1Scale.spec.js b/kubernetes/test/model/V1Scale.spec.js deleted file mode 100644 index a453b54d00..0000000000 --- a/kubernetes/test/model/V1Scale.spec.js +++ /dev/null @@ -1,89 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1Scale(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1Scale', function() { - it('should create an instance of V1Scale', function() { - // uncomment below and update the code to test V1Scale - //var instane = new KubernetesJsClient.V1Scale(); - //expect(instance).to.be.a(KubernetesJsClient.V1Scale); - }); - - it('should have the property apiVersion (base name: "apiVersion")', function() { - // uncomment below and update the code to test the property apiVersion - //var instane = new KubernetesJsClient.V1Scale(); - //expect(instance).to.be(); - }); - - it('should have the property kind (base name: "kind")', function() { - // uncomment below and update the code to test the property kind - //var instane = new KubernetesJsClient.V1Scale(); - //expect(instance).to.be(); - }); - - it('should have the property metadata (base name: "metadata")', function() { - // uncomment below and update the code to test the property metadata - //var instane = new KubernetesJsClient.V1Scale(); - //expect(instance).to.be(); - }); - - it('should have the property spec (base name: "spec")', function() { - // uncomment below and update the code to test the property spec - //var instane = new KubernetesJsClient.V1Scale(); - //expect(instance).to.be(); - }); - - it('should have the property status (base name: "status")', function() { - // uncomment below and update the code to test the property status - //var instane = new KubernetesJsClient.V1Scale(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1ScaleIOVolumeSource.spec.js b/kubernetes/test/model/V1ScaleIOVolumeSource.spec.js deleted file mode 100644 index f662fa58a5..0000000000 --- a/kubernetes/test/model/V1ScaleIOVolumeSource.spec.js +++ /dev/null @@ -1,119 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1ScaleIOVolumeSource(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1ScaleIOVolumeSource', function() { - it('should create an instance of V1ScaleIOVolumeSource', function() { - // uncomment below and update the code to test V1ScaleIOVolumeSource - //var instane = new KubernetesJsClient.V1ScaleIOVolumeSource(); - //expect(instance).to.be.a(KubernetesJsClient.V1ScaleIOVolumeSource); - }); - - it('should have the property fsType (base name: "fsType")', function() { - // uncomment below and update the code to test the property fsType - //var instane = new KubernetesJsClient.V1ScaleIOVolumeSource(); - //expect(instance).to.be(); - }); - - it('should have the property gateway (base name: "gateway")', function() { - // uncomment below and update the code to test the property gateway - //var instane = new KubernetesJsClient.V1ScaleIOVolumeSource(); - //expect(instance).to.be(); - }); - - it('should have the property protectionDomain (base name: "protectionDomain")', function() { - // uncomment below and update the code to test the property protectionDomain - //var instane = new KubernetesJsClient.V1ScaleIOVolumeSource(); - //expect(instance).to.be(); - }); - - it('should have the property readOnly (base name: "readOnly")', function() { - // uncomment below and update the code to test the property readOnly - //var instane = new KubernetesJsClient.V1ScaleIOVolumeSource(); - //expect(instance).to.be(); - }); - - it('should have the property secretRef (base name: "secretRef")', function() { - // uncomment below and update the code to test the property secretRef - //var instane = new KubernetesJsClient.V1ScaleIOVolumeSource(); - //expect(instance).to.be(); - }); - - it('should have the property sslEnabled (base name: "sslEnabled")', function() { - // uncomment below and update the code to test the property sslEnabled - //var instane = new KubernetesJsClient.V1ScaleIOVolumeSource(); - //expect(instance).to.be(); - }); - - it('should have the property storageMode (base name: "storageMode")', function() { - // uncomment below and update the code to test the property storageMode - //var instane = new KubernetesJsClient.V1ScaleIOVolumeSource(); - //expect(instance).to.be(); - }); - - it('should have the property storagePool (base name: "storagePool")', function() { - // uncomment below and update the code to test the property storagePool - //var instane = new KubernetesJsClient.V1ScaleIOVolumeSource(); - //expect(instance).to.be(); - }); - - it('should have the property system (base name: "system")', function() { - // uncomment below and update the code to test the property system - //var instane = new KubernetesJsClient.V1ScaleIOVolumeSource(); - //expect(instance).to.be(); - }); - - it('should have the property volumeName (base name: "volumeName")', function() { - // uncomment below and update the code to test the property volumeName - //var instane = new KubernetesJsClient.V1ScaleIOVolumeSource(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1ScaleSpec.spec.js b/kubernetes/test/model/V1ScaleSpec.spec.js deleted file mode 100644 index 529ea3f311..0000000000 --- a/kubernetes/test/model/V1ScaleSpec.spec.js +++ /dev/null @@ -1,65 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1ScaleSpec(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1ScaleSpec', function() { - it('should create an instance of V1ScaleSpec', function() { - // uncomment below and update the code to test V1ScaleSpec - //var instane = new KubernetesJsClient.V1ScaleSpec(); - //expect(instance).to.be.a(KubernetesJsClient.V1ScaleSpec); - }); - - it('should have the property replicas (base name: "replicas")', function() { - // uncomment below and update the code to test the property replicas - //var instane = new KubernetesJsClient.V1ScaleSpec(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1ScaleStatus.spec.js b/kubernetes/test/model/V1ScaleStatus.spec.js deleted file mode 100644 index 958b23d3e6..0000000000 --- a/kubernetes/test/model/V1ScaleStatus.spec.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1ScaleStatus(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1ScaleStatus', function() { - it('should create an instance of V1ScaleStatus', function() { - // uncomment below and update the code to test V1ScaleStatus - //var instane = new KubernetesJsClient.V1ScaleStatus(); - //expect(instance).to.be.a(KubernetesJsClient.V1ScaleStatus); - }); - - it('should have the property replicas (base name: "replicas")', function() { - // uncomment below and update the code to test the property replicas - //var instane = new KubernetesJsClient.V1ScaleStatus(); - //expect(instance).to.be(); - }); - - it('should have the property selector (base name: "selector")', function() { - // uncomment below and update the code to test the property selector - //var instane = new KubernetesJsClient.V1ScaleStatus(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1Secret.spec.js b/kubernetes/test/model/V1Secret.spec.js deleted file mode 100644 index b755b5ed48..0000000000 --- a/kubernetes/test/model/V1Secret.spec.js +++ /dev/null @@ -1,95 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1Secret(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1Secret', function() { - it('should create an instance of V1Secret', function() { - // uncomment below and update the code to test V1Secret - //var instane = new KubernetesJsClient.V1Secret(); - //expect(instance).to.be.a(KubernetesJsClient.V1Secret); - }); - - it('should have the property apiVersion (base name: "apiVersion")', function() { - // uncomment below and update the code to test the property apiVersion - //var instane = new KubernetesJsClient.V1Secret(); - //expect(instance).to.be(); - }); - - it('should have the property data (base name: "data")', function() { - // uncomment below and update the code to test the property data - //var instane = new KubernetesJsClient.V1Secret(); - //expect(instance).to.be(); - }); - - it('should have the property kind (base name: "kind")', function() { - // uncomment below and update the code to test the property kind - //var instane = new KubernetesJsClient.V1Secret(); - //expect(instance).to.be(); - }); - - it('should have the property metadata (base name: "metadata")', function() { - // uncomment below and update the code to test the property metadata - //var instane = new KubernetesJsClient.V1Secret(); - //expect(instance).to.be(); - }); - - it('should have the property stringData (base name: "stringData")', function() { - // uncomment below and update the code to test the property stringData - //var instane = new KubernetesJsClient.V1Secret(); - //expect(instance).to.be(); - }); - - it('should have the property type (base name: "type")', function() { - // uncomment below and update the code to test the property type - //var instane = new KubernetesJsClient.V1Secret(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1SecretEnvSource.spec.js b/kubernetes/test/model/V1SecretEnvSource.spec.js deleted file mode 100644 index a0fc4ead35..0000000000 --- a/kubernetes/test/model/V1SecretEnvSource.spec.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1SecretEnvSource(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1SecretEnvSource', function() { - it('should create an instance of V1SecretEnvSource', function() { - // uncomment below and update the code to test V1SecretEnvSource - //var instane = new KubernetesJsClient.V1SecretEnvSource(); - //expect(instance).to.be.a(KubernetesJsClient.V1SecretEnvSource); - }); - - it('should have the property name (base name: "name")', function() { - // uncomment below and update the code to test the property name - //var instane = new KubernetesJsClient.V1SecretEnvSource(); - //expect(instance).to.be(); - }); - - it('should have the property optional (base name: "optional")', function() { - // uncomment below and update the code to test the property optional - //var instane = new KubernetesJsClient.V1SecretEnvSource(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1SecretKeySelector.spec.js b/kubernetes/test/model/V1SecretKeySelector.spec.js deleted file mode 100644 index 91996f7025..0000000000 --- a/kubernetes/test/model/V1SecretKeySelector.spec.js +++ /dev/null @@ -1,77 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1SecretKeySelector(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1SecretKeySelector', function() { - it('should create an instance of V1SecretKeySelector', function() { - // uncomment below and update the code to test V1SecretKeySelector - //var instane = new KubernetesJsClient.V1SecretKeySelector(); - //expect(instance).to.be.a(KubernetesJsClient.V1SecretKeySelector); - }); - - it('should have the property key (base name: "key")', function() { - // uncomment below and update the code to test the property key - //var instane = new KubernetesJsClient.V1SecretKeySelector(); - //expect(instance).to.be(); - }); - - it('should have the property name (base name: "name")', function() { - // uncomment below and update the code to test the property name - //var instane = new KubernetesJsClient.V1SecretKeySelector(); - //expect(instance).to.be(); - }); - - it('should have the property optional (base name: "optional")', function() { - // uncomment below and update the code to test the property optional - //var instane = new KubernetesJsClient.V1SecretKeySelector(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1SecretList.spec.js b/kubernetes/test/model/V1SecretList.spec.js deleted file mode 100644 index a2a379ecda..0000000000 --- a/kubernetes/test/model/V1SecretList.spec.js +++ /dev/null @@ -1,83 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1SecretList(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1SecretList', function() { - it('should create an instance of V1SecretList', function() { - // uncomment below and update the code to test V1SecretList - //var instane = new KubernetesJsClient.V1SecretList(); - //expect(instance).to.be.a(KubernetesJsClient.V1SecretList); - }); - - it('should have the property apiVersion (base name: "apiVersion")', function() { - // uncomment below and update the code to test the property apiVersion - //var instane = new KubernetesJsClient.V1SecretList(); - //expect(instance).to.be(); - }); - - it('should have the property items (base name: "items")', function() { - // uncomment below and update the code to test the property items - //var instane = new KubernetesJsClient.V1SecretList(); - //expect(instance).to.be(); - }); - - it('should have the property kind (base name: "kind")', function() { - // uncomment below and update the code to test the property kind - //var instane = new KubernetesJsClient.V1SecretList(); - //expect(instance).to.be(); - }); - - it('should have the property metadata (base name: "metadata")', function() { - // uncomment below and update the code to test the property metadata - //var instane = new KubernetesJsClient.V1SecretList(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1SecretProjection.spec.js b/kubernetes/test/model/V1SecretProjection.spec.js deleted file mode 100644 index 6b4dbb906b..0000000000 --- a/kubernetes/test/model/V1SecretProjection.spec.js +++ /dev/null @@ -1,77 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1SecretProjection(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1SecretProjection', function() { - it('should create an instance of V1SecretProjection', function() { - // uncomment below and update the code to test V1SecretProjection - //var instane = new KubernetesJsClient.V1SecretProjection(); - //expect(instance).to.be.a(KubernetesJsClient.V1SecretProjection); - }); - - it('should have the property items (base name: "items")', function() { - // uncomment below and update the code to test the property items - //var instane = new KubernetesJsClient.V1SecretProjection(); - //expect(instance).to.be(); - }); - - it('should have the property name (base name: "name")', function() { - // uncomment below and update the code to test the property name - //var instane = new KubernetesJsClient.V1SecretProjection(); - //expect(instance).to.be(); - }); - - it('should have the property optional (base name: "optional")', function() { - // uncomment below and update the code to test the property optional - //var instane = new KubernetesJsClient.V1SecretProjection(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1SecretVolumeSource.spec.js b/kubernetes/test/model/V1SecretVolumeSource.spec.js deleted file mode 100644 index ffe6c42c4d..0000000000 --- a/kubernetes/test/model/V1SecretVolumeSource.spec.js +++ /dev/null @@ -1,83 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1SecretVolumeSource(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1SecretVolumeSource', function() { - it('should create an instance of V1SecretVolumeSource', function() { - // uncomment below and update the code to test V1SecretVolumeSource - //var instane = new KubernetesJsClient.V1SecretVolumeSource(); - //expect(instance).to.be.a(KubernetesJsClient.V1SecretVolumeSource); - }); - - it('should have the property defaultMode (base name: "defaultMode")', function() { - // uncomment below and update the code to test the property defaultMode - //var instane = new KubernetesJsClient.V1SecretVolumeSource(); - //expect(instance).to.be(); - }); - - it('should have the property items (base name: "items")', function() { - // uncomment below and update the code to test the property items - //var instane = new KubernetesJsClient.V1SecretVolumeSource(); - //expect(instance).to.be(); - }); - - it('should have the property optional (base name: "optional")', function() { - // uncomment below and update the code to test the property optional - //var instane = new KubernetesJsClient.V1SecretVolumeSource(); - //expect(instance).to.be(); - }); - - it('should have the property secretName (base name: "secretName")', function() { - // uncomment below and update the code to test the property secretName - //var instane = new KubernetesJsClient.V1SecretVolumeSource(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1SecurityContext.spec.js b/kubernetes/test/model/V1SecurityContext.spec.js deleted file mode 100644 index 03baaa0b7d..0000000000 --- a/kubernetes/test/model/V1SecurityContext.spec.js +++ /dev/null @@ -1,95 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1SecurityContext(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1SecurityContext', function() { - it('should create an instance of V1SecurityContext', function() { - // uncomment below and update the code to test V1SecurityContext - //var instane = new KubernetesJsClient.V1SecurityContext(); - //expect(instance).to.be.a(KubernetesJsClient.V1SecurityContext); - }); - - it('should have the property capabilities (base name: "capabilities")', function() { - // uncomment below and update the code to test the property capabilities - //var instane = new KubernetesJsClient.V1SecurityContext(); - //expect(instance).to.be(); - }); - - it('should have the property privileged (base name: "privileged")', function() { - // uncomment below and update the code to test the property privileged - //var instane = new KubernetesJsClient.V1SecurityContext(); - //expect(instance).to.be(); - }); - - it('should have the property readOnlyRootFilesystem (base name: "readOnlyRootFilesystem")', function() { - // uncomment below and update the code to test the property readOnlyRootFilesystem - //var instane = new KubernetesJsClient.V1SecurityContext(); - //expect(instance).to.be(); - }); - - it('should have the property runAsNonRoot (base name: "runAsNonRoot")', function() { - // uncomment below and update the code to test the property runAsNonRoot - //var instane = new KubernetesJsClient.V1SecurityContext(); - //expect(instance).to.be(); - }); - - it('should have the property runAsUser (base name: "runAsUser")', function() { - // uncomment below and update the code to test the property runAsUser - //var instane = new KubernetesJsClient.V1SecurityContext(); - //expect(instance).to.be(); - }); - - it('should have the property seLinuxOptions (base name: "seLinuxOptions")', function() { - // uncomment below and update the code to test the property seLinuxOptions - //var instane = new KubernetesJsClient.V1SecurityContext(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1SelfSubjectAccessReview.spec.js b/kubernetes/test/model/V1SelfSubjectAccessReview.spec.js deleted file mode 100644 index ada1254d0f..0000000000 --- a/kubernetes/test/model/V1SelfSubjectAccessReview.spec.js +++ /dev/null @@ -1,89 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1SelfSubjectAccessReview(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1SelfSubjectAccessReview', function() { - it('should create an instance of V1SelfSubjectAccessReview', function() { - // uncomment below and update the code to test V1SelfSubjectAccessReview - //var instane = new KubernetesJsClient.V1SelfSubjectAccessReview(); - //expect(instance).to.be.a(KubernetesJsClient.V1SelfSubjectAccessReview); - }); - - it('should have the property apiVersion (base name: "apiVersion")', function() { - // uncomment below and update the code to test the property apiVersion - //var instane = new KubernetesJsClient.V1SelfSubjectAccessReview(); - //expect(instance).to.be(); - }); - - it('should have the property kind (base name: "kind")', function() { - // uncomment below and update the code to test the property kind - //var instane = new KubernetesJsClient.V1SelfSubjectAccessReview(); - //expect(instance).to.be(); - }); - - it('should have the property metadata (base name: "metadata")', function() { - // uncomment below and update the code to test the property metadata - //var instane = new KubernetesJsClient.V1SelfSubjectAccessReview(); - //expect(instance).to.be(); - }); - - it('should have the property spec (base name: "spec")', function() { - // uncomment below and update the code to test the property spec - //var instane = new KubernetesJsClient.V1SelfSubjectAccessReview(); - //expect(instance).to.be(); - }); - - it('should have the property status (base name: "status")', function() { - // uncomment below and update the code to test the property status - //var instane = new KubernetesJsClient.V1SelfSubjectAccessReview(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1SelfSubjectAccessReviewSpec.spec.js b/kubernetes/test/model/V1SelfSubjectAccessReviewSpec.spec.js deleted file mode 100644 index 7ca7a48d02..0000000000 --- a/kubernetes/test/model/V1SelfSubjectAccessReviewSpec.spec.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1SelfSubjectAccessReviewSpec(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1SelfSubjectAccessReviewSpec', function() { - it('should create an instance of V1SelfSubjectAccessReviewSpec', function() { - // uncomment below and update the code to test V1SelfSubjectAccessReviewSpec - //var instane = new KubernetesJsClient.V1SelfSubjectAccessReviewSpec(); - //expect(instance).to.be.a(KubernetesJsClient.V1SelfSubjectAccessReviewSpec); - }); - - it('should have the property nonResourceAttributes (base name: "nonResourceAttributes")', function() { - // uncomment below and update the code to test the property nonResourceAttributes - //var instane = new KubernetesJsClient.V1SelfSubjectAccessReviewSpec(); - //expect(instance).to.be(); - }); - - it('should have the property resourceAttributes (base name: "resourceAttributes")', function() { - // uncomment below and update the code to test the property resourceAttributes - //var instane = new KubernetesJsClient.V1SelfSubjectAccessReviewSpec(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1ServerAddressByClientCIDR.spec.js b/kubernetes/test/model/V1ServerAddressByClientCIDR.spec.js deleted file mode 100644 index 9810599a1e..0000000000 --- a/kubernetes/test/model/V1ServerAddressByClientCIDR.spec.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1ServerAddressByClientCIDR(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1ServerAddressByClientCIDR', function() { - it('should create an instance of V1ServerAddressByClientCIDR', function() { - // uncomment below and update the code to test V1ServerAddressByClientCIDR - //var instane = new KubernetesJsClient.V1ServerAddressByClientCIDR(); - //expect(instance).to.be.a(KubernetesJsClient.V1ServerAddressByClientCIDR); - }); - - it('should have the property clientCIDR (base name: "clientCIDR")', function() { - // uncomment below and update the code to test the property clientCIDR - //var instane = new KubernetesJsClient.V1ServerAddressByClientCIDR(); - //expect(instance).to.be(); - }); - - it('should have the property serverAddress (base name: "serverAddress")', function() { - // uncomment below and update the code to test the property serverAddress - //var instane = new KubernetesJsClient.V1ServerAddressByClientCIDR(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1Service.spec.js b/kubernetes/test/model/V1Service.spec.js deleted file mode 100644 index 177a855411..0000000000 --- a/kubernetes/test/model/V1Service.spec.js +++ /dev/null @@ -1,89 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1Service(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1Service', function() { - it('should create an instance of V1Service', function() { - // uncomment below and update the code to test V1Service - //var instane = new KubernetesJsClient.V1Service(); - //expect(instance).to.be.a(KubernetesJsClient.V1Service); - }); - - it('should have the property apiVersion (base name: "apiVersion")', function() { - // uncomment below and update the code to test the property apiVersion - //var instane = new KubernetesJsClient.V1Service(); - //expect(instance).to.be(); - }); - - it('should have the property kind (base name: "kind")', function() { - // uncomment below and update the code to test the property kind - //var instane = new KubernetesJsClient.V1Service(); - //expect(instance).to.be(); - }); - - it('should have the property metadata (base name: "metadata")', function() { - // uncomment below and update the code to test the property metadata - //var instane = new KubernetesJsClient.V1Service(); - //expect(instance).to.be(); - }); - - it('should have the property spec (base name: "spec")', function() { - // uncomment below and update the code to test the property spec - //var instane = new KubernetesJsClient.V1Service(); - //expect(instance).to.be(); - }); - - it('should have the property status (base name: "status")', function() { - // uncomment below and update the code to test the property status - //var instane = new KubernetesJsClient.V1Service(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1ServiceAccount.spec.js b/kubernetes/test/model/V1ServiceAccount.spec.js deleted file mode 100644 index 9d97b53047..0000000000 --- a/kubernetes/test/model/V1ServiceAccount.spec.js +++ /dev/null @@ -1,95 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1ServiceAccount(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1ServiceAccount', function() { - it('should create an instance of V1ServiceAccount', function() { - // uncomment below and update the code to test V1ServiceAccount - //var instane = new KubernetesJsClient.V1ServiceAccount(); - //expect(instance).to.be.a(KubernetesJsClient.V1ServiceAccount); - }); - - it('should have the property apiVersion (base name: "apiVersion")', function() { - // uncomment below and update the code to test the property apiVersion - //var instane = new KubernetesJsClient.V1ServiceAccount(); - //expect(instance).to.be(); - }); - - it('should have the property automountServiceAccountToken (base name: "automountServiceAccountToken")', function() { - // uncomment below and update the code to test the property automountServiceAccountToken - //var instane = new KubernetesJsClient.V1ServiceAccount(); - //expect(instance).to.be(); - }); - - it('should have the property imagePullSecrets (base name: "imagePullSecrets")', function() { - // uncomment below and update the code to test the property imagePullSecrets - //var instane = new KubernetesJsClient.V1ServiceAccount(); - //expect(instance).to.be(); - }); - - it('should have the property kind (base name: "kind")', function() { - // uncomment below and update the code to test the property kind - //var instane = new KubernetesJsClient.V1ServiceAccount(); - //expect(instance).to.be(); - }); - - it('should have the property metadata (base name: "metadata")', function() { - // uncomment below and update the code to test the property metadata - //var instane = new KubernetesJsClient.V1ServiceAccount(); - //expect(instance).to.be(); - }); - - it('should have the property secrets (base name: "secrets")', function() { - // uncomment below and update the code to test the property secrets - //var instane = new KubernetesJsClient.V1ServiceAccount(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1ServiceAccountList.spec.js b/kubernetes/test/model/V1ServiceAccountList.spec.js deleted file mode 100644 index 024d85ba39..0000000000 --- a/kubernetes/test/model/V1ServiceAccountList.spec.js +++ /dev/null @@ -1,83 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1ServiceAccountList(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1ServiceAccountList', function() { - it('should create an instance of V1ServiceAccountList', function() { - // uncomment below and update the code to test V1ServiceAccountList - //var instane = new KubernetesJsClient.V1ServiceAccountList(); - //expect(instance).to.be.a(KubernetesJsClient.V1ServiceAccountList); - }); - - it('should have the property apiVersion (base name: "apiVersion")', function() { - // uncomment below and update the code to test the property apiVersion - //var instane = new KubernetesJsClient.V1ServiceAccountList(); - //expect(instance).to.be(); - }); - - it('should have the property items (base name: "items")', function() { - // uncomment below and update the code to test the property items - //var instane = new KubernetesJsClient.V1ServiceAccountList(); - //expect(instance).to.be(); - }); - - it('should have the property kind (base name: "kind")', function() { - // uncomment below and update the code to test the property kind - //var instane = new KubernetesJsClient.V1ServiceAccountList(); - //expect(instance).to.be(); - }); - - it('should have the property metadata (base name: "metadata")', function() { - // uncomment below and update the code to test the property metadata - //var instane = new KubernetesJsClient.V1ServiceAccountList(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1ServiceList.spec.js b/kubernetes/test/model/V1ServiceList.spec.js deleted file mode 100644 index 1126d4a98a..0000000000 --- a/kubernetes/test/model/V1ServiceList.spec.js +++ /dev/null @@ -1,83 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1ServiceList(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1ServiceList', function() { - it('should create an instance of V1ServiceList', function() { - // uncomment below and update the code to test V1ServiceList - //var instane = new KubernetesJsClient.V1ServiceList(); - //expect(instance).to.be.a(KubernetesJsClient.V1ServiceList); - }); - - it('should have the property apiVersion (base name: "apiVersion")', function() { - // uncomment below and update the code to test the property apiVersion - //var instane = new KubernetesJsClient.V1ServiceList(); - //expect(instance).to.be(); - }); - - it('should have the property items (base name: "items")', function() { - // uncomment below and update the code to test the property items - //var instane = new KubernetesJsClient.V1ServiceList(); - //expect(instance).to.be(); - }); - - it('should have the property kind (base name: "kind")', function() { - // uncomment below and update the code to test the property kind - //var instane = new KubernetesJsClient.V1ServiceList(); - //expect(instance).to.be(); - }); - - it('should have the property metadata (base name: "metadata")', function() { - // uncomment below and update the code to test the property metadata - //var instane = new KubernetesJsClient.V1ServiceList(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1ServicePort.spec.js b/kubernetes/test/model/V1ServicePort.spec.js deleted file mode 100644 index 546d342ac4..0000000000 --- a/kubernetes/test/model/V1ServicePort.spec.js +++ /dev/null @@ -1,89 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1ServicePort(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1ServicePort', function() { - it('should create an instance of V1ServicePort', function() { - // uncomment below and update the code to test V1ServicePort - //var instane = new KubernetesJsClient.V1ServicePort(); - //expect(instance).to.be.a(KubernetesJsClient.V1ServicePort); - }); - - it('should have the property name (base name: "name")', function() { - // uncomment below and update the code to test the property name - //var instane = new KubernetesJsClient.V1ServicePort(); - //expect(instance).to.be(); - }); - - it('should have the property nodePort (base name: "nodePort")', function() { - // uncomment below and update the code to test the property nodePort - //var instane = new KubernetesJsClient.V1ServicePort(); - //expect(instance).to.be(); - }); - - it('should have the property port (base name: "port")', function() { - // uncomment below and update the code to test the property port - //var instane = new KubernetesJsClient.V1ServicePort(); - //expect(instance).to.be(); - }); - - it('should have the property protocol (base name: "protocol")', function() { - // uncomment below and update the code to test the property protocol - //var instane = new KubernetesJsClient.V1ServicePort(); - //expect(instance).to.be(); - }); - - it('should have the property targetPort (base name: "targetPort")', function() { - // uncomment below and update the code to test the property targetPort - //var instane = new KubernetesJsClient.V1ServicePort(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1ServiceSpec.spec.js b/kubernetes/test/model/V1ServiceSpec.spec.js deleted file mode 100644 index d67c30da13..0000000000 --- a/kubernetes/test/model/V1ServiceSpec.spec.js +++ /dev/null @@ -1,119 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1ServiceSpec(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1ServiceSpec', function() { - it('should create an instance of V1ServiceSpec', function() { - // uncomment below and update the code to test V1ServiceSpec - //var instane = new KubernetesJsClient.V1ServiceSpec(); - //expect(instance).to.be.a(KubernetesJsClient.V1ServiceSpec); - }); - - it('should have the property clusterIP (base name: "clusterIP")', function() { - // uncomment below and update the code to test the property clusterIP - //var instane = new KubernetesJsClient.V1ServiceSpec(); - //expect(instance).to.be(); - }); - - it('should have the property deprecatedPublicIPs (base name: "deprecatedPublicIPs")', function() { - // uncomment below and update the code to test the property deprecatedPublicIPs - //var instane = new KubernetesJsClient.V1ServiceSpec(); - //expect(instance).to.be(); - }); - - it('should have the property externalIPs (base name: "externalIPs")', function() { - // uncomment below and update the code to test the property externalIPs - //var instane = new KubernetesJsClient.V1ServiceSpec(); - //expect(instance).to.be(); - }); - - it('should have the property externalName (base name: "externalName")', function() { - // uncomment below and update the code to test the property externalName - //var instane = new KubernetesJsClient.V1ServiceSpec(); - //expect(instance).to.be(); - }); - - it('should have the property loadBalancerIP (base name: "loadBalancerIP")', function() { - // uncomment below and update the code to test the property loadBalancerIP - //var instane = new KubernetesJsClient.V1ServiceSpec(); - //expect(instance).to.be(); - }); - - it('should have the property loadBalancerSourceRanges (base name: "loadBalancerSourceRanges")', function() { - // uncomment below and update the code to test the property loadBalancerSourceRanges - //var instane = new KubernetesJsClient.V1ServiceSpec(); - //expect(instance).to.be(); - }); - - it('should have the property ports (base name: "ports")', function() { - // uncomment below and update the code to test the property ports - //var instane = new KubernetesJsClient.V1ServiceSpec(); - //expect(instance).to.be(); - }); - - it('should have the property selector (base name: "selector")', function() { - // uncomment below and update the code to test the property selector - //var instane = new KubernetesJsClient.V1ServiceSpec(); - //expect(instance).to.be(); - }); - - it('should have the property sessionAffinity (base name: "sessionAffinity")', function() { - // uncomment below and update the code to test the property sessionAffinity - //var instane = new KubernetesJsClient.V1ServiceSpec(); - //expect(instance).to.be(); - }); - - it('should have the property type (base name: "type")', function() { - // uncomment below and update the code to test the property type - //var instane = new KubernetesJsClient.V1ServiceSpec(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1ServiceStatus.spec.js b/kubernetes/test/model/V1ServiceStatus.spec.js deleted file mode 100644 index 40c2c8616f..0000000000 --- a/kubernetes/test/model/V1ServiceStatus.spec.js +++ /dev/null @@ -1,65 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1ServiceStatus(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1ServiceStatus', function() { - it('should create an instance of V1ServiceStatus', function() { - // uncomment below and update the code to test V1ServiceStatus - //var instane = new KubernetesJsClient.V1ServiceStatus(); - //expect(instance).to.be.a(KubernetesJsClient.V1ServiceStatus); - }); - - it('should have the property loadBalancer (base name: "loadBalancer")', function() { - // uncomment below and update the code to test the property loadBalancer - //var instane = new KubernetesJsClient.V1ServiceStatus(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1Status.spec.js b/kubernetes/test/model/V1Status.spec.js deleted file mode 100644 index da45dcbbdc..0000000000 --- a/kubernetes/test/model/V1Status.spec.js +++ /dev/null @@ -1,107 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1Status(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1Status', function() { - it('should create an instance of V1Status', function() { - // uncomment below and update the code to test V1Status - //var instane = new KubernetesJsClient.V1Status(); - //expect(instance).to.be.a(KubernetesJsClient.V1Status); - }); - - it('should have the property apiVersion (base name: "apiVersion")', function() { - // uncomment below and update the code to test the property apiVersion - //var instane = new KubernetesJsClient.V1Status(); - //expect(instance).to.be(); - }); - - it('should have the property code (base name: "code")', function() { - // uncomment below and update the code to test the property code - //var instane = new KubernetesJsClient.V1Status(); - //expect(instance).to.be(); - }); - - it('should have the property details (base name: "details")', function() { - // uncomment below and update the code to test the property details - //var instane = new KubernetesJsClient.V1Status(); - //expect(instance).to.be(); - }); - - it('should have the property kind (base name: "kind")', function() { - // uncomment below and update the code to test the property kind - //var instane = new KubernetesJsClient.V1Status(); - //expect(instance).to.be(); - }); - - it('should have the property message (base name: "message")', function() { - // uncomment below and update the code to test the property message - //var instane = new KubernetesJsClient.V1Status(); - //expect(instance).to.be(); - }); - - it('should have the property metadata (base name: "metadata")', function() { - // uncomment below and update the code to test the property metadata - //var instane = new KubernetesJsClient.V1Status(); - //expect(instance).to.be(); - }); - - it('should have the property reason (base name: "reason")', function() { - // uncomment below and update the code to test the property reason - //var instane = new KubernetesJsClient.V1Status(); - //expect(instance).to.be(); - }); - - it('should have the property status (base name: "status")', function() { - // uncomment below and update the code to test the property status - //var instane = new KubernetesJsClient.V1Status(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1StatusCause.spec.js b/kubernetes/test/model/V1StatusCause.spec.js deleted file mode 100644 index 03fe54466a..0000000000 --- a/kubernetes/test/model/V1StatusCause.spec.js +++ /dev/null @@ -1,77 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1StatusCause(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1StatusCause', function() { - it('should create an instance of V1StatusCause', function() { - // uncomment below and update the code to test V1StatusCause - //var instane = new KubernetesJsClient.V1StatusCause(); - //expect(instance).to.be.a(KubernetesJsClient.V1StatusCause); - }); - - it('should have the property field (base name: "field")', function() { - // uncomment below and update the code to test the property field - //var instane = new KubernetesJsClient.V1StatusCause(); - //expect(instance).to.be(); - }); - - it('should have the property message (base name: "message")', function() { - // uncomment below and update the code to test the property message - //var instane = new KubernetesJsClient.V1StatusCause(); - //expect(instance).to.be(); - }); - - it('should have the property reason (base name: "reason")', function() { - // uncomment below and update the code to test the property reason - //var instane = new KubernetesJsClient.V1StatusCause(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1StatusDetails.spec.js b/kubernetes/test/model/V1StatusDetails.spec.js deleted file mode 100644 index d9f3bfe7fe..0000000000 --- a/kubernetes/test/model/V1StatusDetails.spec.js +++ /dev/null @@ -1,89 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1StatusDetails(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1StatusDetails', function() { - it('should create an instance of V1StatusDetails', function() { - // uncomment below and update the code to test V1StatusDetails - //var instane = new KubernetesJsClient.V1StatusDetails(); - //expect(instance).to.be.a(KubernetesJsClient.V1StatusDetails); - }); - - it('should have the property causes (base name: "causes")', function() { - // uncomment below and update the code to test the property causes - //var instane = new KubernetesJsClient.V1StatusDetails(); - //expect(instance).to.be(); - }); - - it('should have the property group (base name: "group")', function() { - // uncomment below and update the code to test the property group - //var instane = new KubernetesJsClient.V1StatusDetails(); - //expect(instance).to.be(); - }); - - it('should have the property kind (base name: "kind")', function() { - // uncomment below and update the code to test the property kind - //var instane = new KubernetesJsClient.V1StatusDetails(); - //expect(instance).to.be(); - }); - - it('should have the property name (base name: "name")', function() { - // uncomment below and update the code to test the property name - //var instane = new KubernetesJsClient.V1StatusDetails(); - //expect(instance).to.be(); - }); - - it('should have the property retryAfterSeconds (base name: "retryAfterSeconds")', function() { - // uncomment below and update the code to test the property retryAfterSeconds - //var instane = new KubernetesJsClient.V1StatusDetails(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1StorageClass.spec.js b/kubernetes/test/model/V1StorageClass.spec.js deleted file mode 100644 index 795b8a8d1c..0000000000 --- a/kubernetes/test/model/V1StorageClass.spec.js +++ /dev/null @@ -1,89 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1StorageClass(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1StorageClass', function() { - it('should create an instance of V1StorageClass', function() { - // uncomment below and update the code to test V1StorageClass - //var instane = new KubernetesJsClient.V1StorageClass(); - //expect(instance).to.be.a(KubernetesJsClient.V1StorageClass); - }); - - it('should have the property apiVersion (base name: "apiVersion")', function() { - // uncomment below and update the code to test the property apiVersion - //var instane = new KubernetesJsClient.V1StorageClass(); - //expect(instance).to.be(); - }); - - it('should have the property kind (base name: "kind")', function() { - // uncomment below and update the code to test the property kind - //var instane = new KubernetesJsClient.V1StorageClass(); - //expect(instance).to.be(); - }); - - it('should have the property metadata (base name: "metadata")', function() { - // uncomment below and update the code to test the property metadata - //var instane = new KubernetesJsClient.V1StorageClass(); - //expect(instance).to.be(); - }); - - it('should have the property parameters (base name: "parameters")', function() { - // uncomment below and update the code to test the property parameters - //var instane = new KubernetesJsClient.V1StorageClass(); - //expect(instance).to.be(); - }); - - it('should have the property provisioner (base name: "provisioner")', function() { - // uncomment below and update the code to test the property provisioner - //var instane = new KubernetesJsClient.V1StorageClass(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1StorageClassList.spec.js b/kubernetes/test/model/V1StorageClassList.spec.js deleted file mode 100644 index ebc7337eb5..0000000000 --- a/kubernetes/test/model/V1StorageClassList.spec.js +++ /dev/null @@ -1,83 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1StorageClassList(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1StorageClassList', function() { - it('should create an instance of V1StorageClassList', function() { - // uncomment below and update the code to test V1StorageClassList - //var instane = new KubernetesJsClient.V1StorageClassList(); - //expect(instance).to.be.a(KubernetesJsClient.V1StorageClassList); - }); - - it('should have the property apiVersion (base name: "apiVersion")', function() { - // uncomment below and update the code to test the property apiVersion - //var instane = new KubernetesJsClient.V1StorageClassList(); - //expect(instance).to.be(); - }); - - it('should have the property items (base name: "items")', function() { - // uncomment below and update the code to test the property items - //var instane = new KubernetesJsClient.V1StorageClassList(); - //expect(instance).to.be(); - }); - - it('should have the property kind (base name: "kind")', function() { - // uncomment below and update the code to test the property kind - //var instane = new KubernetesJsClient.V1StorageClassList(); - //expect(instance).to.be(); - }); - - it('should have the property metadata (base name: "metadata")', function() { - // uncomment below and update the code to test the property metadata - //var instane = new KubernetesJsClient.V1StorageClassList(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1SubjectAccessReview.spec.js b/kubernetes/test/model/V1SubjectAccessReview.spec.js deleted file mode 100644 index f086436df3..0000000000 --- a/kubernetes/test/model/V1SubjectAccessReview.spec.js +++ /dev/null @@ -1,89 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1SubjectAccessReview(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1SubjectAccessReview', function() { - it('should create an instance of V1SubjectAccessReview', function() { - // uncomment below and update the code to test V1SubjectAccessReview - //var instane = new KubernetesJsClient.V1SubjectAccessReview(); - //expect(instance).to.be.a(KubernetesJsClient.V1SubjectAccessReview); - }); - - it('should have the property apiVersion (base name: "apiVersion")', function() { - // uncomment below and update the code to test the property apiVersion - //var instane = new KubernetesJsClient.V1SubjectAccessReview(); - //expect(instance).to.be(); - }); - - it('should have the property kind (base name: "kind")', function() { - // uncomment below and update the code to test the property kind - //var instane = new KubernetesJsClient.V1SubjectAccessReview(); - //expect(instance).to.be(); - }); - - it('should have the property metadata (base name: "metadata")', function() { - // uncomment below and update the code to test the property metadata - //var instane = new KubernetesJsClient.V1SubjectAccessReview(); - //expect(instance).to.be(); - }); - - it('should have the property spec (base name: "spec")', function() { - // uncomment below and update the code to test the property spec - //var instane = new KubernetesJsClient.V1SubjectAccessReview(); - //expect(instance).to.be(); - }); - - it('should have the property status (base name: "status")', function() { - // uncomment below and update the code to test the property status - //var instane = new KubernetesJsClient.V1SubjectAccessReview(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1SubjectAccessReviewSpec.spec.js b/kubernetes/test/model/V1SubjectAccessReviewSpec.spec.js deleted file mode 100644 index fb1a7ef1cc..0000000000 --- a/kubernetes/test/model/V1SubjectAccessReviewSpec.spec.js +++ /dev/null @@ -1,89 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1SubjectAccessReviewSpec(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1SubjectAccessReviewSpec', function() { - it('should create an instance of V1SubjectAccessReviewSpec', function() { - // uncomment below and update the code to test V1SubjectAccessReviewSpec - //var instane = new KubernetesJsClient.V1SubjectAccessReviewSpec(); - //expect(instance).to.be.a(KubernetesJsClient.V1SubjectAccessReviewSpec); - }); - - it('should have the property extra (base name: "extra")', function() { - // uncomment below and update the code to test the property extra - //var instane = new KubernetesJsClient.V1SubjectAccessReviewSpec(); - //expect(instance).to.be(); - }); - - it('should have the property groups (base name: "groups")', function() { - // uncomment below and update the code to test the property groups - //var instane = new KubernetesJsClient.V1SubjectAccessReviewSpec(); - //expect(instance).to.be(); - }); - - it('should have the property nonResourceAttributes (base name: "nonResourceAttributes")', function() { - // uncomment below and update the code to test the property nonResourceAttributes - //var instane = new KubernetesJsClient.V1SubjectAccessReviewSpec(); - //expect(instance).to.be(); - }); - - it('should have the property resourceAttributes (base name: "resourceAttributes")', function() { - // uncomment below and update the code to test the property resourceAttributes - //var instane = new KubernetesJsClient.V1SubjectAccessReviewSpec(); - //expect(instance).to.be(); - }); - - it('should have the property user (base name: "user")', function() { - // uncomment below and update the code to test the property user - //var instane = new KubernetesJsClient.V1SubjectAccessReviewSpec(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1SubjectAccessReviewStatus.spec.js b/kubernetes/test/model/V1SubjectAccessReviewStatus.spec.js deleted file mode 100644 index c3b0c18690..0000000000 --- a/kubernetes/test/model/V1SubjectAccessReviewStatus.spec.js +++ /dev/null @@ -1,77 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1SubjectAccessReviewStatus(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1SubjectAccessReviewStatus', function() { - it('should create an instance of V1SubjectAccessReviewStatus', function() { - // uncomment below and update the code to test V1SubjectAccessReviewStatus - //var instane = new KubernetesJsClient.V1SubjectAccessReviewStatus(); - //expect(instance).to.be.a(KubernetesJsClient.V1SubjectAccessReviewStatus); - }); - - it('should have the property allowed (base name: "allowed")', function() { - // uncomment below and update the code to test the property allowed - //var instane = new KubernetesJsClient.V1SubjectAccessReviewStatus(); - //expect(instance).to.be(); - }); - - it('should have the property evaluationError (base name: "evaluationError")', function() { - // uncomment below and update the code to test the property evaluationError - //var instane = new KubernetesJsClient.V1SubjectAccessReviewStatus(); - //expect(instance).to.be(); - }); - - it('should have the property reason (base name: "reason")', function() { - // uncomment below and update the code to test the property reason - //var instane = new KubernetesJsClient.V1SubjectAccessReviewStatus(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1TCPSocketAction.spec.js b/kubernetes/test/model/V1TCPSocketAction.spec.js deleted file mode 100644 index b55311b713..0000000000 --- a/kubernetes/test/model/V1TCPSocketAction.spec.js +++ /dev/null @@ -1,65 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1TCPSocketAction(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1TCPSocketAction', function() { - it('should create an instance of V1TCPSocketAction', function() { - // uncomment below and update the code to test V1TCPSocketAction - //var instane = new KubernetesJsClient.V1TCPSocketAction(); - //expect(instance).to.be.a(KubernetesJsClient.V1TCPSocketAction); - }); - - it('should have the property port (base name: "port")', function() { - // uncomment below and update the code to test the property port - //var instane = new KubernetesJsClient.V1TCPSocketAction(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1Taint.spec.js b/kubernetes/test/model/V1Taint.spec.js deleted file mode 100644 index 014bab5b6b..0000000000 --- a/kubernetes/test/model/V1Taint.spec.js +++ /dev/null @@ -1,83 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1Taint(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1Taint', function() { - it('should create an instance of V1Taint', function() { - // uncomment below and update the code to test V1Taint - //var instane = new KubernetesJsClient.V1Taint(); - //expect(instance).to.be.a(KubernetesJsClient.V1Taint); - }); - - it('should have the property effect (base name: "effect")', function() { - // uncomment below and update the code to test the property effect - //var instane = new KubernetesJsClient.V1Taint(); - //expect(instance).to.be(); - }); - - it('should have the property key (base name: "key")', function() { - // uncomment below and update the code to test the property key - //var instane = new KubernetesJsClient.V1Taint(); - //expect(instance).to.be(); - }); - - it('should have the property timeAdded (base name: "timeAdded")', function() { - // uncomment below and update the code to test the property timeAdded - //var instane = new KubernetesJsClient.V1Taint(); - //expect(instance).to.be(); - }); - - it('should have the property value (base name: "value")', function() { - // uncomment below and update the code to test the property value - //var instane = new KubernetesJsClient.V1Taint(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1TokenReview.spec.js b/kubernetes/test/model/V1TokenReview.spec.js deleted file mode 100644 index ab44be2889..0000000000 --- a/kubernetes/test/model/V1TokenReview.spec.js +++ /dev/null @@ -1,89 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1TokenReview(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1TokenReview', function() { - it('should create an instance of V1TokenReview', function() { - // uncomment below and update the code to test V1TokenReview - //var instane = new KubernetesJsClient.V1TokenReview(); - //expect(instance).to.be.a(KubernetesJsClient.V1TokenReview); - }); - - it('should have the property apiVersion (base name: "apiVersion")', function() { - // uncomment below and update the code to test the property apiVersion - //var instane = new KubernetesJsClient.V1TokenReview(); - //expect(instance).to.be(); - }); - - it('should have the property kind (base name: "kind")', function() { - // uncomment below and update the code to test the property kind - //var instane = new KubernetesJsClient.V1TokenReview(); - //expect(instance).to.be(); - }); - - it('should have the property metadata (base name: "metadata")', function() { - // uncomment below and update the code to test the property metadata - //var instane = new KubernetesJsClient.V1TokenReview(); - //expect(instance).to.be(); - }); - - it('should have the property spec (base name: "spec")', function() { - // uncomment below and update the code to test the property spec - //var instane = new KubernetesJsClient.V1TokenReview(); - //expect(instance).to.be(); - }); - - it('should have the property status (base name: "status")', function() { - // uncomment below and update the code to test the property status - //var instane = new KubernetesJsClient.V1TokenReview(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1TokenReviewSpec.spec.js b/kubernetes/test/model/V1TokenReviewSpec.spec.js deleted file mode 100644 index 3a6e216cfe..0000000000 --- a/kubernetes/test/model/V1TokenReviewSpec.spec.js +++ /dev/null @@ -1,65 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1TokenReviewSpec(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1TokenReviewSpec', function() { - it('should create an instance of V1TokenReviewSpec', function() { - // uncomment below and update the code to test V1TokenReviewSpec - //var instane = new KubernetesJsClient.V1TokenReviewSpec(); - //expect(instance).to.be.a(KubernetesJsClient.V1TokenReviewSpec); - }); - - it('should have the property token (base name: "token")', function() { - // uncomment below and update the code to test the property token - //var instane = new KubernetesJsClient.V1TokenReviewSpec(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1TokenReviewStatus.spec.js b/kubernetes/test/model/V1TokenReviewStatus.spec.js deleted file mode 100644 index b683f46aba..0000000000 --- a/kubernetes/test/model/V1TokenReviewStatus.spec.js +++ /dev/null @@ -1,77 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1TokenReviewStatus(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1TokenReviewStatus', function() { - it('should create an instance of V1TokenReviewStatus', function() { - // uncomment below and update the code to test V1TokenReviewStatus - //var instane = new KubernetesJsClient.V1TokenReviewStatus(); - //expect(instance).to.be.a(KubernetesJsClient.V1TokenReviewStatus); - }); - - it('should have the property authenticated (base name: "authenticated")', function() { - // uncomment below and update the code to test the property authenticated - //var instane = new KubernetesJsClient.V1TokenReviewStatus(); - //expect(instance).to.be(); - }); - - it('should have the property error (base name: "error")', function() { - // uncomment below and update the code to test the property error - //var instane = new KubernetesJsClient.V1TokenReviewStatus(); - //expect(instance).to.be(); - }); - - it('should have the property user (base name: "user")', function() { - // uncomment below and update the code to test the property user - //var instane = new KubernetesJsClient.V1TokenReviewStatus(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1Toleration.spec.js b/kubernetes/test/model/V1Toleration.spec.js deleted file mode 100644 index 9903f84fbd..0000000000 --- a/kubernetes/test/model/V1Toleration.spec.js +++ /dev/null @@ -1,89 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1Toleration(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1Toleration', function() { - it('should create an instance of V1Toleration', function() { - // uncomment below and update the code to test V1Toleration - //var instane = new KubernetesJsClient.V1Toleration(); - //expect(instance).to.be.a(KubernetesJsClient.V1Toleration); - }); - - it('should have the property effect (base name: "effect")', function() { - // uncomment below and update the code to test the property effect - //var instane = new KubernetesJsClient.V1Toleration(); - //expect(instance).to.be(); - }); - - it('should have the property key (base name: "key")', function() { - // uncomment below and update the code to test the property key - //var instane = new KubernetesJsClient.V1Toleration(); - //expect(instance).to.be(); - }); - - it('should have the property operator (base name: "operator")', function() { - // uncomment below and update the code to test the property operator - //var instane = new KubernetesJsClient.V1Toleration(); - //expect(instance).to.be(); - }); - - it('should have the property tolerationSeconds (base name: "tolerationSeconds")', function() { - // uncomment below and update the code to test the property tolerationSeconds - //var instane = new KubernetesJsClient.V1Toleration(); - //expect(instance).to.be(); - }); - - it('should have the property value (base name: "value")', function() { - // uncomment below and update the code to test the property value - //var instane = new KubernetesJsClient.V1Toleration(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1UserInfo.spec.js b/kubernetes/test/model/V1UserInfo.spec.js deleted file mode 100644 index ad0f6828ed..0000000000 --- a/kubernetes/test/model/V1UserInfo.spec.js +++ /dev/null @@ -1,83 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1UserInfo(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1UserInfo', function() { - it('should create an instance of V1UserInfo', function() { - // uncomment below and update the code to test V1UserInfo - //var instane = new KubernetesJsClient.V1UserInfo(); - //expect(instance).to.be.a(KubernetesJsClient.V1UserInfo); - }); - - it('should have the property extra (base name: "extra")', function() { - // uncomment below and update the code to test the property extra - //var instane = new KubernetesJsClient.V1UserInfo(); - //expect(instance).to.be(); - }); - - it('should have the property groups (base name: "groups")', function() { - // uncomment below and update the code to test the property groups - //var instane = new KubernetesJsClient.V1UserInfo(); - //expect(instance).to.be(); - }); - - it('should have the property uid (base name: "uid")', function() { - // uncomment below and update the code to test the property uid - //var instane = new KubernetesJsClient.V1UserInfo(); - //expect(instance).to.be(); - }); - - it('should have the property username (base name: "username")', function() { - // uncomment below and update the code to test the property username - //var instane = new KubernetesJsClient.V1UserInfo(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1Volume.spec.js b/kubernetes/test/model/V1Volume.spec.js deleted file mode 100644 index 87f43e2bc2..0000000000 --- a/kubernetes/test/model/V1Volume.spec.js +++ /dev/null @@ -1,221 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1Volume(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1Volume', function() { - it('should create an instance of V1Volume', function() { - // uncomment below and update the code to test V1Volume - //var instane = new KubernetesJsClient.V1Volume(); - //expect(instance).to.be.a(KubernetesJsClient.V1Volume); - }); - - it('should have the property awsElasticBlockStore (base name: "awsElasticBlockStore")', function() { - // uncomment below and update the code to test the property awsElasticBlockStore - //var instane = new KubernetesJsClient.V1Volume(); - //expect(instance).to.be(); - }); - - it('should have the property azureDisk (base name: "azureDisk")', function() { - // uncomment below and update the code to test the property azureDisk - //var instane = new KubernetesJsClient.V1Volume(); - //expect(instance).to.be(); - }); - - it('should have the property azureFile (base name: "azureFile")', function() { - // uncomment below and update the code to test the property azureFile - //var instane = new KubernetesJsClient.V1Volume(); - //expect(instance).to.be(); - }); - - it('should have the property cephfs (base name: "cephfs")', function() { - // uncomment below and update the code to test the property cephfs - //var instane = new KubernetesJsClient.V1Volume(); - //expect(instance).to.be(); - }); - - it('should have the property cinder (base name: "cinder")', function() { - // uncomment below and update the code to test the property cinder - //var instane = new KubernetesJsClient.V1Volume(); - //expect(instance).to.be(); - }); - - it('should have the property configMap (base name: "configMap")', function() { - // uncomment below and update the code to test the property configMap - //var instane = new KubernetesJsClient.V1Volume(); - //expect(instance).to.be(); - }); - - it('should have the property downwardAPI (base name: "downwardAPI")', function() { - // uncomment below and update the code to test the property downwardAPI - //var instane = new KubernetesJsClient.V1Volume(); - //expect(instance).to.be(); - }); - - it('should have the property emptyDir (base name: "emptyDir")', function() { - // uncomment below and update the code to test the property emptyDir - //var instane = new KubernetesJsClient.V1Volume(); - //expect(instance).to.be(); - }); - - it('should have the property fc (base name: "fc")', function() { - // uncomment below and update the code to test the property fc - //var instane = new KubernetesJsClient.V1Volume(); - //expect(instance).to.be(); - }); - - it('should have the property flexVolume (base name: "flexVolume")', function() { - // uncomment below and update the code to test the property flexVolume - //var instane = new KubernetesJsClient.V1Volume(); - //expect(instance).to.be(); - }); - - it('should have the property flocker (base name: "flocker")', function() { - // uncomment below and update the code to test the property flocker - //var instane = new KubernetesJsClient.V1Volume(); - //expect(instance).to.be(); - }); - - it('should have the property gcePersistentDisk (base name: "gcePersistentDisk")', function() { - // uncomment below and update the code to test the property gcePersistentDisk - //var instane = new KubernetesJsClient.V1Volume(); - //expect(instance).to.be(); - }); - - it('should have the property gitRepo (base name: "gitRepo")', function() { - // uncomment below and update the code to test the property gitRepo - //var instane = new KubernetesJsClient.V1Volume(); - //expect(instance).to.be(); - }); - - it('should have the property glusterfs (base name: "glusterfs")', function() { - // uncomment below and update the code to test the property glusterfs - //var instane = new KubernetesJsClient.V1Volume(); - //expect(instance).to.be(); - }); - - it('should have the property hostPath (base name: "hostPath")', function() { - // uncomment below and update the code to test the property hostPath - //var instane = new KubernetesJsClient.V1Volume(); - //expect(instance).to.be(); - }); - - it('should have the property iscsi (base name: "iscsi")', function() { - // uncomment below and update the code to test the property iscsi - //var instane = new KubernetesJsClient.V1Volume(); - //expect(instance).to.be(); - }); - - it('should have the property name (base name: "name")', function() { - // uncomment below and update the code to test the property name - //var instane = new KubernetesJsClient.V1Volume(); - //expect(instance).to.be(); - }); - - it('should have the property nfs (base name: "nfs")', function() { - // uncomment below and update the code to test the property nfs - //var instane = new KubernetesJsClient.V1Volume(); - //expect(instance).to.be(); - }); - - it('should have the property persistentVolumeClaim (base name: "persistentVolumeClaim")', function() { - // uncomment below and update the code to test the property persistentVolumeClaim - //var instane = new KubernetesJsClient.V1Volume(); - //expect(instance).to.be(); - }); - - it('should have the property photonPersistentDisk (base name: "photonPersistentDisk")', function() { - // uncomment below and update the code to test the property photonPersistentDisk - //var instane = new KubernetesJsClient.V1Volume(); - //expect(instance).to.be(); - }); - - it('should have the property portworxVolume (base name: "portworxVolume")', function() { - // uncomment below and update the code to test the property portworxVolume - //var instane = new KubernetesJsClient.V1Volume(); - //expect(instance).to.be(); - }); - - it('should have the property projected (base name: "projected")', function() { - // uncomment below and update the code to test the property projected - //var instane = new KubernetesJsClient.V1Volume(); - //expect(instance).to.be(); - }); - - it('should have the property quobyte (base name: "quobyte")', function() { - // uncomment below and update the code to test the property quobyte - //var instane = new KubernetesJsClient.V1Volume(); - //expect(instance).to.be(); - }); - - it('should have the property rbd (base name: "rbd")', function() { - // uncomment below and update the code to test the property rbd - //var instane = new KubernetesJsClient.V1Volume(); - //expect(instance).to.be(); - }); - - it('should have the property scaleIO (base name: "scaleIO")', function() { - // uncomment below and update the code to test the property scaleIO - //var instane = new KubernetesJsClient.V1Volume(); - //expect(instance).to.be(); - }); - - it('should have the property secret (base name: "secret")', function() { - // uncomment below and update the code to test the property secret - //var instane = new KubernetesJsClient.V1Volume(); - //expect(instance).to.be(); - }); - - it('should have the property vsphereVolume (base name: "vsphereVolume")', function() { - // uncomment below and update the code to test the property vsphereVolume - //var instane = new KubernetesJsClient.V1Volume(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1VolumeMount.spec.js b/kubernetes/test/model/V1VolumeMount.spec.js deleted file mode 100644 index d307f0d934..0000000000 --- a/kubernetes/test/model/V1VolumeMount.spec.js +++ /dev/null @@ -1,83 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1VolumeMount(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1VolumeMount', function() { - it('should create an instance of V1VolumeMount', function() { - // uncomment below and update the code to test V1VolumeMount - //var instane = new KubernetesJsClient.V1VolumeMount(); - //expect(instance).to.be.a(KubernetesJsClient.V1VolumeMount); - }); - - it('should have the property mountPath (base name: "mountPath")', function() { - // uncomment below and update the code to test the property mountPath - //var instane = new KubernetesJsClient.V1VolumeMount(); - //expect(instance).to.be(); - }); - - it('should have the property name (base name: "name")', function() { - // uncomment below and update the code to test the property name - //var instane = new KubernetesJsClient.V1VolumeMount(); - //expect(instance).to.be(); - }); - - it('should have the property readOnly (base name: "readOnly")', function() { - // uncomment below and update the code to test the property readOnly - //var instane = new KubernetesJsClient.V1VolumeMount(); - //expect(instance).to.be(); - }); - - it('should have the property subPath (base name: "subPath")', function() { - // uncomment below and update the code to test the property subPath - //var instane = new KubernetesJsClient.V1VolumeMount(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1VolumeProjection.spec.js b/kubernetes/test/model/V1VolumeProjection.spec.js deleted file mode 100644 index 96a58a5c27..0000000000 --- a/kubernetes/test/model/V1VolumeProjection.spec.js +++ /dev/null @@ -1,77 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1VolumeProjection(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1VolumeProjection', function() { - it('should create an instance of V1VolumeProjection', function() { - // uncomment below and update the code to test V1VolumeProjection - //var instane = new KubernetesJsClient.V1VolumeProjection(); - //expect(instance).to.be.a(KubernetesJsClient.V1VolumeProjection); - }); - - it('should have the property configMap (base name: "configMap")', function() { - // uncomment below and update the code to test the property configMap - //var instane = new KubernetesJsClient.V1VolumeProjection(); - //expect(instance).to.be(); - }); - - it('should have the property downwardAPI (base name: "downwardAPI")', function() { - // uncomment below and update the code to test the property downwardAPI - //var instane = new KubernetesJsClient.V1VolumeProjection(); - //expect(instance).to.be(); - }); - - it('should have the property secret (base name: "secret")', function() { - // uncomment below and update the code to test the property secret - //var instane = new KubernetesJsClient.V1VolumeProjection(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1VsphereVirtualDiskVolumeSource.spec.js b/kubernetes/test/model/V1VsphereVirtualDiskVolumeSource.spec.js deleted file mode 100644 index 690a26fbc7..0000000000 --- a/kubernetes/test/model/V1VsphereVirtualDiskVolumeSource.spec.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1VsphereVirtualDiskVolumeSource(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1VsphereVirtualDiskVolumeSource', function() { - it('should create an instance of V1VsphereVirtualDiskVolumeSource', function() { - // uncomment below and update the code to test V1VsphereVirtualDiskVolumeSource - //var instane = new KubernetesJsClient.V1VsphereVirtualDiskVolumeSource(); - //expect(instance).to.be.a(KubernetesJsClient.V1VsphereVirtualDiskVolumeSource); - }); - - it('should have the property fsType (base name: "fsType")', function() { - // uncomment below and update the code to test the property fsType - //var instane = new KubernetesJsClient.V1VsphereVirtualDiskVolumeSource(); - //expect(instance).to.be(); - }); - - it('should have the property volumePath (base name: "volumePath")', function() { - // uncomment below and update the code to test the property volumePath - //var instane = new KubernetesJsClient.V1VsphereVirtualDiskVolumeSource(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1WatchEvent.spec.js b/kubernetes/test/model/V1WatchEvent.spec.js deleted file mode 100644 index 6392bae9f7..0000000000 --- a/kubernetes/test/model/V1WatchEvent.spec.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1WatchEvent(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1WatchEvent', function() { - it('should create an instance of V1WatchEvent', function() { - // uncomment below and update the code to test V1WatchEvent - //var instane = new KubernetesJsClient.V1WatchEvent(); - //expect(instance).to.be.a(KubernetesJsClient.V1WatchEvent); - }); - - it('should have the property _object (base name: "object")', function() { - // uncomment below and update the code to test the property _object - //var instane = new KubernetesJsClient.V1WatchEvent(); - //expect(instance).to.be(); - }); - - it('should have the property type (base name: "type")', function() { - // uncomment below and update the code to test the property type - //var instane = new KubernetesJsClient.V1WatchEvent(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1WeightedPodAffinityTerm.spec.js b/kubernetes/test/model/V1WeightedPodAffinityTerm.spec.js deleted file mode 100644 index a034b5ac51..0000000000 --- a/kubernetes/test/model/V1WeightedPodAffinityTerm.spec.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1WeightedPodAffinityTerm(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1WeightedPodAffinityTerm', function() { - it('should create an instance of V1WeightedPodAffinityTerm', function() { - // uncomment below and update the code to test V1WeightedPodAffinityTerm - //var instane = new KubernetesJsClient.V1WeightedPodAffinityTerm(); - //expect(instance).to.be.a(KubernetesJsClient.V1WeightedPodAffinityTerm); - }); - - it('should have the property podAffinityTerm (base name: "podAffinityTerm")', function() { - // uncomment below and update the code to test the property podAffinityTerm - //var instane = new KubernetesJsClient.V1WeightedPodAffinityTerm(); - //expect(instance).to.be(); - }); - - it('should have the property weight (base name: "weight")', function() { - // uncomment below and update the code to test the property weight - //var instane = new KubernetesJsClient.V1WeightedPodAffinityTerm(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1alpha1ClusterRole.spec.js b/kubernetes/test/model/V1alpha1ClusterRole.spec.js deleted file mode 100644 index 10bb5c71b4..0000000000 --- a/kubernetes/test/model/V1alpha1ClusterRole.spec.js +++ /dev/null @@ -1,83 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1alpha1ClusterRole(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1alpha1ClusterRole', function() { - it('should create an instance of V1alpha1ClusterRole', function() { - // uncomment below and update the code to test V1alpha1ClusterRole - //var instane = new KubernetesJsClient.V1alpha1ClusterRole(); - //expect(instance).to.be.a(KubernetesJsClient.V1alpha1ClusterRole); - }); - - it('should have the property apiVersion (base name: "apiVersion")', function() { - // uncomment below and update the code to test the property apiVersion - //var instane = new KubernetesJsClient.V1alpha1ClusterRole(); - //expect(instance).to.be(); - }); - - it('should have the property kind (base name: "kind")', function() { - // uncomment below and update the code to test the property kind - //var instane = new KubernetesJsClient.V1alpha1ClusterRole(); - //expect(instance).to.be(); - }); - - it('should have the property metadata (base name: "metadata")', function() { - // uncomment below and update the code to test the property metadata - //var instane = new KubernetesJsClient.V1alpha1ClusterRole(); - //expect(instance).to.be(); - }); - - it('should have the property rules (base name: "rules")', function() { - // uncomment below and update the code to test the property rules - //var instane = new KubernetesJsClient.V1alpha1ClusterRole(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1alpha1ClusterRoleBinding.spec.js b/kubernetes/test/model/V1alpha1ClusterRoleBinding.spec.js deleted file mode 100644 index 9198e1cb91..0000000000 --- a/kubernetes/test/model/V1alpha1ClusterRoleBinding.spec.js +++ /dev/null @@ -1,89 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1alpha1ClusterRoleBinding(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1alpha1ClusterRoleBinding', function() { - it('should create an instance of V1alpha1ClusterRoleBinding', function() { - // uncomment below and update the code to test V1alpha1ClusterRoleBinding - //var instane = new KubernetesJsClient.V1alpha1ClusterRoleBinding(); - //expect(instance).to.be.a(KubernetesJsClient.V1alpha1ClusterRoleBinding); - }); - - it('should have the property apiVersion (base name: "apiVersion")', function() { - // uncomment below and update the code to test the property apiVersion - //var instane = new KubernetesJsClient.V1alpha1ClusterRoleBinding(); - //expect(instance).to.be(); - }); - - it('should have the property kind (base name: "kind")', function() { - // uncomment below and update the code to test the property kind - //var instane = new KubernetesJsClient.V1alpha1ClusterRoleBinding(); - //expect(instance).to.be(); - }); - - it('should have the property metadata (base name: "metadata")', function() { - // uncomment below and update the code to test the property metadata - //var instane = new KubernetesJsClient.V1alpha1ClusterRoleBinding(); - //expect(instance).to.be(); - }); - - it('should have the property roleRef (base name: "roleRef")', function() { - // uncomment below and update the code to test the property roleRef - //var instane = new KubernetesJsClient.V1alpha1ClusterRoleBinding(); - //expect(instance).to.be(); - }); - - it('should have the property subjects (base name: "subjects")', function() { - // uncomment below and update the code to test the property subjects - //var instane = new KubernetesJsClient.V1alpha1ClusterRoleBinding(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1alpha1ClusterRoleBindingList.spec.js b/kubernetes/test/model/V1alpha1ClusterRoleBindingList.spec.js deleted file mode 100644 index 9cc33c3d11..0000000000 --- a/kubernetes/test/model/V1alpha1ClusterRoleBindingList.spec.js +++ /dev/null @@ -1,83 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1alpha1ClusterRoleBindingList(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1alpha1ClusterRoleBindingList', function() { - it('should create an instance of V1alpha1ClusterRoleBindingList', function() { - // uncomment below and update the code to test V1alpha1ClusterRoleBindingList - //var instane = new KubernetesJsClient.V1alpha1ClusterRoleBindingList(); - //expect(instance).to.be.a(KubernetesJsClient.V1alpha1ClusterRoleBindingList); - }); - - it('should have the property apiVersion (base name: "apiVersion")', function() { - // uncomment below and update the code to test the property apiVersion - //var instane = new KubernetesJsClient.V1alpha1ClusterRoleBindingList(); - //expect(instance).to.be(); - }); - - it('should have the property items (base name: "items")', function() { - // uncomment below and update the code to test the property items - //var instane = new KubernetesJsClient.V1alpha1ClusterRoleBindingList(); - //expect(instance).to.be(); - }); - - it('should have the property kind (base name: "kind")', function() { - // uncomment below and update the code to test the property kind - //var instane = new KubernetesJsClient.V1alpha1ClusterRoleBindingList(); - //expect(instance).to.be(); - }); - - it('should have the property metadata (base name: "metadata")', function() { - // uncomment below and update the code to test the property metadata - //var instane = new KubernetesJsClient.V1alpha1ClusterRoleBindingList(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1alpha1ClusterRoleList.spec.js b/kubernetes/test/model/V1alpha1ClusterRoleList.spec.js deleted file mode 100644 index 5bfe109461..0000000000 --- a/kubernetes/test/model/V1alpha1ClusterRoleList.spec.js +++ /dev/null @@ -1,83 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1alpha1ClusterRoleList(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1alpha1ClusterRoleList', function() { - it('should create an instance of V1alpha1ClusterRoleList', function() { - // uncomment below and update the code to test V1alpha1ClusterRoleList - //var instane = new KubernetesJsClient.V1alpha1ClusterRoleList(); - //expect(instance).to.be.a(KubernetesJsClient.V1alpha1ClusterRoleList); - }); - - it('should have the property apiVersion (base name: "apiVersion")', function() { - // uncomment below and update the code to test the property apiVersion - //var instane = new KubernetesJsClient.V1alpha1ClusterRoleList(); - //expect(instance).to.be(); - }); - - it('should have the property items (base name: "items")', function() { - // uncomment below and update the code to test the property items - //var instane = new KubernetesJsClient.V1alpha1ClusterRoleList(); - //expect(instance).to.be(); - }); - - it('should have the property kind (base name: "kind")', function() { - // uncomment below and update the code to test the property kind - //var instane = new KubernetesJsClient.V1alpha1ClusterRoleList(); - //expect(instance).to.be(); - }); - - it('should have the property metadata (base name: "metadata")', function() { - // uncomment below and update the code to test the property metadata - //var instane = new KubernetesJsClient.V1alpha1ClusterRoleList(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1alpha1PodPreset.spec.js b/kubernetes/test/model/V1alpha1PodPreset.spec.js deleted file mode 100644 index 992601ba18..0000000000 --- a/kubernetes/test/model/V1alpha1PodPreset.spec.js +++ /dev/null @@ -1,83 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1alpha1PodPreset(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1alpha1PodPreset', function() { - it('should create an instance of V1alpha1PodPreset', function() { - // uncomment below and update the code to test V1alpha1PodPreset - //var instane = new KubernetesJsClient.V1alpha1PodPreset(); - //expect(instance).to.be.a(KubernetesJsClient.V1alpha1PodPreset); - }); - - it('should have the property apiVersion (base name: "apiVersion")', function() { - // uncomment below and update the code to test the property apiVersion - //var instane = new KubernetesJsClient.V1alpha1PodPreset(); - //expect(instance).to.be(); - }); - - it('should have the property kind (base name: "kind")', function() { - // uncomment below and update the code to test the property kind - //var instane = new KubernetesJsClient.V1alpha1PodPreset(); - //expect(instance).to.be(); - }); - - it('should have the property metadata (base name: "metadata")', function() { - // uncomment below and update the code to test the property metadata - //var instane = new KubernetesJsClient.V1alpha1PodPreset(); - //expect(instance).to.be(); - }); - - it('should have the property spec (base name: "spec")', function() { - // uncomment below and update the code to test the property spec - //var instane = new KubernetesJsClient.V1alpha1PodPreset(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1alpha1PodPresetList.spec.js b/kubernetes/test/model/V1alpha1PodPresetList.spec.js deleted file mode 100644 index 5b8719e95a..0000000000 --- a/kubernetes/test/model/V1alpha1PodPresetList.spec.js +++ /dev/null @@ -1,83 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1alpha1PodPresetList(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1alpha1PodPresetList', function() { - it('should create an instance of V1alpha1PodPresetList', function() { - // uncomment below and update the code to test V1alpha1PodPresetList - //var instane = new KubernetesJsClient.V1alpha1PodPresetList(); - //expect(instance).to.be.a(KubernetesJsClient.V1alpha1PodPresetList); - }); - - it('should have the property apiVersion (base name: "apiVersion")', function() { - // uncomment below and update the code to test the property apiVersion - //var instane = new KubernetesJsClient.V1alpha1PodPresetList(); - //expect(instance).to.be(); - }); - - it('should have the property items (base name: "items")', function() { - // uncomment below and update the code to test the property items - //var instane = new KubernetesJsClient.V1alpha1PodPresetList(); - //expect(instance).to.be(); - }); - - it('should have the property kind (base name: "kind")', function() { - // uncomment below and update the code to test the property kind - //var instane = new KubernetesJsClient.V1alpha1PodPresetList(); - //expect(instance).to.be(); - }); - - it('should have the property metadata (base name: "metadata")', function() { - // uncomment below and update the code to test the property metadata - //var instane = new KubernetesJsClient.V1alpha1PodPresetList(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1alpha1PodPresetSpec.spec.js b/kubernetes/test/model/V1alpha1PodPresetSpec.spec.js deleted file mode 100644 index 926249e3ea..0000000000 --- a/kubernetes/test/model/V1alpha1PodPresetSpec.spec.js +++ /dev/null @@ -1,89 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1alpha1PodPresetSpec(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1alpha1PodPresetSpec', function() { - it('should create an instance of V1alpha1PodPresetSpec', function() { - // uncomment below and update the code to test V1alpha1PodPresetSpec - //var instane = new KubernetesJsClient.V1alpha1PodPresetSpec(); - //expect(instance).to.be.a(KubernetesJsClient.V1alpha1PodPresetSpec); - }); - - it('should have the property env (base name: "env")', function() { - // uncomment below and update the code to test the property env - //var instane = new KubernetesJsClient.V1alpha1PodPresetSpec(); - //expect(instance).to.be(); - }); - - it('should have the property envFrom (base name: "envFrom")', function() { - // uncomment below and update the code to test the property envFrom - //var instane = new KubernetesJsClient.V1alpha1PodPresetSpec(); - //expect(instance).to.be(); - }); - - it('should have the property selector (base name: "selector")', function() { - // uncomment below and update the code to test the property selector - //var instane = new KubernetesJsClient.V1alpha1PodPresetSpec(); - //expect(instance).to.be(); - }); - - it('should have the property volumeMounts (base name: "volumeMounts")', function() { - // uncomment below and update the code to test the property volumeMounts - //var instane = new KubernetesJsClient.V1alpha1PodPresetSpec(); - //expect(instance).to.be(); - }); - - it('should have the property volumes (base name: "volumes")', function() { - // uncomment below and update the code to test the property volumes - //var instane = new KubernetesJsClient.V1alpha1PodPresetSpec(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1alpha1PolicyRule.spec.js b/kubernetes/test/model/V1alpha1PolicyRule.spec.js deleted file mode 100644 index 55f0f6168b..0000000000 --- a/kubernetes/test/model/V1alpha1PolicyRule.spec.js +++ /dev/null @@ -1,89 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1alpha1PolicyRule(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1alpha1PolicyRule', function() { - it('should create an instance of V1alpha1PolicyRule', function() { - // uncomment below and update the code to test V1alpha1PolicyRule - //var instane = new KubernetesJsClient.V1alpha1PolicyRule(); - //expect(instance).to.be.a(KubernetesJsClient.V1alpha1PolicyRule); - }); - - it('should have the property apiGroups (base name: "apiGroups")', function() { - // uncomment below and update the code to test the property apiGroups - //var instane = new KubernetesJsClient.V1alpha1PolicyRule(); - //expect(instance).to.be(); - }); - - it('should have the property nonResourceURLs (base name: "nonResourceURLs")', function() { - // uncomment below and update the code to test the property nonResourceURLs - //var instane = new KubernetesJsClient.V1alpha1PolicyRule(); - //expect(instance).to.be(); - }); - - it('should have the property resourceNames (base name: "resourceNames")', function() { - // uncomment below and update the code to test the property resourceNames - //var instane = new KubernetesJsClient.V1alpha1PolicyRule(); - //expect(instance).to.be(); - }); - - it('should have the property resources (base name: "resources")', function() { - // uncomment below and update the code to test the property resources - //var instane = new KubernetesJsClient.V1alpha1PolicyRule(); - //expect(instance).to.be(); - }); - - it('should have the property verbs (base name: "verbs")', function() { - // uncomment below and update the code to test the property verbs - //var instane = new KubernetesJsClient.V1alpha1PolicyRule(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1alpha1Role.spec.js b/kubernetes/test/model/V1alpha1Role.spec.js deleted file mode 100644 index 5ca99fab48..0000000000 --- a/kubernetes/test/model/V1alpha1Role.spec.js +++ /dev/null @@ -1,83 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1alpha1Role(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1alpha1Role', function() { - it('should create an instance of V1alpha1Role', function() { - // uncomment below and update the code to test V1alpha1Role - //var instane = new KubernetesJsClient.V1alpha1Role(); - //expect(instance).to.be.a(KubernetesJsClient.V1alpha1Role); - }); - - it('should have the property apiVersion (base name: "apiVersion")', function() { - // uncomment below and update the code to test the property apiVersion - //var instane = new KubernetesJsClient.V1alpha1Role(); - //expect(instance).to.be(); - }); - - it('should have the property kind (base name: "kind")', function() { - // uncomment below and update the code to test the property kind - //var instane = new KubernetesJsClient.V1alpha1Role(); - //expect(instance).to.be(); - }); - - it('should have the property metadata (base name: "metadata")', function() { - // uncomment below and update the code to test the property metadata - //var instane = new KubernetesJsClient.V1alpha1Role(); - //expect(instance).to.be(); - }); - - it('should have the property rules (base name: "rules")', function() { - // uncomment below and update the code to test the property rules - //var instane = new KubernetesJsClient.V1alpha1Role(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1alpha1RoleBinding.spec.js b/kubernetes/test/model/V1alpha1RoleBinding.spec.js deleted file mode 100644 index d64b616e81..0000000000 --- a/kubernetes/test/model/V1alpha1RoleBinding.spec.js +++ /dev/null @@ -1,89 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1alpha1RoleBinding(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1alpha1RoleBinding', function() { - it('should create an instance of V1alpha1RoleBinding', function() { - // uncomment below and update the code to test V1alpha1RoleBinding - //var instane = new KubernetesJsClient.V1alpha1RoleBinding(); - //expect(instance).to.be.a(KubernetesJsClient.V1alpha1RoleBinding); - }); - - it('should have the property apiVersion (base name: "apiVersion")', function() { - // uncomment below and update the code to test the property apiVersion - //var instane = new KubernetesJsClient.V1alpha1RoleBinding(); - //expect(instance).to.be(); - }); - - it('should have the property kind (base name: "kind")', function() { - // uncomment below and update the code to test the property kind - //var instane = new KubernetesJsClient.V1alpha1RoleBinding(); - //expect(instance).to.be(); - }); - - it('should have the property metadata (base name: "metadata")', function() { - // uncomment below and update the code to test the property metadata - //var instane = new KubernetesJsClient.V1alpha1RoleBinding(); - //expect(instance).to.be(); - }); - - it('should have the property roleRef (base name: "roleRef")', function() { - // uncomment below and update the code to test the property roleRef - //var instane = new KubernetesJsClient.V1alpha1RoleBinding(); - //expect(instance).to.be(); - }); - - it('should have the property subjects (base name: "subjects")', function() { - // uncomment below and update the code to test the property subjects - //var instane = new KubernetesJsClient.V1alpha1RoleBinding(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1alpha1RoleBindingList.spec.js b/kubernetes/test/model/V1alpha1RoleBindingList.spec.js deleted file mode 100644 index cca22bbafa..0000000000 --- a/kubernetes/test/model/V1alpha1RoleBindingList.spec.js +++ /dev/null @@ -1,83 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1alpha1RoleBindingList(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1alpha1RoleBindingList', function() { - it('should create an instance of V1alpha1RoleBindingList', function() { - // uncomment below and update the code to test V1alpha1RoleBindingList - //var instane = new KubernetesJsClient.V1alpha1RoleBindingList(); - //expect(instance).to.be.a(KubernetesJsClient.V1alpha1RoleBindingList); - }); - - it('should have the property apiVersion (base name: "apiVersion")', function() { - // uncomment below and update the code to test the property apiVersion - //var instane = new KubernetesJsClient.V1alpha1RoleBindingList(); - //expect(instance).to.be(); - }); - - it('should have the property items (base name: "items")', function() { - // uncomment below and update the code to test the property items - //var instane = new KubernetesJsClient.V1alpha1RoleBindingList(); - //expect(instance).to.be(); - }); - - it('should have the property kind (base name: "kind")', function() { - // uncomment below and update the code to test the property kind - //var instane = new KubernetesJsClient.V1alpha1RoleBindingList(); - //expect(instance).to.be(); - }); - - it('should have the property metadata (base name: "metadata")', function() { - // uncomment below and update the code to test the property metadata - //var instane = new KubernetesJsClient.V1alpha1RoleBindingList(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1alpha1RoleList.spec.js b/kubernetes/test/model/V1alpha1RoleList.spec.js deleted file mode 100644 index d7a563c384..0000000000 --- a/kubernetes/test/model/V1alpha1RoleList.spec.js +++ /dev/null @@ -1,83 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1alpha1RoleList(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1alpha1RoleList', function() { - it('should create an instance of V1alpha1RoleList', function() { - // uncomment below and update the code to test V1alpha1RoleList - //var instane = new KubernetesJsClient.V1alpha1RoleList(); - //expect(instance).to.be.a(KubernetesJsClient.V1alpha1RoleList); - }); - - it('should have the property apiVersion (base name: "apiVersion")', function() { - // uncomment below and update the code to test the property apiVersion - //var instane = new KubernetesJsClient.V1alpha1RoleList(); - //expect(instance).to.be(); - }); - - it('should have the property items (base name: "items")', function() { - // uncomment below and update the code to test the property items - //var instane = new KubernetesJsClient.V1alpha1RoleList(); - //expect(instance).to.be(); - }); - - it('should have the property kind (base name: "kind")', function() { - // uncomment below and update the code to test the property kind - //var instane = new KubernetesJsClient.V1alpha1RoleList(); - //expect(instance).to.be(); - }); - - it('should have the property metadata (base name: "metadata")', function() { - // uncomment below and update the code to test the property metadata - //var instane = new KubernetesJsClient.V1alpha1RoleList(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1alpha1RoleRef.spec.js b/kubernetes/test/model/V1alpha1RoleRef.spec.js deleted file mode 100644 index ed9e10c008..0000000000 --- a/kubernetes/test/model/V1alpha1RoleRef.spec.js +++ /dev/null @@ -1,77 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1alpha1RoleRef(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1alpha1RoleRef', function() { - it('should create an instance of V1alpha1RoleRef', function() { - // uncomment below and update the code to test V1alpha1RoleRef - //var instane = new KubernetesJsClient.V1alpha1RoleRef(); - //expect(instance).to.be.a(KubernetesJsClient.V1alpha1RoleRef); - }); - - it('should have the property apiGroup (base name: "apiGroup")', function() { - // uncomment below and update the code to test the property apiGroup - //var instane = new KubernetesJsClient.V1alpha1RoleRef(); - //expect(instance).to.be(); - }); - - it('should have the property kind (base name: "kind")', function() { - // uncomment below and update the code to test the property kind - //var instane = new KubernetesJsClient.V1alpha1RoleRef(); - //expect(instance).to.be(); - }); - - it('should have the property name (base name: "name")', function() { - // uncomment below and update the code to test the property name - //var instane = new KubernetesJsClient.V1alpha1RoleRef(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1alpha1Subject.spec.js b/kubernetes/test/model/V1alpha1Subject.spec.js deleted file mode 100644 index da519cae99..0000000000 --- a/kubernetes/test/model/V1alpha1Subject.spec.js +++ /dev/null @@ -1,83 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1alpha1Subject(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1alpha1Subject', function() { - it('should create an instance of V1alpha1Subject', function() { - // uncomment below and update the code to test V1alpha1Subject - //var instane = new KubernetesJsClient.V1alpha1Subject(); - //expect(instance).to.be.a(KubernetesJsClient.V1alpha1Subject); - }); - - it('should have the property apiVersion (base name: "apiVersion")', function() { - // uncomment below and update the code to test the property apiVersion - //var instane = new KubernetesJsClient.V1alpha1Subject(); - //expect(instance).to.be(); - }); - - it('should have the property kind (base name: "kind")', function() { - // uncomment below and update the code to test the property kind - //var instane = new KubernetesJsClient.V1alpha1Subject(); - //expect(instance).to.be(); - }); - - it('should have the property name (base name: "name")', function() { - // uncomment below and update the code to test the property name - //var instane = new KubernetesJsClient.V1alpha1Subject(); - //expect(instance).to.be(); - }); - - it('should have the property namespace (base name: "namespace")', function() { - // uncomment below and update the code to test the property namespace - //var instane = new KubernetesJsClient.V1alpha1Subject(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1beta1APIVersion.spec.js b/kubernetes/test/model/V1beta1APIVersion.spec.js deleted file mode 100644 index 634470c73b..0000000000 --- a/kubernetes/test/model/V1beta1APIVersion.spec.js +++ /dev/null @@ -1,65 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1beta1APIVersion(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1beta1APIVersion', function() { - it('should create an instance of V1beta1APIVersion', function() { - // uncomment below and update the code to test V1beta1APIVersion - //var instane = new KubernetesJsClient.V1beta1APIVersion(); - //expect(instance).to.be.a(KubernetesJsClient.V1beta1APIVersion); - }); - - it('should have the property name (base name: "name")', function() { - // uncomment below and update the code to test the property name - //var instane = new KubernetesJsClient.V1beta1APIVersion(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1beta1CertificateSigningRequest.spec.js b/kubernetes/test/model/V1beta1CertificateSigningRequest.spec.js deleted file mode 100644 index e1cc797ac1..0000000000 --- a/kubernetes/test/model/V1beta1CertificateSigningRequest.spec.js +++ /dev/null @@ -1,89 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1beta1CertificateSigningRequest(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1beta1CertificateSigningRequest', function() { - it('should create an instance of V1beta1CertificateSigningRequest', function() { - // uncomment below and update the code to test V1beta1CertificateSigningRequest - //var instane = new KubernetesJsClient.V1beta1CertificateSigningRequest(); - //expect(instance).to.be.a(KubernetesJsClient.V1beta1CertificateSigningRequest); - }); - - it('should have the property apiVersion (base name: "apiVersion")', function() { - // uncomment below and update the code to test the property apiVersion - //var instane = new KubernetesJsClient.V1beta1CertificateSigningRequest(); - //expect(instance).to.be(); - }); - - it('should have the property kind (base name: "kind")', function() { - // uncomment below and update the code to test the property kind - //var instane = new KubernetesJsClient.V1beta1CertificateSigningRequest(); - //expect(instance).to.be(); - }); - - it('should have the property metadata (base name: "metadata")', function() { - // uncomment below and update the code to test the property metadata - //var instane = new KubernetesJsClient.V1beta1CertificateSigningRequest(); - //expect(instance).to.be(); - }); - - it('should have the property spec (base name: "spec")', function() { - // uncomment below and update the code to test the property spec - //var instane = new KubernetesJsClient.V1beta1CertificateSigningRequest(); - //expect(instance).to.be(); - }); - - it('should have the property status (base name: "status")', function() { - // uncomment below and update the code to test the property status - //var instane = new KubernetesJsClient.V1beta1CertificateSigningRequest(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1beta1CertificateSigningRequestCondition.spec.js b/kubernetes/test/model/V1beta1CertificateSigningRequestCondition.spec.js deleted file mode 100644 index e34f826862..0000000000 --- a/kubernetes/test/model/V1beta1CertificateSigningRequestCondition.spec.js +++ /dev/null @@ -1,83 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1beta1CertificateSigningRequestCondition(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1beta1CertificateSigningRequestCondition', function() { - it('should create an instance of V1beta1CertificateSigningRequestCondition', function() { - // uncomment below and update the code to test V1beta1CertificateSigningRequestCondition - //var instane = new KubernetesJsClient.V1beta1CertificateSigningRequestCondition(); - //expect(instance).to.be.a(KubernetesJsClient.V1beta1CertificateSigningRequestCondition); - }); - - it('should have the property lastUpdateTime (base name: "lastUpdateTime")', function() { - // uncomment below and update the code to test the property lastUpdateTime - //var instane = new KubernetesJsClient.V1beta1CertificateSigningRequestCondition(); - //expect(instance).to.be(); - }); - - it('should have the property message (base name: "message")', function() { - // uncomment below and update the code to test the property message - //var instane = new KubernetesJsClient.V1beta1CertificateSigningRequestCondition(); - //expect(instance).to.be(); - }); - - it('should have the property reason (base name: "reason")', function() { - // uncomment below and update the code to test the property reason - //var instane = new KubernetesJsClient.V1beta1CertificateSigningRequestCondition(); - //expect(instance).to.be(); - }); - - it('should have the property type (base name: "type")', function() { - // uncomment below and update the code to test the property type - //var instane = new KubernetesJsClient.V1beta1CertificateSigningRequestCondition(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1beta1CertificateSigningRequestList.spec.js b/kubernetes/test/model/V1beta1CertificateSigningRequestList.spec.js deleted file mode 100644 index a3bead5f64..0000000000 --- a/kubernetes/test/model/V1beta1CertificateSigningRequestList.spec.js +++ /dev/null @@ -1,83 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1beta1CertificateSigningRequestList(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1beta1CertificateSigningRequestList', function() { - it('should create an instance of V1beta1CertificateSigningRequestList', function() { - // uncomment below and update the code to test V1beta1CertificateSigningRequestList - //var instane = new KubernetesJsClient.V1beta1CertificateSigningRequestList(); - //expect(instance).to.be.a(KubernetesJsClient.V1beta1CertificateSigningRequestList); - }); - - it('should have the property apiVersion (base name: "apiVersion")', function() { - // uncomment below and update the code to test the property apiVersion - //var instane = new KubernetesJsClient.V1beta1CertificateSigningRequestList(); - //expect(instance).to.be(); - }); - - it('should have the property items (base name: "items")', function() { - // uncomment below and update the code to test the property items - //var instane = new KubernetesJsClient.V1beta1CertificateSigningRequestList(); - //expect(instance).to.be(); - }); - - it('should have the property kind (base name: "kind")', function() { - // uncomment below and update the code to test the property kind - //var instane = new KubernetesJsClient.V1beta1CertificateSigningRequestList(); - //expect(instance).to.be(); - }); - - it('should have the property metadata (base name: "metadata")', function() { - // uncomment below and update the code to test the property metadata - //var instane = new KubernetesJsClient.V1beta1CertificateSigningRequestList(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1beta1CertificateSigningRequestSpec.spec.js b/kubernetes/test/model/V1beta1CertificateSigningRequestSpec.spec.js deleted file mode 100644 index 2ecb2acd1f..0000000000 --- a/kubernetes/test/model/V1beta1CertificateSigningRequestSpec.spec.js +++ /dev/null @@ -1,95 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1beta1CertificateSigningRequestSpec(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1beta1CertificateSigningRequestSpec', function() { - it('should create an instance of V1beta1CertificateSigningRequestSpec', function() { - // uncomment below and update the code to test V1beta1CertificateSigningRequestSpec - //var instane = new KubernetesJsClient.V1beta1CertificateSigningRequestSpec(); - //expect(instance).to.be.a(KubernetesJsClient.V1beta1CertificateSigningRequestSpec); - }); - - it('should have the property extra (base name: "extra")', function() { - // uncomment below and update the code to test the property extra - //var instane = new KubernetesJsClient.V1beta1CertificateSigningRequestSpec(); - //expect(instance).to.be(); - }); - - it('should have the property groups (base name: "groups")', function() { - // uncomment below and update the code to test the property groups - //var instane = new KubernetesJsClient.V1beta1CertificateSigningRequestSpec(); - //expect(instance).to.be(); - }); - - it('should have the property request (base name: "request")', function() { - // uncomment below and update the code to test the property request - //var instane = new KubernetesJsClient.V1beta1CertificateSigningRequestSpec(); - //expect(instance).to.be(); - }); - - it('should have the property uid (base name: "uid")', function() { - // uncomment below and update the code to test the property uid - //var instane = new KubernetesJsClient.V1beta1CertificateSigningRequestSpec(); - //expect(instance).to.be(); - }); - - it('should have the property usages (base name: "usages")', function() { - // uncomment below and update the code to test the property usages - //var instane = new KubernetesJsClient.V1beta1CertificateSigningRequestSpec(); - //expect(instance).to.be(); - }); - - it('should have the property username (base name: "username")', function() { - // uncomment below and update the code to test the property username - //var instane = new KubernetesJsClient.V1beta1CertificateSigningRequestSpec(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1beta1CertificateSigningRequestStatus.spec.js b/kubernetes/test/model/V1beta1CertificateSigningRequestStatus.spec.js deleted file mode 100644 index 16dc63dde9..0000000000 --- a/kubernetes/test/model/V1beta1CertificateSigningRequestStatus.spec.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1beta1CertificateSigningRequestStatus(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1beta1CertificateSigningRequestStatus', function() { - it('should create an instance of V1beta1CertificateSigningRequestStatus', function() { - // uncomment below and update the code to test V1beta1CertificateSigningRequestStatus - //var instane = new KubernetesJsClient.V1beta1CertificateSigningRequestStatus(); - //expect(instance).to.be.a(KubernetesJsClient.V1beta1CertificateSigningRequestStatus); - }); - - it('should have the property certificate (base name: "certificate")', function() { - // uncomment below and update the code to test the property certificate - //var instane = new KubernetesJsClient.V1beta1CertificateSigningRequestStatus(); - //expect(instance).to.be(); - }); - - it('should have the property conditions (base name: "conditions")', function() { - // uncomment below and update the code to test the property conditions - //var instane = new KubernetesJsClient.V1beta1CertificateSigningRequestStatus(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1beta1ClusterRole.spec.js b/kubernetes/test/model/V1beta1ClusterRole.spec.js deleted file mode 100644 index f8fc7b2f60..0000000000 --- a/kubernetes/test/model/V1beta1ClusterRole.spec.js +++ /dev/null @@ -1,83 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1beta1ClusterRole(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1beta1ClusterRole', function() { - it('should create an instance of V1beta1ClusterRole', function() { - // uncomment below and update the code to test V1beta1ClusterRole - //var instane = new KubernetesJsClient.V1beta1ClusterRole(); - //expect(instance).to.be.a(KubernetesJsClient.V1beta1ClusterRole); - }); - - it('should have the property apiVersion (base name: "apiVersion")', function() { - // uncomment below and update the code to test the property apiVersion - //var instane = new KubernetesJsClient.V1beta1ClusterRole(); - //expect(instance).to.be(); - }); - - it('should have the property kind (base name: "kind")', function() { - // uncomment below and update the code to test the property kind - //var instane = new KubernetesJsClient.V1beta1ClusterRole(); - //expect(instance).to.be(); - }); - - it('should have the property metadata (base name: "metadata")', function() { - // uncomment below and update the code to test the property metadata - //var instane = new KubernetesJsClient.V1beta1ClusterRole(); - //expect(instance).to.be(); - }); - - it('should have the property rules (base name: "rules")', function() { - // uncomment below and update the code to test the property rules - //var instane = new KubernetesJsClient.V1beta1ClusterRole(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1beta1ClusterRoleBinding.spec.js b/kubernetes/test/model/V1beta1ClusterRoleBinding.spec.js deleted file mode 100644 index 953d8bd651..0000000000 --- a/kubernetes/test/model/V1beta1ClusterRoleBinding.spec.js +++ /dev/null @@ -1,89 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1beta1ClusterRoleBinding(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1beta1ClusterRoleBinding', function() { - it('should create an instance of V1beta1ClusterRoleBinding', function() { - // uncomment below and update the code to test V1beta1ClusterRoleBinding - //var instane = new KubernetesJsClient.V1beta1ClusterRoleBinding(); - //expect(instance).to.be.a(KubernetesJsClient.V1beta1ClusterRoleBinding); - }); - - it('should have the property apiVersion (base name: "apiVersion")', function() { - // uncomment below and update the code to test the property apiVersion - //var instane = new KubernetesJsClient.V1beta1ClusterRoleBinding(); - //expect(instance).to.be(); - }); - - it('should have the property kind (base name: "kind")', function() { - // uncomment below and update the code to test the property kind - //var instane = new KubernetesJsClient.V1beta1ClusterRoleBinding(); - //expect(instance).to.be(); - }); - - it('should have the property metadata (base name: "metadata")', function() { - // uncomment below and update the code to test the property metadata - //var instane = new KubernetesJsClient.V1beta1ClusterRoleBinding(); - //expect(instance).to.be(); - }); - - it('should have the property roleRef (base name: "roleRef")', function() { - // uncomment below and update the code to test the property roleRef - //var instane = new KubernetesJsClient.V1beta1ClusterRoleBinding(); - //expect(instance).to.be(); - }); - - it('should have the property subjects (base name: "subjects")', function() { - // uncomment below and update the code to test the property subjects - //var instane = new KubernetesJsClient.V1beta1ClusterRoleBinding(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1beta1ClusterRoleBindingList.spec.js b/kubernetes/test/model/V1beta1ClusterRoleBindingList.spec.js deleted file mode 100644 index df299aba41..0000000000 --- a/kubernetes/test/model/V1beta1ClusterRoleBindingList.spec.js +++ /dev/null @@ -1,83 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1beta1ClusterRoleBindingList(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1beta1ClusterRoleBindingList', function() { - it('should create an instance of V1beta1ClusterRoleBindingList', function() { - // uncomment below and update the code to test V1beta1ClusterRoleBindingList - //var instane = new KubernetesJsClient.V1beta1ClusterRoleBindingList(); - //expect(instance).to.be.a(KubernetesJsClient.V1beta1ClusterRoleBindingList); - }); - - it('should have the property apiVersion (base name: "apiVersion")', function() { - // uncomment below and update the code to test the property apiVersion - //var instane = new KubernetesJsClient.V1beta1ClusterRoleBindingList(); - //expect(instance).to.be(); - }); - - it('should have the property items (base name: "items")', function() { - // uncomment below and update the code to test the property items - //var instane = new KubernetesJsClient.V1beta1ClusterRoleBindingList(); - //expect(instance).to.be(); - }); - - it('should have the property kind (base name: "kind")', function() { - // uncomment below and update the code to test the property kind - //var instane = new KubernetesJsClient.V1beta1ClusterRoleBindingList(); - //expect(instance).to.be(); - }); - - it('should have the property metadata (base name: "metadata")', function() { - // uncomment below and update the code to test the property metadata - //var instane = new KubernetesJsClient.V1beta1ClusterRoleBindingList(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1beta1ClusterRoleList.spec.js b/kubernetes/test/model/V1beta1ClusterRoleList.spec.js deleted file mode 100644 index 9fce3ff33b..0000000000 --- a/kubernetes/test/model/V1beta1ClusterRoleList.spec.js +++ /dev/null @@ -1,83 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1beta1ClusterRoleList(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1beta1ClusterRoleList', function() { - it('should create an instance of V1beta1ClusterRoleList', function() { - // uncomment below and update the code to test V1beta1ClusterRoleList - //var instane = new KubernetesJsClient.V1beta1ClusterRoleList(); - //expect(instance).to.be.a(KubernetesJsClient.V1beta1ClusterRoleList); - }); - - it('should have the property apiVersion (base name: "apiVersion")', function() { - // uncomment below and update the code to test the property apiVersion - //var instane = new KubernetesJsClient.V1beta1ClusterRoleList(); - //expect(instance).to.be(); - }); - - it('should have the property items (base name: "items")', function() { - // uncomment below and update the code to test the property items - //var instane = new KubernetesJsClient.V1beta1ClusterRoleList(); - //expect(instance).to.be(); - }); - - it('should have the property kind (base name: "kind")', function() { - // uncomment below and update the code to test the property kind - //var instane = new KubernetesJsClient.V1beta1ClusterRoleList(); - //expect(instance).to.be(); - }); - - it('should have the property metadata (base name: "metadata")', function() { - // uncomment below and update the code to test the property metadata - //var instane = new KubernetesJsClient.V1beta1ClusterRoleList(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1beta1DaemonSet.spec.js b/kubernetes/test/model/V1beta1DaemonSet.spec.js deleted file mode 100644 index 7bc2faa214..0000000000 --- a/kubernetes/test/model/V1beta1DaemonSet.spec.js +++ /dev/null @@ -1,89 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1beta1DaemonSet(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1beta1DaemonSet', function() { - it('should create an instance of V1beta1DaemonSet', function() { - // uncomment below and update the code to test V1beta1DaemonSet - //var instane = new KubernetesJsClient.V1beta1DaemonSet(); - //expect(instance).to.be.a(KubernetesJsClient.V1beta1DaemonSet); - }); - - it('should have the property apiVersion (base name: "apiVersion")', function() { - // uncomment below and update the code to test the property apiVersion - //var instane = new KubernetesJsClient.V1beta1DaemonSet(); - //expect(instance).to.be(); - }); - - it('should have the property kind (base name: "kind")', function() { - // uncomment below and update the code to test the property kind - //var instane = new KubernetesJsClient.V1beta1DaemonSet(); - //expect(instance).to.be(); - }); - - it('should have the property metadata (base name: "metadata")', function() { - // uncomment below and update the code to test the property metadata - //var instane = new KubernetesJsClient.V1beta1DaemonSet(); - //expect(instance).to.be(); - }); - - it('should have the property spec (base name: "spec")', function() { - // uncomment below and update the code to test the property spec - //var instane = new KubernetesJsClient.V1beta1DaemonSet(); - //expect(instance).to.be(); - }); - - it('should have the property status (base name: "status")', function() { - // uncomment below and update the code to test the property status - //var instane = new KubernetesJsClient.V1beta1DaemonSet(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1beta1DaemonSetList.spec.js b/kubernetes/test/model/V1beta1DaemonSetList.spec.js deleted file mode 100644 index 09c840b2ab..0000000000 --- a/kubernetes/test/model/V1beta1DaemonSetList.spec.js +++ /dev/null @@ -1,83 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1beta1DaemonSetList(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1beta1DaemonSetList', function() { - it('should create an instance of V1beta1DaemonSetList', function() { - // uncomment below and update the code to test V1beta1DaemonSetList - //var instane = new KubernetesJsClient.V1beta1DaemonSetList(); - //expect(instance).to.be.a(KubernetesJsClient.V1beta1DaemonSetList); - }); - - it('should have the property apiVersion (base name: "apiVersion")', function() { - // uncomment below and update the code to test the property apiVersion - //var instane = new KubernetesJsClient.V1beta1DaemonSetList(); - //expect(instance).to.be(); - }); - - it('should have the property items (base name: "items")', function() { - // uncomment below and update the code to test the property items - //var instane = new KubernetesJsClient.V1beta1DaemonSetList(); - //expect(instance).to.be(); - }); - - it('should have the property kind (base name: "kind")', function() { - // uncomment below and update the code to test the property kind - //var instane = new KubernetesJsClient.V1beta1DaemonSetList(); - //expect(instance).to.be(); - }); - - it('should have the property metadata (base name: "metadata")', function() { - // uncomment below and update the code to test the property metadata - //var instane = new KubernetesJsClient.V1beta1DaemonSetList(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1beta1DaemonSetSpec.spec.js b/kubernetes/test/model/V1beta1DaemonSetSpec.spec.js deleted file mode 100644 index d554c5f924..0000000000 --- a/kubernetes/test/model/V1beta1DaemonSetSpec.spec.js +++ /dev/null @@ -1,89 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1beta1DaemonSetSpec(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1beta1DaemonSetSpec', function() { - it('should create an instance of V1beta1DaemonSetSpec', function() { - // uncomment below and update the code to test V1beta1DaemonSetSpec - //var instane = new KubernetesJsClient.V1beta1DaemonSetSpec(); - //expect(instance).to.be.a(KubernetesJsClient.V1beta1DaemonSetSpec); - }); - - it('should have the property minReadySeconds (base name: "minReadySeconds")', function() { - // uncomment below and update the code to test the property minReadySeconds - //var instane = new KubernetesJsClient.V1beta1DaemonSetSpec(); - //expect(instance).to.be(); - }); - - it('should have the property selector (base name: "selector")', function() { - // uncomment below and update the code to test the property selector - //var instane = new KubernetesJsClient.V1beta1DaemonSetSpec(); - //expect(instance).to.be(); - }); - - it('should have the property template (base name: "template")', function() { - // uncomment below and update the code to test the property template - //var instane = new KubernetesJsClient.V1beta1DaemonSetSpec(); - //expect(instance).to.be(); - }); - - it('should have the property templateGeneration (base name: "templateGeneration")', function() { - // uncomment below and update the code to test the property templateGeneration - //var instane = new KubernetesJsClient.V1beta1DaemonSetSpec(); - //expect(instance).to.be(); - }); - - it('should have the property updateStrategy (base name: "updateStrategy")', function() { - // uncomment below and update the code to test the property updateStrategy - //var instane = new KubernetesJsClient.V1beta1DaemonSetSpec(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1beta1DaemonSetStatus.spec.js b/kubernetes/test/model/V1beta1DaemonSetStatus.spec.js deleted file mode 100644 index 007c9a2e13..0000000000 --- a/kubernetes/test/model/V1beta1DaemonSetStatus.spec.js +++ /dev/null @@ -1,107 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1beta1DaemonSetStatus(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1beta1DaemonSetStatus', function() { - it('should create an instance of V1beta1DaemonSetStatus', function() { - // uncomment below and update the code to test V1beta1DaemonSetStatus - //var instane = new KubernetesJsClient.V1beta1DaemonSetStatus(); - //expect(instance).to.be.a(KubernetesJsClient.V1beta1DaemonSetStatus); - }); - - it('should have the property currentNumberScheduled (base name: "currentNumberScheduled")', function() { - // uncomment below and update the code to test the property currentNumberScheduled - //var instane = new KubernetesJsClient.V1beta1DaemonSetStatus(); - //expect(instance).to.be(); - }); - - it('should have the property desiredNumberScheduled (base name: "desiredNumberScheduled")', function() { - // uncomment below and update the code to test the property desiredNumberScheduled - //var instane = new KubernetesJsClient.V1beta1DaemonSetStatus(); - //expect(instance).to.be(); - }); - - it('should have the property numberAvailable (base name: "numberAvailable")', function() { - // uncomment below and update the code to test the property numberAvailable - //var instane = new KubernetesJsClient.V1beta1DaemonSetStatus(); - //expect(instance).to.be(); - }); - - it('should have the property numberMisscheduled (base name: "numberMisscheduled")', function() { - // uncomment below and update the code to test the property numberMisscheduled - //var instane = new KubernetesJsClient.V1beta1DaemonSetStatus(); - //expect(instance).to.be(); - }); - - it('should have the property numberReady (base name: "numberReady")', function() { - // uncomment below and update the code to test the property numberReady - //var instane = new KubernetesJsClient.V1beta1DaemonSetStatus(); - //expect(instance).to.be(); - }); - - it('should have the property numberUnavailable (base name: "numberUnavailable")', function() { - // uncomment below and update the code to test the property numberUnavailable - //var instane = new KubernetesJsClient.V1beta1DaemonSetStatus(); - //expect(instance).to.be(); - }); - - it('should have the property observedGeneration (base name: "observedGeneration")', function() { - // uncomment below and update the code to test the property observedGeneration - //var instane = new KubernetesJsClient.V1beta1DaemonSetStatus(); - //expect(instance).to.be(); - }); - - it('should have the property updatedNumberScheduled (base name: "updatedNumberScheduled")', function() { - // uncomment below and update the code to test the property updatedNumberScheduled - //var instane = new KubernetesJsClient.V1beta1DaemonSetStatus(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1beta1DaemonSetUpdateStrategy.spec.js b/kubernetes/test/model/V1beta1DaemonSetUpdateStrategy.spec.js deleted file mode 100644 index 3327484e75..0000000000 --- a/kubernetes/test/model/V1beta1DaemonSetUpdateStrategy.spec.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1beta1DaemonSetUpdateStrategy(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1beta1DaemonSetUpdateStrategy', function() { - it('should create an instance of V1beta1DaemonSetUpdateStrategy', function() { - // uncomment below and update the code to test V1beta1DaemonSetUpdateStrategy - //var instane = new KubernetesJsClient.V1beta1DaemonSetUpdateStrategy(); - //expect(instance).to.be.a(KubernetesJsClient.V1beta1DaemonSetUpdateStrategy); - }); - - it('should have the property rollingUpdate (base name: "rollingUpdate")', function() { - // uncomment below and update the code to test the property rollingUpdate - //var instane = new KubernetesJsClient.V1beta1DaemonSetUpdateStrategy(); - //expect(instance).to.be(); - }); - - it('should have the property type (base name: "type")', function() { - // uncomment below and update the code to test the property type - //var instane = new KubernetesJsClient.V1beta1DaemonSetUpdateStrategy(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1beta1Eviction.spec.js b/kubernetes/test/model/V1beta1Eviction.spec.js deleted file mode 100644 index 674217bd16..0000000000 --- a/kubernetes/test/model/V1beta1Eviction.spec.js +++ /dev/null @@ -1,83 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1beta1Eviction(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1beta1Eviction', function() { - it('should create an instance of V1beta1Eviction', function() { - // uncomment below and update the code to test V1beta1Eviction - //var instane = new KubernetesJsClient.V1beta1Eviction(); - //expect(instance).to.be.a(KubernetesJsClient.V1beta1Eviction); - }); - - it('should have the property apiVersion (base name: "apiVersion")', function() { - // uncomment below and update the code to test the property apiVersion - //var instane = new KubernetesJsClient.V1beta1Eviction(); - //expect(instance).to.be(); - }); - - it('should have the property deleteOptions (base name: "deleteOptions")', function() { - // uncomment below and update the code to test the property deleteOptions - //var instane = new KubernetesJsClient.V1beta1Eviction(); - //expect(instance).to.be(); - }); - - it('should have the property kind (base name: "kind")', function() { - // uncomment below and update the code to test the property kind - //var instane = new KubernetesJsClient.V1beta1Eviction(); - //expect(instance).to.be(); - }); - - it('should have the property metadata (base name: "metadata")', function() { - // uncomment below and update the code to test the property metadata - //var instane = new KubernetesJsClient.V1beta1Eviction(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1beta1FSGroupStrategyOptions.spec.js b/kubernetes/test/model/V1beta1FSGroupStrategyOptions.spec.js deleted file mode 100644 index 4cf4280984..0000000000 --- a/kubernetes/test/model/V1beta1FSGroupStrategyOptions.spec.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1beta1FSGroupStrategyOptions(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1beta1FSGroupStrategyOptions', function() { - it('should create an instance of V1beta1FSGroupStrategyOptions', function() { - // uncomment below and update the code to test V1beta1FSGroupStrategyOptions - //var instane = new KubernetesJsClient.V1beta1FSGroupStrategyOptions(); - //expect(instance).to.be.a(KubernetesJsClient.V1beta1FSGroupStrategyOptions); - }); - - it('should have the property ranges (base name: "ranges")', function() { - // uncomment below and update the code to test the property ranges - //var instane = new KubernetesJsClient.V1beta1FSGroupStrategyOptions(); - //expect(instance).to.be(); - }); - - it('should have the property rule (base name: "rule")', function() { - // uncomment below and update the code to test the property rule - //var instane = new KubernetesJsClient.V1beta1FSGroupStrategyOptions(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1beta1HTTPIngressPath.spec.js b/kubernetes/test/model/V1beta1HTTPIngressPath.spec.js deleted file mode 100644 index a1ef2db603..0000000000 --- a/kubernetes/test/model/V1beta1HTTPIngressPath.spec.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1beta1HTTPIngressPath(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1beta1HTTPIngressPath', function() { - it('should create an instance of V1beta1HTTPIngressPath', function() { - // uncomment below and update the code to test V1beta1HTTPIngressPath - //var instane = new KubernetesJsClient.V1beta1HTTPIngressPath(); - //expect(instance).to.be.a(KubernetesJsClient.V1beta1HTTPIngressPath); - }); - - it('should have the property backend (base name: "backend")', function() { - // uncomment below and update the code to test the property backend - //var instane = new KubernetesJsClient.V1beta1HTTPIngressPath(); - //expect(instance).to.be(); - }); - - it('should have the property path (base name: "path")', function() { - // uncomment below and update the code to test the property path - //var instane = new KubernetesJsClient.V1beta1HTTPIngressPath(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1beta1HTTPIngressRuleValue.spec.js b/kubernetes/test/model/V1beta1HTTPIngressRuleValue.spec.js deleted file mode 100644 index d8cd47f819..0000000000 --- a/kubernetes/test/model/V1beta1HTTPIngressRuleValue.spec.js +++ /dev/null @@ -1,65 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1beta1HTTPIngressRuleValue(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1beta1HTTPIngressRuleValue', function() { - it('should create an instance of V1beta1HTTPIngressRuleValue', function() { - // uncomment below and update the code to test V1beta1HTTPIngressRuleValue - //var instane = new KubernetesJsClient.V1beta1HTTPIngressRuleValue(); - //expect(instance).to.be.a(KubernetesJsClient.V1beta1HTTPIngressRuleValue); - }); - - it('should have the property paths (base name: "paths")', function() { - // uncomment below and update the code to test the property paths - //var instane = new KubernetesJsClient.V1beta1HTTPIngressRuleValue(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1beta1HostPortRange.spec.js b/kubernetes/test/model/V1beta1HostPortRange.spec.js deleted file mode 100644 index d367f232c2..0000000000 --- a/kubernetes/test/model/V1beta1HostPortRange.spec.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1beta1HostPortRange(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1beta1HostPortRange', function() { - it('should create an instance of V1beta1HostPortRange', function() { - // uncomment below and update the code to test V1beta1HostPortRange - //var instane = new KubernetesJsClient.V1beta1HostPortRange(); - //expect(instance).to.be.a(KubernetesJsClient.V1beta1HostPortRange); - }); - - it('should have the property max (base name: "max")', function() { - // uncomment below and update the code to test the property max - //var instane = new KubernetesJsClient.V1beta1HostPortRange(); - //expect(instance).to.be(); - }); - - it('should have the property min (base name: "min")', function() { - // uncomment below and update the code to test the property min - //var instane = new KubernetesJsClient.V1beta1HostPortRange(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1beta1IDRange.spec.js b/kubernetes/test/model/V1beta1IDRange.spec.js deleted file mode 100644 index 4ad72d9bc4..0000000000 --- a/kubernetes/test/model/V1beta1IDRange.spec.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1beta1IDRange(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1beta1IDRange', function() { - it('should create an instance of V1beta1IDRange', function() { - // uncomment below and update the code to test V1beta1IDRange - //var instane = new KubernetesJsClient.V1beta1IDRange(); - //expect(instance).to.be.a(KubernetesJsClient.V1beta1IDRange); - }); - - it('should have the property max (base name: "max")', function() { - // uncomment below and update the code to test the property max - //var instane = new KubernetesJsClient.V1beta1IDRange(); - //expect(instance).to.be(); - }); - - it('should have the property min (base name: "min")', function() { - // uncomment below and update the code to test the property min - //var instane = new KubernetesJsClient.V1beta1IDRange(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1beta1Ingress.spec.js b/kubernetes/test/model/V1beta1Ingress.spec.js deleted file mode 100644 index c2bdfe5b62..0000000000 --- a/kubernetes/test/model/V1beta1Ingress.spec.js +++ /dev/null @@ -1,89 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1beta1Ingress(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1beta1Ingress', function() { - it('should create an instance of V1beta1Ingress', function() { - // uncomment below and update the code to test V1beta1Ingress - //var instane = new KubernetesJsClient.V1beta1Ingress(); - //expect(instance).to.be.a(KubernetesJsClient.V1beta1Ingress); - }); - - it('should have the property apiVersion (base name: "apiVersion")', function() { - // uncomment below and update the code to test the property apiVersion - //var instane = new KubernetesJsClient.V1beta1Ingress(); - //expect(instance).to.be(); - }); - - it('should have the property kind (base name: "kind")', function() { - // uncomment below and update the code to test the property kind - //var instane = new KubernetesJsClient.V1beta1Ingress(); - //expect(instance).to.be(); - }); - - it('should have the property metadata (base name: "metadata")', function() { - // uncomment below and update the code to test the property metadata - //var instane = new KubernetesJsClient.V1beta1Ingress(); - //expect(instance).to.be(); - }); - - it('should have the property spec (base name: "spec")', function() { - // uncomment below and update the code to test the property spec - //var instane = new KubernetesJsClient.V1beta1Ingress(); - //expect(instance).to.be(); - }); - - it('should have the property status (base name: "status")', function() { - // uncomment below and update the code to test the property status - //var instane = new KubernetesJsClient.V1beta1Ingress(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1beta1IngressBackend.spec.js b/kubernetes/test/model/V1beta1IngressBackend.spec.js deleted file mode 100644 index de1f9f7690..0000000000 --- a/kubernetes/test/model/V1beta1IngressBackend.spec.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1beta1IngressBackend(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1beta1IngressBackend', function() { - it('should create an instance of V1beta1IngressBackend', function() { - // uncomment below and update the code to test V1beta1IngressBackend - //var instane = new KubernetesJsClient.V1beta1IngressBackend(); - //expect(instance).to.be.a(KubernetesJsClient.V1beta1IngressBackend); - }); - - it('should have the property serviceName (base name: "serviceName")', function() { - // uncomment below and update the code to test the property serviceName - //var instane = new KubernetesJsClient.V1beta1IngressBackend(); - //expect(instance).to.be(); - }); - - it('should have the property servicePort (base name: "servicePort")', function() { - // uncomment below and update the code to test the property servicePort - //var instane = new KubernetesJsClient.V1beta1IngressBackend(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1beta1IngressList.spec.js b/kubernetes/test/model/V1beta1IngressList.spec.js deleted file mode 100644 index 2ed53cdaa9..0000000000 --- a/kubernetes/test/model/V1beta1IngressList.spec.js +++ /dev/null @@ -1,83 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1beta1IngressList(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1beta1IngressList', function() { - it('should create an instance of V1beta1IngressList', function() { - // uncomment below and update the code to test V1beta1IngressList - //var instane = new KubernetesJsClient.V1beta1IngressList(); - //expect(instance).to.be.a(KubernetesJsClient.V1beta1IngressList); - }); - - it('should have the property apiVersion (base name: "apiVersion")', function() { - // uncomment below and update the code to test the property apiVersion - //var instane = new KubernetesJsClient.V1beta1IngressList(); - //expect(instance).to.be(); - }); - - it('should have the property items (base name: "items")', function() { - // uncomment below and update the code to test the property items - //var instane = new KubernetesJsClient.V1beta1IngressList(); - //expect(instance).to.be(); - }); - - it('should have the property kind (base name: "kind")', function() { - // uncomment below and update the code to test the property kind - //var instane = new KubernetesJsClient.V1beta1IngressList(); - //expect(instance).to.be(); - }); - - it('should have the property metadata (base name: "metadata")', function() { - // uncomment below and update the code to test the property metadata - //var instane = new KubernetesJsClient.V1beta1IngressList(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1beta1IngressRule.spec.js b/kubernetes/test/model/V1beta1IngressRule.spec.js deleted file mode 100644 index 5e9fdc54ab..0000000000 --- a/kubernetes/test/model/V1beta1IngressRule.spec.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1beta1IngressRule(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1beta1IngressRule', function() { - it('should create an instance of V1beta1IngressRule', function() { - // uncomment below and update the code to test V1beta1IngressRule - //var instane = new KubernetesJsClient.V1beta1IngressRule(); - //expect(instance).to.be.a(KubernetesJsClient.V1beta1IngressRule); - }); - - it('should have the property host (base name: "host")', function() { - // uncomment below and update the code to test the property host - //var instane = new KubernetesJsClient.V1beta1IngressRule(); - //expect(instance).to.be(); - }); - - it('should have the property http (base name: "http")', function() { - // uncomment below and update the code to test the property http - //var instane = new KubernetesJsClient.V1beta1IngressRule(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1beta1IngressSpec.spec.js b/kubernetes/test/model/V1beta1IngressSpec.spec.js deleted file mode 100644 index de61166edc..0000000000 --- a/kubernetes/test/model/V1beta1IngressSpec.spec.js +++ /dev/null @@ -1,77 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1beta1IngressSpec(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1beta1IngressSpec', function() { - it('should create an instance of V1beta1IngressSpec', function() { - // uncomment below and update the code to test V1beta1IngressSpec - //var instane = new KubernetesJsClient.V1beta1IngressSpec(); - //expect(instance).to.be.a(KubernetesJsClient.V1beta1IngressSpec); - }); - - it('should have the property backend (base name: "backend")', function() { - // uncomment below and update the code to test the property backend - //var instane = new KubernetesJsClient.V1beta1IngressSpec(); - //expect(instance).to.be(); - }); - - it('should have the property rules (base name: "rules")', function() { - // uncomment below and update the code to test the property rules - //var instane = new KubernetesJsClient.V1beta1IngressSpec(); - //expect(instance).to.be(); - }); - - it('should have the property tls (base name: "tls")', function() { - // uncomment below and update the code to test the property tls - //var instane = new KubernetesJsClient.V1beta1IngressSpec(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1beta1IngressStatus.spec.js b/kubernetes/test/model/V1beta1IngressStatus.spec.js deleted file mode 100644 index b57a8c7445..0000000000 --- a/kubernetes/test/model/V1beta1IngressStatus.spec.js +++ /dev/null @@ -1,65 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1beta1IngressStatus(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1beta1IngressStatus', function() { - it('should create an instance of V1beta1IngressStatus', function() { - // uncomment below and update the code to test V1beta1IngressStatus - //var instane = new KubernetesJsClient.V1beta1IngressStatus(); - //expect(instance).to.be.a(KubernetesJsClient.V1beta1IngressStatus); - }); - - it('should have the property loadBalancer (base name: "loadBalancer")', function() { - // uncomment below and update the code to test the property loadBalancer - //var instane = new KubernetesJsClient.V1beta1IngressStatus(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1beta1IngressTLS.spec.js b/kubernetes/test/model/V1beta1IngressTLS.spec.js deleted file mode 100644 index f0f6744bca..0000000000 --- a/kubernetes/test/model/V1beta1IngressTLS.spec.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1beta1IngressTLS(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1beta1IngressTLS', function() { - it('should create an instance of V1beta1IngressTLS', function() { - // uncomment below and update the code to test V1beta1IngressTLS - //var instane = new KubernetesJsClient.V1beta1IngressTLS(); - //expect(instance).to.be.a(KubernetesJsClient.V1beta1IngressTLS); - }); - - it('should have the property hosts (base name: "hosts")', function() { - // uncomment below and update the code to test the property hosts - //var instane = new KubernetesJsClient.V1beta1IngressTLS(); - //expect(instance).to.be(); - }); - - it('should have the property secretName (base name: "secretName")', function() { - // uncomment below and update the code to test the property secretName - //var instane = new KubernetesJsClient.V1beta1IngressTLS(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1beta1LocalSubjectAccessReview.spec.js b/kubernetes/test/model/V1beta1LocalSubjectAccessReview.spec.js deleted file mode 100644 index ee838e06d8..0000000000 --- a/kubernetes/test/model/V1beta1LocalSubjectAccessReview.spec.js +++ /dev/null @@ -1,89 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1beta1LocalSubjectAccessReview(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1beta1LocalSubjectAccessReview', function() { - it('should create an instance of V1beta1LocalSubjectAccessReview', function() { - // uncomment below and update the code to test V1beta1LocalSubjectAccessReview - //var instane = new KubernetesJsClient.V1beta1LocalSubjectAccessReview(); - //expect(instance).to.be.a(KubernetesJsClient.V1beta1LocalSubjectAccessReview); - }); - - it('should have the property apiVersion (base name: "apiVersion")', function() { - // uncomment below and update the code to test the property apiVersion - //var instane = new KubernetesJsClient.V1beta1LocalSubjectAccessReview(); - //expect(instance).to.be(); - }); - - it('should have the property kind (base name: "kind")', function() { - // uncomment below and update the code to test the property kind - //var instane = new KubernetesJsClient.V1beta1LocalSubjectAccessReview(); - //expect(instance).to.be(); - }); - - it('should have the property metadata (base name: "metadata")', function() { - // uncomment below and update the code to test the property metadata - //var instane = new KubernetesJsClient.V1beta1LocalSubjectAccessReview(); - //expect(instance).to.be(); - }); - - it('should have the property spec (base name: "spec")', function() { - // uncomment below and update the code to test the property spec - //var instane = new KubernetesJsClient.V1beta1LocalSubjectAccessReview(); - //expect(instance).to.be(); - }); - - it('should have the property status (base name: "status")', function() { - // uncomment below and update the code to test the property status - //var instane = new KubernetesJsClient.V1beta1LocalSubjectAccessReview(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1beta1NetworkPolicy.spec.js b/kubernetes/test/model/V1beta1NetworkPolicy.spec.js deleted file mode 100644 index 800754a34c..0000000000 --- a/kubernetes/test/model/V1beta1NetworkPolicy.spec.js +++ /dev/null @@ -1,83 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1beta1NetworkPolicy(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1beta1NetworkPolicy', function() { - it('should create an instance of V1beta1NetworkPolicy', function() { - // uncomment below and update the code to test V1beta1NetworkPolicy - //var instane = new KubernetesJsClient.V1beta1NetworkPolicy(); - //expect(instance).to.be.a(KubernetesJsClient.V1beta1NetworkPolicy); - }); - - it('should have the property apiVersion (base name: "apiVersion")', function() { - // uncomment below and update the code to test the property apiVersion - //var instane = new KubernetesJsClient.V1beta1NetworkPolicy(); - //expect(instance).to.be(); - }); - - it('should have the property kind (base name: "kind")', function() { - // uncomment below and update the code to test the property kind - //var instane = new KubernetesJsClient.V1beta1NetworkPolicy(); - //expect(instance).to.be(); - }); - - it('should have the property metadata (base name: "metadata")', function() { - // uncomment below and update the code to test the property metadata - //var instane = new KubernetesJsClient.V1beta1NetworkPolicy(); - //expect(instance).to.be(); - }); - - it('should have the property spec (base name: "spec")', function() { - // uncomment below and update the code to test the property spec - //var instane = new KubernetesJsClient.V1beta1NetworkPolicy(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1beta1NetworkPolicyIngressRule.spec.js b/kubernetes/test/model/V1beta1NetworkPolicyIngressRule.spec.js deleted file mode 100644 index e4c0a8e84e..0000000000 --- a/kubernetes/test/model/V1beta1NetworkPolicyIngressRule.spec.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1beta1NetworkPolicyIngressRule(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1beta1NetworkPolicyIngressRule', function() { - it('should create an instance of V1beta1NetworkPolicyIngressRule', function() { - // uncomment below and update the code to test V1beta1NetworkPolicyIngressRule - //var instane = new KubernetesJsClient.V1beta1NetworkPolicyIngressRule(); - //expect(instance).to.be.a(KubernetesJsClient.V1beta1NetworkPolicyIngressRule); - }); - - it('should have the property from (base name: "from")', function() { - // uncomment below and update the code to test the property from - //var instane = new KubernetesJsClient.V1beta1NetworkPolicyIngressRule(); - //expect(instance).to.be(); - }); - - it('should have the property ports (base name: "ports")', function() { - // uncomment below and update the code to test the property ports - //var instane = new KubernetesJsClient.V1beta1NetworkPolicyIngressRule(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1beta1NetworkPolicyList.spec.js b/kubernetes/test/model/V1beta1NetworkPolicyList.spec.js deleted file mode 100644 index 0575a03c83..0000000000 --- a/kubernetes/test/model/V1beta1NetworkPolicyList.spec.js +++ /dev/null @@ -1,83 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1beta1NetworkPolicyList(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1beta1NetworkPolicyList', function() { - it('should create an instance of V1beta1NetworkPolicyList', function() { - // uncomment below and update the code to test V1beta1NetworkPolicyList - //var instane = new KubernetesJsClient.V1beta1NetworkPolicyList(); - //expect(instance).to.be.a(KubernetesJsClient.V1beta1NetworkPolicyList); - }); - - it('should have the property apiVersion (base name: "apiVersion")', function() { - // uncomment below and update the code to test the property apiVersion - //var instane = new KubernetesJsClient.V1beta1NetworkPolicyList(); - //expect(instance).to.be(); - }); - - it('should have the property items (base name: "items")', function() { - // uncomment below and update the code to test the property items - //var instane = new KubernetesJsClient.V1beta1NetworkPolicyList(); - //expect(instance).to.be(); - }); - - it('should have the property kind (base name: "kind")', function() { - // uncomment below and update the code to test the property kind - //var instane = new KubernetesJsClient.V1beta1NetworkPolicyList(); - //expect(instance).to.be(); - }); - - it('should have the property metadata (base name: "metadata")', function() { - // uncomment below and update the code to test the property metadata - //var instane = new KubernetesJsClient.V1beta1NetworkPolicyList(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1beta1NetworkPolicyPeer.spec.js b/kubernetes/test/model/V1beta1NetworkPolicyPeer.spec.js deleted file mode 100644 index 0ce8cac213..0000000000 --- a/kubernetes/test/model/V1beta1NetworkPolicyPeer.spec.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1beta1NetworkPolicyPeer(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1beta1NetworkPolicyPeer', function() { - it('should create an instance of V1beta1NetworkPolicyPeer', function() { - // uncomment below and update the code to test V1beta1NetworkPolicyPeer - //var instane = new KubernetesJsClient.V1beta1NetworkPolicyPeer(); - //expect(instance).to.be.a(KubernetesJsClient.V1beta1NetworkPolicyPeer); - }); - - it('should have the property namespaceSelector (base name: "namespaceSelector")', function() { - // uncomment below and update the code to test the property namespaceSelector - //var instane = new KubernetesJsClient.V1beta1NetworkPolicyPeer(); - //expect(instance).to.be(); - }); - - it('should have the property podSelector (base name: "podSelector")', function() { - // uncomment below and update the code to test the property podSelector - //var instane = new KubernetesJsClient.V1beta1NetworkPolicyPeer(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1beta1NetworkPolicyPort.spec.js b/kubernetes/test/model/V1beta1NetworkPolicyPort.spec.js deleted file mode 100644 index 7f19109224..0000000000 --- a/kubernetes/test/model/V1beta1NetworkPolicyPort.spec.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1beta1NetworkPolicyPort(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1beta1NetworkPolicyPort', function() { - it('should create an instance of V1beta1NetworkPolicyPort', function() { - // uncomment below and update the code to test V1beta1NetworkPolicyPort - //var instane = new KubernetesJsClient.V1beta1NetworkPolicyPort(); - //expect(instance).to.be.a(KubernetesJsClient.V1beta1NetworkPolicyPort); - }); - - it('should have the property port (base name: "port")', function() { - // uncomment below and update the code to test the property port - //var instane = new KubernetesJsClient.V1beta1NetworkPolicyPort(); - //expect(instance).to.be(); - }); - - it('should have the property protocol (base name: "protocol")', function() { - // uncomment below and update the code to test the property protocol - //var instane = new KubernetesJsClient.V1beta1NetworkPolicyPort(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1beta1NetworkPolicySpec.spec.js b/kubernetes/test/model/V1beta1NetworkPolicySpec.spec.js deleted file mode 100644 index 3581f416d0..0000000000 --- a/kubernetes/test/model/V1beta1NetworkPolicySpec.spec.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1beta1NetworkPolicySpec(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1beta1NetworkPolicySpec', function() { - it('should create an instance of V1beta1NetworkPolicySpec', function() { - // uncomment below and update the code to test V1beta1NetworkPolicySpec - //var instane = new KubernetesJsClient.V1beta1NetworkPolicySpec(); - //expect(instance).to.be.a(KubernetesJsClient.V1beta1NetworkPolicySpec); - }); - - it('should have the property ingress (base name: "ingress")', function() { - // uncomment below and update the code to test the property ingress - //var instane = new KubernetesJsClient.V1beta1NetworkPolicySpec(); - //expect(instance).to.be(); - }); - - it('should have the property podSelector (base name: "podSelector")', function() { - // uncomment below and update the code to test the property podSelector - //var instane = new KubernetesJsClient.V1beta1NetworkPolicySpec(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1beta1NonResourceAttributes.spec.js b/kubernetes/test/model/V1beta1NonResourceAttributes.spec.js deleted file mode 100644 index e8f7d20bb6..0000000000 --- a/kubernetes/test/model/V1beta1NonResourceAttributes.spec.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1beta1NonResourceAttributes(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1beta1NonResourceAttributes', function() { - it('should create an instance of V1beta1NonResourceAttributes', function() { - // uncomment below and update the code to test V1beta1NonResourceAttributes - //var instane = new KubernetesJsClient.V1beta1NonResourceAttributes(); - //expect(instance).to.be.a(KubernetesJsClient.V1beta1NonResourceAttributes); - }); - - it('should have the property path (base name: "path")', function() { - // uncomment below and update the code to test the property path - //var instane = new KubernetesJsClient.V1beta1NonResourceAttributes(); - //expect(instance).to.be(); - }); - - it('should have the property verb (base name: "verb")', function() { - // uncomment below and update the code to test the property verb - //var instane = new KubernetesJsClient.V1beta1NonResourceAttributes(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1beta1PodDisruptionBudget.spec.js b/kubernetes/test/model/V1beta1PodDisruptionBudget.spec.js deleted file mode 100644 index b3fced94c7..0000000000 --- a/kubernetes/test/model/V1beta1PodDisruptionBudget.spec.js +++ /dev/null @@ -1,89 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1beta1PodDisruptionBudget(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1beta1PodDisruptionBudget', function() { - it('should create an instance of V1beta1PodDisruptionBudget', function() { - // uncomment below and update the code to test V1beta1PodDisruptionBudget - //var instane = new KubernetesJsClient.V1beta1PodDisruptionBudget(); - //expect(instance).to.be.a(KubernetesJsClient.V1beta1PodDisruptionBudget); - }); - - it('should have the property apiVersion (base name: "apiVersion")', function() { - // uncomment below and update the code to test the property apiVersion - //var instane = new KubernetesJsClient.V1beta1PodDisruptionBudget(); - //expect(instance).to.be(); - }); - - it('should have the property kind (base name: "kind")', function() { - // uncomment below and update the code to test the property kind - //var instane = new KubernetesJsClient.V1beta1PodDisruptionBudget(); - //expect(instance).to.be(); - }); - - it('should have the property metadata (base name: "metadata")', function() { - // uncomment below and update the code to test the property metadata - //var instane = new KubernetesJsClient.V1beta1PodDisruptionBudget(); - //expect(instance).to.be(); - }); - - it('should have the property spec (base name: "spec")', function() { - // uncomment below and update the code to test the property spec - //var instane = new KubernetesJsClient.V1beta1PodDisruptionBudget(); - //expect(instance).to.be(); - }); - - it('should have the property status (base name: "status")', function() { - // uncomment below and update the code to test the property status - //var instane = new KubernetesJsClient.V1beta1PodDisruptionBudget(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1beta1PodDisruptionBudgetList.spec.js b/kubernetes/test/model/V1beta1PodDisruptionBudgetList.spec.js deleted file mode 100644 index 39cd440ed3..0000000000 --- a/kubernetes/test/model/V1beta1PodDisruptionBudgetList.spec.js +++ /dev/null @@ -1,83 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1beta1PodDisruptionBudgetList(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1beta1PodDisruptionBudgetList', function() { - it('should create an instance of V1beta1PodDisruptionBudgetList', function() { - // uncomment below and update the code to test V1beta1PodDisruptionBudgetList - //var instane = new KubernetesJsClient.V1beta1PodDisruptionBudgetList(); - //expect(instance).to.be.a(KubernetesJsClient.V1beta1PodDisruptionBudgetList); - }); - - it('should have the property apiVersion (base name: "apiVersion")', function() { - // uncomment below and update the code to test the property apiVersion - //var instane = new KubernetesJsClient.V1beta1PodDisruptionBudgetList(); - //expect(instance).to.be(); - }); - - it('should have the property items (base name: "items")', function() { - // uncomment below and update the code to test the property items - //var instane = new KubernetesJsClient.V1beta1PodDisruptionBudgetList(); - //expect(instance).to.be(); - }); - - it('should have the property kind (base name: "kind")', function() { - // uncomment below and update the code to test the property kind - //var instane = new KubernetesJsClient.V1beta1PodDisruptionBudgetList(); - //expect(instance).to.be(); - }); - - it('should have the property metadata (base name: "metadata")', function() { - // uncomment below and update the code to test the property metadata - //var instane = new KubernetesJsClient.V1beta1PodDisruptionBudgetList(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1beta1PodDisruptionBudgetSpec.spec.js b/kubernetes/test/model/V1beta1PodDisruptionBudgetSpec.spec.js deleted file mode 100644 index 11096b3758..0000000000 --- a/kubernetes/test/model/V1beta1PodDisruptionBudgetSpec.spec.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1beta1PodDisruptionBudgetSpec(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1beta1PodDisruptionBudgetSpec', function() { - it('should create an instance of V1beta1PodDisruptionBudgetSpec', function() { - // uncomment below and update the code to test V1beta1PodDisruptionBudgetSpec - //var instane = new KubernetesJsClient.V1beta1PodDisruptionBudgetSpec(); - //expect(instance).to.be.a(KubernetesJsClient.V1beta1PodDisruptionBudgetSpec); - }); - - it('should have the property minAvailable (base name: "minAvailable")', function() { - // uncomment below and update the code to test the property minAvailable - //var instane = new KubernetesJsClient.V1beta1PodDisruptionBudgetSpec(); - //expect(instance).to.be(); - }); - - it('should have the property selector (base name: "selector")', function() { - // uncomment below and update the code to test the property selector - //var instane = new KubernetesJsClient.V1beta1PodDisruptionBudgetSpec(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1beta1PodDisruptionBudgetStatus.spec.js b/kubernetes/test/model/V1beta1PodDisruptionBudgetStatus.spec.js deleted file mode 100644 index d6117befbb..0000000000 --- a/kubernetes/test/model/V1beta1PodDisruptionBudgetStatus.spec.js +++ /dev/null @@ -1,95 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1beta1PodDisruptionBudgetStatus(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1beta1PodDisruptionBudgetStatus', function() { - it('should create an instance of V1beta1PodDisruptionBudgetStatus', function() { - // uncomment below and update the code to test V1beta1PodDisruptionBudgetStatus - //var instane = new KubernetesJsClient.V1beta1PodDisruptionBudgetStatus(); - //expect(instance).to.be.a(KubernetesJsClient.V1beta1PodDisruptionBudgetStatus); - }); - - it('should have the property currentHealthy (base name: "currentHealthy")', function() { - // uncomment below and update the code to test the property currentHealthy - //var instane = new KubernetesJsClient.V1beta1PodDisruptionBudgetStatus(); - //expect(instance).to.be(); - }); - - it('should have the property desiredHealthy (base name: "desiredHealthy")', function() { - // uncomment below and update the code to test the property desiredHealthy - //var instane = new KubernetesJsClient.V1beta1PodDisruptionBudgetStatus(); - //expect(instance).to.be(); - }); - - it('should have the property disruptedPods (base name: "disruptedPods")', function() { - // uncomment below and update the code to test the property disruptedPods - //var instane = new KubernetesJsClient.V1beta1PodDisruptionBudgetStatus(); - //expect(instance).to.be(); - }); - - it('should have the property disruptionsAllowed (base name: "disruptionsAllowed")', function() { - // uncomment below and update the code to test the property disruptionsAllowed - //var instane = new KubernetesJsClient.V1beta1PodDisruptionBudgetStatus(); - //expect(instance).to.be(); - }); - - it('should have the property expectedPods (base name: "expectedPods")', function() { - // uncomment below and update the code to test the property expectedPods - //var instane = new KubernetesJsClient.V1beta1PodDisruptionBudgetStatus(); - //expect(instance).to.be(); - }); - - it('should have the property observedGeneration (base name: "observedGeneration")', function() { - // uncomment below and update the code to test the property observedGeneration - //var instane = new KubernetesJsClient.V1beta1PodDisruptionBudgetStatus(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1beta1PodSecurityPolicy.spec.js b/kubernetes/test/model/V1beta1PodSecurityPolicy.spec.js deleted file mode 100644 index c60b496182..0000000000 --- a/kubernetes/test/model/V1beta1PodSecurityPolicy.spec.js +++ /dev/null @@ -1,83 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1beta1PodSecurityPolicy(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1beta1PodSecurityPolicy', function() { - it('should create an instance of V1beta1PodSecurityPolicy', function() { - // uncomment below and update the code to test V1beta1PodSecurityPolicy - //var instane = new KubernetesJsClient.V1beta1PodSecurityPolicy(); - //expect(instance).to.be.a(KubernetesJsClient.V1beta1PodSecurityPolicy); - }); - - it('should have the property apiVersion (base name: "apiVersion")', function() { - // uncomment below and update the code to test the property apiVersion - //var instane = new KubernetesJsClient.V1beta1PodSecurityPolicy(); - //expect(instance).to.be(); - }); - - it('should have the property kind (base name: "kind")', function() { - // uncomment below and update the code to test the property kind - //var instane = new KubernetesJsClient.V1beta1PodSecurityPolicy(); - //expect(instance).to.be(); - }); - - it('should have the property metadata (base name: "metadata")', function() { - // uncomment below and update the code to test the property metadata - //var instane = new KubernetesJsClient.V1beta1PodSecurityPolicy(); - //expect(instance).to.be(); - }); - - it('should have the property spec (base name: "spec")', function() { - // uncomment below and update the code to test the property spec - //var instane = new KubernetesJsClient.V1beta1PodSecurityPolicy(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1beta1PodSecurityPolicyList.spec.js b/kubernetes/test/model/V1beta1PodSecurityPolicyList.spec.js deleted file mode 100644 index e8fcaaaf55..0000000000 --- a/kubernetes/test/model/V1beta1PodSecurityPolicyList.spec.js +++ /dev/null @@ -1,83 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1beta1PodSecurityPolicyList(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1beta1PodSecurityPolicyList', function() { - it('should create an instance of V1beta1PodSecurityPolicyList', function() { - // uncomment below and update the code to test V1beta1PodSecurityPolicyList - //var instane = new KubernetesJsClient.V1beta1PodSecurityPolicyList(); - //expect(instance).to.be.a(KubernetesJsClient.V1beta1PodSecurityPolicyList); - }); - - it('should have the property apiVersion (base name: "apiVersion")', function() { - // uncomment below and update the code to test the property apiVersion - //var instane = new KubernetesJsClient.V1beta1PodSecurityPolicyList(); - //expect(instance).to.be(); - }); - - it('should have the property items (base name: "items")', function() { - // uncomment below and update the code to test the property items - //var instane = new KubernetesJsClient.V1beta1PodSecurityPolicyList(); - //expect(instance).to.be(); - }); - - it('should have the property kind (base name: "kind")', function() { - // uncomment below and update the code to test the property kind - //var instane = new KubernetesJsClient.V1beta1PodSecurityPolicyList(); - //expect(instance).to.be(); - }); - - it('should have the property metadata (base name: "metadata")', function() { - // uncomment below and update the code to test the property metadata - //var instane = new KubernetesJsClient.V1beta1PodSecurityPolicyList(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1beta1PodSecurityPolicySpec.spec.js b/kubernetes/test/model/V1beta1PodSecurityPolicySpec.spec.js deleted file mode 100644 index 3b39a01962..0000000000 --- a/kubernetes/test/model/V1beta1PodSecurityPolicySpec.spec.js +++ /dev/null @@ -1,143 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1beta1PodSecurityPolicySpec(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1beta1PodSecurityPolicySpec', function() { - it('should create an instance of V1beta1PodSecurityPolicySpec', function() { - // uncomment below and update the code to test V1beta1PodSecurityPolicySpec - //var instane = new KubernetesJsClient.V1beta1PodSecurityPolicySpec(); - //expect(instance).to.be.a(KubernetesJsClient.V1beta1PodSecurityPolicySpec); - }); - - it('should have the property allowedCapabilities (base name: "allowedCapabilities")', function() { - // uncomment below and update the code to test the property allowedCapabilities - //var instane = new KubernetesJsClient.V1beta1PodSecurityPolicySpec(); - //expect(instance).to.be(); - }); - - it('should have the property defaultAddCapabilities (base name: "defaultAddCapabilities")', function() { - // uncomment below and update the code to test the property defaultAddCapabilities - //var instane = new KubernetesJsClient.V1beta1PodSecurityPolicySpec(); - //expect(instance).to.be(); - }); - - it('should have the property fsGroup (base name: "fsGroup")', function() { - // uncomment below and update the code to test the property fsGroup - //var instane = new KubernetesJsClient.V1beta1PodSecurityPolicySpec(); - //expect(instance).to.be(); - }); - - it('should have the property hostIPC (base name: "hostIPC")', function() { - // uncomment below and update the code to test the property hostIPC - //var instane = new KubernetesJsClient.V1beta1PodSecurityPolicySpec(); - //expect(instance).to.be(); - }); - - it('should have the property hostNetwork (base name: "hostNetwork")', function() { - // uncomment below and update the code to test the property hostNetwork - //var instane = new KubernetesJsClient.V1beta1PodSecurityPolicySpec(); - //expect(instance).to.be(); - }); - - it('should have the property hostPID (base name: "hostPID")', function() { - // uncomment below and update the code to test the property hostPID - //var instane = new KubernetesJsClient.V1beta1PodSecurityPolicySpec(); - //expect(instance).to.be(); - }); - - it('should have the property hostPorts (base name: "hostPorts")', function() { - // uncomment below and update the code to test the property hostPorts - //var instane = new KubernetesJsClient.V1beta1PodSecurityPolicySpec(); - //expect(instance).to.be(); - }); - - it('should have the property privileged (base name: "privileged")', function() { - // uncomment below and update the code to test the property privileged - //var instane = new KubernetesJsClient.V1beta1PodSecurityPolicySpec(); - //expect(instance).to.be(); - }); - - it('should have the property readOnlyRootFilesystem (base name: "readOnlyRootFilesystem")', function() { - // uncomment below and update the code to test the property readOnlyRootFilesystem - //var instane = new KubernetesJsClient.V1beta1PodSecurityPolicySpec(); - //expect(instance).to.be(); - }); - - it('should have the property requiredDropCapabilities (base name: "requiredDropCapabilities")', function() { - // uncomment below and update the code to test the property requiredDropCapabilities - //var instane = new KubernetesJsClient.V1beta1PodSecurityPolicySpec(); - //expect(instance).to.be(); - }); - - it('should have the property runAsUser (base name: "runAsUser")', function() { - // uncomment below and update the code to test the property runAsUser - //var instane = new KubernetesJsClient.V1beta1PodSecurityPolicySpec(); - //expect(instance).to.be(); - }); - - it('should have the property seLinux (base name: "seLinux")', function() { - // uncomment below and update the code to test the property seLinux - //var instane = new KubernetesJsClient.V1beta1PodSecurityPolicySpec(); - //expect(instance).to.be(); - }); - - it('should have the property supplementalGroups (base name: "supplementalGroups")', function() { - // uncomment below and update the code to test the property supplementalGroups - //var instane = new KubernetesJsClient.V1beta1PodSecurityPolicySpec(); - //expect(instance).to.be(); - }); - - it('should have the property volumes (base name: "volumes")', function() { - // uncomment below and update the code to test the property volumes - //var instane = new KubernetesJsClient.V1beta1PodSecurityPolicySpec(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1beta1PolicyRule.spec.js b/kubernetes/test/model/V1beta1PolicyRule.spec.js deleted file mode 100644 index 80db4fbb21..0000000000 --- a/kubernetes/test/model/V1beta1PolicyRule.spec.js +++ /dev/null @@ -1,89 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1beta1PolicyRule(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1beta1PolicyRule', function() { - it('should create an instance of V1beta1PolicyRule', function() { - // uncomment below and update the code to test V1beta1PolicyRule - //var instane = new KubernetesJsClient.V1beta1PolicyRule(); - //expect(instance).to.be.a(KubernetesJsClient.V1beta1PolicyRule); - }); - - it('should have the property apiGroups (base name: "apiGroups")', function() { - // uncomment below and update the code to test the property apiGroups - //var instane = new KubernetesJsClient.V1beta1PolicyRule(); - //expect(instance).to.be(); - }); - - it('should have the property nonResourceURLs (base name: "nonResourceURLs")', function() { - // uncomment below and update the code to test the property nonResourceURLs - //var instane = new KubernetesJsClient.V1beta1PolicyRule(); - //expect(instance).to.be(); - }); - - it('should have the property resourceNames (base name: "resourceNames")', function() { - // uncomment below and update the code to test the property resourceNames - //var instane = new KubernetesJsClient.V1beta1PolicyRule(); - //expect(instance).to.be(); - }); - - it('should have the property resources (base name: "resources")', function() { - // uncomment below and update the code to test the property resources - //var instane = new KubernetesJsClient.V1beta1PolicyRule(); - //expect(instance).to.be(); - }); - - it('should have the property verbs (base name: "verbs")', function() { - // uncomment below and update the code to test the property verbs - //var instane = new KubernetesJsClient.V1beta1PolicyRule(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1beta1ReplicaSet.spec.js b/kubernetes/test/model/V1beta1ReplicaSet.spec.js deleted file mode 100644 index 6772277fe7..0000000000 --- a/kubernetes/test/model/V1beta1ReplicaSet.spec.js +++ /dev/null @@ -1,89 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1beta1ReplicaSet(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1beta1ReplicaSet', function() { - it('should create an instance of V1beta1ReplicaSet', function() { - // uncomment below and update the code to test V1beta1ReplicaSet - //var instane = new KubernetesJsClient.V1beta1ReplicaSet(); - //expect(instance).to.be.a(KubernetesJsClient.V1beta1ReplicaSet); - }); - - it('should have the property apiVersion (base name: "apiVersion")', function() { - // uncomment below and update the code to test the property apiVersion - //var instane = new KubernetesJsClient.V1beta1ReplicaSet(); - //expect(instance).to.be(); - }); - - it('should have the property kind (base name: "kind")', function() { - // uncomment below and update the code to test the property kind - //var instane = new KubernetesJsClient.V1beta1ReplicaSet(); - //expect(instance).to.be(); - }); - - it('should have the property metadata (base name: "metadata")', function() { - // uncomment below and update the code to test the property metadata - //var instane = new KubernetesJsClient.V1beta1ReplicaSet(); - //expect(instance).to.be(); - }); - - it('should have the property spec (base name: "spec")', function() { - // uncomment below and update the code to test the property spec - //var instane = new KubernetesJsClient.V1beta1ReplicaSet(); - //expect(instance).to.be(); - }); - - it('should have the property status (base name: "status")', function() { - // uncomment below and update the code to test the property status - //var instane = new KubernetesJsClient.V1beta1ReplicaSet(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1beta1ReplicaSetCondition.spec.js b/kubernetes/test/model/V1beta1ReplicaSetCondition.spec.js deleted file mode 100644 index 88a484cc6c..0000000000 --- a/kubernetes/test/model/V1beta1ReplicaSetCondition.spec.js +++ /dev/null @@ -1,89 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1beta1ReplicaSetCondition(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1beta1ReplicaSetCondition', function() { - it('should create an instance of V1beta1ReplicaSetCondition', function() { - // uncomment below and update the code to test V1beta1ReplicaSetCondition - //var instane = new KubernetesJsClient.V1beta1ReplicaSetCondition(); - //expect(instance).to.be.a(KubernetesJsClient.V1beta1ReplicaSetCondition); - }); - - it('should have the property lastTransitionTime (base name: "lastTransitionTime")', function() { - // uncomment below and update the code to test the property lastTransitionTime - //var instane = new KubernetesJsClient.V1beta1ReplicaSetCondition(); - //expect(instance).to.be(); - }); - - it('should have the property message (base name: "message")', function() { - // uncomment below and update the code to test the property message - //var instane = new KubernetesJsClient.V1beta1ReplicaSetCondition(); - //expect(instance).to.be(); - }); - - it('should have the property reason (base name: "reason")', function() { - // uncomment below and update the code to test the property reason - //var instane = new KubernetesJsClient.V1beta1ReplicaSetCondition(); - //expect(instance).to.be(); - }); - - it('should have the property status (base name: "status")', function() { - // uncomment below and update the code to test the property status - //var instane = new KubernetesJsClient.V1beta1ReplicaSetCondition(); - //expect(instance).to.be(); - }); - - it('should have the property type (base name: "type")', function() { - // uncomment below and update the code to test the property type - //var instane = new KubernetesJsClient.V1beta1ReplicaSetCondition(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1beta1ReplicaSetList.spec.js b/kubernetes/test/model/V1beta1ReplicaSetList.spec.js deleted file mode 100644 index 2e161b83ab..0000000000 --- a/kubernetes/test/model/V1beta1ReplicaSetList.spec.js +++ /dev/null @@ -1,83 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1beta1ReplicaSetList(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1beta1ReplicaSetList', function() { - it('should create an instance of V1beta1ReplicaSetList', function() { - // uncomment below and update the code to test V1beta1ReplicaSetList - //var instane = new KubernetesJsClient.V1beta1ReplicaSetList(); - //expect(instance).to.be.a(KubernetesJsClient.V1beta1ReplicaSetList); - }); - - it('should have the property apiVersion (base name: "apiVersion")', function() { - // uncomment below and update the code to test the property apiVersion - //var instane = new KubernetesJsClient.V1beta1ReplicaSetList(); - //expect(instance).to.be(); - }); - - it('should have the property items (base name: "items")', function() { - // uncomment below and update the code to test the property items - //var instane = new KubernetesJsClient.V1beta1ReplicaSetList(); - //expect(instance).to.be(); - }); - - it('should have the property kind (base name: "kind")', function() { - // uncomment below and update the code to test the property kind - //var instane = new KubernetesJsClient.V1beta1ReplicaSetList(); - //expect(instance).to.be(); - }); - - it('should have the property metadata (base name: "metadata")', function() { - // uncomment below and update the code to test the property metadata - //var instane = new KubernetesJsClient.V1beta1ReplicaSetList(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1beta1ReplicaSetSpec.spec.js b/kubernetes/test/model/V1beta1ReplicaSetSpec.spec.js deleted file mode 100644 index 3a4510d59a..0000000000 --- a/kubernetes/test/model/V1beta1ReplicaSetSpec.spec.js +++ /dev/null @@ -1,83 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1beta1ReplicaSetSpec(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1beta1ReplicaSetSpec', function() { - it('should create an instance of V1beta1ReplicaSetSpec', function() { - // uncomment below and update the code to test V1beta1ReplicaSetSpec - //var instane = new KubernetesJsClient.V1beta1ReplicaSetSpec(); - //expect(instance).to.be.a(KubernetesJsClient.V1beta1ReplicaSetSpec); - }); - - it('should have the property minReadySeconds (base name: "minReadySeconds")', function() { - // uncomment below and update the code to test the property minReadySeconds - //var instane = new KubernetesJsClient.V1beta1ReplicaSetSpec(); - //expect(instance).to.be(); - }); - - it('should have the property replicas (base name: "replicas")', function() { - // uncomment below and update the code to test the property replicas - //var instane = new KubernetesJsClient.V1beta1ReplicaSetSpec(); - //expect(instance).to.be(); - }); - - it('should have the property selector (base name: "selector")', function() { - // uncomment below and update the code to test the property selector - //var instane = new KubernetesJsClient.V1beta1ReplicaSetSpec(); - //expect(instance).to.be(); - }); - - it('should have the property template (base name: "template")', function() { - // uncomment below and update the code to test the property template - //var instane = new KubernetesJsClient.V1beta1ReplicaSetSpec(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1beta1ReplicaSetStatus.spec.js b/kubernetes/test/model/V1beta1ReplicaSetStatus.spec.js deleted file mode 100644 index 47d4383211..0000000000 --- a/kubernetes/test/model/V1beta1ReplicaSetStatus.spec.js +++ /dev/null @@ -1,95 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1beta1ReplicaSetStatus(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1beta1ReplicaSetStatus', function() { - it('should create an instance of V1beta1ReplicaSetStatus', function() { - // uncomment below and update the code to test V1beta1ReplicaSetStatus - //var instane = new KubernetesJsClient.V1beta1ReplicaSetStatus(); - //expect(instance).to.be.a(KubernetesJsClient.V1beta1ReplicaSetStatus); - }); - - it('should have the property availableReplicas (base name: "availableReplicas")', function() { - // uncomment below and update the code to test the property availableReplicas - //var instane = new KubernetesJsClient.V1beta1ReplicaSetStatus(); - //expect(instance).to.be(); - }); - - it('should have the property conditions (base name: "conditions")', function() { - // uncomment below and update the code to test the property conditions - //var instane = new KubernetesJsClient.V1beta1ReplicaSetStatus(); - //expect(instance).to.be(); - }); - - it('should have the property fullyLabeledReplicas (base name: "fullyLabeledReplicas")', function() { - // uncomment below and update the code to test the property fullyLabeledReplicas - //var instane = new KubernetesJsClient.V1beta1ReplicaSetStatus(); - //expect(instance).to.be(); - }); - - it('should have the property observedGeneration (base name: "observedGeneration")', function() { - // uncomment below and update the code to test the property observedGeneration - //var instane = new KubernetesJsClient.V1beta1ReplicaSetStatus(); - //expect(instance).to.be(); - }); - - it('should have the property readyReplicas (base name: "readyReplicas")', function() { - // uncomment below and update the code to test the property readyReplicas - //var instane = new KubernetesJsClient.V1beta1ReplicaSetStatus(); - //expect(instance).to.be(); - }); - - it('should have the property replicas (base name: "replicas")', function() { - // uncomment below and update the code to test the property replicas - //var instane = new KubernetesJsClient.V1beta1ReplicaSetStatus(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1beta1ResourceAttributes.spec.js b/kubernetes/test/model/V1beta1ResourceAttributes.spec.js deleted file mode 100644 index 3b1f829b49..0000000000 --- a/kubernetes/test/model/V1beta1ResourceAttributes.spec.js +++ /dev/null @@ -1,101 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1beta1ResourceAttributes(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1beta1ResourceAttributes', function() { - it('should create an instance of V1beta1ResourceAttributes', function() { - // uncomment below and update the code to test V1beta1ResourceAttributes - //var instane = new KubernetesJsClient.V1beta1ResourceAttributes(); - //expect(instance).to.be.a(KubernetesJsClient.V1beta1ResourceAttributes); - }); - - it('should have the property group (base name: "group")', function() { - // uncomment below and update the code to test the property group - //var instane = new KubernetesJsClient.V1beta1ResourceAttributes(); - //expect(instance).to.be(); - }); - - it('should have the property name (base name: "name")', function() { - // uncomment below and update the code to test the property name - //var instane = new KubernetesJsClient.V1beta1ResourceAttributes(); - //expect(instance).to.be(); - }); - - it('should have the property namespace (base name: "namespace")', function() { - // uncomment below and update the code to test the property namespace - //var instane = new KubernetesJsClient.V1beta1ResourceAttributes(); - //expect(instance).to.be(); - }); - - it('should have the property resource (base name: "resource")', function() { - // uncomment below and update the code to test the property resource - //var instane = new KubernetesJsClient.V1beta1ResourceAttributes(); - //expect(instance).to.be(); - }); - - it('should have the property subresource (base name: "subresource")', function() { - // uncomment below and update the code to test the property subresource - //var instane = new KubernetesJsClient.V1beta1ResourceAttributes(); - //expect(instance).to.be(); - }); - - it('should have the property verb (base name: "verb")', function() { - // uncomment below and update the code to test the property verb - //var instane = new KubernetesJsClient.V1beta1ResourceAttributes(); - //expect(instance).to.be(); - }); - - it('should have the property version (base name: "version")', function() { - // uncomment below and update the code to test the property version - //var instane = new KubernetesJsClient.V1beta1ResourceAttributes(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1beta1Role.spec.js b/kubernetes/test/model/V1beta1Role.spec.js deleted file mode 100644 index 2f8eaf7caa..0000000000 --- a/kubernetes/test/model/V1beta1Role.spec.js +++ /dev/null @@ -1,83 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1beta1Role(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1beta1Role', function() { - it('should create an instance of V1beta1Role', function() { - // uncomment below and update the code to test V1beta1Role - //var instane = new KubernetesJsClient.V1beta1Role(); - //expect(instance).to.be.a(KubernetesJsClient.V1beta1Role); - }); - - it('should have the property apiVersion (base name: "apiVersion")', function() { - // uncomment below and update the code to test the property apiVersion - //var instane = new KubernetesJsClient.V1beta1Role(); - //expect(instance).to.be(); - }); - - it('should have the property kind (base name: "kind")', function() { - // uncomment below and update the code to test the property kind - //var instane = new KubernetesJsClient.V1beta1Role(); - //expect(instance).to.be(); - }); - - it('should have the property metadata (base name: "metadata")', function() { - // uncomment below and update the code to test the property metadata - //var instane = new KubernetesJsClient.V1beta1Role(); - //expect(instance).to.be(); - }); - - it('should have the property rules (base name: "rules")', function() { - // uncomment below and update the code to test the property rules - //var instane = new KubernetesJsClient.V1beta1Role(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1beta1RoleBinding.spec.js b/kubernetes/test/model/V1beta1RoleBinding.spec.js deleted file mode 100644 index 795806e5c2..0000000000 --- a/kubernetes/test/model/V1beta1RoleBinding.spec.js +++ /dev/null @@ -1,89 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1beta1RoleBinding(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1beta1RoleBinding', function() { - it('should create an instance of V1beta1RoleBinding', function() { - // uncomment below and update the code to test V1beta1RoleBinding - //var instane = new KubernetesJsClient.V1beta1RoleBinding(); - //expect(instance).to.be.a(KubernetesJsClient.V1beta1RoleBinding); - }); - - it('should have the property apiVersion (base name: "apiVersion")', function() { - // uncomment below and update the code to test the property apiVersion - //var instane = new KubernetesJsClient.V1beta1RoleBinding(); - //expect(instance).to.be(); - }); - - it('should have the property kind (base name: "kind")', function() { - // uncomment below and update the code to test the property kind - //var instane = new KubernetesJsClient.V1beta1RoleBinding(); - //expect(instance).to.be(); - }); - - it('should have the property metadata (base name: "metadata")', function() { - // uncomment below and update the code to test the property metadata - //var instane = new KubernetesJsClient.V1beta1RoleBinding(); - //expect(instance).to.be(); - }); - - it('should have the property roleRef (base name: "roleRef")', function() { - // uncomment below and update the code to test the property roleRef - //var instane = new KubernetesJsClient.V1beta1RoleBinding(); - //expect(instance).to.be(); - }); - - it('should have the property subjects (base name: "subjects")', function() { - // uncomment below and update the code to test the property subjects - //var instane = new KubernetesJsClient.V1beta1RoleBinding(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1beta1RoleBindingList.spec.js b/kubernetes/test/model/V1beta1RoleBindingList.spec.js deleted file mode 100644 index a1cd2817db..0000000000 --- a/kubernetes/test/model/V1beta1RoleBindingList.spec.js +++ /dev/null @@ -1,83 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1beta1RoleBindingList(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1beta1RoleBindingList', function() { - it('should create an instance of V1beta1RoleBindingList', function() { - // uncomment below and update the code to test V1beta1RoleBindingList - //var instane = new KubernetesJsClient.V1beta1RoleBindingList(); - //expect(instance).to.be.a(KubernetesJsClient.V1beta1RoleBindingList); - }); - - it('should have the property apiVersion (base name: "apiVersion")', function() { - // uncomment below and update the code to test the property apiVersion - //var instane = new KubernetesJsClient.V1beta1RoleBindingList(); - //expect(instance).to.be(); - }); - - it('should have the property items (base name: "items")', function() { - // uncomment below and update the code to test the property items - //var instane = new KubernetesJsClient.V1beta1RoleBindingList(); - //expect(instance).to.be(); - }); - - it('should have the property kind (base name: "kind")', function() { - // uncomment below and update the code to test the property kind - //var instane = new KubernetesJsClient.V1beta1RoleBindingList(); - //expect(instance).to.be(); - }); - - it('should have the property metadata (base name: "metadata")', function() { - // uncomment below and update the code to test the property metadata - //var instane = new KubernetesJsClient.V1beta1RoleBindingList(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1beta1RoleList.spec.js b/kubernetes/test/model/V1beta1RoleList.spec.js deleted file mode 100644 index 24d3e3f617..0000000000 --- a/kubernetes/test/model/V1beta1RoleList.spec.js +++ /dev/null @@ -1,83 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1beta1RoleList(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1beta1RoleList', function() { - it('should create an instance of V1beta1RoleList', function() { - // uncomment below and update the code to test V1beta1RoleList - //var instane = new KubernetesJsClient.V1beta1RoleList(); - //expect(instance).to.be.a(KubernetesJsClient.V1beta1RoleList); - }); - - it('should have the property apiVersion (base name: "apiVersion")', function() { - // uncomment below and update the code to test the property apiVersion - //var instane = new KubernetesJsClient.V1beta1RoleList(); - //expect(instance).to.be(); - }); - - it('should have the property items (base name: "items")', function() { - // uncomment below and update the code to test the property items - //var instane = new KubernetesJsClient.V1beta1RoleList(); - //expect(instance).to.be(); - }); - - it('should have the property kind (base name: "kind")', function() { - // uncomment below and update the code to test the property kind - //var instane = new KubernetesJsClient.V1beta1RoleList(); - //expect(instance).to.be(); - }); - - it('should have the property metadata (base name: "metadata")', function() { - // uncomment below and update the code to test the property metadata - //var instane = new KubernetesJsClient.V1beta1RoleList(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1beta1RoleRef.spec.js b/kubernetes/test/model/V1beta1RoleRef.spec.js deleted file mode 100644 index c4dffc8e9c..0000000000 --- a/kubernetes/test/model/V1beta1RoleRef.spec.js +++ /dev/null @@ -1,77 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1beta1RoleRef(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1beta1RoleRef', function() { - it('should create an instance of V1beta1RoleRef', function() { - // uncomment below and update the code to test V1beta1RoleRef - //var instane = new KubernetesJsClient.V1beta1RoleRef(); - //expect(instance).to.be.a(KubernetesJsClient.V1beta1RoleRef); - }); - - it('should have the property apiGroup (base name: "apiGroup")', function() { - // uncomment below and update the code to test the property apiGroup - //var instane = new KubernetesJsClient.V1beta1RoleRef(); - //expect(instance).to.be(); - }); - - it('should have the property kind (base name: "kind")', function() { - // uncomment below and update the code to test the property kind - //var instane = new KubernetesJsClient.V1beta1RoleRef(); - //expect(instance).to.be(); - }); - - it('should have the property name (base name: "name")', function() { - // uncomment below and update the code to test the property name - //var instane = new KubernetesJsClient.V1beta1RoleRef(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1beta1RollingUpdateDaemonSet.spec.js b/kubernetes/test/model/V1beta1RollingUpdateDaemonSet.spec.js deleted file mode 100644 index 194336f999..0000000000 --- a/kubernetes/test/model/V1beta1RollingUpdateDaemonSet.spec.js +++ /dev/null @@ -1,65 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1beta1RollingUpdateDaemonSet(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1beta1RollingUpdateDaemonSet', function() { - it('should create an instance of V1beta1RollingUpdateDaemonSet', function() { - // uncomment below and update the code to test V1beta1RollingUpdateDaemonSet - //var instane = new KubernetesJsClient.V1beta1RollingUpdateDaemonSet(); - //expect(instance).to.be.a(KubernetesJsClient.V1beta1RollingUpdateDaemonSet); - }); - - it('should have the property maxUnavailable (base name: "maxUnavailable")', function() { - // uncomment below and update the code to test the property maxUnavailable - //var instane = new KubernetesJsClient.V1beta1RollingUpdateDaemonSet(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1beta1RunAsUserStrategyOptions.spec.js b/kubernetes/test/model/V1beta1RunAsUserStrategyOptions.spec.js deleted file mode 100644 index ea9a7c22d5..0000000000 --- a/kubernetes/test/model/V1beta1RunAsUserStrategyOptions.spec.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1beta1RunAsUserStrategyOptions(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1beta1RunAsUserStrategyOptions', function() { - it('should create an instance of V1beta1RunAsUserStrategyOptions', function() { - // uncomment below and update the code to test V1beta1RunAsUserStrategyOptions - //var instane = new KubernetesJsClient.V1beta1RunAsUserStrategyOptions(); - //expect(instance).to.be.a(KubernetesJsClient.V1beta1RunAsUserStrategyOptions); - }); - - it('should have the property ranges (base name: "ranges")', function() { - // uncomment below and update the code to test the property ranges - //var instane = new KubernetesJsClient.V1beta1RunAsUserStrategyOptions(); - //expect(instance).to.be(); - }); - - it('should have the property rule (base name: "rule")', function() { - // uncomment below and update the code to test the property rule - //var instane = new KubernetesJsClient.V1beta1RunAsUserStrategyOptions(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1beta1SELinuxStrategyOptions.spec.js b/kubernetes/test/model/V1beta1SELinuxStrategyOptions.spec.js deleted file mode 100644 index d8d091765b..0000000000 --- a/kubernetes/test/model/V1beta1SELinuxStrategyOptions.spec.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1beta1SELinuxStrategyOptions(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1beta1SELinuxStrategyOptions', function() { - it('should create an instance of V1beta1SELinuxStrategyOptions', function() { - // uncomment below and update the code to test V1beta1SELinuxStrategyOptions - //var instane = new KubernetesJsClient.V1beta1SELinuxStrategyOptions(); - //expect(instance).to.be.a(KubernetesJsClient.V1beta1SELinuxStrategyOptions); - }); - - it('should have the property rule (base name: "rule")', function() { - // uncomment below and update the code to test the property rule - //var instane = new KubernetesJsClient.V1beta1SELinuxStrategyOptions(); - //expect(instance).to.be(); - }); - - it('should have the property seLinuxOptions (base name: "seLinuxOptions")', function() { - // uncomment below and update the code to test the property seLinuxOptions - //var instane = new KubernetesJsClient.V1beta1SELinuxStrategyOptions(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1beta1SelfSubjectAccessReview.spec.js b/kubernetes/test/model/V1beta1SelfSubjectAccessReview.spec.js deleted file mode 100644 index 27696ef919..0000000000 --- a/kubernetes/test/model/V1beta1SelfSubjectAccessReview.spec.js +++ /dev/null @@ -1,89 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1beta1SelfSubjectAccessReview(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1beta1SelfSubjectAccessReview', function() { - it('should create an instance of V1beta1SelfSubjectAccessReview', function() { - // uncomment below and update the code to test V1beta1SelfSubjectAccessReview - //var instane = new KubernetesJsClient.V1beta1SelfSubjectAccessReview(); - //expect(instance).to.be.a(KubernetesJsClient.V1beta1SelfSubjectAccessReview); - }); - - it('should have the property apiVersion (base name: "apiVersion")', function() { - // uncomment below and update the code to test the property apiVersion - //var instane = new KubernetesJsClient.V1beta1SelfSubjectAccessReview(); - //expect(instance).to.be(); - }); - - it('should have the property kind (base name: "kind")', function() { - // uncomment below and update the code to test the property kind - //var instane = new KubernetesJsClient.V1beta1SelfSubjectAccessReview(); - //expect(instance).to.be(); - }); - - it('should have the property metadata (base name: "metadata")', function() { - // uncomment below and update the code to test the property metadata - //var instane = new KubernetesJsClient.V1beta1SelfSubjectAccessReview(); - //expect(instance).to.be(); - }); - - it('should have the property spec (base name: "spec")', function() { - // uncomment below and update the code to test the property spec - //var instane = new KubernetesJsClient.V1beta1SelfSubjectAccessReview(); - //expect(instance).to.be(); - }); - - it('should have the property status (base name: "status")', function() { - // uncomment below and update the code to test the property status - //var instane = new KubernetesJsClient.V1beta1SelfSubjectAccessReview(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1beta1SelfSubjectAccessReviewSpec.spec.js b/kubernetes/test/model/V1beta1SelfSubjectAccessReviewSpec.spec.js deleted file mode 100644 index 93e6dfc442..0000000000 --- a/kubernetes/test/model/V1beta1SelfSubjectAccessReviewSpec.spec.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1beta1SelfSubjectAccessReviewSpec(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1beta1SelfSubjectAccessReviewSpec', function() { - it('should create an instance of V1beta1SelfSubjectAccessReviewSpec', function() { - // uncomment below and update the code to test V1beta1SelfSubjectAccessReviewSpec - //var instane = new KubernetesJsClient.V1beta1SelfSubjectAccessReviewSpec(); - //expect(instance).to.be.a(KubernetesJsClient.V1beta1SelfSubjectAccessReviewSpec); - }); - - it('should have the property nonResourceAttributes (base name: "nonResourceAttributes")', function() { - // uncomment below and update the code to test the property nonResourceAttributes - //var instane = new KubernetesJsClient.V1beta1SelfSubjectAccessReviewSpec(); - //expect(instance).to.be(); - }); - - it('should have the property resourceAttributes (base name: "resourceAttributes")', function() { - // uncomment below and update the code to test the property resourceAttributes - //var instane = new KubernetesJsClient.V1beta1SelfSubjectAccessReviewSpec(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1beta1StatefulSet.spec.js b/kubernetes/test/model/V1beta1StatefulSet.spec.js deleted file mode 100644 index 781881ccbb..0000000000 --- a/kubernetes/test/model/V1beta1StatefulSet.spec.js +++ /dev/null @@ -1,89 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1beta1StatefulSet(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1beta1StatefulSet', function() { - it('should create an instance of V1beta1StatefulSet', function() { - // uncomment below and update the code to test V1beta1StatefulSet - //var instane = new KubernetesJsClient.V1beta1StatefulSet(); - //expect(instance).to.be.a(KubernetesJsClient.V1beta1StatefulSet); - }); - - it('should have the property apiVersion (base name: "apiVersion")', function() { - // uncomment below and update the code to test the property apiVersion - //var instane = new KubernetesJsClient.V1beta1StatefulSet(); - //expect(instance).to.be(); - }); - - it('should have the property kind (base name: "kind")', function() { - // uncomment below and update the code to test the property kind - //var instane = new KubernetesJsClient.V1beta1StatefulSet(); - //expect(instance).to.be(); - }); - - it('should have the property metadata (base name: "metadata")', function() { - // uncomment below and update the code to test the property metadata - //var instane = new KubernetesJsClient.V1beta1StatefulSet(); - //expect(instance).to.be(); - }); - - it('should have the property spec (base name: "spec")', function() { - // uncomment below and update the code to test the property spec - //var instane = new KubernetesJsClient.V1beta1StatefulSet(); - //expect(instance).to.be(); - }); - - it('should have the property status (base name: "status")', function() { - // uncomment below and update the code to test the property status - //var instane = new KubernetesJsClient.V1beta1StatefulSet(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1beta1StatefulSetList.spec.js b/kubernetes/test/model/V1beta1StatefulSetList.spec.js deleted file mode 100644 index ed1777695e..0000000000 --- a/kubernetes/test/model/V1beta1StatefulSetList.spec.js +++ /dev/null @@ -1,83 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1beta1StatefulSetList(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1beta1StatefulSetList', function() { - it('should create an instance of V1beta1StatefulSetList', function() { - // uncomment below and update the code to test V1beta1StatefulSetList - //var instane = new KubernetesJsClient.V1beta1StatefulSetList(); - //expect(instance).to.be.a(KubernetesJsClient.V1beta1StatefulSetList); - }); - - it('should have the property apiVersion (base name: "apiVersion")', function() { - // uncomment below and update the code to test the property apiVersion - //var instane = new KubernetesJsClient.V1beta1StatefulSetList(); - //expect(instance).to.be(); - }); - - it('should have the property items (base name: "items")', function() { - // uncomment below and update the code to test the property items - //var instane = new KubernetesJsClient.V1beta1StatefulSetList(); - //expect(instance).to.be(); - }); - - it('should have the property kind (base name: "kind")', function() { - // uncomment below and update the code to test the property kind - //var instane = new KubernetesJsClient.V1beta1StatefulSetList(); - //expect(instance).to.be(); - }); - - it('should have the property metadata (base name: "metadata")', function() { - // uncomment below and update the code to test the property metadata - //var instane = new KubernetesJsClient.V1beta1StatefulSetList(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1beta1StatefulSetSpec.spec.js b/kubernetes/test/model/V1beta1StatefulSetSpec.spec.js deleted file mode 100644 index 7dc9b38676..0000000000 --- a/kubernetes/test/model/V1beta1StatefulSetSpec.spec.js +++ /dev/null @@ -1,89 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1beta1StatefulSetSpec(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1beta1StatefulSetSpec', function() { - it('should create an instance of V1beta1StatefulSetSpec', function() { - // uncomment below and update the code to test V1beta1StatefulSetSpec - //var instane = new KubernetesJsClient.V1beta1StatefulSetSpec(); - //expect(instance).to.be.a(KubernetesJsClient.V1beta1StatefulSetSpec); - }); - - it('should have the property replicas (base name: "replicas")', function() { - // uncomment below and update the code to test the property replicas - //var instane = new KubernetesJsClient.V1beta1StatefulSetSpec(); - //expect(instance).to.be(); - }); - - it('should have the property selector (base name: "selector")', function() { - // uncomment below and update the code to test the property selector - //var instane = new KubernetesJsClient.V1beta1StatefulSetSpec(); - //expect(instance).to.be(); - }); - - it('should have the property serviceName (base name: "serviceName")', function() { - // uncomment below and update the code to test the property serviceName - //var instane = new KubernetesJsClient.V1beta1StatefulSetSpec(); - //expect(instance).to.be(); - }); - - it('should have the property template (base name: "template")', function() { - // uncomment below and update the code to test the property template - //var instane = new KubernetesJsClient.V1beta1StatefulSetSpec(); - //expect(instance).to.be(); - }); - - it('should have the property volumeClaimTemplates (base name: "volumeClaimTemplates")', function() { - // uncomment below and update the code to test the property volumeClaimTemplates - //var instane = new KubernetesJsClient.V1beta1StatefulSetSpec(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1beta1StatefulSetStatus.spec.js b/kubernetes/test/model/V1beta1StatefulSetStatus.spec.js deleted file mode 100644 index 0ac02c4859..0000000000 --- a/kubernetes/test/model/V1beta1StatefulSetStatus.spec.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1beta1StatefulSetStatus(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1beta1StatefulSetStatus', function() { - it('should create an instance of V1beta1StatefulSetStatus', function() { - // uncomment below and update the code to test V1beta1StatefulSetStatus - //var instane = new KubernetesJsClient.V1beta1StatefulSetStatus(); - //expect(instance).to.be.a(KubernetesJsClient.V1beta1StatefulSetStatus); - }); - - it('should have the property observedGeneration (base name: "observedGeneration")', function() { - // uncomment below and update the code to test the property observedGeneration - //var instane = new KubernetesJsClient.V1beta1StatefulSetStatus(); - //expect(instance).to.be(); - }); - - it('should have the property replicas (base name: "replicas")', function() { - // uncomment below and update the code to test the property replicas - //var instane = new KubernetesJsClient.V1beta1StatefulSetStatus(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1beta1StorageClass.spec.js b/kubernetes/test/model/V1beta1StorageClass.spec.js deleted file mode 100644 index bdc8d34c42..0000000000 --- a/kubernetes/test/model/V1beta1StorageClass.spec.js +++ /dev/null @@ -1,89 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1beta1StorageClass(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1beta1StorageClass', function() { - it('should create an instance of V1beta1StorageClass', function() { - // uncomment below and update the code to test V1beta1StorageClass - //var instane = new KubernetesJsClient.V1beta1StorageClass(); - //expect(instance).to.be.a(KubernetesJsClient.V1beta1StorageClass); - }); - - it('should have the property apiVersion (base name: "apiVersion")', function() { - // uncomment below and update the code to test the property apiVersion - //var instane = new KubernetesJsClient.V1beta1StorageClass(); - //expect(instance).to.be(); - }); - - it('should have the property kind (base name: "kind")', function() { - // uncomment below and update the code to test the property kind - //var instane = new KubernetesJsClient.V1beta1StorageClass(); - //expect(instance).to.be(); - }); - - it('should have the property metadata (base name: "metadata")', function() { - // uncomment below and update the code to test the property metadata - //var instane = new KubernetesJsClient.V1beta1StorageClass(); - //expect(instance).to.be(); - }); - - it('should have the property parameters (base name: "parameters")', function() { - // uncomment below and update the code to test the property parameters - //var instane = new KubernetesJsClient.V1beta1StorageClass(); - //expect(instance).to.be(); - }); - - it('should have the property provisioner (base name: "provisioner")', function() { - // uncomment below and update the code to test the property provisioner - //var instane = new KubernetesJsClient.V1beta1StorageClass(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1beta1StorageClassList.spec.js b/kubernetes/test/model/V1beta1StorageClassList.spec.js deleted file mode 100644 index ced456b760..0000000000 --- a/kubernetes/test/model/V1beta1StorageClassList.spec.js +++ /dev/null @@ -1,83 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1beta1StorageClassList(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1beta1StorageClassList', function() { - it('should create an instance of V1beta1StorageClassList', function() { - // uncomment below and update the code to test V1beta1StorageClassList - //var instane = new KubernetesJsClient.V1beta1StorageClassList(); - //expect(instance).to.be.a(KubernetesJsClient.V1beta1StorageClassList); - }); - - it('should have the property apiVersion (base name: "apiVersion")', function() { - // uncomment below and update the code to test the property apiVersion - //var instane = new KubernetesJsClient.V1beta1StorageClassList(); - //expect(instance).to.be(); - }); - - it('should have the property items (base name: "items")', function() { - // uncomment below and update the code to test the property items - //var instane = new KubernetesJsClient.V1beta1StorageClassList(); - //expect(instance).to.be(); - }); - - it('should have the property kind (base name: "kind")', function() { - // uncomment below and update the code to test the property kind - //var instane = new KubernetesJsClient.V1beta1StorageClassList(); - //expect(instance).to.be(); - }); - - it('should have the property metadata (base name: "metadata")', function() { - // uncomment below and update the code to test the property metadata - //var instane = new KubernetesJsClient.V1beta1StorageClassList(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1beta1Subject.spec.js b/kubernetes/test/model/V1beta1Subject.spec.js deleted file mode 100644 index ab5e45628f..0000000000 --- a/kubernetes/test/model/V1beta1Subject.spec.js +++ /dev/null @@ -1,83 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1beta1Subject(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1beta1Subject', function() { - it('should create an instance of V1beta1Subject', function() { - // uncomment below and update the code to test V1beta1Subject - //var instane = new KubernetesJsClient.V1beta1Subject(); - //expect(instance).to.be.a(KubernetesJsClient.V1beta1Subject); - }); - - it('should have the property apiGroup (base name: "apiGroup")', function() { - // uncomment below and update the code to test the property apiGroup - //var instane = new KubernetesJsClient.V1beta1Subject(); - //expect(instance).to.be(); - }); - - it('should have the property kind (base name: "kind")', function() { - // uncomment below and update the code to test the property kind - //var instane = new KubernetesJsClient.V1beta1Subject(); - //expect(instance).to.be(); - }); - - it('should have the property name (base name: "name")', function() { - // uncomment below and update the code to test the property name - //var instane = new KubernetesJsClient.V1beta1Subject(); - //expect(instance).to.be(); - }); - - it('should have the property namespace (base name: "namespace")', function() { - // uncomment below and update the code to test the property namespace - //var instane = new KubernetesJsClient.V1beta1Subject(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1beta1SubjectAccessReview.spec.js b/kubernetes/test/model/V1beta1SubjectAccessReview.spec.js deleted file mode 100644 index 6854e6d350..0000000000 --- a/kubernetes/test/model/V1beta1SubjectAccessReview.spec.js +++ /dev/null @@ -1,89 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1beta1SubjectAccessReview(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1beta1SubjectAccessReview', function() { - it('should create an instance of V1beta1SubjectAccessReview', function() { - // uncomment below and update the code to test V1beta1SubjectAccessReview - //var instane = new KubernetesJsClient.V1beta1SubjectAccessReview(); - //expect(instance).to.be.a(KubernetesJsClient.V1beta1SubjectAccessReview); - }); - - it('should have the property apiVersion (base name: "apiVersion")', function() { - // uncomment below and update the code to test the property apiVersion - //var instane = new KubernetesJsClient.V1beta1SubjectAccessReview(); - //expect(instance).to.be(); - }); - - it('should have the property kind (base name: "kind")', function() { - // uncomment below and update the code to test the property kind - //var instane = new KubernetesJsClient.V1beta1SubjectAccessReview(); - //expect(instance).to.be(); - }); - - it('should have the property metadata (base name: "metadata")', function() { - // uncomment below and update the code to test the property metadata - //var instane = new KubernetesJsClient.V1beta1SubjectAccessReview(); - //expect(instance).to.be(); - }); - - it('should have the property spec (base name: "spec")', function() { - // uncomment below and update the code to test the property spec - //var instane = new KubernetesJsClient.V1beta1SubjectAccessReview(); - //expect(instance).to.be(); - }); - - it('should have the property status (base name: "status")', function() { - // uncomment below and update the code to test the property status - //var instane = new KubernetesJsClient.V1beta1SubjectAccessReview(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1beta1SubjectAccessReviewSpec.spec.js b/kubernetes/test/model/V1beta1SubjectAccessReviewSpec.spec.js deleted file mode 100644 index 9f8e681480..0000000000 --- a/kubernetes/test/model/V1beta1SubjectAccessReviewSpec.spec.js +++ /dev/null @@ -1,89 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1beta1SubjectAccessReviewSpec(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1beta1SubjectAccessReviewSpec', function() { - it('should create an instance of V1beta1SubjectAccessReviewSpec', function() { - // uncomment below and update the code to test V1beta1SubjectAccessReviewSpec - //var instane = new KubernetesJsClient.V1beta1SubjectAccessReviewSpec(); - //expect(instance).to.be.a(KubernetesJsClient.V1beta1SubjectAccessReviewSpec); - }); - - it('should have the property extra (base name: "extra")', function() { - // uncomment below and update the code to test the property extra - //var instane = new KubernetesJsClient.V1beta1SubjectAccessReviewSpec(); - //expect(instance).to.be(); - }); - - it('should have the property group (base name: "group")', function() { - // uncomment below and update the code to test the property group - //var instane = new KubernetesJsClient.V1beta1SubjectAccessReviewSpec(); - //expect(instance).to.be(); - }); - - it('should have the property nonResourceAttributes (base name: "nonResourceAttributes")', function() { - // uncomment below and update the code to test the property nonResourceAttributes - //var instane = new KubernetesJsClient.V1beta1SubjectAccessReviewSpec(); - //expect(instance).to.be(); - }); - - it('should have the property resourceAttributes (base name: "resourceAttributes")', function() { - // uncomment below and update the code to test the property resourceAttributes - //var instane = new KubernetesJsClient.V1beta1SubjectAccessReviewSpec(); - //expect(instance).to.be(); - }); - - it('should have the property user (base name: "user")', function() { - // uncomment below and update the code to test the property user - //var instane = new KubernetesJsClient.V1beta1SubjectAccessReviewSpec(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1beta1SubjectAccessReviewStatus.spec.js b/kubernetes/test/model/V1beta1SubjectAccessReviewStatus.spec.js deleted file mode 100644 index 9aef83cbf4..0000000000 --- a/kubernetes/test/model/V1beta1SubjectAccessReviewStatus.spec.js +++ /dev/null @@ -1,77 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1beta1SubjectAccessReviewStatus(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1beta1SubjectAccessReviewStatus', function() { - it('should create an instance of V1beta1SubjectAccessReviewStatus', function() { - // uncomment below and update the code to test V1beta1SubjectAccessReviewStatus - //var instane = new KubernetesJsClient.V1beta1SubjectAccessReviewStatus(); - //expect(instance).to.be.a(KubernetesJsClient.V1beta1SubjectAccessReviewStatus); - }); - - it('should have the property allowed (base name: "allowed")', function() { - // uncomment below and update the code to test the property allowed - //var instane = new KubernetesJsClient.V1beta1SubjectAccessReviewStatus(); - //expect(instance).to.be(); - }); - - it('should have the property evaluationError (base name: "evaluationError")', function() { - // uncomment below and update the code to test the property evaluationError - //var instane = new KubernetesJsClient.V1beta1SubjectAccessReviewStatus(); - //expect(instance).to.be(); - }); - - it('should have the property reason (base name: "reason")', function() { - // uncomment below and update the code to test the property reason - //var instane = new KubernetesJsClient.V1beta1SubjectAccessReviewStatus(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1beta1SupplementalGroupsStrategyOptions.spec.js b/kubernetes/test/model/V1beta1SupplementalGroupsStrategyOptions.spec.js deleted file mode 100644 index 5b330a69a2..0000000000 --- a/kubernetes/test/model/V1beta1SupplementalGroupsStrategyOptions.spec.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1beta1SupplementalGroupsStrategyOptions(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1beta1SupplementalGroupsStrategyOptions', function() { - it('should create an instance of V1beta1SupplementalGroupsStrategyOptions', function() { - // uncomment below and update the code to test V1beta1SupplementalGroupsStrategyOptions - //var instane = new KubernetesJsClient.V1beta1SupplementalGroupsStrategyOptions(); - //expect(instance).to.be.a(KubernetesJsClient.V1beta1SupplementalGroupsStrategyOptions); - }); - - it('should have the property ranges (base name: "ranges")', function() { - // uncomment below and update the code to test the property ranges - //var instane = new KubernetesJsClient.V1beta1SupplementalGroupsStrategyOptions(); - //expect(instance).to.be(); - }); - - it('should have the property rule (base name: "rule")', function() { - // uncomment below and update the code to test the property rule - //var instane = new KubernetesJsClient.V1beta1SupplementalGroupsStrategyOptions(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1beta1ThirdPartyResource.spec.js b/kubernetes/test/model/V1beta1ThirdPartyResource.spec.js deleted file mode 100644 index 7775bb10da..0000000000 --- a/kubernetes/test/model/V1beta1ThirdPartyResource.spec.js +++ /dev/null @@ -1,89 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1beta1ThirdPartyResource(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1beta1ThirdPartyResource', function() { - it('should create an instance of V1beta1ThirdPartyResource', function() { - // uncomment below and update the code to test V1beta1ThirdPartyResource - //var instane = new KubernetesJsClient.V1beta1ThirdPartyResource(); - //expect(instance).to.be.a(KubernetesJsClient.V1beta1ThirdPartyResource); - }); - - it('should have the property apiVersion (base name: "apiVersion")', function() { - // uncomment below and update the code to test the property apiVersion - //var instane = new KubernetesJsClient.V1beta1ThirdPartyResource(); - //expect(instance).to.be(); - }); - - it('should have the property description (base name: "description")', function() { - // uncomment below and update the code to test the property description - //var instane = new KubernetesJsClient.V1beta1ThirdPartyResource(); - //expect(instance).to.be(); - }); - - it('should have the property kind (base name: "kind")', function() { - // uncomment below and update the code to test the property kind - //var instane = new KubernetesJsClient.V1beta1ThirdPartyResource(); - //expect(instance).to.be(); - }); - - it('should have the property metadata (base name: "metadata")', function() { - // uncomment below and update the code to test the property metadata - //var instane = new KubernetesJsClient.V1beta1ThirdPartyResource(); - //expect(instance).to.be(); - }); - - it('should have the property versions (base name: "versions")', function() { - // uncomment below and update the code to test the property versions - //var instane = new KubernetesJsClient.V1beta1ThirdPartyResource(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1beta1ThirdPartyResourceList.spec.js b/kubernetes/test/model/V1beta1ThirdPartyResourceList.spec.js deleted file mode 100644 index 5ecc0db196..0000000000 --- a/kubernetes/test/model/V1beta1ThirdPartyResourceList.spec.js +++ /dev/null @@ -1,83 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1beta1ThirdPartyResourceList(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1beta1ThirdPartyResourceList', function() { - it('should create an instance of V1beta1ThirdPartyResourceList', function() { - // uncomment below and update the code to test V1beta1ThirdPartyResourceList - //var instane = new KubernetesJsClient.V1beta1ThirdPartyResourceList(); - //expect(instance).to.be.a(KubernetesJsClient.V1beta1ThirdPartyResourceList); - }); - - it('should have the property apiVersion (base name: "apiVersion")', function() { - // uncomment below and update the code to test the property apiVersion - //var instane = new KubernetesJsClient.V1beta1ThirdPartyResourceList(); - //expect(instance).to.be(); - }); - - it('should have the property items (base name: "items")', function() { - // uncomment below and update the code to test the property items - //var instane = new KubernetesJsClient.V1beta1ThirdPartyResourceList(); - //expect(instance).to.be(); - }); - - it('should have the property kind (base name: "kind")', function() { - // uncomment below and update the code to test the property kind - //var instane = new KubernetesJsClient.V1beta1ThirdPartyResourceList(); - //expect(instance).to.be(); - }); - - it('should have the property metadata (base name: "metadata")', function() { - // uncomment below and update the code to test the property metadata - //var instane = new KubernetesJsClient.V1beta1ThirdPartyResourceList(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1beta1TokenReview.spec.js b/kubernetes/test/model/V1beta1TokenReview.spec.js deleted file mode 100644 index cf78322d40..0000000000 --- a/kubernetes/test/model/V1beta1TokenReview.spec.js +++ /dev/null @@ -1,89 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1beta1TokenReview(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1beta1TokenReview', function() { - it('should create an instance of V1beta1TokenReview', function() { - // uncomment below and update the code to test V1beta1TokenReview - //var instane = new KubernetesJsClient.V1beta1TokenReview(); - //expect(instance).to.be.a(KubernetesJsClient.V1beta1TokenReview); - }); - - it('should have the property apiVersion (base name: "apiVersion")', function() { - // uncomment below and update the code to test the property apiVersion - //var instane = new KubernetesJsClient.V1beta1TokenReview(); - //expect(instance).to.be(); - }); - - it('should have the property kind (base name: "kind")', function() { - // uncomment below and update the code to test the property kind - //var instane = new KubernetesJsClient.V1beta1TokenReview(); - //expect(instance).to.be(); - }); - - it('should have the property metadata (base name: "metadata")', function() { - // uncomment below and update the code to test the property metadata - //var instane = new KubernetesJsClient.V1beta1TokenReview(); - //expect(instance).to.be(); - }); - - it('should have the property spec (base name: "spec")', function() { - // uncomment below and update the code to test the property spec - //var instane = new KubernetesJsClient.V1beta1TokenReview(); - //expect(instance).to.be(); - }); - - it('should have the property status (base name: "status")', function() { - // uncomment below and update the code to test the property status - //var instane = new KubernetesJsClient.V1beta1TokenReview(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1beta1TokenReviewSpec.spec.js b/kubernetes/test/model/V1beta1TokenReviewSpec.spec.js deleted file mode 100644 index d13cb3eb77..0000000000 --- a/kubernetes/test/model/V1beta1TokenReviewSpec.spec.js +++ /dev/null @@ -1,65 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1beta1TokenReviewSpec(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1beta1TokenReviewSpec', function() { - it('should create an instance of V1beta1TokenReviewSpec', function() { - // uncomment below and update the code to test V1beta1TokenReviewSpec - //var instane = new KubernetesJsClient.V1beta1TokenReviewSpec(); - //expect(instance).to.be.a(KubernetesJsClient.V1beta1TokenReviewSpec); - }); - - it('should have the property token (base name: "token")', function() { - // uncomment below and update the code to test the property token - //var instane = new KubernetesJsClient.V1beta1TokenReviewSpec(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1beta1TokenReviewStatus.spec.js b/kubernetes/test/model/V1beta1TokenReviewStatus.spec.js deleted file mode 100644 index 4d7121f697..0000000000 --- a/kubernetes/test/model/V1beta1TokenReviewStatus.spec.js +++ /dev/null @@ -1,77 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1beta1TokenReviewStatus(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1beta1TokenReviewStatus', function() { - it('should create an instance of V1beta1TokenReviewStatus', function() { - // uncomment below and update the code to test V1beta1TokenReviewStatus - //var instane = new KubernetesJsClient.V1beta1TokenReviewStatus(); - //expect(instance).to.be.a(KubernetesJsClient.V1beta1TokenReviewStatus); - }); - - it('should have the property authenticated (base name: "authenticated")', function() { - // uncomment below and update the code to test the property authenticated - //var instane = new KubernetesJsClient.V1beta1TokenReviewStatus(); - //expect(instance).to.be(); - }); - - it('should have the property error (base name: "error")', function() { - // uncomment below and update the code to test the property error - //var instane = new KubernetesJsClient.V1beta1TokenReviewStatus(); - //expect(instance).to.be(); - }); - - it('should have the property user (base name: "user")', function() { - // uncomment below and update the code to test the property user - //var instane = new KubernetesJsClient.V1beta1TokenReviewStatus(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V1beta1UserInfo.spec.js b/kubernetes/test/model/V1beta1UserInfo.spec.js deleted file mode 100644 index 139777c2a8..0000000000 --- a/kubernetes/test/model/V1beta1UserInfo.spec.js +++ /dev/null @@ -1,83 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V1beta1UserInfo(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V1beta1UserInfo', function() { - it('should create an instance of V1beta1UserInfo', function() { - // uncomment below and update the code to test V1beta1UserInfo - //var instane = new KubernetesJsClient.V1beta1UserInfo(); - //expect(instance).to.be.a(KubernetesJsClient.V1beta1UserInfo); - }); - - it('should have the property extra (base name: "extra")', function() { - // uncomment below and update the code to test the property extra - //var instane = new KubernetesJsClient.V1beta1UserInfo(); - //expect(instance).to.be(); - }); - - it('should have the property groups (base name: "groups")', function() { - // uncomment below and update the code to test the property groups - //var instane = new KubernetesJsClient.V1beta1UserInfo(); - //expect(instance).to.be(); - }); - - it('should have the property uid (base name: "uid")', function() { - // uncomment below and update the code to test the property uid - //var instane = new KubernetesJsClient.V1beta1UserInfo(); - //expect(instance).to.be(); - }); - - it('should have the property username (base name: "username")', function() { - // uncomment below and update the code to test the property username - //var instane = new KubernetesJsClient.V1beta1UserInfo(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V2alpha1CronJob.spec.js b/kubernetes/test/model/V2alpha1CronJob.spec.js deleted file mode 100644 index 750499d3c2..0000000000 --- a/kubernetes/test/model/V2alpha1CronJob.spec.js +++ /dev/null @@ -1,89 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V2alpha1CronJob(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V2alpha1CronJob', function() { - it('should create an instance of V2alpha1CronJob', function() { - // uncomment below and update the code to test V2alpha1CronJob - //var instane = new KubernetesJsClient.V2alpha1CronJob(); - //expect(instance).to.be.a(KubernetesJsClient.V2alpha1CronJob); - }); - - it('should have the property apiVersion (base name: "apiVersion")', function() { - // uncomment below and update the code to test the property apiVersion - //var instane = new KubernetesJsClient.V2alpha1CronJob(); - //expect(instance).to.be(); - }); - - it('should have the property kind (base name: "kind")', function() { - // uncomment below and update the code to test the property kind - //var instane = new KubernetesJsClient.V2alpha1CronJob(); - //expect(instance).to.be(); - }); - - it('should have the property metadata (base name: "metadata")', function() { - // uncomment below and update the code to test the property metadata - //var instane = new KubernetesJsClient.V2alpha1CronJob(); - //expect(instance).to.be(); - }); - - it('should have the property spec (base name: "spec")', function() { - // uncomment below and update the code to test the property spec - //var instane = new KubernetesJsClient.V2alpha1CronJob(); - //expect(instance).to.be(); - }); - - it('should have the property status (base name: "status")', function() { - // uncomment below and update the code to test the property status - //var instane = new KubernetesJsClient.V2alpha1CronJob(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V2alpha1CronJobList.spec.js b/kubernetes/test/model/V2alpha1CronJobList.spec.js deleted file mode 100644 index c701e91032..0000000000 --- a/kubernetes/test/model/V2alpha1CronJobList.spec.js +++ /dev/null @@ -1,83 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V2alpha1CronJobList(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V2alpha1CronJobList', function() { - it('should create an instance of V2alpha1CronJobList', function() { - // uncomment below and update the code to test V2alpha1CronJobList - //var instane = new KubernetesJsClient.V2alpha1CronJobList(); - //expect(instance).to.be.a(KubernetesJsClient.V2alpha1CronJobList); - }); - - it('should have the property apiVersion (base name: "apiVersion")', function() { - // uncomment below and update the code to test the property apiVersion - //var instane = new KubernetesJsClient.V2alpha1CronJobList(); - //expect(instance).to.be(); - }); - - it('should have the property items (base name: "items")', function() { - // uncomment below and update the code to test the property items - //var instane = new KubernetesJsClient.V2alpha1CronJobList(); - //expect(instance).to.be(); - }); - - it('should have the property kind (base name: "kind")', function() { - // uncomment below and update the code to test the property kind - //var instane = new KubernetesJsClient.V2alpha1CronJobList(); - //expect(instance).to.be(); - }); - - it('should have the property metadata (base name: "metadata")', function() { - // uncomment below and update the code to test the property metadata - //var instane = new KubernetesJsClient.V2alpha1CronJobList(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V2alpha1CronJobSpec.spec.js b/kubernetes/test/model/V2alpha1CronJobSpec.spec.js deleted file mode 100644 index cc853afda8..0000000000 --- a/kubernetes/test/model/V2alpha1CronJobSpec.spec.js +++ /dev/null @@ -1,101 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V2alpha1CronJobSpec(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V2alpha1CronJobSpec', function() { - it('should create an instance of V2alpha1CronJobSpec', function() { - // uncomment below and update the code to test V2alpha1CronJobSpec - //var instane = new KubernetesJsClient.V2alpha1CronJobSpec(); - //expect(instance).to.be.a(KubernetesJsClient.V2alpha1CronJobSpec); - }); - - it('should have the property concurrencyPolicy (base name: "concurrencyPolicy")', function() { - // uncomment below and update the code to test the property concurrencyPolicy - //var instane = new KubernetesJsClient.V2alpha1CronJobSpec(); - //expect(instance).to.be(); - }); - - it('should have the property failedJobsHistoryLimit (base name: "failedJobsHistoryLimit")', function() { - // uncomment below and update the code to test the property failedJobsHistoryLimit - //var instane = new KubernetesJsClient.V2alpha1CronJobSpec(); - //expect(instance).to.be(); - }); - - it('should have the property jobTemplate (base name: "jobTemplate")', function() { - // uncomment below and update the code to test the property jobTemplate - //var instane = new KubernetesJsClient.V2alpha1CronJobSpec(); - //expect(instance).to.be(); - }); - - it('should have the property schedule (base name: "schedule")', function() { - // uncomment below and update the code to test the property schedule - //var instane = new KubernetesJsClient.V2alpha1CronJobSpec(); - //expect(instance).to.be(); - }); - - it('should have the property startingDeadlineSeconds (base name: "startingDeadlineSeconds")', function() { - // uncomment below and update the code to test the property startingDeadlineSeconds - //var instane = new KubernetesJsClient.V2alpha1CronJobSpec(); - //expect(instance).to.be(); - }); - - it('should have the property successfulJobsHistoryLimit (base name: "successfulJobsHistoryLimit")', function() { - // uncomment below and update the code to test the property successfulJobsHistoryLimit - //var instane = new KubernetesJsClient.V2alpha1CronJobSpec(); - //expect(instance).to.be(); - }); - - it('should have the property suspend (base name: "suspend")', function() { - // uncomment below and update the code to test the property suspend - //var instane = new KubernetesJsClient.V2alpha1CronJobSpec(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V2alpha1CronJobStatus.spec.js b/kubernetes/test/model/V2alpha1CronJobStatus.spec.js deleted file mode 100644 index dc6c286704..0000000000 --- a/kubernetes/test/model/V2alpha1CronJobStatus.spec.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V2alpha1CronJobStatus(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V2alpha1CronJobStatus', function() { - it('should create an instance of V2alpha1CronJobStatus', function() { - // uncomment below and update the code to test V2alpha1CronJobStatus - //var instane = new KubernetesJsClient.V2alpha1CronJobStatus(); - //expect(instance).to.be.a(KubernetesJsClient.V2alpha1CronJobStatus); - }); - - it('should have the property active (base name: "active")', function() { - // uncomment below and update the code to test the property active - //var instane = new KubernetesJsClient.V2alpha1CronJobStatus(); - //expect(instance).to.be(); - }); - - it('should have the property lastScheduleTime (base name: "lastScheduleTime")', function() { - // uncomment below and update the code to test the property lastScheduleTime - //var instane = new KubernetesJsClient.V2alpha1CronJobStatus(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V2alpha1CrossVersionObjectReference.spec.js b/kubernetes/test/model/V2alpha1CrossVersionObjectReference.spec.js deleted file mode 100644 index b5d2e8839c..0000000000 --- a/kubernetes/test/model/V2alpha1CrossVersionObjectReference.spec.js +++ /dev/null @@ -1,77 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V2alpha1CrossVersionObjectReference(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V2alpha1CrossVersionObjectReference', function() { - it('should create an instance of V2alpha1CrossVersionObjectReference', function() { - // uncomment below and update the code to test V2alpha1CrossVersionObjectReference - //var instane = new KubernetesJsClient.V2alpha1CrossVersionObjectReference(); - //expect(instance).to.be.a(KubernetesJsClient.V2alpha1CrossVersionObjectReference); - }); - - it('should have the property apiVersion (base name: "apiVersion")', function() { - // uncomment below and update the code to test the property apiVersion - //var instane = new KubernetesJsClient.V2alpha1CrossVersionObjectReference(); - //expect(instance).to.be(); - }); - - it('should have the property kind (base name: "kind")', function() { - // uncomment below and update the code to test the property kind - //var instane = new KubernetesJsClient.V2alpha1CrossVersionObjectReference(); - //expect(instance).to.be(); - }); - - it('should have the property name (base name: "name")', function() { - // uncomment below and update the code to test the property name - //var instane = new KubernetesJsClient.V2alpha1CrossVersionObjectReference(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V2alpha1HorizontalPodAutoscaler.spec.js b/kubernetes/test/model/V2alpha1HorizontalPodAutoscaler.spec.js deleted file mode 100644 index 89bf7c2230..0000000000 --- a/kubernetes/test/model/V2alpha1HorizontalPodAutoscaler.spec.js +++ /dev/null @@ -1,89 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V2alpha1HorizontalPodAutoscaler(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V2alpha1HorizontalPodAutoscaler', function() { - it('should create an instance of V2alpha1HorizontalPodAutoscaler', function() { - // uncomment below and update the code to test V2alpha1HorizontalPodAutoscaler - //var instane = new KubernetesJsClient.V2alpha1HorizontalPodAutoscaler(); - //expect(instance).to.be.a(KubernetesJsClient.V2alpha1HorizontalPodAutoscaler); - }); - - it('should have the property apiVersion (base name: "apiVersion")', function() { - // uncomment below and update the code to test the property apiVersion - //var instane = new KubernetesJsClient.V2alpha1HorizontalPodAutoscaler(); - //expect(instance).to.be(); - }); - - it('should have the property kind (base name: "kind")', function() { - // uncomment below and update the code to test the property kind - //var instane = new KubernetesJsClient.V2alpha1HorizontalPodAutoscaler(); - //expect(instance).to.be(); - }); - - it('should have the property metadata (base name: "metadata")', function() { - // uncomment below and update the code to test the property metadata - //var instane = new KubernetesJsClient.V2alpha1HorizontalPodAutoscaler(); - //expect(instance).to.be(); - }); - - it('should have the property spec (base name: "spec")', function() { - // uncomment below and update the code to test the property spec - //var instane = new KubernetesJsClient.V2alpha1HorizontalPodAutoscaler(); - //expect(instance).to.be(); - }); - - it('should have the property status (base name: "status")', function() { - // uncomment below and update the code to test the property status - //var instane = new KubernetesJsClient.V2alpha1HorizontalPodAutoscaler(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V2alpha1HorizontalPodAutoscalerList.spec.js b/kubernetes/test/model/V2alpha1HorizontalPodAutoscalerList.spec.js deleted file mode 100644 index db9e3f0a7c..0000000000 --- a/kubernetes/test/model/V2alpha1HorizontalPodAutoscalerList.spec.js +++ /dev/null @@ -1,83 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V2alpha1HorizontalPodAutoscalerList(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V2alpha1HorizontalPodAutoscalerList', function() { - it('should create an instance of V2alpha1HorizontalPodAutoscalerList', function() { - // uncomment below and update the code to test V2alpha1HorizontalPodAutoscalerList - //var instane = new KubernetesJsClient.V2alpha1HorizontalPodAutoscalerList(); - //expect(instance).to.be.a(KubernetesJsClient.V2alpha1HorizontalPodAutoscalerList); - }); - - it('should have the property apiVersion (base name: "apiVersion")', function() { - // uncomment below and update the code to test the property apiVersion - //var instane = new KubernetesJsClient.V2alpha1HorizontalPodAutoscalerList(); - //expect(instance).to.be(); - }); - - it('should have the property items (base name: "items")', function() { - // uncomment below and update the code to test the property items - //var instane = new KubernetesJsClient.V2alpha1HorizontalPodAutoscalerList(); - //expect(instance).to.be(); - }); - - it('should have the property kind (base name: "kind")', function() { - // uncomment below and update the code to test the property kind - //var instane = new KubernetesJsClient.V2alpha1HorizontalPodAutoscalerList(); - //expect(instance).to.be(); - }); - - it('should have the property metadata (base name: "metadata")', function() { - // uncomment below and update the code to test the property metadata - //var instane = new KubernetesJsClient.V2alpha1HorizontalPodAutoscalerList(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V2alpha1HorizontalPodAutoscalerSpec.spec.js b/kubernetes/test/model/V2alpha1HorizontalPodAutoscalerSpec.spec.js deleted file mode 100644 index 1fdb45af09..0000000000 --- a/kubernetes/test/model/V2alpha1HorizontalPodAutoscalerSpec.spec.js +++ /dev/null @@ -1,83 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V2alpha1HorizontalPodAutoscalerSpec(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V2alpha1HorizontalPodAutoscalerSpec', function() { - it('should create an instance of V2alpha1HorizontalPodAutoscalerSpec', function() { - // uncomment below and update the code to test V2alpha1HorizontalPodAutoscalerSpec - //var instane = new KubernetesJsClient.V2alpha1HorizontalPodAutoscalerSpec(); - //expect(instance).to.be.a(KubernetesJsClient.V2alpha1HorizontalPodAutoscalerSpec); - }); - - it('should have the property maxReplicas (base name: "maxReplicas")', function() { - // uncomment below and update the code to test the property maxReplicas - //var instane = new KubernetesJsClient.V2alpha1HorizontalPodAutoscalerSpec(); - //expect(instance).to.be(); - }); - - it('should have the property metrics (base name: "metrics")', function() { - // uncomment below and update the code to test the property metrics - //var instane = new KubernetesJsClient.V2alpha1HorizontalPodAutoscalerSpec(); - //expect(instance).to.be(); - }); - - it('should have the property minReplicas (base name: "minReplicas")', function() { - // uncomment below and update the code to test the property minReplicas - //var instane = new KubernetesJsClient.V2alpha1HorizontalPodAutoscalerSpec(); - //expect(instance).to.be(); - }); - - it('should have the property scaleTargetRef (base name: "scaleTargetRef")', function() { - // uncomment below and update the code to test the property scaleTargetRef - //var instane = new KubernetesJsClient.V2alpha1HorizontalPodAutoscalerSpec(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V2alpha1HorizontalPodAutoscalerStatus.spec.js b/kubernetes/test/model/V2alpha1HorizontalPodAutoscalerStatus.spec.js deleted file mode 100644 index c2f1f623d2..0000000000 --- a/kubernetes/test/model/V2alpha1HorizontalPodAutoscalerStatus.spec.js +++ /dev/null @@ -1,89 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V2alpha1HorizontalPodAutoscalerStatus(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V2alpha1HorizontalPodAutoscalerStatus', function() { - it('should create an instance of V2alpha1HorizontalPodAutoscalerStatus', function() { - // uncomment below and update the code to test V2alpha1HorizontalPodAutoscalerStatus - //var instane = new KubernetesJsClient.V2alpha1HorizontalPodAutoscalerStatus(); - //expect(instance).to.be.a(KubernetesJsClient.V2alpha1HorizontalPodAutoscalerStatus); - }); - - it('should have the property currentMetrics (base name: "currentMetrics")', function() { - // uncomment below and update the code to test the property currentMetrics - //var instane = new KubernetesJsClient.V2alpha1HorizontalPodAutoscalerStatus(); - //expect(instance).to.be(); - }); - - it('should have the property currentReplicas (base name: "currentReplicas")', function() { - // uncomment below and update the code to test the property currentReplicas - //var instane = new KubernetesJsClient.V2alpha1HorizontalPodAutoscalerStatus(); - //expect(instance).to.be(); - }); - - it('should have the property desiredReplicas (base name: "desiredReplicas")', function() { - // uncomment below and update the code to test the property desiredReplicas - //var instane = new KubernetesJsClient.V2alpha1HorizontalPodAutoscalerStatus(); - //expect(instance).to.be(); - }); - - it('should have the property lastScaleTime (base name: "lastScaleTime")', function() { - // uncomment below and update the code to test the property lastScaleTime - //var instane = new KubernetesJsClient.V2alpha1HorizontalPodAutoscalerStatus(); - //expect(instance).to.be(); - }); - - it('should have the property observedGeneration (base name: "observedGeneration")', function() { - // uncomment below and update the code to test the property observedGeneration - //var instane = new KubernetesJsClient.V2alpha1HorizontalPodAutoscalerStatus(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V2alpha1JobTemplateSpec.spec.js b/kubernetes/test/model/V2alpha1JobTemplateSpec.spec.js deleted file mode 100644 index 2a96f5c724..0000000000 --- a/kubernetes/test/model/V2alpha1JobTemplateSpec.spec.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V2alpha1JobTemplateSpec(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V2alpha1JobTemplateSpec', function() { - it('should create an instance of V2alpha1JobTemplateSpec', function() { - // uncomment below and update the code to test V2alpha1JobTemplateSpec - //var instane = new KubernetesJsClient.V2alpha1JobTemplateSpec(); - //expect(instance).to.be.a(KubernetesJsClient.V2alpha1JobTemplateSpec); - }); - - it('should have the property metadata (base name: "metadata")', function() { - // uncomment below and update the code to test the property metadata - //var instane = new KubernetesJsClient.V2alpha1JobTemplateSpec(); - //expect(instance).to.be(); - }); - - it('should have the property spec (base name: "spec")', function() { - // uncomment below and update the code to test the property spec - //var instane = new KubernetesJsClient.V2alpha1JobTemplateSpec(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V2alpha1MetricSpec.spec.js b/kubernetes/test/model/V2alpha1MetricSpec.spec.js deleted file mode 100644 index 8004ad6e03..0000000000 --- a/kubernetes/test/model/V2alpha1MetricSpec.spec.js +++ /dev/null @@ -1,83 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V2alpha1MetricSpec(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V2alpha1MetricSpec', function() { - it('should create an instance of V2alpha1MetricSpec', function() { - // uncomment below and update the code to test V2alpha1MetricSpec - //var instane = new KubernetesJsClient.V2alpha1MetricSpec(); - //expect(instance).to.be.a(KubernetesJsClient.V2alpha1MetricSpec); - }); - - it('should have the property _object (base name: "object")', function() { - // uncomment below and update the code to test the property _object - //var instane = new KubernetesJsClient.V2alpha1MetricSpec(); - //expect(instance).to.be(); - }); - - it('should have the property pods (base name: "pods")', function() { - // uncomment below and update the code to test the property pods - //var instane = new KubernetesJsClient.V2alpha1MetricSpec(); - //expect(instance).to.be(); - }); - - it('should have the property resource (base name: "resource")', function() { - // uncomment below and update the code to test the property resource - //var instane = new KubernetesJsClient.V2alpha1MetricSpec(); - //expect(instance).to.be(); - }); - - it('should have the property type (base name: "type")', function() { - // uncomment below and update the code to test the property type - //var instane = new KubernetesJsClient.V2alpha1MetricSpec(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V2alpha1MetricStatus.spec.js b/kubernetes/test/model/V2alpha1MetricStatus.spec.js deleted file mode 100644 index 5144eeb981..0000000000 --- a/kubernetes/test/model/V2alpha1MetricStatus.spec.js +++ /dev/null @@ -1,83 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V2alpha1MetricStatus(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V2alpha1MetricStatus', function() { - it('should create an instance of V2alpha1MetricStatus', function() { - // uncomment below and update the code to test V2alpha1MetricStatus - //var instane = new KubernetesJsClient.V2alpha1MetricStatus(); - //expect(instance).to.be.a(KubernetesJsClient.V2alpha1MetricStatus); - }); - - it('should have the property _object (base name: "object")', function() { - // uncomment below and update the code to test the property _object - //var instane = new KubernetesJsClient.V2alpha1MetricStatus(); - //expect(instance).to.be(); - }); - - it('should have the property pods (base name: "pods")', function() { - // uncomment below and update the code to test the property pods - //var instane = new KubernetesJsClient.V2alpha1MetricStatus(); - //expect(instance).to.be(); - }); - - it('should have the property resource (base name: "resource")', function() { - // uncomment below and update the code to test the property resource - //var instane = new KubernetesJsClient.V2alpha1MetricStatus(); - //expect(instance).to.be(); - }); - - it('should have the property type (base name: "type")', function() { - // uncomment below and update the code to test the property type - //var instane = new KubernetesJsClient.V2alpha1MetricStatus(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V2alpha1ObjectMetricSource.spec.js b/kubernetes/test/model/V2alpha1ObjectMetricSource.spec.js deleted file mode 100644 index 4f98a57cb0..0000000000 --- a/kubernetes/test/model/V2alpha1ObjectMetricSource.spec.js +++ /dev/null @@ -1,77 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V2alpha1ObjectMetricSource(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V2alpha1ObjectMetricSource', function() { - it('should create an instance of V2alpha1ObjectMetricSource', function() { - // uncomment below and update the code to test V2alpha1ObjectMetricSource - //var instane = new KubernetesJsClient.V2alpha1ObjectMetricSource(); - //expect(instance).to.be.a(KubernetesJsClient.V2alpha1ObjectMetricSource); - }); - - it('should have the property metricName (base name: "metricName")', function() { - // uncomment below and update the code to test the property metricName - //var instane = new KubernetesJsClient.V2alpha1ObjectMetricSource(); - //expect(instance).to.be(); - }); - - it('should have the property target (base name: "target")', function() { - // uncomment below and update the code to test the property target - //var instane = new KubernetesJsClient.V2alpha1ObjectMetricSource(); - //expect(instance).to.be(); - }); - - it('should have the property targetValue (base name: "targetValue")', function() { - // uncomment below and update the code to test the property targetValue - //var instane = new KubernetesJsClient.V2alpha1ObjectMetricSource(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V2alpha1ObjectMetricStatus.spec.js b/kubernetes/test/model/V2alpha1ObjectMetricStatus.spec.js deleted file mode 100644 index 18300d4cc8..0000000000 --- a/kubernetes/test/model/V2alpha1ObjectMetricStatus.spec.js +++ /dev/null @@ -1,77 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V2alpha1ObjectMetricStatus(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V2alpha1ObjectMetricStatus', function() { - it('should create an instance of V2alpha1ObjectMetricStatus', function() { - // uncomment below and update the code to test V2alpha1ObjectMetricStatus - //var instane = new KubernetesJsClient.V2alpha1ObjectMetricStatus(); - //expect(instance).to.be.a(KubernetesJsClient.V2alpha1ObjectMetricStatus); - }); - - it('should have the property currentValue (base name: "currentValue")', function() { - // uncomment below and update the code to test the property currentValue - //var instane = new KubernetesJsClient.V2alpha1ObjectMetricStatus(); - //expect(instance).to.be(); - }); - - it('should have the property metricName (base name: "metricName")', function() { - // uncomment below and update the code to test the property metricName - //var instane = new KubernetesJsClient.V2alpha1ObjectMetricStatus(); - //expect(instance).to.be(); - }); - - it('should have the property target (base name: "target")', function() { - // uncomment below and update the code to test the property target - //var instane = new KubernetesJsClient.V2alpha1ObjectMetricStatus(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V2alpha1PodsMetricSource.spec.js b/kubernetes/test/model/V2alpha1PodsMetricSource.spec.js deleted file mode 100644 index 00f36aff4a..0000000000 --- a/kubernetes/test/model/V2alpha1PodsMetricSource.spec.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V2alpha1PodsMetricSource(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V2alpha1PodsMetricSource', function() { - it('should create an instance of V2alpha1PodsMetricSource', function() { - // uncomment below and update the code to test V2alpha1PodsMetricSource - //var instane = new KubernetesJsClient.V2alpha1PodsMetricSource(); - //expect(instance).to.be.a(KubernetesJsClient.V2alpha1PodsMetricSource); - }); - - it('should have the property metricName (base name: "metricName")', function() { - // uncomment below and update the code to test the property metricName - //var instane = new KubernetesJsClient.V2alpha1PodsMetricSource(); - //expect(instance).to.be(); - }); - - it('should have the property targetAverageValue (base name: "targetAverageValue")', function() { - // uncomment below and update the code to test the property targetAverageValue - //var instane = new KubernetesJsClient.V2alpha1PodsMetricSource(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V2alpha1PodsMetricStatus.spec.js b/kubernetes/test/model/V2alpha1PodsMetricStatus.spec.js deleted file mode 100644 index 7d156206b8..0000000000 --- a/kubernetes/test/model/V2alpha1PodsMetricStatus.spec.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V2alpha1PodsMetricStatus(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V2alpha1PodsMetricStatus', function() { - it('should create an instance of V2alpha1PodsMetricStatus', function() { - // uncomment below and update the code to test V2alpha1PodsMetricStatus - //var instane = new KubernetesJsClient.V2alpha1PodsMetricStatus(); - //expect(instance).to.be.a(KubernetesJsClient.V2alpha1PodsMetricStatus); - }); - - it('should have the property currentAverageValue (base name: "currentAverageValue")', function() { - // uncomment below and update the code to test the property currentAverageValue - //var instane = new KubernetesJsClient.V2alpha1PodsMetricStatus(); - //expect(instance).to.be(); - }); - - it('should have the property metricName (base name: "metricName")', function() { - // uncomment below and update the code to test the property metricName - //var instane = new KubernetesJsClient.V2alpha1PodsMetricStatus(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V2alpha1ResourceMetricSource.spec.js b/kubernetes/test/model/V2alpha1ResourceMetricSource.spec.js deleted file mode 100644 index aa478c6683..0000000000 --- a/kubernetes/test/model/V2alpha1ResourceMetricSource.spec.js +++ /dev/null @@ -1,77 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V2alpha1ResourceMetricSource(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V2alpha1ResourceMetricSource', function() { - it('should create an instance of V2alpha1ResourceMetricSource', function() { - // uncomment below and update the code to test V2alpha1ResourceMetricSource - //var instane = new KubernetesJsClient.V2alpha1ResourceMetricSource(); - //expect(instance).to.be.a(KubernetesJsClient.V2alpha1ResourceMetricSource); - }); - - it('should have the property name (base name: "name")', function() { - // uncomment below and update the code to test the property name - //var instane = new KubernetesJsClient.V2alpha1ResourceMetricSource(); - //expect(instance).to.be(); - }); - - it('should have the property targetAverageUtilization (base name: "targetAverageUtilization")', function() { - // uncomment below and update the code to test the property targetAverageUtilization - //var instane = new KubernetesJsClient.V2alpha1ResourceMetricSource(); - //expect(instance).to.be(); - }); - - it('should have the property targetAverageValue (base name: "targetAverageValue")', function() { - // uncomment below and update the code to test the property targetAverageValue - //var instane = new KubernetesJsClient.V2alpha1ResourceMetricSource(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/V2alpha1ResourceMetricStatus.spec.js b/kubernetes/test/model/V2alpha1ResourceMetricStatus.spec.js deleted file mode 100644 index ac015f7e96..0000000000 --- a/kubernetes/test/model/V2alpha1ResourceMetricStatus.spec.js +++ /dev/null @@ -1,77 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.V2alpha1ResourceMetricStatus(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('V2alpha1ResourceMetricStatus', function() { - it('should create an instance of V2alpha1ResourceMetricStatus', function() { - // uncomment below and update the code to test V2alpha1ResourceMetricStatus - //var instane = new KubernetesJsClient.V2alpha1ResourceMetricStatus(); - //expect(instance).to.be.a(KubernetesJsClient.V2alpha1ResourceMetricStatus); - }); - - it('should have the property currentAverageUtilization (base name: "currentAverageUtilization")', function() { - // uncomment below and update the code to test the property currentAverageUtilization - //var instane = new KubernetesJsClient.V2alpha1ResourceMetricStatus(); - //expect(instance).to.be(); - }); - - it('should have the property currentAverageValue (base name: "currentAverageValue")', function() { - // uncomment below and update the code to test the property currentAverageValue - //var instane = new KubernetesJsClient.V2alpha1ResourceMetricStatus(); - //expect(instance).to.be(); - }); - - it('should have the property name (base name: "name")', function() { - // uncomment below and update the code to test the property name - //var instane = new KubernetesJsClient.V2alpha1ResourceMetricStatus(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/kubernetes/test/model/VersionInfo.spec.js b/kubernetes/test/model/VersionInfo.spec.js deleted file mode 100644 index cc854baa0c..0000000000 --- a/kubernetes/test/model/VersionInfo.spec.js +++ /dev/null @@ -1,113 +0,0 @@ -/** - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.6.3 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.KubernetesJsClient); - } -}(this, function(expect, KubernetesJsClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new KubernetesJsClient.VersionInfo(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('VersionInfo', function() { - it('should create an instance of VersionInfo', function() { - // uncomment below and update the code to test VersionInfo - //var instane = new KubernetesJsClient.VersionInfo(); - //expect(instance).to.be.a(KubernetesJsClient.VersionInfo); - }); - - it('should have the property buildDate (base name: "buildDate")', function() { - // uncomment below and update the code to test the property buildDate - //var instane = new KubernetesJsClient.VersionInfo(); - //expect(instance).to.be(); - }); - - it('should have the property compiler (base name: "compiler")', function() { - // uncomment below and update the code to test the property compiler - //var instane = new KubernetesJsClient.VersionInfo(); - //expect(instance).to.be(); - }); - - it('should have the property gitCommit (base name: "gitCommit")', function() { - // uncomment below and update the code to test the property gitCommit - //var instane = new KubernetesJsClient.VersionInfo(); - //expect(instance).to.be(); - }); - - it('should have the property gitTreeState (base name: "gitTreeState")', function() { - // uncomment below and update the code to test the property gitTreeState - //var instane = new KubernetesJsClient.VersionInfo(); - //expect(instance).to.be(); - }); - - it('should have the property gitVersion (base name: "gitVersion")', function() { - // uncomment below and update the code to test the property gitVersion - //var instane = new KubernetesJsClient.VersionInfo(); - //expect(instance).to.be(); - }); - - it('should have the property goVersion (base name: "goVersion")', function() { - // uncomment below and update the code to test the property goVersion - //var instane = new KubernetesJsClient.VersionInfo(); - //expect(instance).to.be(); - }); - - it('should have the property major (base name: "major")', function() { - // uncomment below and update the code to test the property major - //var instane = new KubernetesJsClient.VersionInfo(); - //expect(instance).to.be(); - }); - - it('should have the property minor (base name: "minor")', function() { - // uncomment below and update the code to test the property minor - //var instane = new KubernetesJsClient.VersionInfo(); - //expect(instance).to.be(); - }); - - it('should have the property platform (base name: "platform")', function() { - // uncomment below and update the code to test the property platform - //var instane = new KubernetesJsClient.VersionInfo(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/node/api.ts b/node/api.ts new file mode 100644 index 0000000000..8ca9ed266a --- /dev/null +++ b/node/api.ts @@ -0,0 +1,63910 @@ +/** + * Kubernetes + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1.8.4 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +import request = require('request'); +import http = require('http'); +import Promise = require('bluebird'); + +let defaultBasePath = 'https://localhost/'; + +// =============================================== +// This file is autogenerated - Please do not edit +// =============================================== + +/* tslint:disable:no-unused-variable */ + +/** +* DEPRECATED - This group version of Deployment is deprecated by apps/v1beta2/Deployment. See the release notes for more information. Deployment enables declarative updates for Pods and ReplicaSets. +*/ +export class AppsV1beta1Deployment { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + */ + 'apiVersion': string; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'kind': string; + /** + * Standard object metadata. + */ + 'metadata': V1ObjectMeta; + /** + * Specification of the desired behavior of the Deployment. + */ + 'spec': AppsV1beta1DeploymentSpec; + /** + * Most recently observed status of the Deployment. + */ + 'status': AppsV1beta1DeploymentStatus; +} + +/** +* DeploymentCondition describes the state of a deployment at a certain point. +*/ +export class AppsV1beta1DeploymentCondition { + /** + * Last time the condition transitioned from one status to another. + */ + 'lastTransitionTime': Date; + /** + * The last time this condition was updated. + */ + 'lastUpdateTime': Date; + /** + * A human readable message indicating details about the transition. + */ + 'message': string; + /** + * The reason for the condition's last transition. + */ + 'reason': string; + /** + * Status of the condition, one of True, False, Unknown. + */ + 'status': string; + /** + * Type of deployment condition. + */ + 'type': string; +} + +/** +* DeploymentList is a list of Deployments. +*/ +export class AppsV1beta1DeploymentList { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + */ + 'apiVersion': string; + /** + * Items is the list of Deployments. + */ + 'items': Array; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'kind': string; + /** + * Standard list metadata. + */ + 'metadata': V1ListMeta; +} + +/** +* DEPRECATED. DeploymentRollback stores the information required to rollback a deployment. +*/ +export class AppsV1beta1DeploymentRollback { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + */ + 'apiVersion': string; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'kind': string; + /** + * Required: This must match the Name of a deployment. + */ + 'name': string; + /** + * The config of this deployment rollback. + */ + 'rollbackTo': AppsV1beta1RollbackConfig; + /** + * The annotations to be updated to a deployment + */ + 'updatedAnnotations': { [key: string]: string; }; +} + +/** +* DeploymentSpec is the specification of the desired behavior of the Deployment. +*/ +export class AppsV1beta1DeploymentSpec { + /** + * Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) + */ + 'minReadySeconds': number; + /** + * Indicates that the deployment is paused. + */ + 'paused': boolean; + /** + * The maximum time in seconds for a deployment to make progress before it is considered to be failed. The deployment controller will continue to process failed deployments and a condition with a ProgressDeadlineExceeded reason will be surfaced in the deployment status. Note that progress will not be estimated during the time a deployment is paused. Defaults to 600s. + */ + 'progressDeadlineSeconds': number; + /** + * Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1. + */ + 'replicas': number; + /** + * The number of old ReplicaSets to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 2. + */ + 'revisionHistoryLimit': number; + /** + * DEPRECATED. The config this deployment is rolling back to. Will be cleared after rollback is done. + */ + 'rollbackTo': AppsV1beta1RollbackConfig; + /** + * Label selector for pods. Existing ReplicaSets whose pods are selected by this will be the ones affected by this deployment. + */ + 'selector': V1LabelSelector; + /** + * The deployment strategy to use to replace existing pods with new ones. + */ + 'strategy': AppsV1beta1DeploymentStrategy; + /** + * Template describes the pods that will be created. + */ + 'template': V1PodTemplateSpec; +} + +/** +* DeploymentStatus is the most recently observed status of the Deployment. +*/ +export class AppsV1beta1DeploymentStatus { + /** + * Total number of available pods (ready for at least minReadySeconds) targeted by this deployment. + */ + 'availableReplicas': number; + /** + * Count of hash collisions for the Deployment. The Deployment controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ReplicaSet. + */ + 'collisionCount': number; + /** + * Represents the latest available observations of a deployment's current state. + */ + 'conditions': Array; + /** + * The generation observed by the deployment controller. + */ + 'observedGeneration': number; + /** + * Total number of ready pods targeted by this deployment. + */ + 'readyReplicas': number; + /** + * Total number of non-terminated pods targeted by this deployment (their labels match the selector). + */ + 'replicas': number; + /** + * Total number of unavailable pods targeted by this deployment. This is the total number of pods that are still required for the deployment to have 100% available capacity. They may either be pods that are running but not yet available or pods that still have not been created. + */ + 'unavailableReplicas': number; + /** + * Total number of non-terminated pods targeted by this deployment that have the desired template spec. + */ + 'updatedReplicas': number; +} + +/** +* DeploymentStrategy describes how to replace existing pods with new ones. +*/ +export class AppsV1beta1DeploymentStrategy { + /** + * Rolling update config params. Present only if DeploymentStrategyType = RollingUpdate. + */ + 'rollingUpdate': AppsV1beta1RollingUpdateDeployment; + /** + * Type of deployment. Can be \"Recreate\" or \"RollingUpdate\". Default is RollingUpdate. + */ + 'type': string; +} + +/** +* DEPRECATED. +*/ +export class AppsV1beta1RollbackConfig { + /** + * The revision to rollback to. If set to 0, rollback to the last revision. + */ + 'revision': number; +} + +/** +* Spec to control the desired behavior of rolling update. +*/ +export class AppsV1beta1RollingUpdateDeployment { + /** + * The maximum number of pods that can be scheduled above the desired number of pods. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up. Defaults to 25%. Example: when this is set to 30%, the new RC can be scaled up immediately when the rolling update starts, such that the total number of old and new pods do not exceed 130% of desired pods. Once old pods have been killed, new RC can be scaled up further, ensuring that total number of pods running at any time during the update is atmost 130% of desired pods. + */ + 'maxSurge': any; + /** + * The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding down. This can not be 0 if MaxSurge is 0. Defaults to 25%. Example: when this is set to 30%, the old RC can be scaled down to 70% of desired pods immediately when the rolling update starts. Once new pods are ready, old RC can be scaled down further, followed by scaling up the new RC, ensuring that the total number of pods available at all times during the update is at least 70% of desired pods. + */ + 'maxUnavailable': any; +} + +/** +* Scale represents a scaling request for a resource. +*/ +export class AppsV1beta1Scale { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + */ + 'apiVersion': string; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'kind': string; + /** + * Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata. + */ + 'metadata': V1ObjectMeta; + /** + * defines the behavior of the scale. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status. + */ + 'spec': AppsV1beta1ScaleSpec; + /** + * current status of the scale. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status. Read-only. + */ + 'status': AppsV1beta1ScaleStatus; +} + +/** +* ScaleSpec describes the attributes of a scale subresource +*/ +export class AppsV1beta1ScaleSpec { + /** + * desired number of instances for the scaled object. + */ + 'replicas': number; +} + +/** +* ScaleStatus represents the current status of a scale subresource. +*/ +export class AppsV1beta1ScaleStatus { + /** + * actual number of observed instances of the scaled object. + */ + 'replicas': number; + /** + * label query over pods that should match the replicas count. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors + */ + 'selector': { [key: string]: string; }; + /** + * label selector for pods that should match the replicas count. This is a serializated version of both map-based and more expressive set-based selectors. This is done to avoid introspection in the clients. The string will be in the same format as the query-param syntax. If the target type only supports map-based selectors, both this field and map-based selector field are populated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors + */ + 'targetSelector': string; +} + +/** +* DEPRECATED - This group version of Deployment is deprecated by apps/v1beta2/Deployment. See the release notes for more information. Deployment enables declarative updates for Pods and ReplicaSets. +*/ +export class ExtensionsV1beta1Deployment { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + */ + 'apiVersion': string; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'kind': string; + /** + * Standard object metadata. + */ + 'metadata': V1ObjectMeta; + /** + * Specification of the desired behavior of the Deployment. + */ + 'spec': ExtensionsV1beta1DeploymentSpec; + /** + * Most recently observed status of the Deployment. + */ + 'status': ExtensionsV1beta1DeploymentStatus; +} + +/** +* DeploymentCondition describes the state of a deployment at a certain point. +*/ +export class ExtensionsV1beta1DeploymentCondition { + /** + * Last time the condition transitioned from one status to another. + */ + 'lastTransitionTime': Date; + /** + * The last time this condition was updated. + */ + 'lastUpdateTime': Date; + /** + * A human readable message indicating details about the transition. + */ + 'message': string; + /** + * The reason for the condition's last transition. + */ + 'reason': string; + /** + * Status of the condition, one of True, False, Unknown. + */ + 'status': string; + /** + * Type of deployment condition. + */ + 'type': string; +} + +/** +* DeploymentList is a list of Deployments. +*/ +export class ExtensionsV1beta1DeploymentList { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + */ + 'apiVersion': string; + /** + * Items is the list of Deployments. + */ + 'items': Array; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'kind': string; + /** + * Standard list metadata. + */ + 'metadata': V1ListMeta; +} + +/** +* DEPRECATED. DeploymentRollback stores the information required to rollback a deployment. +*/ +export class ExtensionsV1beta1DeploymentRollback { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + */ + 'apiVersion': string; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'kind': string; + /** + * Required: This must match the Name of a deployment. + */ + 'name': string; + /** + * The config of this deployment rollback. + */ + 'rollbackTo': ExtensionsV1beta1RollbackConfig; + /** + * The annotations to be updated to a deployment + */ + 'updatedAnnotations': { [key: string]: string; }; +} + +/** +* DeploymentSpec is the specification of the desired behavior of the Deployment. +*/ +export class ExtensionsV1beta1DeploymentSpec { + /** + * Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) + */ + 'minReadySeconds': number; + /** + * Indicates that the deployment is paused and will not be processed by the deployment controller. + */ + 'paused': boolean; + /** + * The maximum time in seconds for a deployment to make progress before it is considered to be failed. The deployment controller will continue to process failed deployments and a condition with a ProgressDeadlineExceeded reason will be surfaced in the deployment status. Note that progress will not be estimated during the time a deployment is paused. This is not set by default. + */ + 'progressDeadlineSeconds': number; + /** + * Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1. + */ + 'replicas': number; + /** + * The number of old ReplicaSets to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. + */ + 'revisionHistoryLimit': number; + /** + * DEPRECATED. The config this deployment is rolling back to. Will be cleared after rollback is done. + */ + 'rollbackTo': ExtensionsV1beta1RollbackConfig; + /** + * Label selector for pods. Existing ReplicaSets whose pods are selected by this will be the ones affected by this deployment. + */ + 'selector': V1LabelSelector; + /** + * The deployment strategy to use to replace existing pods with new ones. + */ + 'strategy': ExtensionsV1beta1DeploymentStrategy; + /** + * Template describes the pods that will be created. + */ + 'template': V1PodTemplateSpec; +} + +/** +* DeploymentStatus is the most recently observed status of the Deployment. +*/ +export class ExtensionsV1beta1DeploymentStatus { + /** + * Total number of available pods (ready for at least minReadySeconds) targeted by this deployment. + */ + 'availableReplicas': number; + /** + * Count of hash collisions for the Deployment. The Deployment controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ReplicaSet. + */ + 'collisionCount': number; + /** + * Represents the latest available observations of a deployment's current state. + */ + 'conditions': Array; + /** + * The generation observed by the deployment controller. + */ + 'observedGeneration': number; + /** + * Total number of ready pods targeted by this deployment. + */ + 'readyReplicas': number; + /** + * Total number of non-terminated pods targeted by this deployment (their labels match the selector). + */ + 'replicas': number; + /** + * Total number of unavailable pods targeted by this deployment. This is the total number of pods that are still required for the deployment to have 100% available capacity. They may either be pods that are running but not yet available or pods that still have not been created. + */ + 'unavailableReplicas': number; + /** + * Total number of non-terminated pods targeted by this deployment that have the desired template spec. + */ + 'updatedReplicas': number; +} + +/** +* DeploymentStrategy describes how to replace existing pods with new ones. +*/ +export class ExtensionsV1beta1DeploymentStrategy { + /** + * Rolling update config params. Present only if DeploymentStrategyType = RollingUpdate. + */ + 'rollingUpdate': ExtensionsV1beta1RollingUpdateDeployment; + /** + * Type of deployment. Can be \"Recreate\" or \"RollingUpdate\". Default is RollingUpdate. + */ + 'type': string; +} + +/** +* DEPRECATED. +*/ +export class ExtensionsV1beta1RollbackConfig { + /** + * The revision to rollback to. If set to 0, rollback to the last revision. + */ + 'revision': number; +} + +/** +* Spec to control the desired behavior of rolling update. +*/ +export class ExtensionsV1beta1RollingUpdateDeployment { + /** + * The maximum number of pods that can be scheduled above the desired number of pods. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up. By default, a value of 1 is used. Example: when this is set to 30%, the new RC can be scaled up immediately when the rolling update starts, such that the total number of old and new pods do not exceed 130% of desired pods. Once old pods have been killed, new RC can be scaled up further, ensuring that total number of pods running at any time during the update is atmost 130% of desired pods. + */ + 'maxSurge': any; + /** + * The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding down. This can not be 0 if MaxSurge is 0. By default, a fixed value of 1 is used. Example: when this is set to 30%, the old RC can be scaled down to 70% of desired pods immediately when the rolling update starts. Once new pods are ready, old RC can be scaled down further, followed by scaling up the new RC, ensuring that the total number of pods available at all times during the update is at least 70% of desired pods. + */ + 'maxUnavailable': any; +} + +/** +* represents a scaling request for a resource. +*/ +export class ExtensionsV1beta1Scale { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + */ + 'apiVersion': string; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'kind': string; + /** + * Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata. + */ + 'metadata': V1ObjectMeta; + /** + * defines the behavior of the scale. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status. + */ + 'spec': ExtensionsV1beta1ScaleSpec; + /** + * current status of the scale. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status. Read-only. + */ + 'status': ExtensionsV1beta1ScaleStatus; +} + +/** +* describes the attributes of a scale subresource +*/ +export class ExtensionsV1beta1ScaleSpec { + /** + * desired number of instances for the scaled object. + */ + 'replicas': number; +} + +/** +* represents the current status of a scale subresource. +*/ +export class ExtensionsV1beta1ScaleStatus { + /** + * actual number of observed instances of the scaled object. + */ + 'replicas': number; + /** + * label query over pods that should match the replicas count. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors + */ + 'selector': { [key: string]: string; }; + /** + * label selector for pods that should match the replicas count. This is a serializated version of both map-based and more expressive set-based selectors. This is done to avoid introspection in the clients. The string will be in the same format as the query-param syntax. If the target type only supports map-based selectors, both this field and map-based selector field are populated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors + */ + 'targetSelector': string; +} + +/** +* RawExtension is used to hold extensions in external versions. To use this, make a field which has RawExtension as its type in your external, versioned struct, and Object in your internal struct. You also need to register your various plugin types. // Internal package: type MyAPIObject struct { runtime.TypeMeta `json:\",inline\"` MyPlugin runtime.Object `json:\"myPlugin\"` } type PluginA struct { AOption string `json:\"aOption\"` } // External package: type MyAPIObject struct { runtime.TypeMeta `json:\",inline\"` MyPlugin runtime.RawExtension `json:\"myPlugin\"` } type PluginA struct { AOption string `json:\"aOption\"` } // On the wire, the JSON will look something like this: { \"kind\":\"MyAPIObject\", \"apiVersion\":\"v1\", \"myPlugin\": { \"kind\":\"PluginA\", \"aOption\":\"foo\", }, } So what happens? Decode first uses json or yaml to unmarshal the serialized data into your external MyAPIObject. That causes the raw JSON to be stored, but not unpacked. The next step is to copy (using pkg/conversion) into the internal struct. The runtime package's DefaultScheme has conversion functions installed which will unpack the JSON stored in RawExtension, turning it into the correct object type, and storing it in the Object. (TODO: In the case where the object is of an unknown type, a runtime.Unknown object will be created and stored.) +*/ +export class RuntimeRawExtension { + /** + * Raw is the underlying serialization of this object. + */ + 'raw': string; +} + +/** +* APIGroup contains the name, the supported versions, and the preferred version of a group. +*/ +export class V1APIGroup { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + */ + 'apiVersion': string; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'kind': string; + /** + * name is the name of the group. + */ + 'name': string; + /** + * preferredVersion is the version preferred by the API server, which probably is the storage version. + */ + 'preferredVersion': V1GroupVersionForDiscovery; + /** + * a map of client CIDR to server address that is serving this group. This is to help clients reach servers in the most network-efficient way possible. Clients can use the appropriate server address as per the CIDR that they match. In case of multiple matches, clients should use the longest matching CIDR. The server returns only those CIDRs that it thinks that the client can match. For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP. + */ + 'serverAddressByClientCIDRs': Array; + /** + * versions are the versions supported in this group. + */ + 'versions': Array; +} + +/** +* APIGroupList is a list of APIGroup, to allow clients to discover the API at /apis. +*/ +export class V1APIGroupList { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + */ + 'apiVersion': string; + /** + * groups is a list of APIGroup. + */ + 'groups': Array; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'kind': string; +} + +/** +* APIResource specifies the name of a resource and whether it is namespaced. +*/ +export class V1APIResource { + /** + * categories is a list of the grouped resources this resource belongs to (e.g. 'all') + */ + 'categories': Array; + /** + * group is the preferred group of the resource. Empty implies the group of the containing resource list. For subresources, this may have a different value, for example: Scale\". + */ + 'group': string; + /** + * kind is the kind for the resource (e.g. 'Foo' is the kind for a resource 'foo') + */ + 'kind': string; + /** + * name is the plural name of the resource. + */ + 'name': string; + /** + * namespaced indicates if a resource is namespaced or not. + */ + 'namespaced': boolean; + /** + * shortNames is a list of suggested short names of the resource. + */ + 'shortNames': Array; + /** + * singularName is the singular name of the resource. This allows clients to handle plural and singular opaquely. The singularName is more correct for reporting status on a single item and both singular and plural are allowed from the kubectl CLI interface. + */ + 'singularName': string; + /** + * verbs is a list of supported kube verbs (this includes get, list, watch, create, update, patch, delete, deletecollection, and proxy) + */ + 'verbs': Array; + /** + * version is the preferred version of the resource. Empty implies the version of the containing resource list For subresources, this may have a different value, for example: v1 (while inside a v1beta1 version of the core resource's group)\". + */ + 'version': string; +} + +/** +* APIResourceList is a list of APIResource, it is used to expose the name of the resources supported in a specific group and version, and if the resource is namespaced. +*/ +export class V1APIResourceList { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + */ + 'apiVersion': string; + /** + * groupVersion is the group and version this APIResourceList is for. + */ + 'groupVersion': string; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'kind': string; + /** + * resources contains the name of the resources and if they are namespaced. + */ + 'resources': Array; +} + +/** +* APIVersions lists the versions that are available, to allow clients to discover the API at /api, which is the root path of the legacy v1 API. +*/ +export class V1APIVersions { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + */ + 'apiVersion': string; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'kind': string; + /** + * a map of client CIDR to server address that is serving this group. This is to help clients reach servers in the most network-efficient way possible. Clients can use the appropriate server address as per the CIDR that they match. In case of multiple matches, clients should use the longest matching CIDR. The server returns only those CIDRs that it thinks that the client can match. For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP. + */ + 'serverAddressByClientCIDRs': Array; + /** + * versions are the api versions that are available. + */ + 'versions': Array; +} + +/** +* Represents a Persistent Disk resource in AWS. An AWS EBS disk must exist before mounting to a container. The disk must also be in the same AWS zone as the kubelet. An AWS EBS disk can only be mounted as read/write once. AWS EBS volumes support ownership management and SELinux relabeling. +*/ +export class V1AWSElasticBlockStoreVolumeSource { + /** + * Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + */ + 'fsType': string; + /** + * The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as \"1\". Similarly, the volume partition for /dev/sda is \"0\" (or you can leave the property empty). + */ + 'partition': number; + /** + * Specify \"true\" to force and set the ReadOnly property in VolumeMounts to \"true\". If omitted, the default is \"false\". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + */ + 'readOnly': boolean; + /** + * Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + */ + 'volumeID': string; +} + +/** +* Affinity is a group of affinity scheduling rules. +*/ +export class V1Affinity { + /** + * Describes node affinity scheduling rules for the pod. + */ + 'nodeAffinity': V1NodeAffinity; + /** + * Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). + */ + 'podAffinity': V1PodAffinity; + /** + * Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). + */ + 'podAntiAffinity': V1PodAntiAffinity; +} + +/** +* AttachedVolume describes a volume attached to a node +*/ +export class V1AttachedVolume { + /** + * DevicePath represents the device path where the volume should be available + */ + 'devicePath': string; + /** + * Name of the attached volume + */ + 'name': string; +} + +/** +* AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. +*/ +export class V1AzureDiskVolumeSource { + /** + * Host Caching mode: None, Read Only, Read Write. + */ + 'cachingMode': string; + /** + * The Name of the data disk in the blob storage + */ + 'diskName': string; + /** + * The URI the data disk in the blob storage + */ + 'diskURI': string; + /** + * Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. + */ + 'fsType': string; + /** + * Expected values Shared: mulitple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared + */ + 'kind': string; + /** + * Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + */ + 'readOnly': boolean; +} + +/** +* AzureFile represents an Azure File Service mount on the host and bind mount to the pod. +*/ +export class V1AzureFilePersistentVolumeSource { + /** + * Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + */ + 'readOnly': boolean; + /** + * the name of secret that contains Azure Storage Account Name and Key + */ + 'secretName': string; + /** + * the namespace of the secret that contains Azure Storage Account Name and Key default is the same as the Pod + */ + 'secretNamespace': string; + /** + * Share Name + */ + 'shareName': string; +} + +/** +* AzureFile represents an Azure File Service mount on the host and bind mount to the pod. +*/ +export class V1AzureFileVolumeSource { + /** + * Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + */ + 'readOnly': boolean; + /** + * the name of secret that contains Azure Storage Account Name and Key + */ + 'secretName': string; + /** + * Share Name + */ + 'shareName': string; +} + +/** +* Binding ties one object to another; for example, a pod is bound to a node by a scheduler. Deprecated in 1.7, please use the bindings subresource of pods instead. +*/ +export class V1Binding { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + */ + 'apiVersion': string; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'kind': string; + /** + * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + */ + 'metadata': V1ObjectMeta; + /** + * The target object that you want to bind to the standard object. + */ + 'target': V1ObjectReference; +} + +/** +* Adds and removes POSIX capabilities from running containers. +*/ +export class V1Capabilities { + /** + * Added capabilities + */ + 'add': Array; + /** + * Removed capabilities + */ + 'drop': Array; +} + +/** +* Represents a Ceph Filesystem mount that lasts the lifetime of a pod Cephfs volumes do not support ownership management or SELinux relabeling. +*/ +export class V1CephFSPersistentVolumeSource { + /** + * Required: Monitors is a collection of Ceph monitors More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it + */ + 'monitors': Array; + /** + * Optional: Used as the mounted root, rather than the full Ceph tree, default is / + */ + 'path': string; + /** + * Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it + */ + 'readOnly': boolean; + /** + * Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it + */ + 'secretFile': string; + /** + * Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it + */ + 'secretRef': V1SecretReference; + /** + * Optional: User is the rados user name, default is admin More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it + */ + 'user': string; +} + +/** +* Represents a Ceph Filesystem mount that lasts the lifetime of a pod Cephfs volumes do not support ownership management or SELinux relabeling. +*/ +export class V1CephFSVolumeSource { + /** + * Required: Monitors is a collection of Ceph monitors More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it + */ + 'monitors': Array; + /** + * Optional: Used as the mounted root, rather than the full Ceph tree, default is / + */ + 'path': string; + /** + * Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it + */ + 'readOnly': boolean; + /** + * Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it + */ + 'secretFile': string; + /** + * Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it + */ + 'secretRef': V1LocalObjectReference; + /** + * Optional: User is the rados user name, default is admin More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it + */ + 'user': string; +} + +/** +* Represents a cinder volume resource in Openstack. A Cinder volume must exist before mounting to a container. The volume must also be in the same region as the kubelet. Cinder volumes support ownership management and SELinux relabeling. +*/ +export class V1CinderVolumeSource { + /** + * Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md + */ + 'fsType': string; + /** + * Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md + */ + 'readOnly': boolean; + /** + * volume id used to identify the volume in cinder More info: https://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md + */ + 'volumeID': string; +} + +/** +* ClientIPConfig represents the configurations of Client IP based session affinity. +*/ +export class V1ClientIPConfig { + /** + * timeoutSeconds specifies the seconds of ClientIP type session sticky time. The value must be >0 && <=86400(for 1 day) if ServiceAffinity == \"ClientIP\". Default value is 10800(for 3 hours). + */ + 'timeoutSeconds': number; +} + +/** +* ClusterRole is a cluster level, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding or ClusterRoleBinding. +*/ +export class V1ClusterRole { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + */ + 'apiVersion': string; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'kind': string; + /** + * Standard object's metadata. + */ + 'metadata': V1ObjectMeta; + /** + * Rules holds all the PolicyRules for this ClusterRole + */ + 'rules': Array; +} + +/** +* ClusterRoleBinding references a ClusterRole, but not contain it. It can reference a ClusterRole in the global namespace, and adds who information via Subject. +*/ +export class V1ClusterRoleBinding { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + */ + 'apiVersion': string; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'kind': string; + /** + * Standard object's metadata. + */ + 'metadata': V1ObjectMeta; + /** + * RoleRef can only reference a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. + */ + 'roleRef': V1RoleRef; + /** + * Subjects holds references to the objects the role applies to. + */ + 'subjects': Array; +} + +/** +* ClusterRoleBindingList is a collection of ClusterRoleBindings +*/ +export class V1ClusterRoleBindingList { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + */ + 'apiVersion': string; + /** + * Items is a list of ClusterRoleBindings + */ + 'items': Array; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'kind': string; + /** + * Standard object's metadata. + */ + 'metadata': V1ListMeta; +} + +/** +* ClusterRoleList is a collection of ClusterRoles +*/ +export class V1ClusterRoleList { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + */ + 'apiVersion': string; + /** + * Items is a list of ClusterRoles + */ + 'items': Array; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'kind': string; + /** + * Standard object's metadata. + */ + 'metadata': V1ListMeta; +} + +/** +* Information about the condition of a component. +*/ +export class V1ComponentCondition { + /** + * Condition error code for a component. For example, a health check error code. + */ + 'error': string; + /** + * Message about the condition for a component. For example, information about a health check. + */ + 'message': string; + /** + * Status of the condition for a component. Valid values for \"Healthy\": \"True\", \"False\", or \"Unknown\". + */ + 'status': string; + /** + * Type of condition for a component. Valid value: \"Healthy\" + */ + 'type': string; +} + +/** +* ComponentStatus (and ComponentStatusList) holds the cluster validation info. +*/ +export class V1ComponentStatus { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + */ + 'apiVersion': string; + /** + * List of component conditions observed + */ + 'conditions': Array; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'kind': string; + /** + * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + */ + 'metadata': V1ObjectMeta; +} + +/** +* Status of all the conditions for the component as a list of ComponentStatus objects. +*/ +export class V1ComponentStatusList { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + */ + 'apiVersion': string; + /** + * List of ComponentStatus objects. + */ + 'items': Array; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'kind': string; + /** + * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'metadata': V1ListMeta; +} + +/** +* ConfigMap holds configuration data for pods to consume. +*/ +export class V1ConfigMap { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + */ + 'apiVersion': string; + /** + * Data contains the configuration data. Each key must consist of alphanumeric characters, '-', '_' or '.'. + */ + 'data': { [key: string]: string; }; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'kind': string; + /** + * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + */ + 'metadata': V1ObjectMeta; +} + +/** +* ConfigMapEnvSource selects a ConfigMap to populate the environment variables with. The contents of the target ConfigMap's Data field will represent the key-value pairs as environment variables. +*/ +export class V1ConfigMapEnvSource { + /** + * Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + */ + 'name': string; + /** + * Specify whether the ConfigMap must be defined + */ + 'optional': boolean; +} + +/** +* Selects a key from a ConfigMap. +*/ +export class V1ConfigMapKeySelector { + /** + * The key to select. + */ + 'key': string; + /** + * Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + */ + 'name': string; + /** + * Specify whether the ConfigMap or it's key must be defined + */ + 'optional': boolean; +} + +/** +* ConfigMapList is a resource containing a list of ConfigMap objects. +*/ +export class V1ConfigMapList { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + */ + 'apiVersion': string; + /** + * Items is the list of ConfigMaps. + */ + 'items': Array; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'kind': string; + /** + * More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + */ + 'metadata': V1ListMeta; +} + +/** +* Adapts a ConfigMap into a projected volume. The contents of the target ConfigMap's Data field will be presented in a projected volume as files using the keys in the Data field as the file names, unless the items element is populated with specific mappings of keys to paths. Note that this is identical to a configmap volume source without the default mode. +*/ +export class V1ConfigMapProjection { + /** + * If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + */ + 'items': Array; + /** + * Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + */ + 'name': string; + /** + * Specify whether the ConfigMap or it's keys must be defined + */ + 'optional': boolean; +} + +/** +* Adapts a ConfigMap into a volume. The contents of the target ConfigMap's Data field will be presented in a volume as files using the keys in the Data field as the file names, unless the items element is populated with specific mappings of keys to paths. ConfigMap volumes support ownership management and SELinux relabeling. +*/ +export class V1ConfigMapVolumeSource { + /** + * Optional: mode bits to use on created files by default. Must be a value between 0 and 0777. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. + */ + 'defaultMode': number; + /** + * If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + */ + 'items': Array; + /** + * Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + */ + 'name': string; + /** + * Specify whether the ConfigMap or it's keys must be defined + */ + 'optional': boolean; +} + +/** +* A single application container that you want to run within a pod. +*/ +export class V1Container { + /** + * Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + */ + 'args': Array; + /** + * Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + */ + 'command': Array; + /** + * List of environment variables to set in the container. Cannot be updated. + */ + 'env': Array; + /** + * List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. + */ + 'envFrom': Array; + /** + * Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. + */ + 'image': string; + /** + * Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + */ + 'imagePullPolicy': string; + /** + * Actions that the management system should take in response to container lifecycle events. Cannot be updated. + */ + 'lifecycle': V1Lifecycle; + /** + * Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + */ + 'livenessProbe': V1Probe; + /** + * Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. + */ + 'name': string; + /** + * List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default \"0.0.0.0\" address inside a container will be accessible from the network. Cannot be updated. + */ + 'ports': Array; + /** + * Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + */ + 'readinessProbe': V1Probe; + /** + * Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources + */ + 'resources': V1ResourceRequirements; + /** + * Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://git.k8s.io/community/contributors/design-proposals/security_context.md + */ + 'securityContext': V1SecurityContext; + /** + * Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. + */ + 'stdin': boolean; + /** + * Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false + */ + 'stdinOnce': boolean; + /** + * Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. + */ + 'terminationMessagePath': string; + /** + * Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. + */ + 'terminationMessagePolicy': string; + /** + * Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + */ + 'tty': boolean; + /** + * Pod volumes to mount into the container's filesystem. Cannot be updated. + */ + 'volumeMounts': Array; + /** + * Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. + */ + 'workingDir': string; +} + +/** +* Describe a container image +*/ +export class V1ContainerImage { + /** + * Names by which this image is known. e.g. [\"gcr.io/google_containers/hyperkube:v1.0.7\", \"dockerhub.io/google_containers/hyperkube:v1.0.7\"] + */ + 'names': Array; + /** + * The size of the image in bytes. + */ + 'sizeBytes': number; +} + +/** +* ContainerPort represents a network port in a single container. +*/ +export class V1ContainerPort { + /** + * Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. + */ + 'containerPort': number; + /** + * What host IP to bind the external port to. + */ + 'hostIP': string; + /** + * Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. + */ + 'hostPort': number; + /** + * If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. + */ + 'name': string; + /** + * Protocol for port. Must be UDP or TCP. Defaults to \"TCP\". + */ + 'protocol': string; +} + +/** +* ContainerState holds a possible state of container. Only one of its members may be specified. If none of them is specified, the default one is ContainerStateWaiting. +*/ +export class V1ContainerState { + /** + * Details about a running container + */ + 'running': V1ContainerStateRunning; + /** + * Details about a terminated container + */ + 'terminated': V1ContainerStateTerminated; + /** + * Details about a waiting container + */ + 'waiting': V1ContainerStateWaiting; +} + +/** +* ContainerStateRunning is a running state of a container. +*/ +export class V1ContainerStateRunning { + /** + * Time at which the container was last (re-)started + */ + 'startedAt': Date; +} + +/** +* ContainerStateTerminated is a terminated state of a container. +*/ +export class V1ContainerStateTerminated { + /** + * Container's ID in the format 'docker://' + */ + 'containerID': string; + /** + * Exit status from the last termination of the container + */ + 'exitCode': number; + /** + * Time at which the container last terminated + */ + 'finishedAt': Date; + /** + * Message regarding the last termination of the container + */ + 'message': string; + /** + * (brief) reason from the last termination of the container + */ + 'reason': string; + /** + * Signal from the last termination of the container + */ + 'signal': number; + /** + * Time at which previous execution of the container started + */ + 'startedAt': Date; +} + +/** +* ContainerStateWaiting is a waiting state of a container. +*/ +export class V1ContainerStateWaiting { + /** + * Message regarding why the container is not yet running. + */ + 'message': string; + /** + * (brief) reason the container is not yet running. + */ + 'reason': string; +} + +/** +* ContainerStatus contains details for the current status of this container. +*/ +export class V1ContainerStatus { + /** + * Container's ID in the format 'docker://'. + */ + 'containerID': string; + /** + * The image the container is running. More info: https://kubernetes.io/docs/concepts/containers/images + */ + 'image': string; + /** + * ImageID of the container's image. + */ + 'imageID': string; + /** + * Details about the container's last termination condition. + */ + 'lastState': V1ContainerState; + /** + * This must be a DNS_LABEL. Each container in a pod must have a unique name. Cannot be updated. + */ + 'name': string; + /** + * Specifies whether the container has passed its readiness probe. + */ + 'ready': boolean; + /** + * The number of times the container has been restarted, currently based on the number of dead containers that have not yet been removed. Note that this is calculated from dead containers. But those containers are subject to garbage collection. This value will get capped at 5 by GC. + */ + 'restartCount': number; + /** + * Details about the container's current condition. + */ + 'state': V1ContainerState; +} + +/** +* CrossVersionObjectReference contains enough information to let you identify the referred resource. +*/ +export class V1CrossVersionObjectReference { + /** + * API version of the referent + */ + 'apiVersion': string; + /** + * Kind of the referent; More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds\" + */ + 'kind': string; + /** + * Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names + */ + 'name': string; +} + +/** +* DaemonEndpoint contains information about a single Daemon endpoint. +*/ +export class V1DaemonEndpoint { + /** + * Port number of the given endpoint. + */ + 'port': number; +} + +/** +* DeleteOptions may be provided when deleting an API object. +*/ +export class V1DeleteOptions { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + */ + 'apiVersion': string; + /** + * The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + */ + 'gracePeriodSeconds': number; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'kind': string; + /** + * Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + */ + 'orphanDependents': boolean; + /** + * Must be fulfilled before a deletion is carried out. If not possible, a 409 Conflict status will be returned. + */ + 'preconditions': V1Preconditions; + /** + * Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. + */ + 'propagationPolicy': string; +} + +/** +* Represents downward API info for projecting into a projected volume. Note that this is identical to a downwardAPI volume source without the default mode. +*/ +export class V1DownwardAPIProjection { + /** + * Items is a list of DownwardAPIVolume file + */ + 'items': Array; +} + +/** +* DownwardAPIVolumeFile represents information to create the file containing the pod field +*/ +export class V1DownwardAPIVolumeFile { + /** + * Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. + */ + 'fieldRef': V1ObjectFieldSelector; + /** + * Optional: mode bits to use on this file, must be a value between 0 and 0777. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. + */ + 'mode': number; + /** + * Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' + */ + 'path': string; + /** + * Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. + */ + 'resourceFieldRef': V1ResourceFieldSelector; +} + +/** +* DownwardAPIVolumeSource represents a volume containing downward API info. Downward API volumes support ownership management and SELinux relabeling. +*/ +export class V1DownwardAPIVolumeSource { + /** + * Optional: mode bits to use on created files by default. Must be a value between 0 and 0777. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. + */ + 'defaultMode': number; + /** + * Items is a list of downward API volume file + */ + 'items': Array; +} + +/** +* Represents an empty directory for a pod. Empty directory volumes support ownership management and SELinux relabeling. +*/ +export class V1EmptyDirVolumeSource { + /** + * What type of storage medium should back this directory. The default is \"\" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + */ + 'medium': string; + /** + * Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir + */ + 'sizeLimit': string; +} + +/** +* EndpointAddress is a tuple that describes single IP address. +*/ +export class V1EndpointAddress { + /** + * The Hostname of this endpoint + */ + 'hostname': string; + /** + * The IP of this endpoint. May not be loopback (127.0.0.0/8), link-local (169.254.0.0/16), or link-local multicast ((224.0.0.0/24). IPv6 is also accepted but not fully supported on all platforms. Also, certain kubernetes components, like kube-proxy, are not IPv6 ready. + */ + 'ip': string; + /** + * Optional: Node hosting this endpoint. This can be used to determine endpoints local to a node. + */ + 'nodeName': string; + /** + * Reference to object providing the endpoint. + */ + 'targetRef': V1ObjectReference; +} + +/** +* EndpointPort is a tuple that describes a single port. +*/ +export class V1EndpointPort { + /** + * The name of this port (corresponds to ServicePort.Name). Must be a DNS_LABEL. Optional only if one port is defined. + */ + 'name': string; + /** + * The port number of the endpoint. + */ + 'port': number; + /** + * The IP protocol for this port. Must be UDP or TCP. Default is TCP. + */ + 'protocol': string; +} + +/** +* EndpointSubset is a group of addresses with a common set of ports. The expanded set of endpoints is the Cartesian product of Addresses x Ports. For example, given: { Addresses: [{\"ip\": \"10.10.1.1\"}, {\"ip\": \"10.10.2.2\"}], Ports: [{\"name\": \"a\", \"port\": 8675}, {\"name\": \"b\", \"port\": 309}] } The resulting set of endpoints can be viewed as: a: [ 10.10.1.1:8675, 10.10.2.2:8675 ], b: [ 10.10.1.1:309, 10.10.2.2:309 ] +*/ +export class V1EndpointSubset { + /** + * IP addresses which offer the related ports that are marked as ready. These endpoints should be considered safe for load balancers and clients to utilize. + */ + 'addresses': Array; + /** + * IP addresses which offer the related ports but are not currently marked as ready because they have not yet finished starting, have recently failed a readiness check, or have recently failed a liveness check. + */ + 'notReadyAddresses': Array; + /** + * Port numbers available on the related IP addresses. + */ + 'ports': Array; +} + +/** +* Endpoints is a collection of endpoints that implement the actual service. Example: Name: \"mysvc\", Subsets: [ { Addresses: [{\"ip\": \"10.10.1.1\"}, {\"ip\": \"10.10.2.2\"}], Ports: [{\"name\": \"a\", \"port\": 8675}, {\"name\": \"b\", \"port\": 309}] }, { Addresses: [{\"ip\": \"10.10.3.3\"}], Ports: [{\"name\": \"a\", \"port\": 93}, {\"name\": \"b\", \"port\": 76}] }, ] +*/ +export class V1Endpoints { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + */ + 'apiVersion': string; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'kind': string; + /** + * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + */ + 'metadata': V1ObjectMeta; + /** + * The set of all endpoints is the union of all subsets. Addresses are placed into subsets according to the IPs they share. A single address with multiple ports, some of which are ready and some of which are not (because they come from different containers) will result in the address being displayed in different subsets for the different ports. No address will appear in both Addresses and NotReadyAddresses in the same subset. Sets of addresses and ports that comprise a service. + */ + 'subsets': Array; +} + +/** +* EndpointsList is a list of endpoints. +*/ +export class V1EndpointsList { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + */ + 'apiVersion': string; + /** + * List of endpoints. + */ + 'items': Array; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'kind': string; + /** + * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'metadata': V1ListMeta; +} + +/** +* EnvFromSource represents the source of a set of ConfigMaps +*/ +export class V1EnvFromSource { + /** + * The ConfigMap to select from + */ + 'configMapRef': V1ConfigMapEnvSource; + /** + * An optional identifer to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. + */ + 'prefix': string; + /** + * The Secret to select from + */ + 'secretRef': V1SecretEnvSource; +} + +/** +* EnvVar represents an environment variable present in a Container. +*/ +export class V1EnvVar { + /** + * Name of the environment variable. Must be a C_IDENTIFIER. + */ + 'name': string; + /** + * Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to \"\". + */ + 'value': string; + /** + * Source for the environment variable's value. Cannot be used if value is not empty. + */ + 'valueFrom': V1EnvVarSource; +} + +/** +* EnvVarSource represents a source for the value of an EnvVar. +*/ +export class V1EnvVarSource { + /** + * Selects a key of a ConfigMap. + */ + 'configMapKeyRef': V1ConfigMapKeySelector; + /** + * Selects a field of the pod: supports metadata.name, metadata.namespace, metadata.labels, metadata.annotations, spec.nodeName, spec.serviceAccountName, status.hostIP, status.podIP. + */ + 'fieldRef': V1ObjectFieldSelector; + /** + * Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. + */ + 'resourceFieldRef': V1ResourceFieldSelector; + /** + * Selects a key of a secret in the pod's namespace + */ + 'secretKeyRef': V1SecretKeySelector; +} + +/** +* Event is a report of an event somewhere in the cluster. +*/ +export class V1Event { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + */ + 'apiVersion': string; + /** + * The number of times this event has occurred. + */ + 'count': number; + /** + * The time at which the event was first recorded. (Time of server receipt is in TypeMeta.) + */ + 'firstTimestamp': Date; + /** + * The object that this event is about. + */ + 'involvedObject': V1ObjectReference; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'kind': string; + /** + * The time at which the most recent occurrence of this event was recorded. + */ + 'lastTimestamp': Date; + /** + * A human-readable description of the status of this operation. + */ + 'message': string; + /** + * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + */ + 'metadata': V1ObjectMeta; + /** + * This should be a short, machine understandable string that gives the reason for the transition into the object's current status. + */ + 'reason': string; + /** + * The component reporting this event. Should be a short machine understandable string. + */ + 'source': V1EventSource; + /** + * Type of this event (Normal, Warning), new types could be added in the future + */ + 'type': string; +} + +/** +* EventList is a list of events. +*/ +export class V1EventList { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + */ + 'apiVersion': string; + /** + * List of events + */ + 'items': Array; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'kind': string; + /** + * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'metadata': V1ListMeta; +} + +/** +* EventSource contains information for an event. +*/ +export class V1EventSource { + /** + * Component from which the event is generated. + */ + 'component': string; + /** + * Node name on which the event is generated. + */ + 'host': string; +} + +/** +* ExecAction describes a \"run in container\" action. +*/ +export class V1ExecAction { + /** + * Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. + */ + 'command': Array; +} + +/** +* Represents a Fibre Channel volume. Fibre Channel volumes can only be mounted as read/write once. Fibre Channel volumes support ownership management and SELinux relabeling. +*/ +export class V1FCVolumeSource { + /** + * Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. + */ + 'fsType': string; + /** + * Optional: FC target lun number + */ + 'lun': number; + /** + * Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + */ + 'readOnly': boolean; + /** + * Optional: FC target worldwide names (WWNs) + */ + 'targetWWNs': Array; + /** + * Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. + */ + 'wwids': Array; +} + +/** +* FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. This is an alpha feature and may change in future. +*/ +export class V1FlexVolumeSource { + /** + * Driver is the name of the driver to use for this volume. + */ + 'driver': string; + /** + * Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". The default filesystem depends on FlexVolume script. + */ + 'fsType': string; + /** + * Optional: Extra command options if any. + */ + 'options': { [key: string]: string; }; + /** + * Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + */ + 'readOnly': boolean; + /** + * Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. + */ + 'secretRef': V1LocalObjectReference; +} + +/** +* Represents a Flocker volume mounted by the Flocker agent. One and only one of datasetName and datasetUUID should be set. Flocker volumes do not support ownership management or SELinux relabeling. +*/ +export class V1FlockerVolumeSource { + /** + * Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated + */ + 'datasetName': string; + /** + * UUID of the dataset. This is unique identifier of a Flocker dataset + */ + 'datasetUUID': string; +} + +/** +* Represents a Persistent Disk resource in Google Compute Engine. A GCE PD must exist before mounting to a container. The disk must also be in the same GCE project and zone as the kubelet. A GCE PD can only be mounted as read/write once or read-only many times. GCE PDs support ownership management and SELinux relabeling. +*/ +export class V1GCEPersistentDiskVolumeSource { + /** + * Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + */ + 'fsType': string; + /** + * The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as \"1\". Similarly, the volume partition for /dev/sda is \"0\" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + */ + 'partition': number; + /** + * Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + */ + 'pdName': string; + /** + * ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + */ + 'readOnly': boolean; +} + +/** +* Represents a volume that is populated with the contents of a git repository. Git repo volumes do not support ownership management. Git repo volumes support SELinux relabeling. +*/ +export class V1GitRepoVolumeSource { + /** + * Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. + */ + 'directory': string; + /** + * Repository URL + */ + 'repository': string; + /** + * Commit hash for the specified revision. + */ + 'revision': string; +} + +/** +* Represents a Glusterfs mount that lasts the lifetime of a pod. Glusterfs volumes do not support ownership management or SELinux relabeling. +*/ +export class V1GlusterfsVolumeSource { + /** + * EndpointsName is the endpoint name that details Glusterfs topology. More info: https://releases.k8s.io/HEAD/examples/volumes/glusterfs/README.md#create-a-pod + */ + 'endpoints': string; + /** + * Path is the Glusterfs volume path. More info: https://releases.k8s.io/HEAD/examples/volumes/glusterfs/README.md#create-a-pod + */ + 'path': string; + /** + * ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://releases.k8s.io/HEAD/examples/volumes/glusterfs/README.md#create-a-pod + */ + 'readOnly': boolean; +} + +/** +* GroupVersion contains the \"group/version\" and \"version\" string of a version. It is made a struct to keep extensibility. +*/ +export class V1GroupVersionForDiscovery { + /** + * groupVersion specifies the API group and version in the form \"group/version\" + */ + 'groupVersion': string; + /** + * version specifies the version in the form of \"version\". This is to save the clients the trouble of splitting the GroupVersion. + */ + 'version': string; +} + +/** +* HTTPGetAction describes an action based on HTTP Get requests. +*/ +export class V1HTTPGetAction { + /** + * Host name to connect to, defaults to the pod IP. You probably want to set \"Host\" in httpHeaders instead. + */ + 'host': string; + /** + * Custom headers to set in the request. HTTP allows repeated headers. + */ + 'httpHeaders': Array; + /** + * Path to access on the HTTP server. + */ + 'path': string; + /** + * Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + */ + 'port': any; + /** + * Scheme to use for connecting to the host. Defaults to HTTP. + */ + 'scheme': string; +} + +/** +* HTTPHeader describes a custom header to be used in HTTP probes +*/ +export class V1HTTPHeader { + /** + * The header field name + */ + 'name': string; + /** + * The header field value + */ + 'value': string; +} + +/** +* Handler defines a specific action that should be taken +*/ +export class V1Handler { + /** + * One and only one of the following should be specified. Exec specifies the action to take. + */ + 'exec': V1ExecAction; + /** + * HTTPGet specifies the http request to perform. + */ + 'httpGet': V1HTTPGetAction; + /** + * TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported + */ + 'tcpSocket': V1TCPSocketAction; +} + +/** +* configuration of a horizontal pod autoscaler. +*/ +export class V1HorizontalPodAutoscaler { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + */ + 'apiVersion': string; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'kind': string; + /** + * Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + */ + 'metadata': V1ObjectMeta; + /** + * behaviour of autoscaler. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status. + */ + 'spec': V1HorizontalPodAutoscalerSpec; + /** + * current information about the autoscaler. + */ + 'status': V1HorizontalPodAutoscalerStatus; +} + +/** +* list of horizontal pod autoscaler objects. +*/ +export class V1HorizontalPodAutoscalerList { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + */ + 'apiVersion': string; + /** + * list of horizontal pod autoscaler objects. + */ + 'items': Array; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'kind': string; + /** + * Standard list metadata. + */ + 'metadata': V1ListMeta; +} + +/** +* specification of a horizontal pod autoscaler. +*/ +export class V1HorizontalPodAutoscalerSpec { + /** + * upper limit for the number of pods that can be set by the autoscaler; cannot be smaller than MinReplicas. + */ + 'maxReplicas': number; + /** + * lower limit for the number of pods that can be set by the autoscaler, default 1. + */ + 'minReplicas': number; + /** + * reference to scaled resource; horizontal pod autoscaler will learn the current resource consumption and will set the desired number of pods by using its Scale subresource. + */ + 'scaleTargetRef': V1CrossVersionObjectReference; + /** + * target average CPU utilization (represented as a percentage of requested CPU) over all the pods; if not specified the default autoscaling policy will be used. + */ + 'targetCPUUtilizationPercentage': number; +} + +/** +* current status of a horizontal pod autoscaler +*/ +export class V1HorizontalPodAutoscalerStatus { + /** + * current average CPU utilization over all pods, represented as a percentage of requested CPU, e.g. 70 means that an average pod is using now 70% of its requested CPU. + */ + 'currentCPUUtilizationPercentage': number; + /** + * current number of replicas of pods managed by this autoscaler. + */ + 'currentReplicas': number; + /** + * desired number of replicas of pods managed by this autoscaler. + */ + 'desiredReplicas': number; + /** + * last time the HorizontalPodAutoscaler scaled the number of pods; used by the autoscaler to control how often the number of pods is changed. + */ + 'lastScaleTime': Date; + /** + * most recent generation observed by this autoscaler. + */ + 'observedGeneration': number; +} + +/** +* HostAlias holds the mapping between IP and hostnames that will be injected as an entry in the pod's hosts file. +*/ +export class V1HostAlias { + /** + * Hostnames for the above IP address. + */ + 'hostnames': Array; + /** + * IP address of the host file entry. + */ + 'ip': string; +} + +/** +* Represents a host path mapped into a pod. Host path volumes do not support ownership management or SELinux relabeling. +*/ +export class V1HostPathVolumeSource { + /** + * Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + */ + 'path': string; + /** + * Type for HostPath Volume Defaults to \"\" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + */ + 'type': string; +} + +/** +* IPBlock describes a particular CIDR (Ex. \"192.168.1.1/24\") that is allowed to the pods matched by a NetworkPolicySpec's podSelector. The except entry describes CIDRs that should not be included within this rule. +*/ +export class V1IPBlock { + /** + * CIDR is a string representing the IP Block Valid examples are \"192.168.1.1/24\" + */ + 'cidr': string; + /** + * Except is a slice of CIDRs that should not be included within an IP Block Valid examples are \"192.168.1.1/24\" Except values will be rejected if they are outside the CIDR range + */ + 'except': Array; +} + +/** +* Represents an ISCSI disk. ISCSI volumes can only be mounted as read/write once. ISCSI volumes support ownership management and SELinux relabeling. +*/ +export class V1ISCSIVolumeSource { + /** + * whether support iSCSI Discovery CHAP authentication + */ + 'chapAuthDiscovery': boolean; + /** + * whether support iSCSI Session CHAP authentication + */ + 'chapAuthSession': boolean; + /** + * Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi + */ + 'fsType': string; + /** + * Custom iSCSI initiator name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. + */ + 'initiatorName': string; + /** + * Target iSCSI Qualified Name. + */ + 'iqn': string; + /** + * Optional: Defaults to 'default' (tcp). iSCSI interface name that uses an iSCSI transport. + */ + 'iscsiInterface': string; + /** + * iSCSI target lun number. + */ + 'lun': number; + /** + * iSCSI target portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + */ + 'portals': Array; + /** + * ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. + */ + 'readOnly': boolean; + /** + * CHAP secret for iSCSI target and initiator authentication + */ + 'secretRef': V1LocalObjectReference; + /** + * iSCSI target portal. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + */ + 'targetPortal': string; +} + +/** +* Initializer is information about an initializer that has not yet completed. +*/ +export class V1Initializer { + /** + * name of the process that is responsible for initializing this object. + */ + 'name': string; +} + +/** +* Initializers tracks the progress of initialization. +*/ +export class V1Initializers { + /** + * Pending is a list of initializers that must execute in order before this object is visible. When the last pending initializer is removed, and no failing result is set, the initializers struct will be set to nil and the object is considered as initialized and visible to all clients. + */ + 'pending': Array; + /** + * If result is set with the Failure field, the object will be persisted to storage and then deleted, ensuring that other clients can observe the deletion. + */ + 'result': V1Status; +} + +/** +* Job represents the configuration of a single job. +*/ +export class V1Job { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + */ + 'apiVersion': string; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'kind': string; + /** + * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + */ + 'metadata': V1ObjectMeta; + /** + * Specification of the desired behavior of a job. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status + */ + 'spec': V1JobSpec; + /** + * Current status of a job. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status + */ + 'status': V1JobStatus; +} + +/** +* JobCondition describes current state of a job. +*/ +export class V1JobCondition { + /** + * Last time the condition was checked. + */ + 'lastProbeTime': Date; + /** + * Last time the condition transit from one status to another. + */ + 'lastTransitionTime': Date; + /** + * Human readable message indicating details about last transition. + */ + 'message': string; + /** + * (brief) reason for the condition's last transition. + */ + 'reason': string; + /** + * Status of the condition, one of True, False, Unknown. + */ + 'status': string; + /** + * Type of job condition, Complete or Failed. + */ + 'type': string; +} + +/** +* JobList is a collection of jobs. +*/ +export class V1JobList { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + */ + 'apiVersion': string; + /** + * items is the list of Jobs. + */ + 'items': Array; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'kind': string; + /** + * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + */ + 'metadata': V1ListMeta; +} + +/** +* JobSpec describes how the job execution will look like. +*/ +export class V1JobSpec { + /** + * Specifies the duration in seconds relative to the startTime that the job may be active before the system tries to terminate it; value must be positive integer + */ + 'activeDeadlineSeconds': number; + /** + * Specifies the number of retries before marking this job failed. Defaults to 6 + */ + 'backoffLimit': number; + /** + * Specifies the desired number of successfully finished pods the job should be run with. Setting to nil means that the success of any pod signals the success of all pods, and allows parallelism to have any positive value. Setting to 1 means that parallelism is limited to 1 and the success of that pod signals the success of the job. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ + */ + 'completions': number; + /** + * manualSelector controls generation of pod labels and pod selectors. Leave `manualSelector` unset unless you are certain what you are doing. When false or unset, the system pick labels unique to this job and appends those labels to the pod template. When true, the user is responsible for picking unique labels and specifying the selector. Failure to pick a unique label may cause this and other jobs to not function correctly. However, You may see `manualSelector=true` in jobs that were created with the old `extensions/v1beta1` API. More info: https://git.k8s.io/community/contributors/design-proposals/selector-generation.md + */ + 'manualSelector': boolean; + /** + * Specifies the maximum desired number of pods the job should run at any given time. The actual number of pods running in steady state will be less than this number when ((.spec.completions - .status.successful) < .spec.parallelism), i.e. when the work left to do is less than max parallelism. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ + */ + 'parallelism': number; + /** + * A label query over pods that should match the pod count. Normally, the system sets this field for you. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors + */ + 'selector': V1LabelSelector; + /** + * Describes the pod that will be created when executing a job. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ + */ + 'template': V1PodTemplateSpec; +} + +/** +* JobStatus represents the current state of a Job. +*/ +export class V1JobStatus { + /** + * The number of actively running pods. + */ + 'active': number; + /** + * Represents time when the job was completed. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC. + */ + 'completionTime': Date; + /** + * The latest available observations of an object's current state. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ + */ + 'conditions': Array; + /** + * The number of pods which reached phase Failed. + */ + 'failed': number; + /** + * Represents time when the job was acknowledged by the job controller. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC. + */ + 'startTime': Date; + /** + * The number of pods which reached phase Succeeded. + */ + 'succeeded': number; +} + +/** +* Maps a string key to a path within a volume. +*/ +export class V1KeyToPath { + /** + * The key to project. + */ + 'key': string; + /** + * Optional: mode bits to use on this file, must be a value between 0 and 0777. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. + */ + 'mode': number; + /** + * The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. + */ + 'path': string; +} + +/** +* A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects. +*/ +export class V1LabelSelector { + /** + * matchExpressions is a list of label selector requirements. The requirements are ANDed. + */ + 'matchExpressions': Array; + /** + * matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \"key\", the operator is \"In\", and the values array contains only \"value\". The requirements are ANDed. + */ + 'matchLabels': { [key: string]: string; }; +} + +/** +* A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. +*/ +export class V1LabelSelectorRequirement { + /** + * key is the label key that the selector applies to. + */ + 'key': string; + /** + * operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + */ + 'operator': string; + /** + * values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. + */ + 'values': Array; +} + +/** +* Lifecycle describes actions that the management system should take in response to container lifecycle events. For the PostStart and PreStop lifecycle handlers, management of the container blocks until the action is complete, unless the container process fails, in which case the handler is aborted. +*/ +export class V1Lifecycle { + /** + * PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + */ + 'postStart': V1Handler; + /** + * PreStop is called immediately before a container is terminated. The container is terminated after the handler completes. The reason for termination is passed to the handler. Regardless of the outcome of the handler, the container is eventually terminated. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + */ + 'preStop': V1Handler; +} + +/** +* LimitRange sets resource usage limits for each kind of resource in a Namespace. +*/ +export class V1LimitRange { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + */ + 'apiVersion': string; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'kind': string; + /** + * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + */ + 'metadata': V1ObjectMeta; + /** + * Spec defines the limits enforced. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status + */ + 'spec': V1LimitRangeSpec; +} + +/** +* LimitRangeItem defines a min/max usage limit for any resource that matches on kind. +*/ +export class V1LimitRangeItem { + /** + * Default resource requirement limit value by resource name if resource limit is omitted. + */ + 'default': { [key: string]: string; }; + /** + * DefaultRequest is the default resource requirement request value by resource name if resource request is omitted. + */ + 'defaultRequest': { [key: string]: string; }; + /** + * Max usage constraints on this kind by resource name. + */ + 'max': { [key: string]: string; }; + /** + * MaxLimitRequestRatio if specified, the named resource must have a request and limit that are both non-zero where limit divided by request is less than or equal to the enumerated value; this represents the max burst for the named resource. + */ + 'maxLimitRequestRatio': { [key: string]: string; }; + /** + * Min usage constraints on this kind by resource name. + */ + 'min': { [key: string]: string; }; + /** + * Type of resource that this limit applies to. + */ + 'type': string; +} + +/** +* LimitRangeList is a list of LimitRange items. +*/ +export class V1LimitRangeList { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + */ + 'apiVersion': string; + /** + * Items is a list of LimitRange objects. More info: https://git.k8s.io/community/contributors/design-proposals/admission_control_limit_range.md + */ + 'items': Array; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'kind': string; + /** + * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'metadata': V1ListMeta; +} + +/** +* LimitRangeSpec defines a min/max usage limit for resources that match on kind. +*/ +export class V1LimitRangeSpec { + /** + * Limits is the list of LimitRangeItem objects that are enforced. + */ + 'limits': Array; +} + +/** +* ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}. +*/ +export class V1ListMeta { + /** + * continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response. + */ + 'continue': string; + /** + * String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency + */ + 'resourceVersion': string; + /** + * selfLink is a URL representing this object. Populated by the system. Read-only. + */ + 'selfLink': string; +} + +/** +* LoadBalancerIngress represents the status of a load-balancer ingress point: traffic intended for the service should be sent to an ingress point. +*/ +export class V1LoadBalancerIngress { + /** + * Hostname is set for load-balancer ingress points that are DNS based (typically AWS load-balancers) + */ + 'hostname': string; + /** + * IP is set for load-balancer ingress points that are IP based (typically GCE or OpenStack load-balancers) + */ + 'ip': string; +} + +/** +* LoadBalancerStatus represents the status of a load-balancer. +*/ +export class V1LoadBalancerStatus { + /** + * Ingress is a list containing ingress points for the load-balancer. Traffic intended for the service should be sent to these ingress points. + */ + 'ingress': Array; +} + +/** +* LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace. +*/ +export class V1LocalObjectReference { + /** + * Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + */ + 'name': string; +} + +/** +* LocalSubjectAccessReview checks whether or not a user or group can perform an action in a given namespace. Having a namespace scoped resource makes it much easier to grant namespace scoped policy that includes permissions checking. +*/ +export class V1LocalSubjectAccessReview { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + */ + 'apiVersion': string; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'kind': string; + 'metadata': V1ObjectMeta; + /** + * Spec holds information about the request being evaluated. spec.namespace must be equal to the namespace you made the request against. If empty, it is defaulted. + */ + 'spec': V1SubjectAccessReviewSpec; + /** + * Status is filled in by the server and indicates whether the request is allowed or not + */ + 'status': V1SubjectAccessReviewStatus; +} + +/** +* Local represents directly-attached storage with node affinity +*/ +export class V1LocalVolumeSource { + /** + * The full path to the volume on the node For alpha, this path must be a directory Once block as a source is supported, then this path can point to a block device + */ + 'path': string; +} + +/** +* Represents an NFS mount that lasts the lifetime of a pod. NFS volumes do not support ownership management or SELinux relabeling. +*/ +export class V1NFSVolumeSource { + /** + * Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + */ + 'path': string; + /** + * ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + */ + 'readOnly': boolean; + /** + * Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + */ + 'server': string; +} + +/** +* Namespace provides a scope for Names. Use of multiple namespaces is optional. +*/ +export class V1Namespace { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + */ + 'apiVersion': string; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'kind': string; + /** + * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + */ + 'metadata': V1ObjectMeta; + /** + * Spec defines the behavior of the Namespace. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status + */ + 'spec': V1NamespaceSpec; + /** + * Status describes the current status of a Namespace. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status + */ + 'status': V1NamespaceStatus; +} + +/** +* NamespaceList is a list of Namespaces. +*/ +export class V1NamespaceList { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + */ + 'apiVersion': string; + /** + * Items is the list of Namespace objects in the list. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ + */ + 'items': Array; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'kind': string; + /** + * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'metadata': V1ListMeta; +} + +/** +* NamespaceSpec describes the attributes on a Namespace. +*/ +export class V1NamespaceSpec { + /** + * Finalizers is an opaque list of values that must be empty to permanently remove object from storage. More info: https://git.k8s.io/community/contributors/design-proposals/namespaces.md#finalizers + */ + 'finalizers': Array; +} + +/** +* NamespaceStatus is information about the current status of a Namespace. +*/ +export class V1NamespaceStatus { + /** + * Phase is the current lifecycle phase of the namespace. More info: https://git.k8s.io/community/contributors/design-proposals/namespaces.md#phases + */ + 'phase': string; +} + +/** +* NetworkPolicy describes what network traffic is allowed for a set of Pods +*/ +export class V1NetworkPolicy { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + */ + 'apiVersion': string; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'kind': string; + /** + * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + */ + 'metadata': V1ObjectMeta; + /** + * Specification of the desired behavior for this NetworkPolicy. + */ + 'spec': V1NetworkPolicySpec; +} + +/** +* NetworkPolicyEgressRule describes a particular set of traffic that is allowed out of pods matched by a NetworkPolicySpec's podSelector. The traffic must match both ports and to. This type is beta-level in 1.8 +*/ +export class V1NetworkPolicyEgressRule { + /** + * List of destination ports for outgoing traffic. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list. + */ + 'ports': Array; + /** + * List of destinations for outgoing traffic of pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all destinations (traffic not restricted by destination). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the to list. + */ + 'to': Array; +} + +/** +* NetworkPolicyIngressRule describes a particular set of traffic that is allowed to the pods matched by a NetworkPolicySpec's podSelector. The traffic must match both ports and from. +*/ +export class V1NetworkPolicyIngressRule { + /** + * List of sources which should be able to access the pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all sources (traffic not restricted by source). If this field is present and contains at least on item, this rule allows traffic only if the traffic matches at least one item in the from list. + */ + 'from': Array; + /** + * List of ports which should be made accessible on the pods selected for this rule. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list. + */ + 'ports': Array; +} + +/** +* NetworkPolicyList is a list of NetworkPolicy objects. +*/ +export class V1NetworkPolicyList { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + */ + 'apiVersion': string; + /** + * Items is a list of schema objects. + */ + 'items': Array; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'kind': string; + /** + * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + */ + 'metadata': V1ListMeta; +} + +/** +* NetworkPolicyPeer describes a peer to allow traffic from. Exactly one of its fields must be specified. +*/ +export class V1NetworkPolicyPeer { + /** + * IPBlock defines policy on a particular IPBlock + */ + 'ipBlock': V1IPBlock; + /** + * Selects Namespaces using cluster scoped-labels. This matches all pods in all namespaces selected by this label selector. This field follows standard label selector semantics. If present but empty, this selector selects all namespaces. + */ + 'namespaceSelector': V1LabelSelector; + /** + * This is a label selector which selects Pods in this namespace. This field follows standard label selector semantics. If present but empty, this selector selects all pods in this namespace. + */ + 'podSelector': V1LabelSelector; +} + +/** +* NetworkPolicyPort describes a port to allow traffic on +*/ +export class V1NetworkPolicyPort { + /** + * The port on the given protocol. This can either be a numerical or named port on a pod. If this field is not provided, this matches all port names and numbers. + */ + 'port': any; + /** + * The protocol (TCP or UDP) which traffic must match. If not specified, this field defaults to TCP. + */ + 'protocol': string; +} + +/** +* NetworkPolicySpec provides the specification of a NetworkPolicy +*/ +export class V1NetworkPolicySpec { + /** + * List of egress rules to be applied to the selected pods. Outgoing traffic is allowed if there are no NetworkPolicies selecting the pod (and cluster policy otherwise allows the traffic), OR if the traffic matches at least one egress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy limits all outgoing traffic (and serves solely to ensure that the pods it selects are isolated by default). This field is beta-level in 1.8 + */ + 'egress': Array; + /** + * List of ingress rules to be applied to the selected pods. Traffic is allowed to a pod if there are no NetworkPolicies selecting the pod (and cluster policy otherwise allows the traffic), OR if the traffic source is the pod's local node, OR if the traffic matches at least one ingress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy does not allow any traffic (and serves solely to ensure that the pods it selects are isolated by default) + */ + 'ingress': Array; + /** + * Selects the pods to which this NetworkPolicy object applies. The array of ingress rules is applied to any pods selected by this field. Multiple network policies can select the same set of pods. In this case, the ingress rules for each are combined additively. This field is NOT optional and follows standard label selector semantics. An empty podSelector matches all pods in this namespace. + */ + 'podSelector': V1LabelSelector; + /** + * List of rule types that the NetworkPolicy relates to. Valid options are Ingress, Egress, or Ingress,Egress. If this field is not specified, it will default based on the existence of Ingress or Egress rules; policies that contain an Egress section are assumed to affect Egress, and all policies (whether or not they contain an Ingress section) are assumed to affect Ingress. If you want to write an egress-only policy, you must explicitly specify policyTypes [ \"Egress\" ]. Likewise, if you want to write a policy that specifies that no egress is allowed, you must specify a policyTypes value that include \"Egress\" (since such a policy would not include an Egress section and would otherwise default to just [ \"Ingress\" ]). This field is beta-level in 1.8 + */ + 'policyTypes': Array; +} + +/** +* Node is a worker node in Kubernetes. Each node will have a unique identifier in the cache (i.e. in etcd). +*/ +export class V1Node { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + */ + 'apiVersion': string; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'kind': string; + /** + * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + */ + 'metadata': V1ObjectMeta; + /** + * Spec defines the behavior of a node. https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status + */ + 'spec': V1NodeSpec; + /** + * Most recently observed status of the node. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status + */ + 'status': V1NodeStatus; +} + +/** +* NodeAddress contains information for the node's address. +*/ +export class V1NodeAddress { + /** + * The node address. + */ + 'address': string; + /** + * Node address type, one of Hostname, ExternalIP or InternalIP. + */ + 'type': string; +} + +/** +* Node affinity is a group of node affinity scheduling rules. +*/ +export class V1NodeAffinity { + /** + * The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. + */ + 'preferredDuringSchedulingIgnoredDuringExecution': Array; + /** + * If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. + */ + 'requiredDuringSchedulingIgnoredDuringExecution': V1NodeSelector; +} + +/** +* NodeCondition contains condition information for a node. +*/ +export class V1NodeCondition { + /** + * Last time we got an update on a given condition. + */ + 'lastHeartbeatTime': Date; + /** + * Last time the condition transit from one status to another. + */ + 'lastTransitionTime': Date; + /** + * Human readable message indicating details about last transition. + */ + 'message': string; + /** + * (brief) reason for the condition's last transition. + */ + 'reason': string; + /** + * Status of the condition, one of True, False, Unknown. + */ + 'status': string; + /** + * Type of node condition. + */ + 'type': string; +} + +/** +* NodeConfigSource specifies a source of node configuration. Exactly one subfield (excluding metadata) must be non-nil. +*/ +export class V1NodeConfigSource { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + */ + 'apiVersion': string; + 'configMapRef': V1ObjectReference; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'kind': string; +} + +/** +* NodeDaemonEndpoints lists ports opened by daemons running on the Node. +*/ +export class V1NodeDaemonEndpoints { + /** + * Endpoint on which Kubelet is listening. + */ + 'kubeletEndpoint': V1DaemonEndpoint; +} + +/** +* NodeList is the whole list of all Nodes which have been registered with master. +*/ +export class V1NodeList { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + */ + 'apiVersion': string; + /** + * List of nodes + */ + 'items': Array; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'kind': string; + /** + * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'metadata': V1ListMeta; +} + +/** +* A node selector represents the union of the results of one or more label queries over a set of nodes; that is, it represents the OR of the selectors represented by the node selector terms. +*/ +export class V1NodeSelector { + /** + * Required. A list of node selector terms. The terms are ORed. + */ + 'nodeSelectorTerms': Array; +} + +/** +* A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values. +*/ +export class V1NodeSelectorRequirement { + /** + * The label key that the selector applies to. + */ + 'key': string; + /** + * Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. + */ + 'operator': string; + /** + * An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch. + */ + 'values': Array; +} + +/** +* A null or empty node selector term matches no objects. +*/ +export class V1NodeSelectorTerm { + /** + * Required. A list of node selector requirements. The requirements are ANDed. + */ + 'matchExpressions': Array; +} + +/** +* NodeSpec describes the attributes that a node is created with. +*/ +export class V1NodeSpec { + /** + * If specified, the source to get node configuration from The DynamicKubeletConfig feature gate must be enabled for the Kubelet to use this field + */ + 'configSource': V1NodeConfigSource; + /** + * External ID of the node assigned by some machine database (e.g. a cloud provider). Deprecated. + */ + 'externalID': string; + /** + * PodCIDR represents the pod IP range assigned to the node. + */ + 'podCIDR': string; + /** + * ID of the node assigned by the cloud provider in the format: :// + */ + 'providerID': string; + /** + * If specified, the node's taints. + */ + 'taints': Array; + /** + * Unschedulable controls node schedulability of new pods. By default, node is schedulable. More info: https://kubernetes.io/docs/concepts/nodes/node/#manual-node-administration + */ + 'unschedulable': boolean; +} + +/** +* NodeStatus is information about the current status of a node. +*/ +export class V1NodeStatus { + /** + * List of addresses reachable to the node. Queried from cloud provider, if available. More info: https://kubernetes.io/docs/concepts/nodes/node/#addresses + */ + 'addresses': Array; + /** + * Allocatable represents the resources of a node that are available for scheduling. Defaults to Capacity. + */ + 'allocatable': { [key: string]: string; }; + /** + * Capacity represents the total resources of a node. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity + */ + 'capacity': { [key: string]: string; }; + /** + * Conditions is an array of current observed node conditions. More info: https://kubernetes.io/docs/concepts/nodes/node/#condition + */ + 'conditions': Array; + /** + * Endpoints of daemons running on the Node. + */ + 'daemonEndpoints': V1NodeDaemonEndpoints; + /** + * List of container images on this node + */ + 'images': Array; + /** + * Set of ids/uuids to uniquely identify the node. More info: https://kubernetes.io/docs/concepts/nodes/node/#info + */ + 'nodeInfo': V1NodeSystemInfo; + /** + * NodePhase is the recently observed lifecycle phase of the node. More info: https://kubernetes.io/docs/concepts/nodes/node/#phase The field is never populated, and now is deprecated. + */ + 'phase': string; + /** + * List of volumes that are attached to the node. + */ + 'volumesAttached': Array; + /** + * List of attachable volumes in use (mounted) by the node. + */ + 'volumesInUse': Array; +} + +/** +* NodeSystemInfo is a set of ids/uuids to uniquely identify the node. +*/ +export class V1NodeSystemInfo { + /** + * The Architecture reported by the node + */ + 'architecture': string; + /** + * Boot ID reported by the node. + */ + 'bootID': string; + /** + * ContainerRuntime Version reported by the node through runtime remote API (e.g. docker://1.5.0). + */ + 'containerRuntimeVersion': string; + /** + * Kernel Version reported by the node from 'uname -r' (e.g. 3.16.0-0.bpo.4-amd64). + */ + 'kernelVersion': string; + /** + * KubeProxy Version reported by the node. + */ + 'kubeProxyVersion': string; + /** + * Kubelet Version reported by the node. + */ + 'kubeletVersion': string; + /** + * MachineID reported by the node. For unique machine identification in the cluster this field is preferred. Learn more from man(5) machine-id: http://man7.org/linux/man-pages/man5/machine-id.5.html + */ + 'machineID': string; + /** + * The Operating System reported by the node + */ + 'operatingSystem': string; + /** + * OS Image reported by the node from /etc/os-release (e.g. Debian GNU/Linux 7 (wheezy)). + */ + 'osImage': string; + /** + * SystemUUID reported by the node. For unique machine identification MachineID is preferred. This field is specific to Red Hat hosts https://access.redhat.com/documentation/en-US/Red_Hat_Subscription_Management/1/html/RHSM/getting-system-uuid.html + */ + 'systemUUID': string; +} + +/** +* NonResourceAttributes includes the authorization attributes available for non-resource requests to the Authorizer interface +*/ +export class V1NonResourceAttributes { + /** + * Path is the URL path of the request + */ + 'path': string; + /** + * Verb is the standard HTTP verb + */ + 'verb': string; +} + +/** +* NonResourceRule holds information that describes a rule for the non-resource +*/ +export class V1NonResourceRule { + /** + * NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path. \"*\" means all. + */ + 'nonResourceURLs': Array; + /** + * Verb is a list of kubernetes non-resource API verbs, like: get, post, put, delete, patch, head, options. \"*\" means all. + */ + 'verbs': Array; +} + +/** +* ObjectFieldSelector selects an APIVersioned field of an object. +*/ +export class V1ObjectFieldSelector { + /** + * Version of the schema the FieldPath is written in terms of, defaults to \"v1\". + */ + 'apiVersion': string; + /** + * Path of the field to select in the specified API version. + */ + 'fieldPath': string; +} + +/** +* ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create. +*/ +export class V1ObjectMeta { + /** + * Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + */ + 'annotations': { [key: string]: string; }; + /** + * The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + */ + 'clusterName': string; + /** + * CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + */ + 'creationTimestamp': Date; + /** + * Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + */ + 'deletionGracePeriodSeconds': number; + /** + * DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field. Once set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + */ + 'deletionTimestamp': Date; + /** + * Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. + */ + 'finalizers': Array; + /** + * GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#idempotency + */ + 'generateName': string; + /** + * A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + */ + 'generation': number; + /** + * An initializer is a controller which enforces some system invariant at object creation time. This field is a list of initializers that have not yet acted on this object. If nil or empty, this object has been completely initialized. Otherwise, the object is considered uninitialized and is hidden (in list/watch and get calls) from clients that haven't explicitly asked to observe uninitialized objects. When an object is created, the system will populate this list with the current set of initializers. Only privileged users may set or modify this list. Once it is empty, it may not be modified further by any user. + */ + 'initializers': V1Initializers; + /** + * Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + */ + 'labels': { [key: string]: string; }; + /** + * Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + */ + 'name': string; + /** + * Namespace defines the space within each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + */ + 'namespace': string; + /** + * List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + */ + 'ownerReferences': Array; + /** + * An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency + */ + 'resourceVersion': string; + /** + * SelfLink is a URL representing this object. Populated by the system. Read-only. + */ + 'selfLink': string; + /** + * UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + */ + 'uid': string; +} + +/** +* ObjectReference contains enough information to let you inspect or modify the referred object. +*/ +export class V1ObjectReference { + /** + * API version of the referent. + */ + 'apiVersion': string; + /** + * If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: \"spec.containers{name}\" (where \"name\" refers to the name of the container that triggered the event) or if no container name is specified \"spec.containers[2]\" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. + */ + 'fieldPath': string; + /** + * Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'kind': string; + /** + * Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + */ + 'name': string; + /** + * Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ + */ + 'namespace': string; + /** + * Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency + */ + 'resourceVersion': string; + /** + * UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids + */ + 'uid': string; +} + +/** +* OwnerReference contains enough information to let you identify an owning object. Currently, an owning object must be in the same namespace, so there is no namespace field. +*/ +export class V1OwnerReference { + /** + * API version of the referent. + */ + 'apiVersion': string; + /** + * If true, AND if the owner has the \"foregroundDeletion\" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs \"delete\" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + */ + 'blockOwnerDeletion': boolean; + /** + * If true, this reference points to the managing controller. + */ + 'controller': boolean; + /** + * Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'kind': string; + /** + * Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + */ + 'name': string; + /** + * UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + */ + 'uid': string; +} + +/** +* PersistentVolume (PV) is a storage resource provisioned by an administrator. It is analogous to a node. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes +*/ +export class V1PersistentVolume { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + */ + 'apiVersion': string; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'kind': string; + /** + * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + */ + 'metadata': V1ObjectMeta; + /** + * Spec defines a specification of a persistent volume owned by the cluster. Provisioned by an administrator. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistent-volumes + */ + 'spec': V1PersistentVolumeSpec; + /** + * Status represents the current information/status for the persistent volume. Populated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistent-volumes + */ + 'status': V1PersistentVolumeStatus; +} + +/** +* PersistentVolumeClaim is a user's request for and claim to a persistent volume +*/ +export class V1PersistentVolumeClaim { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + */ + 'apiVersion': string; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'kind': string; + /** + * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + */ + 'metadata': V1ObjectMeta; + /** + * Spec defines the desired characteristics of a volume requested by a pod author. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + */ + 'spec': V1PersistentVolumeClaimSpec; + /** + * Status represents the current information/status of a persistent volume claim. Read-only. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + */ + 'status': V1PersistentVolumeClaimStatus; +} + +/** +* PersistentVolumeClaimCondition contails details about state of pvc +*/ +export class V1PersistentVolumeClaimCondition { + /** + * Last time we probed the condition. + */ + 'lastProbeTime': Date; + /** + * Last time the condition transitioned from one status to another. + */ + 'lastTransitionTime': Date; + /** + * Human-readable message indicating details about last transition. + */ + 'message': string; + /** + * Unique, this should be a short, machine understandable string that gives the reason for condition's last transition. If it reports \"ResizeStarted\" that means the underlying persistent volume is being resized. + */ + 'reason': string; + 'status': string; + 'type': string; +} + +/** +* PersistentVolumeClaimList is a list of PersistentVolumeClaim items. +*/ +export class V1PersistentVolumeClaimList { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + */ + 'apiVersion': string; + /** + * A list of persistent volume claims. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + */ + 'items': Array; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'kind': string; + /** + * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'metadata': V1ListMeta; +} + +/** +* PersistentVolumeClaimSpec describes the common attributes of storage devices and allows a Source for provider-specific attributes +*/ +export class V1PersistentVolumeClaimSpec { + /** + * AccessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 + */ + 'accessModes': Array; + /** + * Resources represents the minimum resources the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources + */ + 'resources': V1ResourceRequirements; + /** + * A label query over volumes to consider for binding. + */ + 'selector': V1LabelSelector; + /** + * Name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1 + */ + 'storageClassName': string; + /** + * VolumeName is the binding reference to the PersistentVolume backing this claim. + */ + 'volumeName': string; +} + +/** +* PersistentVolumeClaimStatus is the current status of a persistent volume claim. +*/ +export class V1PersistentVolumeClaimStatus { + /** + * AccessModes contains the actual access modes the volume backing the PVC has. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 + */ + 'accessModes': Array; + /** + * Represents the actual resources of the underlying volume. + */ + 'capacity': { [key: string]: string; }; + /** + * Current Condition of persistent volume claim. If underlying persistent volume is being resized then the Condition will be set to 'ResizeStarted'. + */ + 'conditions': Array; + /** + * Phase represents the current phase of PersistentVolumeClaim. + */ + 'phase': string; +} + +/** +* PersistentVolumeClaimVolumeSource references the user's PVC in the same namespace. This volume finds the bound PV and mounts that volume for the pod. A PersistentVolumeClaimVolumeSource is, essentially, a wrapper around another type of volume that is owned by someone else (the system). +*/ +export class V1PersistentVolumeClaimVolumeSource { + /** + * ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + */ + 'claimName': string; + /** + * Will force the ReadOnly setting in VolumeMounts. Default false. + */ + 'readOnly': boolean; +} + +/** +* PersistentVolumeList is a list of PersistentVolume items. +*/ +export class V1PersistentVolumeList { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + */ + 'apiVersion': string; + /** + * List of persistent volumes. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes + */ + 'items': Array; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'kind': string; + /** + * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'metadata': V1ListMeta; +} + +/** +* PersistentVolumeSpec is the specification of a persistent volume. +*/ +export class V1PersistentVolumeSpec { + /** + * AccessModes contains all ways the volume can be mounted. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes + */ + 'accessModes': Array; + /** + * AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + */ + 'awsElasticBlockStore': V1AWSElasticBlockStoreVolumeSource; + /** + * AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. + */ + 'azureDisk': V1AzureDiskVolumeSource; + /** + * AzureFile represents an Azure File Service mount on the host and bind mount to the pod. + */ + 'azureFile': V1AzureFilePersistentVolumeSource; + /** + * A description of the persistent volume's resources and capacity. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity + */ + 'capacity': { [key: string]: string; }; + /** + * CephFS represents a Ceph FS mount on the host that shares a pod's lifetime + */ + 'cephfs': V1CephFSPersistentVolumeSource; + /** + * Cinder represents a cinder volume attached and mounted on kubelets host machine More info: https://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md + */ + 'cinder': V1CinderVolumeSource; + /** + * ClaimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim. Expected to be non-nil when bound. claim.VolumeName is the authoritative bind between PV and PVC. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#binding + */ + 'claimRef': V1ObjectReference; + /** + * FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. + */ + 'fc': V1FCVolumeSource; + /** + * FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. This is an alpha feature and may change in future. + */ + 'flexVolume': V1FlexVolumeSource; + /** + * Flocker represents a Flocker volume attached to a kubelet's host machine and exposed to the pod for its usage. This depends on the Flocker control service being running + */ + 'flocker': V1FlockerVolumeSource; + /** + * GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + */ + 'gcePersistentDisk': V1GCEPersistentDiskVolumeSource; + /** + * Glusterfs represents a Glusterfs volume that is attached to a host and exposed to the pod. Provisioned by an admin. More info: https://releases.k8s.io/HEAD/examples/volumes/glusterfs/README.md + */ + 'glusterfs': V1GlusterfsVolumeSource; + /** + * HostPath represents a directory on the host. Provisioned by a developer or tester. This is useful for single-node development and testing only! On-host storage is not supported in any way and WILL NOT WORK in a multi-node cluster. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + */ + 'hostPath': V1HostPathVolumeSource; + /** + * ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin. + */ + 'iscsi': V1ISCSIVolumeSource; + /** + * Local represents directly-attached storage with node affinity + */ + 'local': V1LocalVolumeSource; + /** + * A list of mount options, e.g. [\"ro\", \"soft\"]. Not validated - mount will simply fail if one is invalid. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#mount-options + */ + 'mountOptions': Array; + /** + * NFS represents an NFS mount on the host. Provisioned by an admin. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + */ + 'nfs': V1NFSVolumeSource; + /** + * What happens to a persistent volume when released from its claim. Valid options are Retain (default) and Recycle. Recycling must be supported by the volume plugin underlying this persistent volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#reclaiming + */ + 'persistentVolumeReclaimPolicy': string; + /** + * PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine + */ + 'photonPersistentDisk': V1PhotonPersistentDiskVolumeSource; + /** + * PortworxVolume represents a portworx volume attached and mounted on kubelets host machine + */ + 'portworxVolume': V1PortworxVolumeSource; + /** + * Quobyte represents a Quobyte mount on the host that shares a pod's lifetime + */ + 'quobyte': V1QuobyteVolumeSource; + /** + * RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md + */ + 'rbd': V1RBDVolumeSource; + /** + * ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. + */ + 'scaleIO': V1ScaleIOPersistentVolumeSource; + /** + * Name of StorageClass to which this persistent volume belongs. Empty value means that this volume does not belong to any StorageClass. + */ + 'storageClassName': string; + /** + * StorageOS represents a StorageOS volume that is attached to the kubelet's host machine and mounted into the pod More info: https://releases.k8s.io/HEAD/examples/volumes/storageos/README.md + */ + 'storageos': V1StorageOSPersistentVolumeSource; + /** + * VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine + */ + 'vsphereVolume': V1VsphereVirtualDiskVolumeSource; +} + +/** +* PersistentVolumeStatus is the current status of a persistent volume. +*/ +export class V1PersistentVolumeStatus { + /** + * A human-readable message indicating details about why the volume is in this state. + */ + 'message': string; + /** + * Phase indicates if a volume is available, bound to a claim, or released by a claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#phase + */ + 'phase': string; + /** + * Reason is a brief CamelCase string that describes any failure and is meant for machine parsing and tidy display in the CLI. + */ + 'reason': string; +} + +/** +* Represents a Photon Controller persistent disk resource. +*/ +export class V1PhotonPersistentDiskVolumeSource { + /** + * Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. + */ + 'fsType': string; + /** + * ID that identifies Photon Controller persistent disk + */ + 'pdID': string; +} + +/** +* Pod is a collection of containers that can run on a host. This resource is created by clients and scheduled onto hosts. +*/ +export class V1Pod { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + */ + 'apiVersion': string; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'kind': string; + /** + * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + */ + 'metadata': V1ObjectMeta; + /** + * Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status + */ + 'spec': V1PodSpec; + /** + * Most recently observed status of the pod. This data may not be up to date. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status + */ + 'status': V1PodStatus; +} + +/** +* Pod affinity is a group of inter pod affinity scheduling rules. +*/ +export class V1PodAffinity { + /** + * The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + */ + 'preferredDuringSchedulingIgnoredDuringExecution': Array; + /** + * If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + */ + 'requiredDuringSchedulingIgnoredDuringExecution': Array; +} + +/** +* Defines a set of pods (namely those matching the labelSelector relative to the given namespace(s)) that this pod should be co-located (affinity) or not co-located (anti-affinity) with, where co-located is defined as running on a node whose value of the label with key tches that of any node on which a pod of the set of pods is running +*/ +export class V1PodAffinityTerm { + /** + * A label query over a set of resources, in this case pods. + */ + 'labelSelector': V1LabelSelector; + /** + * namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means \"this pod's namespace\" + */ + 'namespaces': Array; + /** + * This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. For PreferredDuringScheduling pod anti-affinity, empty topologyKey is interpreted as \"all topologies\" (\"all topologies\" here means all the topologyKeys indicated by scheduler command-line argument --failure-domains); for affinity and for RequiredDuringScheduling pod anti-affinity, empty topologyKey is not allowed. + */ + 'topologyKey': string; +} + +/** +* Pod anti affinity is a group of inter pod anti affinity scheduling rules. +*/ +export class V1PodAntiAffinity { + /** + * The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + */ + 'preferredDuringSchedulingIgnoredDuringExecution': Array; + /** + * If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + */ + 'requiredDuringSchedulingIgnoredDuringExecution': Array; +} + +/** +* PodCondition contains details for the current condition of this pod. +*/ +export class V1PodCondition { + /** + * Last time we probed the condition. + */ + 'lastProbeTime': Date; + /** + * Last time the condition transitioned from one status to another. + */ + 'lastTransitionTime': Date; + /** + * Human-readable message indicating details about last transition. + */ + 'message': string; + /** + * Unique, one-word, CamelCase reason for the condition's last transition. + */ + 'reason': string; + /** + * Status is the status of the condition. Can be True, False, Unknown. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions + */ + 'status': string; + /** + * Type is the type of the condition. Currently only Ready. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions + */ + 'type': string; +} + +/** +* PodList is a list of Pods. +*/ +export class V1PodList { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + */ + 'apiVersion': string; + /** + * List of pods. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md + */ + 'items': Array; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'kind': string; + /** + * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'metadata': V1ListMeta; +} + +/** +* PodSecurityContext holds pod-level security attributes and common container settings. Some fields are also present in container.securityContext. Field values of container.securityContext take precedence over field values of PodSecurityContext. +*/ +export class V1PodSecurityContext { + /** + * A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- If unset, the Kubelet will not modify the ownership and permissions of any volume. + */ + 'fsGroup': number; + /** + * Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + */ + 'runAsNonRoot': boolean; + /** + * The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + */ + 'runAsUser': number; + /** + * The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + */ + 'seLinuxOptions': V1SELinuxOptions; + /** + * A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. + */ + 'supplementalGroups': Array; +} + +/** +* PodSpec is a description of a pod. +*/ +export class V1PodSpec { + /** + * Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. + */ + 'activeDeadlineSeconds': number; + /** + * If specified, the pod's scheduling constraints + */ + 'affinity': V1Affinity; + /** + * AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. + */ + 'automountServiceAccountToken': boolean; + /** + * List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. + */ + 'containers': Array; + /** + * Set DNS policy for containers within the pod. One of 'ClusterFirstWithHostNet', 'ClusterFirst' or 'Default'. Defaults to \"ClusterFirst\". To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. + */ + 'dnsPolicy': string; + /** + * HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. + */ + 'hostAliases': Array; + /** + * Use the host's ipc namespace. Optional: Default to false. + */ + 'hostIPC': boolean; + /** + * Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. + */ + 'hostNetwork': boolean; + /** + * Use the host's pid namespace. Optional: Default to false. + */ + 'hostPID': boolean; + /** + * Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. + */ + 'hostname': string; + /** + * ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod + */ + 'imagePullSecrets': Array; + /** + * List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, or Liveness probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ + */ + 'initContainers': Array; + /** + * NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. + */ + 'nodeName': string; + /** + * NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ + */ + 'nodeSelector': { [key: string]: string; }; + /** + * The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. + */ + 'priority': number; + /** + * If specified, indicates the pod's priority. \"SYSTEM\" is a special keyword which indicates the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. + */ + 'priorityClassName': string; + /** + * Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy + */ + 'restartPolicy': string; + /** + * If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. + */ + 'schedulerName': string; + /** + * SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. + */ + 'securityContext': V1PodSecurityContext; + /** + * DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. + */ + 'serviceAccount': string; + /** + * ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ + */ + 'serviceAccountName': string; + /** + * If specified, the fully qualified Pod hostname will be \"...svc.\". If not specified, the pod will not have a domainname at all. + */ + 'subdomain': string; + /** + * Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. + */ + 'terminationGracePeriodSeconds': number; + /** + * If specified, the pod's tolerations. + */ + 'tolerations': Array; + /** + * List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes + */ + 'volumes': Array; +} + +/** +* PodStatus represents information about the status of a pod. Status may trail the actual state of a system. +*/ +export class V1PodStatus { + /** + * Current service state of pod. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions + */ + 'conditions': Array; + /** + * The list has one entry per container in the manifest. Each entry is currently the output of `docker inspect`. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status + */ + 'containerStatuses': Array; + /** + * IP address of the host to which the pod is assigned. Empty if not yet scheduled. + */ + 'hostIP': string; + /** + * The list has one entry per init container in the manifest. The most recent successful init container will have ready = true, the most recently started container will have startTime set. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status + */ + 'initContainerStatuses': Array; + /** + * A human readable message indicating details about why the pod is in this condition. + */ + 'message': string; + /** + * Current condition of the pod. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-phase + */ + 'phase': string; + /** + * IP address allocated to the pod. Routable at least within the cluster. Empty if not yet allocated. + */ + 'podIP': string; + /** + * The Quality of Service (QOS) classification assigned to the pod based on resource requirements See PodQOSClass type for available QOS classes More info: https://github.com/kubernetes/kubernetes/blob/master/docs/design/resource-qos.md + */ + 'qosClass': string; + /** + * A brief CamelCase message indicating details about why the pod is in this state. e.g. 'Evicted' + */ + 'reason': string; + /** + * RFC 3339 date and time at which the object was acknowledged by the Kubelet. This is before the Kubelet pulled the container image(s) for the pod. + */ + 'startTime': Date; +} + +/** +* PodTemplate describes a template for creating copies of a predefined pod. +*/ +export class V1PodTemplate { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + */ + 'apiVersion': string; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'kind': string; + /** + * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + */ + 'metadata': V1ObjectMeta; + /** + * Template defines the pods that will be created from this pod template. https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status + */ + 'template': V1PodTemplateSpec; +} + +/** +* PodTemplateList is a list of PodTemplates. +*/ +export class V1PodTemplateList { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + */ + 'apiVersion': string; + /** + * List of pod templates + */ + 'items': Array; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'kind': string; + /** + * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'metadata': V1ListMeta; +} + +/** +* PodTemplateSpec describes the data a pod should have when created from a template +*/ +export class V1PodTemplateSpec { + /** + * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + */ + 'metadata': V1ObjectMeta; + /** + * Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status + */ + 'spec': V1PodSpec; +} + +/** +* PolicyRule holds information that describes a policy rule, but does not contain information about who the rule applies to or which namespace the rule applies to. +*/ +export class V1PolicyRule { + /** + * APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. + */ + 'apiGroups': Array; + /** + * NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules can either apply to API resources (such as \"pods\" or \"secrets\") or non-resource URL paths (such as \"/api\"), but not both. + */ + 'nonResourceURLs': Array; + /** + * ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. + */ + 'resourceNames': Array; + /** + * Resources is a list of resources this rule applies to. ResourceAll represents all resources. + */ + 'resources': Array; + /** + * Verbs is a list of Verbs that apply to ALL the ResourceKinds and AttributeRestrictions contained in this rule. VerbAll represents all kinds. + */ + 'verbs': Array; +} + +/** +* PortworxVolumeSource represents a Portworx volume resource. +*/ +export class V1PortworxVolumeSource { + /** + * FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\". Implicitly inferred to be \"ext4\" if unspecified. + */ + 'fsType': string; + /** + * Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + */ + 'readOnly': boolean; + /** + * VolumeID uniquely identifies a Portworx volume + */ + 'volumeID': string; +} + +/** +* Preconditions must be fulfilled before an operation (update, delete, etc.) is carried out. +*/ +export class V1Preconditions { + /** + * Specifies the target UID. + */ + 'uid': string; +} + +/** +* An empty preferred scheduling term matches all objects with implicit weight 0 (i.e. it's a no-op). A null preferred scheduling term matches no objects (i.e. is also a no-op). +*/ +export class V1PreferredSchedulingTerm { + /** + * A node selector term, associated with the corresponding weight. + */ + 'preference': V1NodeSelectorTerm; + /** + * Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. + */ + 'weight': number; +} + +/** +* Probe describes a health check to be performed against a container to determine whether it is alive or ready to receive traffic. +*/ +export class V1Probe { + /** + * One and only one of the following should be specified. Exec specifies the action to take. + */ + 'exec': V1ExecAction; + /** + * Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. + */ + 'failureThreshold': number; + /** + * HTTPGet specifies the http request to perform. + */ + 'httpGet': V1HTTPGetAction; + /** + * Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + */ + 'initialDelaySeconds': number; + /** + * How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. + */ + 'periodSeconds': number; + /** + * Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness. Minimum value is 1. + */ + 'successThreshold': number; + /** + * TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported + */ + 'tcpSocket': V1TCPSocketAction; + /** + * Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + */ + 'timeoutSeconds': number; +} + +/** +* Represents a projected volume source +*/ +export class V1ProjectedVolumeSource { + /** + * Mode bits to use on created files by default. Must be a value between 0 and 0777. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. + */ + 'defaultMode': number; + /** + * list of volume projections + */ + 'sources': Array; +} + +/** +* Represents a Quobyte mount that lasts the lifetime of a pod. Quobyte volumes do not support ownership management or SELinux relabeling. +*/ +export class V1QuobyteVolumeSource { + /** + * Group to map volume access to Default is no group + */ + 'group': string; + /** + * ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. + */ + 'readOnly': boolean; + /** + * Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes + */ + 'registry': string; + /** + * User to map volume access to Defaults to serivceaccount user + */ + 'user': string; + /** + * Volume is a string that references an already created Quobyte volume by name. + */ + 'volume': string; +} + +/** +* Represents a Rados Block Device mount that lasts the lifetime of a pod. RBD volumes support ownership management and SELinux relabeling. +*/ +export class V1RBDVolumeSource { + /** + * Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd + */ + 'fsType': string; + /** + * The rados image name. More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it + */ + 'image': string; + /** + * Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it + */ + 'keyring': string; + /** + * A collection of Ceph monitors. More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it + */ + 'monitors': Array; + /** + * The rados pool name. Default is rbd. More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it + */ + 'pool': string; + /** + * ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it + */ + 'readOnly': boolean; + /** + * SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it + */ + 'secretRef': V1LocalObjectReference; + /** + * The rados user name. Default is admin. More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it + */ + 'user': string; +} + +/** +* ReplicationController represents the configuration of a replication controller. +*/ +export class V1ReplicationController { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + */ + 'apiVersion': string; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'kind': string; + /** + * If the Labels of a ReplicationController are empty, they are defaulted to be the same as the Pod(s) that the replication controller manages. Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + */ + 'metadata': V1ObjectMeta; + /** + * Spec defines the specification of the desired behavior of the replication controller. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status + */ + 'spec': V1ReplicationControllerSpec; + /** + * Status is the most recently observed status of the replication controller. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status + */ + 'status': V1ReplicationControllerStatus; +} + +/** +* ReplicationControllerCondition describes the state of a replication controller at a certain point. +*/ +export class V1ReplicationControllerCondition { + /** + * The last time the condition transitioned from one status to another. + */ + 'lastTransitionTime': Date; + /** + * A human readable message indicating details about the transition. + */ + 'message': string; + /** + * The reason for the condition's last transition. + */ + 'reason': string; + /** + * Status of the condition, one of True, False, Unknown. + */ + 'status': string; + /** + * Type of replication controller condition. + */ + 'type': string; +} + +/** +* ReplicationControllerList is a collection of replication controllers. +*/ +export class V1ReplicationControllerList { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + */ + 'apiVersion': string; + /** + * List of replication controllers. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller + */ + 'items': Array; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'kind': string; + /** + * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'metadata': V1ListMeta; +} + +/** +* ReplicationControllerSpec is the specification of a replication controller. +*/ +export class V1ReplicationControllerSpec { + /** + * Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) + */ + 'minReadySeconds': number; + /** + * Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller + */ + 'replicas': number; + /** + * Selector is a label query over pods that should match the Replicas count. If Selector is empty, it is defaulted to the labels present on the Pod template. Label keys and values that must match in order to be controlled by this replication controller, if empty defaulted to labels on Pod template. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors + */ + 'selector': { [key: string]: string; }; + /** + * Template is the object that describes the pod that will be created if insufficient replicas are detected. This takes precedence over a TemplateRef. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template + */ + 'template': V1PodTemplateSpec; +} + +/** +* ReplicationControllerStatus represents the current status of a replication controller. +*/ +export class V1ReplicationControllerStatus { + /** + * The number of available replicas (ready for at least minReadySeconds) for this replication controller. + */ + 'availableReplicas': number; + /** + * Represents the latest available observations of a replication controller's current state. + */ + 'conditions': Array; + /** + * The number of pods that have labels matching the labels of the pod template of the replication controller. + */ + 'fullyLabeledReplicas': number; + /** + * ObservedGeneration reflects the generation of the most recently observed replication controller. + */ + 'observedGeneration': number; + /** + * The number of ready replicas for this replication controller. + */ + 'readyReplicas': number; + /** + * Replicas is the most recently oberved number of replicas. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller + */ + 'replicas': number; +} + +/** +* ResourceAttributes includes the authorization attributes available for resource requests to the Authorizer interface +*/ +export class V1ResourceAttributes { + /** + * Group is the API Group of the Resource. \"*\" means all. + */ + 'group': string; + /** + * Name is the name of the resource being requested for a \"get\" or deleted for a \"delete\". \"\" (empty) means all. + */ + 'name': string; + /** + * Namespace is the namespace of the action being requested. Currently, there is no distinction between no namespace and all namespaces \"\" (empty) is defaulted for LocalSubjectAccessReviews \"\" (empty) is empty for cluster-scoped resources \"\" (empty) means \"all\" for namespace scoped resources from a SubjectAccessReview or SelfSubjectAccessReview + */ + 'namespace': string; + /** + * Resource is one of the existing resource types. \"*\" means all. + */ + 'resource': string; + /** + * Subresource is one of the existing resource types. \"\" means none. + */ + 'subresource': string; + /** + * Verb is a kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy. \"*\" means all. + */ + 'verb': string; + /** + * Version is the API Version of the Resource. \"*\" means all. + */ + 'version': string; +} + +/** +* ResourceFieldSelector represents container resources (cpu, memory) and their output format +*/ +export class V1ResourceFieldSelector { + /** + * Container name: required for volumes, optional for env vars + */ + 'containerName': string; + /** + * Specifies the output format of the exposed resources, defaults to \"1\" + */ + 'divisor': string; + /** + * Required: resource to select + */ + 'resource': string; +} + +/** +* ResourceQuota sets aggregate quota restrictions enforced per namespace +*/ +export class V1ResourceQuota { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + */ + 'apiVersion': string; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'kind': string; + /** + * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + */ + 'metadata': V1ObjectMeta; + /** + * Spec defines the desired quota. https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status + */ + 'spec': V1ResourceQuotaSpec; + /** + * Status defines the actual enforced quota and its current usage. https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status + */ + 'status': V1ResourceQuotaStatus; +} + +/** +* ResourceQuotaList is a list of ResourceQuota items. +*/ +export class V1ResourceQuotaList { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + */ + 'apiVersion': string; + /** + * Items is a list of ResourceQuota objects. More info: https://git.k8s.io/community/contributors/design-proposals/admission_control_resource_quota.md + */ + 'items': Array; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'kind': string; + /** + * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'metadata': V1ListMeta; +} + +/** +* ResourceQuotaSpec defines the desired hard limits to enforce for Quota. +*/ +export class V1ResourceQuotaSpec { + /** + * Hard is the set of desired hard limits for each named resource. More info: https://git.k8s.io/community/contributors/design-proposals/admission_control_resource_quota.md + */ + 'hard': { [key: string]: string; }; + /** + * A collection of filters that must match each object tracked by a quota. If not specified, the quota matches all objects. + */ + 'scopes': Array; +} + +/** +* ResourceQuotaStatus defines the enforced hard limits and observed use. +*/ +export class V1ResourceQuotaStatus { + /** + * Hard is the set of enforced hard limits for each named resource. More info: https://git.k8s.io/community/contributors/design-proposals/admission_control_resource_quota.md + */ + 'hard': { [key: string]: string; }; + /** + * Used is the current observed total usage of the resource in the namespace. + */ + 'used': { [key: string]: string; }; +} + +/** +* ResourceRequirements describes the compute resource requirements. +*/ +export class V1ResourceRequirements { + /** + * Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + */ + 'limits': { [key: string]: string; }; + /** + * Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + */ + 'requests': { [key: string]: string; }; +} + +/** +* ResourceRule is the list of actions the subject is allowed to perform on resources. The list ordering isn't significant, may contain duplicates, and possibly be incomplete. +*/ +export class V1ResourceRule { + /** + * APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. \"*\" means all. + */ + 'apiGroups': Array; + /** + * ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. \"*\" means all. + */ + 'resourceNames': Array; + /** + * Resources is a list of resources this rule applies to. ResourceAll represents all resources. \"*\" means all. + */ + 'resources': Array; + /** + * Verb is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxy. \"*\" means all. + */ + 'verbs': Array; +} + +/** +* Role is a namespaced, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding. +*/ +export class V1Role { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + */ + 'apiVersion': string; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'kind': string; + /** + * Standard object's metadata. + */ + 'metadata': V1ObjectMeta; + /** + * Rules holds all the PolicyRules for this Role + */ + 'rules': Array; +} + +/** +* RoleBinding references a role, but does not contain it. It can reference a Role in the same namespace or a ClusterRole in the global namespace. It adds who information via Subjects and namespace information by which namespace it exists in. RoleBindings in a given namespace only have effect in that namespace. +*/ +export class V1RoleBinding { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + */ + 'apiVersion': string; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'kind': string; + /** + * Standard object's metadata. + */ + 'metadata': V1ObjectMeta; + /** + * RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. + */ + 'roleRef': V1RoleRef; + /** + * Subjects holds references to the objects the role applies to. + */ + 'subjects': Array; +} + +/** +* RoleBindingList is a collection of RoleBindings +*/ +export class V1RoleBindingList { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + */ + 'apiVersion': string; + /** + * Items is a list of RoleBindings + */ + 'items': Array; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'kind': string; + /** + * Standard object's metadata. + */ + 'metadata': V1ListMeta; +} + +/** +* RoleList is a collection of Roles +*/ +export class V1RoleList { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + */ + 'apiVersion': string; + /** + * Items is a list of Roles + */ + 'items': Array; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'kind': string; + /** + * Standard object's metadata. + */ + 'metadata': V1ListMeta; +} + +/** +* RoleRef contains information that points to the role being used +*/ +export class V1RoleRef { + /** + * APIGroup is the group for the resource being referenced + */ + 'apiGroup': string; + /** + * Kind is the type of resource being referenced + */ + 'kind': string; + /** + * Name is the name of resource being referenced + */ + 'name': string; +} + +/** +* SELinuxOptions are the labels to be applied to the container +*/ +export class V1SELinuxOptions { + /** + * Level is SELinux level label that applies to the container. + */ + 'level': string; + /** + * Role is a SELinux role label that applies to the container. + */ + 'role': string; + /** + * Type is a SELinux type label that applies to the container. + */ + 'type': string; + /** + * User is a SELinux user label that applies to the container. + */ + 'user': string; +} + +/** +* Scale represents a scaling request for a resource. +*/ +export class V1Scale { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + */ + 'apiVersion': string; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'kind': string; + /** + * Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata. + */ + 'metadata': V1ObjectMeta; + /** + * defines the behavior of the scale. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status. + */ + 'spec': V1ScaleSpec; + /** + * current status of the scale. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status. Read-only. + */ + 'status': V1ScaleStatus; +} + +/** +* ScaleIOPersistentVolumeSource represents a persistent ScaleIO volume +*/ +export class V1ScaleIOPersistentVolumeSource { + /** + * Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. + */ + 'fsType': string; + /** + * The host address of the ScaleIO API Gateway. + */ + 'gateway': string; + /** + * The name of the ScaleIO Protection Domain for the configured storage. + */ + 'protectionDomain': string; + /** + * Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + */ + 'readOnly': boolean; + /** + * SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. + */ + 'secretRef': V1SecretReference; + /** + * Flag to enable/disable SSL communication with Gateway, default false + */ + 'sslEnabled': boolean; + /** + * Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. + */ + 'storageMode': string; + /** + * The ScaleIO Storage Pool associated with the protection domain. + */ + 'storagePool': string; + /** + * The name of the storage system as configured in ScaleIO. + */ + 'system': string; + /** + * The name of a volume already created in the ScaleIO system that is associated with this volume source. + */ + 'volumeName': string; +} + +/** +* ScaleIOVolumeSource represents a persistent ScaleIO volume +*/ +export class V1ScaleIOVolumeSource { + /** + * Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. + */ + 'fsType': string; + /** + * The host address of the ScaleIO API Gateway. + */ + 'gateway': string; + /** + * The name of the ScaleIO Protection Domain for the configured storage. + */ + 'protectionDomain': string; + /** + * Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + */ + 'readOnly': boolean; + /** + * SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. + */ + 'secretRef': V1LocalObjectReference; + /** + * Flag to enable/disable SSL communication with Gateway, default false + */ + 'sslEnabled': boolean; + /** + * Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. + */ + 'storageMode': string; + /** + * The ScaleIO Storage Pool associated with the protection domain. + */ + 'storagePool': string; + /** + * The name of the storage system as configured in ScaleIO. + */ + 'system': string; + /** + * The name of a volume already created in the ScaleIO system that is associated with this volume source. + */ + 'volumeName': string; +} + +/** +* ScaleSpec describes the attributes of a scale subresource. +*/ +export class V1ScaleSpec { + /** + * desired number of instances for the scaled object. + */ + 'replicas': number; +} + +/** +* ScaleStatus represents the current status of a scale subresource. +*/ +export class V1ScaleStatus { + /** + * actual number of observed instances of the scaled object. + */ + 'replicas': number; + /** + * label query over pods that should match the replicas count. This is same as the label selector but in the string format to avoid introspection by clients. The string will be in the same format as the query-param syntax. More info about label selectors: http://kubernetes.io/docs/user-guide/labels#label-selectors + */ + 'selector': string; +} + +/** +* Secret holds secret data of a certain type. The total bytes of the values in the Data field must be less than MaxSecretSize bytes. +*/ +export class V1Secret { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + */ + 'apiVersion': string; + /** + * Data contains the secret data. Each key must consist of alphanumeric characters, '-', '_' or '.'. The serialized form of the secret data is a base64 encoded string, representing the arbitrary (possibly non-string) data value here. Described in https://tools.ietf.org/html/rfc4648#section-4 + */ + 'data': { [key: string]: string; }; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'kind': string; + /** + * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + */ + 'metadata': V1ObjectMeta; + /** + * stringData allows specifying non-binary secret data in string form. It is provided as a write-only convenience method. All keys and values are merged into the data field on write, overwriting any existing values. It is never output when reading from the API. + */ + 'stringData': { [key: string]: string; }; + /** + * Used to facilitate programmatic handling of secret data. + */ + 'type': string; +} + +/** +* SecretEnvSource selects a Secret to populate the environment variables with. The contents of the target Secret's Data field will represent the key-value pairs as environment variables. +*/ +export class V1SecretEnvSource { + /** + * Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + */ + 'name': string; + /** + * Specify whether the Secret must be defined + */ + 'optional': boolean; +} + +/** +* SecretKeySelector selects a key of a Secret. +*/ +export class V1SecretKeySelector { + /** + * The key of the secret to select from. Must be a valid secret key. + */ + 'key': string; + /** + * Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + */ + 'name': string; + /** + * Specify whether the Secret or it's key must be defined + */ + 'optional': boolean; +} + +/** +* SecretList is a list of Secret. +*/ +export class V1SecretList { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + */ + 'apiVersion': string; + /** + * Items is a list of secret objects. More info: https://kubernetes.io/docs/concepts/configuration/secret + */ + 'items': Array; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'kind': string; + /** + * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'metadata': V1ListMeta; +} + +/** +* Adapts a secret into a projected volume. The contents of the target Secret's Data field will be presented in a projected volume as files using the keys in the Data field as the file names. Note that this is identical to a secret volume source without the default mode. +*/ +export class V1SecretProjection { + /** + * If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + */ + 'items': Array; + /** + * Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + */ + 'name': string; + /** + * Specify whether the Secret or its key must be defined + */ + 'optional': boolean; +} + +/** +* SecretReference represents a Secret Reference. It has enough information to retrieve secret in any namespace +*/ +export class V1SecretReference { + /** + * Name is unique within a namespace to reference a secret resource. + */ + 'name': string; + /** + * Namespace defines the space within which the secret name must be unique. + */ + 'namespace': string; +} + +/** +* Adapts a Secret into a volume. The contents of the target Secret's Data field will be presented in a volume as files using the keys in the Data field as the file names. Secret volumes support ownership management and SELinux relabeling. +*/ +export class V1SecretVolumeSource { + /** + * Optional: mode bits to use on created files by default. Must be a value between 0 and 0777. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. + */ + 'defaultMode': number; + /** + * If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + */ + 'items': Array; + /** + * Specify whether the Secret or it's keys must be defined + */ + 'optional': boolean; + /** + * Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + */ + 'secretName': string; +} + +/** +* SecurityContext holds security configuration that will be applied to a container. Some fields are present in both SecurityContext and PodSecurityContext. When both are set, the values in SecurityContext take precedence. +*/ +export class V1SecurityContext { + /** + * AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN + */ + 'allowPrivilegeEscalation': boolean; + /** + * The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. + */ + 'capabilities': V1Capabilities; + /** + * Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. + */ + 'privileged': boolean; + /** + * Whether this container has a read-only root filesystem. Default is false. + */ + 'readOnlyRootFilesystem': boolean; + /** + * Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + */ + 'runAsNonRoot': boolean; + /** + * The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + */ + 'runAsUser': number; + /** + * The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + */ + 'seLinuxOptions': V1SELinuxOptions; +} + +/** +* SelfSubjectAccessReview checks whether or the current user can perform an action. Not filling in a spec.namespace means \"in all namespaces\". Self is a special case, because users should always be able to check whether they can perform an action +*/ +export class V1SelfSubjectAccessReview { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + */ + 'apiVersion': string; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'kind': string; + 'metadata': V1ObjectMeta; + /** + * Spec holds information about the request being evaluated. user and groups must be empty + */ + 'spec': V1SelfSubjectAccessReviewSpec; + /** + * Status is filled in by the server and indicates whether the request is allowed or not + */ + 'status': V1SubjectAccessReviewStatus; +} + +/** +* SelfSubjectAccessReviewSpec is a description of the access request. Exactly one of ResourceAuthorizationAttributes and NonResourceAuthorizationAttributes must be set +*/ +export class V1SelfSubjectAccessReviewSpec { + /** + * NonResourceAttributes describes information for a non-resource access request + */ + 'nonResourceAttributes': V1NonResourceAttributes; + /** + * ResourceAuthorizationAttributes describes information for a resource access request + */ + 'resourceAttributes': V1ResourceAttributes; +} + +/** +* SelfSubjectRulesReview enumerates the set of actions the current user can perform within a namespace. The returned list of actions may be incomplete depending on the server's authorization mode, and any errors experienced during the evaluation. SelfSubjectRulesReview should be used by UIs to show/hide actions, or to quickly let an end user reason about their permissions. It should NOT Be used by external systems to drive authorization decisions as this raises confused deputy, cache lifetime/revocation, and correctness concerns. SubjectAccessReview, and LocalAccessReview are the correct way to defer authorization decisions to the API server. +*/ +export class V1SelfSubjectRulesReview { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + */ + 'apiVersion': string; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'kind': string; + 'metadata': V1ObjectMeta; + /** + * Spec holds information about the request being evaluated. + */ + 'spec': V1SelfSubjectRulesReviewSpec; + /** + * Status is filled in by the server and indicates the set of actions a user can perform. + */ + 'status': V1SubjectRulesReviewStatus; +} + +export class V1SelfSubjectRulesReviewSpec { + /** + * Namespace to evaluate rules for. Required. + */ + 'namespace': string; +} + +/** +* ServerAddressByClientCIDR helps the client to determine the server address that they should use, depending on the clientCIDR that they match. +*/ +export class V1ServerAddressByClientCIDR { + /** + * The CIDR with which clients can match their IP to figure out the server address that they should use. + */ + 'clientCIDR': string; + /** + * Address of this server, suitable for a client that matches the above CIDR. This can be a hostname, hostname:port, IP or IP:port. + */ + 'serverAddress': string; +} + +/** +* Service is a named abstraction of software service (for example, mysql) consisting of local port (for example 3306) that the proxy listens on, and the selector that determines which pods will answer requests sent through the proxy. +*/ +export class V1Service { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + */ + 'apiVersion': string; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'kind': string; + /** + * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + */ + 'metadata': V1ObjectMeta; + /** + * Spec defines the behavior of a service. https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status + */ + 'spec': V1ServiceSpec; + /** + * Most recently observed status of the service. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status + */ + 'status': V1ServiceStatus; +} + +/** +* ServiceAccount binds together: * a name, understood by users, and perhaps by peripheral systems, for an identity * a principal that can be authenticated and authorized * a set of secrets +*/ +export class V1ServiceAccount { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + */ + 'apiVersion': string; + /** + * AutomountServiceAccountToken indicates whether pods running as this service account should have an API token automatically mounted. Can be overridden at the pod level. + */ + 'automountServiceAccountToken': boolean; + /** + * ImagePullSecrets is a list of references to secrets in the same namespace to use for pulling any images in pods that reference this ServiceAccount. ImagePullSecrets are distinct from Secrets because Secrets can be mounted in the pod, but ImagePullSecrets are only accessed by the kubelet. More info: https://kubernetes.io/docs/concepts/containers/images/#specifying-imagepullsecrets-on-a-pod + */ + 'imagePullSecrets': Array; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'kind': string; + /** + * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + */ + 'metadata': V1ObjectMeta; + /** + * Secrets is the list of secrets allowed to be used by pods running using this ServiceAccount. More info: https://kubernetes.io/docs/concepts/configuration/secret + */ + 'secrets': Array; +} + +/** +* ServiceAccountList is a list of ServiceAccount objects +*/ +export class V1ServiceAccountList { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + */ + 'apiVersion': string; + /** + * List of ServiceAccounts. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ + */ + 'items': Array; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'kind': string; + /** + * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'metadata': V1ListMeta; +} + +/** +* ServiceList holds a list of services. +*/ +export class V1ServiceList { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + */ + 'apiVersion': string; + /** + * List of services + */ + 'items': Array; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'kind': string; + /** + * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'metadata': V1ListMeta; +} + +/** +* ServicePort contains information on service's port. +*/ +export class V1ServicePort { + /** + * The name of this port within the service. This must be a DNS_LABEL. All ports within a ServiceSpec must have unique names. This maps to the 'Name' field in EndpointPort objects. Optional if only one ServicePort is defined on this service. + */ + 'name': string; + /** + * The port on each node on which this service is exposed when type=NodePort or LoadBalancer. Usually assigned by the system. If specified, it will be allocated to the service if unused or else creation of the service will fail. Default is to auto-allocate a port if the ServiceType of this Service requires one. More info: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport + */ + 'nodePort': number; + /** + * The port that will be exposed by this service. + */ + 'port': number; + /** + * The IP protocol for this port. Supports \"TCP\" and \"UDP\". Default is TCP. + */ + 'protocol': string; + /** + * Number or name of the port to access on the pods targeted by the service. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. If this is a string, it will be looked up as a named port in the target Pod's container ports. If this is not specified, the value of the 'port' field is used (an identity map). This field is ignored for services with clusterIP=None, and should be omitted or set equal to the 'port' field. More info: https://kubernetes.io/docs/concepts/services-networking/service/#defining-a-service + */ + 'targetPort': any; +} + +/** +* ServiceSpec describes the attributes that a user creates on a service. +*/ +export class V1ServiceSpec { + /** + * clusterIP is the IP address of the service and is usually assigned randomly by the master. If an address is specified manually and is not in use by others, it will be allocated to the service; otherwise, creation of the service will fail. This field can not be changed through updates. Valid values are \"None\", empty string (\"\"), or a valid IP address. \"None\" can be specified for headless services when proxying is not required. Only applies to types ClusterIP, NodePort, and LoadBalancer. Ignored if type is ExternalName. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies + */ + 'clusterIP': string; + /** + * externalIPs is a list of IP addresses for which nodes in the cluster will also accept traffic for this service. These IPs are not managed by Kubernetes. The user is responsible for ensuring that traffic arrives at a node with this IP. A common example is external load-balancers that are not part of the Kubernetes system. + */ + 'externalIPs': Array; + /** + * externalName is the external reference that kubedns or equivalent will return as a CNAME record for this service. No proxying will be involved. Must be a valid DNS name and requires Type to be ExternalName. + */ + 'externalName': string; + /** + * externalTrafficPolicy denotes if this Service desires to route external traffic to node-local or cluster-wide endpoints. \"Local\" preserves the client source IP and avoids a second hop for LoadBalancer and Nodeport type services, but risks potentially imbalanced traffic spreading. \"Cluster\" obscures the client source IP and may cause a second hop to another node, but should have good overall load-spreading. + */ + 'externalTrafficPolicy': string; + /** + * healthCheckNodePort specifies the healthcheck nodePort for the service. If not specified, HealthCheckNodePort is created by the service api backend with the allocated nodePort. Will use user-specified nodePort value if specified by the client. Only effects when Type is set to LoadBalancer and ExternalTrafficPolicy is set to Local. + */ + 'healthCheckNodePort': number; + /** + * Only applies to Service Type: LoadBalancer LoadBalancer will get created with the IP specified in this field. This feature depends on whether the underlying cloud-provider supports specifying the loadBalancerIP when a load balancer is created. This field will be ignored if the cloud-provider does not support the feature. + */ + 'loadBalancerIP': string; + /** + * If specified and supported by the platform, this will restrict traffic through the cloud-provider load-balancer will be restricted to the specified client IPs. This field will be ignored if the cloud-provider does not support the feature.\" More info: https://kubernetes.io/docs/tasks/access-application-cluster/configure-cloud-provider-firewall/ + */ + 'loadBalancerSourceRanges': Array; + /** + * The list of ports that are exposed by this service. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies + */ + 'ports': Array; + /** + * publishNotReadyAddresses, when set to true, indicates that DNS implementations must publish the notReadyAddresses of subsets for the Endpoints associated with the Service. The default value is false. The primary use case for setting this field is to use a StatefulSet's Headless Service to propagate SRV records for its Pods without respect to their readiness for purpose of peer discovery. This field will replace the service.alpha.kubernetes.io/tolerate-unready-endpoints when that annotation is deprecated and all clients have been converted to use this field. + */ + 'publishNotReadyAddresses': boolean; + /** + * Route service traffic to pods with label keys and values matching this selector. If empty or not present, the service is assumed to have an external process managing its endpoints, which Kubernetes will not modify. Only applies to types ClusterIP, NodePort, and LoadBalancer. Ignored if type is ExternalName. More info: https://kubernetes.io/docs/concepts/services-networking/service/ + */ + 'selector': { [key: string]: string; }; + /** + * Supports \"ClientIP\" and \"None\". Used to maintain session affinity. Enable client IP based session affinity. Must be ClientIP or None. Defaults to None. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies + */ + 'sessionAffinity': string; + /** + * sessionAffinityConfig contains the configurations of session affinity. + */ + 'sessionAffinityConfig': V1SessionAffinityConfig; + /** + * type determines how the Service is exposed. Defaults to ClusterIP. Valid options are ExternalName, ClusterIP, NodePort, and LoadBalancer. \"ExternalName\" maps to the specified externalName. \"ClusterIP\" allocates a cluster-internal IP address for load-balancing to endpoints. Endpoints are determined by the selector or if that is not specified, by manual construction of an Endpoints object. If clusterIP is \"None\", no virtual IP is allocated and the endpoints are published as a set of endpoints rather than a stable IP. \"NodePort\" builds on ClusterIP and allocates a port on every node which routes to the clusterIP. \"LoadBalancer\" builds on NodePort and creates an external load-balancer (if supported in the current cloud) which routes to the clusterIP. More info: https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services---service-types + */ + 'type': string; +} + +/** +* ServiceStatus represents the current status of a service. +*/ +export class V1ServiceStatus { + /** + * LoadBalancer contains the current status of the load-balancer, if one is present. + */ + 'loadBalancer': V1LoadBalancerStatus; +} + +/** +* SessionAffinityConfig represents the configurations of session affinity. +*/ +export class V1SessionAffinityConfig { + /** + * clientIP contains the configurations of Client IP based session affinity. + */ + 'clientIP': V1ClientIPConfig; +} + +/** +* Status is a return value for calls that don't return other objects. +*/ +export class V1Status { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + */ + 'apiVersion': string; + /** + * Suggested HTTP return code for this status, 0 if not set. + */ + 'code': number; + /** + * Extended data associated with the reason. Each reason may define its own extended details. This field is optional and the data returned is not guaranteed to conform to any schema except that defined by the reason type. + */ + 'details': V1StatusDetails; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'kind': string; + /** + * A human-readable description of the status of this operation. + */ + 'message': string; + /** + * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'metadata': V1ListMeta; + /** + * A machine-readable description of why this operation is in the \"Failure\" status. If this value is empty there is no information available. A Reason clarifies an HTTP status code but does not override it. + */ + 'reason': string; + /** + * Status of the operation. One of: \"Success\" or \"Failure\". More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status + */ + 'status': string; +} + +/** +* StatusCause provides more information about an api.Status failure, including cases when multiple errors are encountered. +*/ +export class V1StatusCause { + /** + * The field of the resource that has caused this error, as named by its JSON serialization. May include dot and postfix notation for nested attributes. Arrays are zero-indexed. Fields may appear more than once in an array of causes due to fields having multiple errors. Optional. Examples: \"name\" - the field \"name\" on the current resource \"items[0].name\" - the field \"name\" on the first array entry in \"items\" + */ + 'field': string; + /** + * A human-readable description of the cause of the error. This field may be presented as-is to a reader. + */ + 'message': string; + /** + * A machine-readable description of the cause of the error. If this value is empty there is no information available. + */ + 'reason': string; +} + +/** +* StatusDetails is a set of additional properties that MAY be set by the server to provide additional information about a response. The Reason field of a Status object defines what attributes will be set. Clients must ignore fields that do not match the defined type of each attribute, and should assume that any attribute may be empty, invalid, or under defined. +*/ +export class V1StatusDetails { + /** + * The Causes array includes more details associated with the StatusReason failure. Not all StatusReasons may provide detailed causes. + */ + 'causes': Array; + /** + * The group attribute of the resource associated with the status StatusReason. + */ + 'group': string; + /** + * The kind attribute of the resource associated with the status StatusReason. On some operations may differ from the requested resource Kind. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'kind': string; + /** + * The name attribute of the resource associated with the status StatusReason (when there is a single name which can be described). + */ + 'name': string; + /** + * If specified, the time in seconds before the operation should be retried. Some errors may indicate the client must take an alternate action - for those errors this field may indicate how long to wait before taking the alternate action. + */ + 'retryAfterSeconds': number; + /** + * UID of the resource. (when there is a single resource which can be described). More info: http://kubernetes.io/docs/user-guide/identifiers#uids + */ + 'uid': string; +} + +/** +* StorageClass describes the parameters for a class of storage for which PersistentVolumes can be dynamically provisioned. StorageClasses are non-namespaced; the name of the storage class according to etcd is in ObjectMeta.Name. +*/ +export class V1StorageClass { + /** + * AllowVolumeExpansion shows whether the storage class allow volume expand + */ + 'allowVolumeExpansion': boolean; + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + */ + 'apiVersion': string; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'kind': string; + /** + * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + */ + 'metadata': V1ObjectMeta; + /** + * Dynamically provisioned PersistentVolumes of this storage class are created with these mountOptions, e.g. [\"ro\", \"soft\"]. Not validated - mount of the PVs will simply fail if one is invalid. + */ + 'mountOptions': Array; + /** + * Parameters holds the parameters for the provisioner that should create volumes of this storage class. + */ + 'parameters': { [key: string]: string; }; + /** + * Provisioner indicates the type of the provisioner. + */ + 'provisioner': string; + /** + * Dynamically provisioned PersistentVolumes of this storage class are created with this reclaimPolicy. Defaults to Delete. + */ + 'reclaimPolicy': string; +} + +/** +* StorageClassList is a collection of storage classes. +*/ +export class V1StorageClassList { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + */ + 'apiVersion': string; + /** + * Items is the list of StorageClasses + */ + 'items': Array; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'kind': string; + /** + * Standard list metadata More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + */ + 'metadata': V1ListMeta; +} + +/** +* Represents a StorageOS persistent volume resource. +*/ +export class V1StorageOSPersistentVolumeSource { + /** + * Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. + */ + 'fsType': string; + /** + * Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + */ + 'readOnly': boolean; + /** + * SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. + */ + 'secretRef': V1ObjectReference; + /** + * VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. + */ + 'volumeName': string; + /** + * VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to \"default\" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. + */ + 'volumeNamespace': string; +} + +/** +* Represents a StorageOS persistent volume resource. +*/ +export class V1StorageOSVolumeSource { + /** + * Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. + */ + 'fsType': string; + /** + * Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + */ + 'readOnly': boolean; + /** + * SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. + */ + 'secretRef': V1LocalObjectReference; + /** + * VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. + */ + 'volumeName': string; + /** + * VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to \"default\" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. + */ + 'volumeNamespace': string; +} + +/** +* Subject contains a reference to the object or user identities a role binding applies to. This can either hold a direct API object reference, or a value for non-objects such as user and group names. +*/ +export class V1Subject { + /** + * APIGroup holds the API group of the referenced subject. Defaults to \"\" for ServiceAccount subjects. Defaults to \"rbac.authorization.k8s.io\" for User and Group subjects. + */ + 'apiGroup': string; + /** + * Kind of object being referenced. Values defined by this API group are \"User\", \"Group\", and \"ServiceAccount\". If the Authorizer does not recognized the kind value, the Authorizer should report an error. + */ + 'kind': string; + /** + * Name of the object being referenced. + */ + 'name': string; + /** + * Namespace of the referenced object. If the object kind is non-namespace, such as \"User\" or \"Group\", and this value is not empty the Authorizer should report an error. + */ + 'namespace': string; +} + +/** +* SubjectAccessReview checks whether or not a user or group can perform an action. +*/ +export class V1SubjectAccessReview { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + */ + 'apiVersion': string; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'kind': string; + 'metadata': V1ObjectMeta; + /** + * Spec holds information about the request being evaluated + */ + 'spec': V1SubjectAccessReviewSpec; + /** + * Status is filled in by the server and indicates whether the request is allowed or not + */ + 'status': V1SubjectAccessReviewStatus; +} + +/** +* SubjectAccessReviewSpec is a description of the access request. Exactly one of ResourceAuthorizationAttributes and NonResourceAuthorizationAttributes must be set +*/ +export class V1SubjectAccessReviewSpec { + /** + * Extra corresponds to the user.Info.GetExtra() method from the authenticator. Since that is input to the authorizer it needs a reflection here. + */ + 'extra': { [key: string]: Array; }; + /** + * Groups is the groups you're testing for. + */ + 'groups': Array; + /** + * NonResourceAttributes describes information for a non-resource access request + */ + 'nonResourceAttributes': V1NonResourceAttributes; + /** + * ResourceAuthorizationAttributes describes information for a resource access request + */ + 'resourceAttributes': V1ResourceAttributes; + /** + * UID information about the requesting user. + */ + 'uid': string; + /** + * User is the user you're testing for. If you specify \"User\" but not \"Groups\", then is it interpreted as \"What if User were not a member of any groups + */ + 'user': string; +} + +/** +* SubjectAccessReviewStatus +*/ +export class V1SubjectAccessReviewStatus { + /** + * Allowed is required. True if the action would be allowed, false otherwise. + */ + 'allowed': boolean; + /** + * EvaluationError is an indication that some error occurred during the authorization check. It is entirely possible to get an error and be able to continue determine authorization status in spite of it. For instance, RBAC can be missing a role, but enough roles are still present and bound to reason about the request. + */ + 'evaluationError': string; + /** + * Reason is optional. It indicates why a request was allowed or denied. + */ + 'reason': string; +} + +/** +* SubjectRulesReviewStatus contains the result of a rules check. This check can be incomplete depending on the set of authorizers the server is configured with and any errors experienced during evaluation. Because authorization rules are additive, if a rule appears in a list it's safe to assume the subject has that permission, even if that list is incomplete. +*/ +export class V1SubjectRulesReviewStatus { + /** + * EvaluationError can appear in combination with Rules. It indicates an error occurred during rule evaluation, such as an authorizer that doesn't support rule evaluation, and that ResourceRules and/or NonResourceRules may be incomplete. + */ + 'evaluationError': string; + /** + * Incomplete is true when the rules returned by this call are incomplete. This is most commonly encountered when an authorizer, such as an external authorizer, doesn't support rules evaluation. + */ + 'incomplete': boolean; + /** + * NonResourceRules is the list of actions the subject is allowed to perform on non-resources. The list ordering isn't significant, may contain duplicates, and possibly be incomplete. + */ + 'nonResourceRules': Array; + /** + * ResourceRules is the list of actions the subject is allowed to perform on resources. The list ordering isn't significant, may contain duplicates, and possibly be incomplete. + */ + 'resourceRules': Array; +} + +/** +* TCPSocketAction describes an action based on opening a socket +*/ +export class V1TCPSocketAction { + /** + * Optional: Host name to connect to, defaults to the pod IP. + */ + 'host': string; + /** + * Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + */ + 'port': any; +} + +/** +* The node this Taint is attached to has the \"effect\" on any pod that does not tolerate the Taint. +*/ +export class V1Taint { + /** + * Required. The effect of the taint on pods that do not tolerate the taint. Valid effects are NoSchedule, PreferNoSchedule and NoExecute. + */ + 'effect': string; + /** + * Required. The taint key to be applied to a node. + */ + 'key': string; + /** + * TimeAdded represents the time at which the taint was added. It is only written for NoExecute taints. + */ + 'timeAdded': Date; + /** + * Required. The taint value corresponding to the taint key. + */ + 'value': string; +} + +/** +* TokenReview attempts to authenticate a token to a known user. Note: TokenReview requests may be cached by the webhook token authenticator plugin in the kube-apiserver. +*/ +export class V1TokenReview { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + */ + 'apiVersion': string; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'kind': string; + 'metadata': V1ObjectMeta; + /** + * Spec holds information about the request being evaluated + */ + 'spec': V1TokenReviewSpec; + /** + * Status is filled in by the server and indicates whether the request can be authenticated. + */ + 'status': V1TokenReviewStatus; +} + +/** +* TokenReviewSpec is a description of the token authentication request. +*/ +export class V1TokenReviewSpec { + /** + * Token is the opaque bearer token. + */ + 'token': string; +} + +/** +* TokenReviewStatus is the result of the token authentication request. +*/ +export class V1TokenReviewStatus { + /** + * Authenticated indicates that the token was associated with a known user. + */ + 'authenticated': boolean; + /** + * Error indicates that the token couldn't be checked + */ + 'error': string; + /** + * User is the UserInfo associated with the provided token. + */ + 'user': V1UserInfo; +} + +/** +* The pod this Toleration is attached to tolerates any taint that matches the triple using the matching operator . +*/ +export class V1Toleration { + /** + * Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. + */ + 'effect': string; + /** + * Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. + */ + 'key': string; + /** + * Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. + */ + 'operator': string; + /** + * TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. + */ + 'tolerationSeconds': number; + /** + * Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. + */ + 'value': string; +} + +/** +* UserInfo holds the information about the user needed to implement the user.Info interface. +*/ +export class V1UserInfo { + /** + * Any additional information provided by the authenticator. + */ + 'extra': { [key: string]: Array; }; + /** + * The names of groups this user is a part of. + */ + 'groups': Array; + /** + * A unique value that identifies this user across time. If this user is deleted and another user by the same name is added, they will have different UIDs. + */ + 'uid': string; + /** + * The name that uniquely identifies this user among all active users. + */ + 'username': string; +} + +/** +* Volume represents a named volume in a pod that may be accessed by any container in the pod. +*/ +export class V1Volume { + /** + * AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + */ + 'awsElasticBlockStore': V1AWSElasticBlockStoreVolumeSource; + /** + * AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. + */ + 'azureDisk': V1AzureDiskVolumeSource; + /** + * AzureFile represents an Azure File Service mount on the host and bind mount to the pod. + */ + 'azureFile': V1AzureFileVolumeSource; + /** + * CephFS represents a Ceph FS mount on the host that shares a pod's lifetime + */ + 'cephfs': V1CephFSVolumeSource; + /** + * Cinder represents a cinder volume attached and mounted on kubelets host machine More info: https://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md + */ + 'cinder': V1CinderVolumeSource; + /** + * ConfigMap represents a configMap that should populate this volume + */ + 'configMap': V1ConfigMapVolumeSource; + /** + * DownwardAPI represents downward API about the pod that should populate this volume + */ + 'downwardAPI': V1DownwardAPIVolumeSource; + /** + * EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + */ + 'emptyDir': V1EmptyDirVolumeSource; + /** + * FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. + */ + 'fc': V1FCVolumeSource; + /** + * FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. This is an alpha feature and may change in future. + */ + 'flexVolume': V1FlexVolumeSource; + /** + * Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running + */ + 'flocker': V1FlockerVolumeSource; + /** + * GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + */ + 'gcePersistentDisk': V1GCEPersistentDiskVolumeSource; + /** + * GitRepo represents a git repository at a particular revision. + */ + 'gitRepo': V1GitRepoVolumeSource; + /** + * Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://releases.k8s.io/HEAD/examples/volumes/glusterfs/README.md + */ + 'glusterfs': V1GlusterfsVolumeSource; + /** + * HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + */ + 'hostPath': V1HostPathVolumeSource; + /** + * ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://releases.k8s.io/HEAD/examples/volumes/iscsi/README.md + */ + 'iscsi': V1ISCSIVolumeSource; + /** + * Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + */ + 'name': string; + /** + * NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + */ + 'nfs': V1NFSVolumeSource; + /** + * PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + */ + 'persistentVolumeClaim': V1PersistentVolumeClaimVolumeSource; + /** + * PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine + */ + 'photonPersistentDisk': V1PhotonPersistentDiskVolumeSource; + /** + * PortworxVolume represents a portworx volume attached and mounted on kubelets host machine + */ + 'portworxVolume': V1PortworxVolumeSource; + /** + * Items for all in one resources secrets, configmaps, and downward API + */ + 'projected': V1ProjectedVolumeSource; + /** + * Quobyte represents a Quobyte mount on the host that shares a pod's lifetime + */ + 'quobyte': V1QuobyteVolumeSource; + /** + * RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md + */ + 'rbd': V1RBDVolumeSource; + /** + * ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. + */ + 'scaleIO': V1ScaleIOVolumeSource; + /** + * Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + */ + 'secret': V1SecretVolumeSource; + /** + * StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. + */ + 'storageos': V1StorageOSVolumeSource; + /** + * VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine + */ + 'vsphereVolume': V1VsphereVirtualDiskVolumeSource; +} + +/** +* VolumeMount describes a mounting of a Volume within a container. +*/ +export class V1VolumeMount { + /** + * Path within the container at which the volume should be mounted. Must not contain ':'. + */ + 'mountPath': string; + /** + * mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationHostToContainer is used. This field is alpha in 1.8 and can be reworked or removed in a future release. + */ + 'mountPropagation': string; + /** + * This must match the Name of a Volume. + */ + 'name': string; + /** + * Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. + */ + 'readOnly': boolean; + /** + * Path within the volume from which the container's volume should be mounted. Defaults to \"\" (volume's root). + */ + 'subPath': string; +} + +/** +* Projection that may be projected along with other supported volume types +*/ +export class V1VolumeProjection { + /** + * information about the configMap data to project + */ + 'configMap': V1ConfigMapProjection; + /** + * information about the downwardAPI data to project + */ + 'downwardAPI': V1DownwardAPIProjection; + /** + * information about the secret data to project + */ + 'secret': V1SecretProjection; +} + +/** +* Represents a vSphere volume resource. +*/ +export class V1VsphereVirtualDiskVolumeSource { + /** + * Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. + */ + 'fsType': string; + /** + * Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. + */ + 'storagePolicyID': string; + /** + * Storage Policy Based Management (SPBM) profile name. + */ + 'storagePolicyName': string; + /** + * Path that identifies vSphere volume vmdk + */ + 'volumePath': string; +} + +/** +* Event represents a single event to a watched resource. +*/ +export class V1WatchEvent { + /** + * Object is: * If Type is Added or Modified: the new state of the object. * If Type is Deleted: the state of the object immediately before deletion. * If Type is Error: *Status is recommended; other types may make sense depending on context. + */ + 'object': RuntimeRawExtension; + 'type': string; +} + +/** +* The weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s) +*/ +export class V1WeightedPodAffinityTerm { + /** + * Required. A pod affinity term, associated with the corresponding weight. + */ + 'podAffinityTerm': V1PodAffinityTerm; + /** + * weight associated with matching the corresponding podAffinityTerm, in the range 1-100. + */ + 'weight': number; +} + +/** +* AdmissionHookClientConfig contains the information to make a TLS connection with the webhook +*/ +export class V1alpha1AdmissionHookClientConfig { + /** + * CABundle is a PEM encoded CA bundle which will be used to validate webhook's server certificate. Required + */ + 'caBundle': string; + /** + * Service is a reference to the service for this webhook. If there is only one port open for the service, that port will be used. If there are multiple ports open, port 443 will be used if it is open, otherwise it is an error. Required + */ + 'service': V1alpha1ServiceReference; +} + +/** +* ClusterRole is a cluster level, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding or ClusterRoleBinding. +*/ +export class V1alpha1ClusterRole { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + */ + 'apiVersion': string; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'kind': string; + /** + * Standard object's metadata. + */ + 'metadata': V1ObjectMeta; + /** + * Rules holds all the PolicyRules for this ClusterRole + */ + 'rules': Array; +} + +/** +* ClusterRoleBinding references a ClusterRole, but not contain it. It can reference a ClusterRole in the global namespace, and adds who information via Subject. +*/ +export class V1alpha1ClusterRoleBinding { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + */ + 'apiVersion': string; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'kind': string; + /** + * Standard object's metadata. + */ + 'metadata': V1ObjectMeta; + /** + * RoleRef can only reference a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. + */ + 'roleRef': V1alpha1RoleRef; + /** + * Subjects holds references to the objects the role applies to. + */ + 'subjects': Array; +} + +/** +* ClusterRoleBindingList is a collection of ClusterRoleBindings +*/ +export class V1alpha1ClusterRoleBindingList { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + */ + 'apiVersion': string; + /** + * Items is a list of ClusterRoleBindings + */ + 'items': Array; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'kind': string; + /** + * Standard object's metadata. + */ + 'metadata': V1ListMeta; +} + +/** +* ClusterRoleList is a collection of ClusterRoles +*/ +export class V1alpha1ClusterRoleList { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + */ + 'apiVersion': string; + /** + * Items is a list of ClusterRoles + */ + 'items': Array; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'kind': string; + /** + * Standard object's metadata. + */ + 'metadata': V1ListMeta; +} + +/** +* ExternalAdmissionHook describes an external admission webhook and the resources and operations it applies to. +*/ +export class V1alpha1ExternalAdmissionHook { + /** + * ClientConfig defines how to communicate with the hook. Required + */ + 'clientConfig': V1alpha1AdmissionHookClientConfig; + /** + * FailurePolicy defines how unrecognized errors from the admission endpoint are handled - allowed values are Ignore or Fail. Defaults to Ignore. + */ + 'failurePolicy': string; + /** + * The name of the external admission webhook. Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where \"imagepolicy\" is the name of the webhook, and kubernetes.io is the name of the organization. Required. + */ + 'name': string; + /** + * Rules describes what operations on what resources/subresources the webhook cares about. The webhook cares about an operation if it matches _any_ Rule. + */ + 'rules': Array; +} + +/** +* ExternalAdmissionHookConfiguration describes the configuration of initializers. +*/ +export class V1alpha1ExternalAdmissionHookConfiguration { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + */ + 'apiVersion': string; + /** + * ExternalAdmissionHooks is a list of external admission webhooks and the affected resources and operations. + */ + 'externalAdmissionHooks': Array; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'kind': string; + /** + * Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata. + */ + 'metadata': V1ObjectMeta; +} + +/** +* ExternalAdmissionHookConfigurationList is a list of ExternalAdmissionHookConfiguration. +*/ +export class V1alpha1ExternalAdmissionHookConfigurationList { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + */ + 'apiVersion': string; + /** + * List of ExternalAdmissionHookConfiguration. + */ + 'items': Array; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'kind': string; + /** + * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'metadata': V1ListMeta; +} + +/** +* Initializer describes the name and the failure policy of an initializer, and what resources it applies to. +*/ +export class V1alpha1Initializer { + /** + * Name is the identifier of the initializer. It will be added to the object that needs to be initialized. Name should be fully qualified, e.g., alwayspullimages.kubernetes.io, where \"alwayspullimages\" is the name of the webhook, and kubernetes.io is the name of the organization. Required + */ + 'name': string; + /** + * Rules describes what resources/subresources the initializer cares about. The initializer cares about an operation if it matches _any_ Rule. Rule.Resources must not include subresources. + */ + 'rules': Array; +} + +/** +* InitializerConfiguration describes the configuration of initializers. +*/ +export class V1alpha1InitializerConfiguration { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + */ + 'apiVersion': string; + /** + * Initializers is a list of resources and their default initializers Order-sensitive. When merging multiple InitializerConfigurations, we sort the initializers from different InitializerConfigurations by the name of the InitializerConfigurations; the order of the initializers from the same InitializerConfiguration is preserved. + */ + 'initializers': Array; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'kind': string; + /** + * Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata. + */ + 'metadata': V1ObjectMeta; +} + +/** +* InitializerConfigurationList is a list of InitializerConfiguration. +*/ +export class V1alpha1InitializerConfigurationList { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + */ + 'apiVersion': string; + /** + * List of InitializerConfiguration. + */ + 'items': Array; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'kind': string; + /** + * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'metadata': V1ListMeta; +} + +/** +* PodPreset is a policy resource that defines additional runtime requirements for a Pod. +*/ +export class V1alpha1PodPreset { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + */ + 'apiVersion': string; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'kind': string; + 'metadata': V1ObjectMeta; + 'spec': V1alpha1PodPresetSpec; +} + +/** +* PodPresetList is a list of PodPreset objects. +*/ +export class V1alpha1PodPresetList { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + */ + 'apiVersion': string; + /** + * Items is a list of schema objects. + */ + 'items': Array; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'kind': string; + /** + * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + */ + 'metadata': V1ListMeta; +} + +/** +* PodPresetSpec is a description of a pod preset. +*/ +export class V1alpha1PodPresetSpec { + /** + * Env defines the collection of EnvVar to inject into containers. + */ + 'env': Array; + /** + * EnvFrom defines the collection of EnvFromSource to inject into containers. + */ + 'envFrom': Array; + /** + * Selector is a label query over a set of resources, in this case pods. Required. + */ + 'selector': V1LabelSelector; + /** + * VolumeMounts defines the collection of VolumeMount to inject into containers. + */ + 'volumeMounts': Array; + /** + * Volumes defines the collection of Volume to inject into the pod. + */ + 'volumes': Array; +} + +/** +* PolicyRule holds information that describes a policy rule, but does not contain information about who the rule applies to or which namespace the rule applies to. +*/ +export class V1alpha1PolicyRule { + /** + * APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. + */ + 'apiGroups': Array; + /** + * NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path This name is intentionally different than the internal type so that the DefaultConvert works nicely and because the ordering may be different. Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules can either apply to API resources (such as \"pods\" or \"secrets\") or non-resource URL paths (such as \"/api\"), but not both. + */ + 'nonResourceURLs': Array; + /** + * ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. + */ + 'resourceNames': Array; + /** + * Resources is a list of resources this rule applies to. ResourceAll represents all resources. + */ + 'resources': Array; + /** + * Verbs is a list of Verbs that apply to ALL the ResourceKinds and AttributeRestrictions contained in this rule. VerbAll represents all kinds. + */ + 'verbs': Array; +} + +/** +* PriorityClass defines mapping from a priority class name to the priority integer value. The value can be any valid integer. +*/ +export class V1alpha1PriorityClass { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + */ + 'apiVersion': string; + /** + * description is an arbitrary string that usually provides guidelines on when this priority class should be used. + */ + 'description': string; + /** + * globalDefault specifies whether this PriorityClass should be considered as the default priority for pods that do not have any priority class. + */ + 'globalDefault': boolean; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'kind': string; + /** + * Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + */ + 'metadata': V1ObjectMeta; + /** + * The value of this priority class. This is the actual priority that pods receive when they have the name of this class in their pod spec. + */ + 'value': number; +} + +/** +* PriorityClassList is a collection of priority classes. +*/ +export class V1alpha1PriorityClassList { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + */ + 'apiVersion': string; + /** + * items is the list of PriorityClasses + */ + 'items': Array; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'kind': string; + /** + * Standard list metadata More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + */ + 'metadata': V1ListMeta; +} + +/** +* Role is a namespaced, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding. +*/ +export class V1alpha1Role { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + */ + 'apiVersion': string; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'kind': string; + /** + * Standard object's metadata. + */ + 'metadata': V1ObjectMeta; + /** + * Rules holds all the PolicyRules for this Role + */ + 'rules': Array; +} + +/** +* RoleBinding references a role, but does not contain it. It can reference a Role in the same namespace or a ClusterRole in the global namespace. It adds who information via Subjects and namespace information by which namespace it exists in. RoleBindings in a given namespace only have effect in that namespace. +*/ +export class V1alpha1RoleBinding { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + */ + 'apiVersion': string; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'kind': string; + /** + * Standard object's metadata. + */ + 'metadata': V1ObjectMeta; + /** + * RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. + */ + 'roleRef': V1alpha1RoleRef; + /** + * Subjects holds references to the objects the role applies to. + */ + 'subjects': Array; +} + +/** +* RoleBindingList is a collection of RoleBindings +*/ +export class V1alpha1RoleBindingList { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + */ + 'apiVersion': string; + /** + * Items is a list of RoleBindings + */ + 'items': Array; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'kind': string; + /** + * Standard object's metadata. + */ + 'metadata': V1ListMeta; +} + +/** +* RoleList is a collection of Roles +*/ +export class V1alpha1RoleList { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + */ + 'apiVersion': string; + /** + * Items is a list of Roles + */ + 'items': Array; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'kind': string; + /** + * Standard object's metadata. + */ + 'metadata': V1ListMeta; +} + +/** +* RoleRef contains information that points to the role being used +*/ +export class V1alpha1RoleRef { + /** + * APIGroup is the group for the resource being referenced + */ + 'apiGroup': string; + /** + * Kind is the type of resource being referenced + */ + 'kind': string; + /** + * Name is the name of resource being referenced + */ + 'name': string; +} + +/** +* Rule is a tuple of APIGroups, APIVersion, and Resources.It is recommended to make sure that all the tuple expansions are valid. +*/ +export class V1alpha1Rule { + /** + * APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required. + */ + 'apiGroups': Array; + /** + * APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required. + */ + 'apiVersions': Array; + /** + * Resources is a list of resources this rule applies to. For example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/_*' means all subresources of pods. '*_/scale' means all scale subresources. '*_/_*' means all resources and their subresources. If wildcard is present, the validation rule will ensure resources do not overlap with each other. Depending on the enclosing object, subresources might not be allowed. Required. + */ + 'resources': Array; +} + +/** +* RuleWithOperations is a tuple of Operations and Resources. It is recommended to make sure that all the tuple expansions are valid. +*/ +export class V1alpha1RuleWithOperations { + /** + * APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required. + */ + 'apiGroups': Array; + /** + * APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required. + */ + 'apiVersions': Array; + /** + * Operations is the operations the admission hook cares about - CREATE, UPDATE, or * for all operations. If '*' is present, the length of the slice must be one. Required. + */ + 'operations': Array; + /** + * Resources is a list of resources this rule applies to. For example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/_*' means all subresources of pods. '*_/scale' means all scale subresources. '*_/_*' means all resources and their subresources. If wildcard is present, the validation rule will ensure resources do not overlap with each other. Depending on the enclosing object, subresources might not be allowed. Required. + */ + 'resources': Array; +} + +/** +* ServiceReference holds a reference to Service.legacy.k8s.io +*/ +export class V1alpha1ServiceReference { + /** + * Name is the name of the service Required + */ + 'name': string; + /** + * Namespace is the namespace of the service Required + */ + 'namespace': string; +} + +/** +* Subject contains a reference to the object or user identities a role binding applies to. This can either hold a direct API object reference, or a value for non-objects such as user and group names. +*/ +export class V1alpha1Subject { + /** + * APIVersion holds the API group and version of the referenced subject. Defaults to \"v1\" for ServiceAccount subjects. Defaults to \"rbac.authorization.k8s.io/v1alpha1\" for User and Group subjects. + */ + 'apiVersion': string; + /** + * Kind of object being referenced. Values defined by this API group are \"User\", \"Group\", and \"ServiceAccount\". If the Authorizer does not recognized the kind value, the Authorizer should report an error. + */ + 'kind': string; + /** + * Name of the object being referenced. + */ + 'name': string; + /** + * Namespace of the referenced object. If the object kind is non-namespace, such as \"User\" or \"Group\", and this value is not empty the Authorizer should report an error. + */ + 'namespace': string; +} + +/** +* APIService represents a server for a particular GroupVersion. Name must be \"version.group\". +*/ +export class V1beta1APIService { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + */ + 'apiVersion': string; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'kind': string; + 'metadata': V1ObjectMeta; + /** + * Spec contains information for locating and communicating with a server + */ + 'spec': V1beta1APIServiceSpec; + /** + * Status contains derived information about an API server + */ + 'status': V1beta1APIServiceStatus; +} + +export class V1beta1APIServiceCondition { + /** + * Last time the condition transitioned from one status to another. + */ + 'lastTransitionTime': Date; + /** + * Human-readable message indicating details about last transition. + */ + 'message': string; + /** + * Unique, one-word, CamelCase reason for the condition's last transition. + */ + 'reason': string; + /** + * Status is the status of the condition. Can be True, False, Unknown. + */ + 'status': string; + /** + * Type is the type of the condition. + */ + 'type': string; +} + +/** +* APIServiceList is a list of APIService objects. +*/ +export class V1beta1APIServiceList { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + */ + 'apiVersion': string; + 'items': Array; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'kind': string; + 'metadata': V1ListMeta; +} + +/** +* APIServiceSpec contains information for locating and communicating with a server. Only https is supported, though you are able to disable certificate verification. +*/ +export class V1beta1APIServiceSpec { + /** + * CABundle is a PEM encoded CA bundle which will be used to validate an API server's serving certificate. + */ + 'caBundle': string; + /** + * Group is the API group name this server hosts + */ + 'group': string; + /** + * GroupPriorityMininum is the priority this group should have at least. Higher priority means that the group is prefered by clients over lower priority ones. Note that other versions of this group might specify even higher GroupPriorityMininum values such that the whole group gets a higher priority. The primary sort is based on GroupPriorityMinimum, ordered highest number to lowest (20 before 10). The secondary sort is based on the alphabetical comparison of the name of the object. (v1.bar before v1.foo) We'd recommend something like: *.k8s.io (except extensions) at 18000 and PaaSes (OpenShift, Deis) are recommended to be in the 2000s + */ + 'groupPriorityMinimum': number; + /** + * InsecureSkipTLSVerify disables TLS certificate verification when communicating with this server. This is strongly discouraged. You should use the CABundle instead. + */ + 'insecureSkipTLSVerify': boolean; + /** + * Service is a reference to the service for this API server. It must communicate on port 443 If the Service is nil, that means the handling for the API groupversion is handled locally on this server. The call will simply delegate to the normal handler chain to be fulfilled. + */ + 'service': V1beta1ServiceReference; + /** + * Version is the API version this server hosts. For example, \"v1\" + */ + 'version': string; + /** + * VersionPriority controls the ordering of this API version inside of its group. Must be greater than zero. The primary sort is based on VersionPriority, ordered highest to lowest (20 before 10). The secondary sort is based on the alphabetical comparison of the name of the object. (v1.bar before v1.foo) Since it's inside of a group, the number can be small, probably in the 10s. + */ + 'versionPriority': number; +} + +/** +* APIServiceStatus contains derived information about an API server +*/ +export class V1beta1APIServiceStatus { + /** + * Current service state of apiService. + */ + 'conditions': Array; +} + +/** +* defines the host volume conditions that will be enabled by a policy for pods to use. It requires the path prefix to be defined. +*/ +export class V1beta1AllowedHostPath { + /** + * is the path prefix that the host volume must match. It does not support `*`. Trailing slashes are trimmed when validating the path prefix with a host path. Examples: `/foo` would allow `/foo`, `/foo/` and `/foo/bar` `/foo` would not allow `/food` or `/etc/foo` + */ + 'pathPrefix': string; +} + +/** +* Describes a certificate signing request +*/ +export class V1beta1CertificateSigningRequest { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + */ + 'apiVersion': string; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'kind': string; + 'metadata': V1ObjectMeta; + /** + * The certificate request itself and any additional information. + */ + 'spec': V1beta1CertificateSigningRequestSpec; + /** + * Derived information about the request. + */ + 'status': V1beta1CertificateSigningRequestStatus; +} + +export class V1beta1CertificateSigningRequestCondition { + /** + * timestamp for the last update to this condition + */ + 'lastUpdateTime': Date; + /** + * human readable message with details about the request state + */ + 'message': string; + /** + * brief reason for the request state + */ + 'reason': string; + /** + * request approval state, currently Approved or Denied. + */ + 'type': string; +} + +export class V1beta1CertificateSigningRequestList { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + */ + 'apiVersion': string; + 'items': Array; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'kind': string; + 'metadata': V1ListMeta; +} + +/** +* This information is immutable after the request is created. Only the Request and Usages fields can be set on creation, other fields are derived by Kubernetes and cannot be modified by users. +*/ +export class V1beta1CertificateSigningRequestSpec { + /** + * Extra information about the requesting user. See user.Info interface for details. + */ + 'extra': { [key: string]: Array; }; + /** + * Group information about the requesting user. See user.Info interface for details. + */ + 'groups': Array; + /** + * Base64-encoded PKCS#10 CSR data + */ + 'request': string; + /** + * UID information about the requesting user. See user.Info interface for details. + */ + 'uid': string; + /** + * allowedUsages specifies a set of usage contexts the key will be valid for. See: https://tools.ietf.org/html/rfc5280#section-4.2.1.3 https://tools.ietf.org/html/rfc5280#section-4.2.1.12 + */ + 'usages': Array; + /** + * Information about the requesting user. See user.Info interface for details. + */ + 'username': string; +} + +export class V1beta1CertificateSigningRequestStatus { + /** + * If request was approved, the controller will place the issued certificate here. + */ + 'certificate': string; + /** + * Conditions applied to the request, such as approval or denial. + */ + 'conditions': Array; +} + +/** +* ClusterRole is a cluster level, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding or ClusterRoleBinding. +*/ +export class V1beta1ClusterRole { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + */ + 'apiVersion': string; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'kind': string; + /** + * Standard object's metadata. + */ + 'metadata': V1ObjectMeta; + /** + * Rules holds all the PolicyRules for this ClusterRole + */ + 'rules': Array; +} + +/** +* ClusterRoleBinding references a ClusterRole, but not contain it. It can reference a ClusterRole in the global namespace, and adds who information via Subject. +*/ +export class V1beta1ClusterRoleBinding { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + */ + 'apiVersion': string; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'kind': string; + /** + * Standard object's metadata. + */ + 'metadata': V1ObjectMeta; + /** + * RoleRef can only reference a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. + */ + 'roleRef': V1beta1RoleRef; + /** + * Subjects holds references to the objects the role applies to. + */ + 'subjects': Array; +} + +/** +* ClusterRoleBindingList is a collection of ClusterRoleBindings +*/ +export class V1beta1ClusterRoleBindingList { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + */ + 'apiVersion': string; + /** + * Items is a list of ClusterRoleBindings + */ + 'items': Array; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'kind': string; + /** + * Standard object's metadata. + */ + 'metadata': V1ListMeta; +} + +/** +* ClusterRoleList is a collection of ClusterRoles +*/ +export class V1beta1ClusterRoleList { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + */ + 'apiVersion': string; + /** + * Items is a list of ClusterRoles + */ + 'items': Array; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'kind': string; + /** + * Standard object's metadata. + */ + 'metadata': V1ListMeta; +} + +/** +* DEPRECATED - This group version of ControllerRevision is deprecated by apps/v1beta2/ControllerRevision. See the release notes for more information. ControllerRevision implements an immutable snapshot of state data. Clients are responsible for serializing and deserializing the objects that contain their internal state. Once a ControllerRevision has been successfully created, it can not be updated. The API Server will fail validation of all requests that attempt to mutate the Data field. ControllerRevisions may, however, be deleted. Note that, due to its use by both the DaemonSet and StatefulSet controllers for update and rollback, this object is beta. However, it may be subject to name and representation changes in future releases, and clients should not depend on its stability. It is primarily for internal use by controllers. +*/ +export class V1beta1ControllerRevision { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + */ + 'apiVersion': string; + /** + * Data is the serialized representation of the state. + */ + 'data': RuntimeRawExtension; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'kind': string; + /** + * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + */ + 'metadata': V1ObjectMeta; + /** + * Revision indicates the revision of the state represented by Data. + */ + 'revision': number; +} + +/** +* ControllerRevisionList is a resource containing a list of ControllerRevision objects. +*/ +export class V1beta1ControllerRevisionList { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + */ + 'apiVersion': string; + /** + * Items is the list of ControllerRevisions + */ + 'items': Array; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'kind': string; + /** + * More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + */ + 'metadata': V1ListMeta; +} + +/** +* CronJob represents the configuration of a single cron job. +*/ +export class V1beta1CronJob { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + */ + 'apiVersion': string; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'kind': string; + /** + * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + */ + 'metadata': V1ObjectMeta; + /** + * Specification of the desired behavior of a cron job, including the schedule. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status + */ + 'spec': V1beta1CronJobSpec; + /** + * Current status of a cron job. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status + */ + 'status': V1beta1CronJobStatus; +} + +/** +* CronJobList is a collection of cron jobs. +*/ +export class V1beta1CronJobList { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + */ + 'apiVersion': string; + /** + * items is the list of CronJobs. + */ + 'items': Array; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'kind': string; + /** + * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + */ + 'metadata': V1ListMeta; +} + +/** +* CronJobSpec describes how the job execution will look like and when it will actually run. +*/ +export class V1beta1CronJobSpec { + /** + * Specifies how to treat concurrent executions of a Job. Defaults to Allow. + */ + 'concurrencyPolicy': string; + /** + * The number of failed finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1. + */ + 'failedJobsHistoryLimit': number; + /** + * Specifies the job that will be created when executing a CronJob. + */ + 'jobTemplate': V1beta1JobTemplateSpec; + /** + * The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron. + */ + 'schedule': string; + /** + * Optional deadline in seconds for starting the job if it misses scheduled time for any reason. Missed jobs executions will be counted as failed ones. + */ + 'startingDeadlineSeconds': number; + /** + * The number of successful finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified. Defaults to 3. + */ + 'successfulJobsHistoryLimit': number; + /** + * This flag tells the controller to suspend subsequent executions, it does not apply to already started executions. Defaults to false. + */ + 'suspend': boolean; +} + +/** +* CronJobStatus represents the current state of a cron job. +*/ +export class V1beta1CronJobStatus { + /** + * A list of pointers to currently running jobs. + */ + 'active': Array; + /** + * Information when was the last time the job was successfully scheduled. + */ + 'lastScheduleTime': Date; +} + +/** +* CustomResourceDefinition represents a resource that should be exposed on the API server. Its name MUST be in the format <.spec.name>.<.spec.group>. +*/ +export class V1beta1CustomResourceDefinition { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + */ + 'apiVersion': string; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'kind': string; + 'metadata': V1ObjectMeta; + /** + * Spec describes how the user wants the resources to appear + */ + 'spec': V1beta1CustomResourceDefinitionSpec; + /** + * Status indicates the actual state of the CustomResourceDefinition + */ + 'status': V1beta1CustomResourceDefinitionStatus; +} + +/** +* CustomResourceDefinitionCondition contains details for the current condition of this pod. +*/ +export class V1beta1CustomResourceDefinitionCondition { + /** + * Last time the condition transitioned from one status to another. + */ + 'lastTransitionTime': Date; + /** + * Human-readable message indicating details about last transition. + */ + 'message': string; + /** + * Unique, one-word, CamelCase reason for the condition's last transition. + */ + 'reason': string; + /** + * Status is the status of the condition. Can be True, False, Unknown. + */ + 'status': string; + /** + * Type is the type of the condition. + */ + 'type': string; +} + +/** +* CustomResourceDefinitionList is a list of CustomResourceDefinition objects. +*/ +export class V1beta1CustomResourceDefinitionList { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + */ + 'apiVersion': string; + /** + * Items individual CustomResourceDefinitions + */ + 'items': Array; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'kind': string; + 'metadata': V1ListMeta; +} + +/** +* CustomResourceDefinitionNames indicates the names to serve this CustomResourceDefinition +*/ +export class V1beta1CustomResourceDefinitionNames { + /** + * Kind is the serialized kind of the resource. It is normally CamelCase and singular. + */ + 'kind': string; + /** + * ListKind is the serialized kind of the list for this resource. Defaults to List. + */ + 'listKind': string; + /** + * Plural is the plural name of the resource to serve. It must match the name of the CustomResourceDefinition-registration too: plural.group and it must be all lowercase. + */ + 'plural': string; + /** + * ShortNames are short names for the resource. It must be all lowercase. + */ + 'shortNames': Array; + /** + * Singular is the singular name of the resource. It must be all lowercase Defaults to lowercased + */ + 'singular': string; +} + +/** +* CustomResourceDefinitionSpec describes how a user wants their resource to appear +*/ +export class V1beta1CustomResourceDefinitionSpec { + /** + * Group is the group this resource belongs in + */ + 'group': string; + /** + * Names are the names used to describe this custom resource + */ + 'names': V1beta1CustomResourceDefinitionNames; + /** + * Scope indicates whether this resource is cluster or namespace scoped. Default is namespaced + */ + 'scope': string; + /** + * Validation describes the validation methods for CustomResources This field is alpha-level and should only be sent to servers that enable the CustomResourceValidation feature. + */ + 'validation': V1beta1CustomResourceValidation; + /** + * Version is the version this resource belongs in + */ + 'version': string; +} + +/** +* CustomResourceDefinitionStatus indicates the state of the CustomResourceDefinition +*/ +export class V1beta1CustomResourceDefinitionStatus { + /** + * AcceptedNames are the names that are actually being used to serve discovery They may be different than the names in spec. + */ + 'acceptedNames': V1beta1CustomResourceDefinitionNames; + /** + * Conditions indicate state for particular aspects of a CustomResourceDefinition + */ + 'conditions': Array; +} + +/** +* CustomResourceValidation is a list of validation methods for CustomResources. +*/ +export class V1beta1CustomResourceValidation { + /** + * OpenAPIV3Schema is the OpenAPI v3 schema to be validated against. + */ + 'openAPIV3Schema': V1beta1JSONSchemaProps; +} + +/** +* DEPRECATED - This group version of DaemonSet is deprecated by apps/v1beta2/DaemonSet. See the release notes for more information. DaemonSet represents the configuration of a daemon set. +*/ +export class V1beta1DaemonSet { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + */ + 'apiVersion': string; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'kind': string; + /** + * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + */ + 'metadata': V1ObjectMeta; + /** + * The desired behavior of this daemon set. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status + */ + 'spec': V1beta1DaemonSetSpec; + /** + * The current status of this daemon set. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status + */ + 'status': V1beta1DaemonSetStatus; +} + +/** +* DaemonSetList is a collection of daemon sets. +*/ +export class V1beta1DaemonSetList { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + */ + 'apiVersion': string; + /** + * A list of daemon sets. + */ + 'items': Array; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'kind': string; + /** + * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + */ + 'metadata': V1ListMeta; +} + +/** +* DaemonSetSpec is the specification of a daemon set. +*/ +export class V1beta1DaemonSetSpec { + /** + * The minimum number of seconds for which a newly created DaemonSet pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready). + */ + 'minReadySeconds': number; + /** + * The number of old history to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 10. + */ + 'revisionHistoryLimit': number; + /** + * A label query over pods that are managed by the daemon set. Must match in order to be controlled. If empty, defaulted to labels on Pod template. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors + */ + 'selector': V1LabelSelector; + /** + * An object that describes the pod that will be created. The DaemonSet will create exactly one copy of this pod on every node that matches the template's node selector (or on every node if no node selector is specified). More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template + */ + 'template': V1PodTemplateSpec; + /** + * DEPRECATED. A sequence number representing a specific generation of the template. Populated by the system. It can be set only during the creation. + */ + 'templateGeneration': number; + /** + * An update strategy to replace existing DaemonSet pods with new pods. + */ + 'updateStrategy': V1beta1DaemonSetUpdateStrategy; +} + +/** +* DaemonSetStatus represents the current status of a daemon set. +*/ +export class V1beta1DaemonSetStatus { + /** + * Count of hash collisions for the DaemonSet. The DaemonSet controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ControllerRevision. + */ + 'collisionCount': number; + /** + * The number of nodes that are running at least 1 daemon pod and are supposed to run the daemon pod. More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/ + */ + 'currentNumberScheduled': number; + /** + * The total number of nodes that should be running the daemon pod (including nodes correctly running the daemon pod). More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/ + */ + 'desiredNumberScheduled': number; + /** + * The number of nodes that should be running the daemon pod and have one or more of the daemon pod running and available (ready for at least spec.minReadySeconds) + */ + 'numberAvailable': number; + /** + * The number of nodes that are running the daemon pod, but are not supposed to run the daemon pod. More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/ + */ + 'numberMisscheduled': number; + /** + * The number of nodes that should be running the daemon pod and have one or more of the daemon pod running and ready. + */ + 'numberReady': number; + /** + * The number of nodes that should be running the daemon pod and have none of the daemon pod running and available (ready for at least spec.minReadySeconds) + */ + 'numberUnavailable': number; + /** + * The most recent generation observed by the daemon set controller. + */ + 'observedGeneration': number; + /** + * The total number of nodes that are running updated daemon pod + */ + 'updatedNumberScheduled': number; +} + +export class V1beta1DaemonSetUpdateStrategy { + /** + * Rolling update config params. Present only if type = \"RollingUpdate\". + */ + 'rollingUpdate': V1beta1RollingUpdateDaemonSet; + /** + * Type of daemon set update. Can be \"RollingUpdate\" or \"OnDelete\". Default is OnDelete. + */ + 'type': string; +} + +/** +* Eviction evicts a pod from its node subject to certain policies and safety constraints. This is a subresource of Pod. A request to cause such an eviction is created by POSTing to .../pods//evictions. +*/ +export class V1beta1Eviction { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + */ + 'apiVersion': string; + /** + * DeleteOptions may be provided + */ + 'deleteOptions': V1DeleteOptions; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'kind': string; + /** + * ObjectMeta describes the pod that is being evicted. + */ + 'metadata': V1ObjectMeta; +} + +/** +* ExternalDocumentation allows referencing an external resource for extended documentation. +*/ +export class V1beta1ExternalDocumentation { + 'description': string; + 'url': string; +} + +/** +* FSGroupStrategyOptions defines the strategy type and options used to create the strategy. +*/ +export class V1beta1FSGroupStrategyOptions { + /** + * Ranges are the allowed ranges of fs groups. If you would like to force a single fs group then supply a single range with the same start and end. + */ + 'ranges': Array; + /** + * Rule is the strategy that will dictate what FSGroup is used in the SecurityContext. + */ + 'rule': string; +} + +/** +* HTTPIngressPath associates a path regex with a backend. Incoming urls matching the path are forwarded to the backend. +*/ +export class V1beta1HTTPIngressPath { + /** + * Backend defines the referenced service endpoint to which the traffic will be forwarded to. + */ + 'backend': V1beta1IngressBackend; + /** + * Path is an extended POSIX regex as defined by IEEE Std 1003.1, (i.e this follows the egrep/unix syntax, not the perl syntax) matched against the path of an incoming request. Currently it can contain characters disallowed from the conventional \"path\" part of a URL as defined by RFC 3986. Paths must begin with a '/'. If unspecified, the path defaults to a catch all sending traffic to the backend. + */ + 'path': string; +} + +/** +* HTTPIngressRuleValue is a list of http selectors pointing to backends. In the example: http:///? -> backend where where parts of the url correspond to RFC 3986, this resource will be used to match against everything after the last '/' and before the first '?' or '#'. +*/ +export class V1beta1HTTPIngressRuleValue { + /** + * A collection of paths that map requests to backends. + */ + 'paths': Array; +} + +/** +* Host Port Range defines a range of host ports that will be enabled by a policy for pods to use. It requires both the start and end to be defined. +*/ +export class V1beta1HostPortRange { + /** + * max is the end of the range, inclusive. + */ + 'max': number; + /** + * min is the start of the range, inclusive. + */ + 'min': number; +} + +/** +* ID Range provides a min/max of an allowed range of IDs. +*/ +export class V1beta1IDRange { + /** + * Max is the end of the range, inclusive. + */ + 'max': number; + /** + * Min is the start of the range, inclusive. + */ + 'min': number; +} + +/** +* IPBlock describes a particular CIDR (Ex. \"192.168.1.1/24\") that is allowed to the pods matched by a NetworkPolicySpec's podSelector. The except entry describes CIDRs that should not be included within this rule. +*/ +export class V1beta1IPBlock { + /** + * CIDR is a string representing the IP Block Valid examples are \"192.168.1.1/24\" + */ + 'cidr': string; + /** + * Except is a slice of CIDRs that should not be included within an IP Block Valid examples are \"192.168.1.1/24\" Except values will be rejected if they are outside the CIDR range + */ + 'except': Array; +} + +/** +* Ingress is a collection of rules that allow inbound connections to reach the endpoints defined by a backend. An Ingress can be configured to give services externally-reachable urls, load balance traffic, terminate SSL, offer name based virtual hosting etc. +*/ +export class V1beta1Ingress { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + */ + 'apiVersion': string; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'kind': string; + /** + * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + */ + 'metadata': V1ObjectMeta; + /** + * Spec is the desired state of the Ingress. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status + */ + 'spec': V1beta1IngressSpec; + /** + * Status is the current state of the Ingress. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status + */ + 'status': V1beta1IngressStatus; +} + +/** +* IngressBackend describes all endpoints for a given service and port. +*/ +export class V1beta1IngressBackend { + /** + * Specifies the name of the referenced service. + */ + 'serviceName': string; + /** + * Specifies the port of the referenced service. + */ + 'servicePort': any; +} + +/** +* IngressList is a collection of Ingress. +*/ +export class V1beta1IngressList { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + */ + 'apiVersion': string; + /** + * Items is the list of Ingress. + */ + 'items': Array; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'kind': string; + /** + * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + */ + 'metadata': V1ListMeta; +} + +/** +* IngressRule represents the rules mapping the paths under a specified host to the related backend services. Incoming requests are first evaluated for a host match, then routed to the backend associated with the matching IngressRuleValue. +*/ +export class V1beta1IngressRule { + /** + * Host is the fully qualified domain name of a network host, as defined by RFC 3986. Note the following deviations from the \"host\" part of the URI as defined in the RFC: 1. IPs are not allowed. Currently an IngressRuleValue can only apply to the IP in the Spec of the parent Ingress. 2. The `:` delimiter is not respected because ports are not allowed. Currently the port of an Ingress is implicitly :80 for http and :443 for https. Both these may change in the future. Incoming requests are matched against the host before the IngressRuleValue. If the host is unspecified, the Ingress routes all traffic based on the specified IngressRuleValue. + */ + 'host': string; + 'http': V1beta1HTTPIngressRuleValue; +} + +/** +* IngressSpec describes the Ingress the user wishes to exist. +*/ +export class V1beta1IngressSpec { + /** + * A default backend capable of servicing requests that don't match any rule. At least one of 'backend' or 'rules' must be specified. This field is optional to allow the loadbalancer controller or defaulting logic to specify a global default. + */ + 'backend': V1beta1IngressBackend; + /** + * A list of host rules used to configure the Ingress. If unspecified, or no rule matches, all traffic is sent to the default backend. + */ + 'rules': Array; + /** + * TLS configuration. Currently the Ingress only supports a single TLS port, 443. If multiple members of this list specify different hosts, they will be multiplexed on the same port according to the hostname specified through the SNI TLS extension, if the ingress controller fulfilling the ingress supports SNI. + */ + 'tls': Array; +} + +/** +* IngressStatus describe the current state of the Ingress. +*/ +export class V1beta1IngressStatus { + /** + * LoadBalancer contains the current status of the load-balancer. + */ + 'loadBalancer': V1LoadBalancerStatus; +} + +/** +* IngressTLS describes the transport layer security associated with an Ingress. +*/ +export class V1beta1IngressTLS { + /** + * Hosts are a list of hosts included in the TLS certificate. The values in this list must match the name/s used in the tlsSecret. Defaults to the wildcard host setting for the loadbalancer controller fulfilling this Ingress, if left unspecified. + */ + 'hosts': Array; + /** + * SecretName is the name of the secret used to terminate SSL traffic on 443. Field is left optional to allow SSL routing based on SNI hostname alone. If the SNI host in a listener conflicts with the \"Host\" header field used by an IngressRule, the SNI host is used for termination and value of the Host header is used for routing. + */ + 'secretName': string; +} + +/** +* JSON represents any valid JSON value. These types are supported: bool, int64, float64, string, []interface{}, map[string]interface{} and nil. +*/ +export class V1beta1JSON { + 'raw': string; +} + +/** +* JSONSchemaProps is a JSON-Schema following Specification Draft 4 (http://json-schema.org/). +*/ +export class V1beta1JSONSchemaProps { + '$Ref': string; + '$Schema': string; + 'additionalItems': V1beta1JSONSchemaPropsOrBool; + 'additionalProperties': V1beta1JSONSchemaPropsOrBool; + 'allOf': Array; + 'anyOf': Array; + 'default': V1beta1JSON; + 'definitions': { [key: string]: V1beta1JSONSchemaProps; }; + 'dependencies': { [key: string]: V1beta1JSONSchemaPropsOrStringArray; }; + 'description': string; + 'enum': Array; + 'example': V1beta1JSON; + 'exclusiveMaximum': boolean; + 'exclusiveMinimum': boolean; + 'externalDocs': V1beta1ExternalDocumentation; + 'format': string; + 'id': string; + 'items': V1beta1JSONSchemaPropsOrArray; + 'maxItems': number; + 'maxLength': number; + 'maxProperties': number; + 'maximum': number; + 'minItems': number; + 'minLength': number; + 'minProperties': number; + 'minimum': number; + 'multipleOf': number; + 'not': V1beta1JSONSchemaProps; + 'oneOf': Array; + 'pattern': string; + 'patternProperties': { [key: string]: V1beta1JSONSchemaProps; }; + 'properties': { [key: string]: V1beta1JSONSchemaProps; }; + 'required': Array; + 'title': string; + 'type': string; + 'uniqueItems': boolean; +} + +/** +* JSONSchemaPropsOrArray represents a value that can either be a JSONSchemaProps or an array of JSONSchemaProps. Mainly here for serialization purposes. +*/ +export class V1beta1JSONSchemaPropsOrArray { + 'jSONSchemas': Array; + 'schema': V1beta1JSONSchemaProps; +} + +/** +* JSONSchemaPropsOrBool represents JSONSchemaProps or a boolean value. Defaults to true for the boolean property. +*/ +export class V1beta1JSONSchemaPropsOrBool { + 'allows': boolean; + 'schema': V1beta1JSONSchemaProps; +} + +/** +* JSONSchemaPropsOrStringArray represents a JSONSchemaProps or a string array. +*/ +export class V1beta1JSONSchemaPropsOrStringArray { + 'property': Array; + 'schema': V1beta1JSONSchemaProps; +} + +/** +* JobTemplateSpec describes the data a Job should have when created from a template +*/ +export class V1beta1JobTemplateSpec { + /** + * Standard object's metadata of the jobs created from this template. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + */ + 'metadata': V1ObjectMeta; + /** + * Specification of the desired behavior of the job. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status + */ + 'spec': V1JobSpec; +} + +/** +* LocalSubjectAccessReview checks whether or not a user or group can perform an action in a given namespace. Having a namespace scoped resource makes it much easier to grant namespace scoped policy that includes permissions checking. +*/ +export class V1beta1LocalSubjectAccessReview { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + */ + 'apiVersion': string; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'kind': string; + 'metadata': V1ObjectMeta; + /** + * Spec holds information about the request being evaluated. spec.namespace must be equal to the namespace you made the request against. If empty, it is defaulted. + */ + 'spec': V1beta1SubjectAccessReviewSpec; + /** + * Status is filled in by the server and indicates whether the request is allowed or not + */ + 'status': V1beta1SubjectAccessReviewStatus; +} + +/** +* NetworkPolicy describes what network traffic is allowed for a set of Pods +*/ +export class V1beta1NetworkPolicy { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + */ + 'apiVersion': string; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'kind': string; + /** + * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + */ + 'metadata': V1ObjectMeta; + /** + * Specification of the desired behavior for this NetworkPolicy. + */ + 'spec': V1beta1NetworkPolicySpec; +} + +/** +* NetworkPolicyEgressRule describes a particular set of traffic that is allowed out of pods matched by a NetworkPolicySpec's podSelector. The traffic must match both ports and to. This type is beta-level in 1.8 +*/ +export class V1beta1NetworkPolicyEgressRule { + /** + * List of destination ports for outgoing traffic. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list. + */ + 'ports': Array; + /** + * List of destinations for outgoing traffic of pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all destinations (traffic not restricted by destination). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the to list. + */ + 'to': Array; +} + +/** +* This NetworkPolicyIngressRule matches traffic if and only if the traffic matches both ports AND from. +*/ +export class V1beta1NetworkPolicyIngressRule { + /** + * List of sources which should be able to access the pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all sources (traffic not restricted by source). If this field is present and contains at least on item, this rule allows traffic only if the traffic matches at least one item in the from list. + */ + 'from': Array; + /** + * List of ports which should be made accessible on the pods selected for this rule. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list. + */ + 'ports': Array; +} + +/** +* Network Policy List is a list of NetworkPolicy objects. +*/ +export class V1beta1NetworkPolicyList { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + */ + 'apiVersion': string; + /** + * Items is a list of schema objects. + */ + 'items': Array; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'kind': string; + /** + * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + */ + 'metadata': V1ListMeta; +} + +export class V1beta1NetworkPolicyPeer { + /** + * IPBlock defines policy on a particular IPBlock + */ + 'ipBlock': V1beta1IPBlock; + /** + * Selects Namespaces using cluster scoped-labels. This matches all pods in all namespaces selected by this label selector. This field follows standard label selector semantics. If present but empty, this selector selects all namespaces. + */ + 'namespaceSelector': V1LabelSelector; + /** + * This is a label selector which selects Pods in this namespace. This field follows standard label selector semantics. If present but empty, this selector selects all pods in this namespace. + */ + 'podSelector': V1LabelSelector; +} + +export class V1beta1NetworkPolicyPort { + /** + * If specified, the port on the given protocol. This can either be a numerical or named port on a pod. If this field is not provided, this matches all port names and numbers. If present, only traffic on the specified protocol AND port will be matched. + */ + 'port': any; + /** + * Optional. The protocol (TCP or UDP) which traffic must match. If not specified, this field defaults to TCP. + */ + 'protocol': string; +} + +export class V1beta1NetworkPolicySpec { + /** + * List of egress rules to be applied to the selected pods. Outgoing traffic is allowed if there are no NetworkPolicies selecting the pod (and cluster policy otherwise allows the traffic), OR if the traffic matches at least one egress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy limits all outgoing traffic (and serves solely to ensure that the pods it selects are isolated by default). This field is beta-level in 1.8 + */ + 'egress': Array; + /** + * List of ingress rules to be applied to the selected pods. Traffic is allowed to a pod if there are no NetworkPolicies selecting the pod OR if the traffic source is the pod's local node, OR if the traffic matches at least one ingress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy does not allow any traffic (and serves solely to ensure that the pods it selects are isolated by default). + */ + 'ingress': Array; + /** + * Selects the pods to which this NetworkPolicy object applies. The array of ingress rules is applied to any pods selected by this field. Multiple network policies can select the same set of pods. In this case, the ingress rules for each are combined additively. This field is NOT optional and follows standard label selector semantics. An empty podSelector matches all pods in this namespace. + */ + 'podSelector': V1LabelSelector; + /** + * List of rule types that the NetworkPolicy relates to. Valid options are Ingress, Egress, or Ingress,Egress. If this field is not specified, it will default based on the existence of Ingress or Egress rules; policies that contain an Egress section are assumed to affect Egress, and all policies (whether or not they contain an Ingress section) are assumed to affect Ingress. If you want to write an egress-only policy, you must explicitly specify policyTypes [ \"Egress\" ]. Likewise, if you want to write a policy that specifies that no egress is allowed, you must specify a policyTypes value that include \"Egress\" (since such a policy would not include an Egress section and would otherwise default to just [ \"Ingress\" ]). This field is beta-level in 1.8 + */ + 'policyTypes': Array; +} + +/** +* NonResourceAttributes includes the authorization attributes available for non-resource requests to the Authorizer interface +*/ +export class V1beta1NonResourceAttributes { + /** + * Path is the URL path of the request + */ + 'path': string; + /** + * Verb is the standard HTTP verb + */ + 'verb': string; +} + +/** +* NonResourceRule holds information that describes a rule for the non-resource +*/ +export class V1beta1NonResourceRule { + /** + * NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path. \"*\" means all. + */ + 'nonResourceURLs': Array; + /** + * Verb is a list of kubernetes non-resource API verbs, like: get, post, put, delete, patch, head, options. \"*\" means all. + */ + 'verbs': Array; +} + +/** +* PodDisruptionBudget is an object to define the max disruption that can be caused to a collection of pods +*/ +export class V1beta1PodDisruptionBudget { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + */ + 'apiVersion': string; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'kind': string; + 'metadata': V1ObjectMeta; + /** + * Specification of the desired behavior of the PodDisruptionBudget. + */ + 'spec': V1beta1PodDisruptionBudgetSpec; + /** + * Most recently observed status of the PodDisruptionBudget. + */ + 'status': V1beta1PodDisruptionBudgetStatus; +} + +/** +* PodDisruptionBudgetList is a collection of PodDisruptionBudgets. +*/ +export class V1beta1PodDisruptionBudgetList { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + */ + 'apiVersion': string; + 'items': Array; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'kind': string; + 'metadata': V1ListMeta; +} + +/** +* PodDisruptionBudgetSpec is a description of a PodDisruptionBudget. +*/ +export class V1beta1PodDisruptionBudgetSpec { + /** + * An eviction is allowed if at most \"maxUnavailable\" pods selected by \"selector\" are unavailable after the eviction, i.e. even in absence of the evicted pod. For example, one can prevent all voluntary evictions by specifying 0. This is a mutually exclusive setting with \"minAvailable\". + */ + 'maxUnavailable': any; + /** + * An eviction is allowed if at least \"minAvailable\" pods selected by \"selector\" will still be available after the eviction, i.e. even in the absence of the evicted pod. So for example you can prevent all voluntary evictions by specifying \"100%\". + */ + 'minAvailable': any; + /** + * Label query over pods whose evictions are managed by the disruption budget. + */ + 'selector': V1LabelSelector; +} + +/** +* PodDisruptionBudgetStatus represents information about the status of a PodDisruptionBudget. Status may trail the actual state of a system. +*/ +export class V1beta1PodDisruptionBudgetStatus { + /** + * current number of healthy pods + */ + 'currentHealthy': number; + /** + * minimum desired number of healthy pods + */ + 'desiredHealthy': number; + /** + * DisruptedPods contains information about pods whose eviction was processed by the API server eviction subresource handler but has not yet been observed by the PodDisruptionBudget controller. A pod will be in this map from the time when the API server processed the eviction request to the time when the pod is seen by PDB controller as having been marked for deletion (or after a timeout). The key in the map is the name of the pod and the value is the time when the API server processed the eviction request. If the deletion didn't occur and a pod is still there it will be removed from the list automatically by PodDisruptionBudget controller after some time. If everything goes smooth this map should be empty for the most of the time. Large number of entries in the map may indicate problems with pod deletions. + */ + 'disruptedPods': { [key: string]: Date; }; + /** + * Number of pod disruptions that are currently allowed. + */ + 'disruptionsAllowed': number; + /** + * total number of pods counted by this disruption budget + */ + 'expectedPods': number; + /** + * Most recent generation observed when updating this PDB status. PodDisruptionsAllowed and other status informatio is valid only if observedGeneration equals to PDB's object generation. + */ + 'observedGeneration': number; +} + +/** +* Pod Security Policy governs the ability to make requests that affect the Security Context that will be applied to a pod and container. +*/ +export class V1beta1PodSecurityPolicy { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + */ + 'apiVersion': string; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'kind': string; + /** + * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + */ + 'metadata': V1ObjectMeta; + /** + * spec defines the policy enforced. + */ + 'spec': V1beta1PodSecurityPolicySpec; +} + +/** +* Pod Security Policy List is a list of PodSecurityPolicy objects. +*/ +export class V1beta1PodSecurityPolicyList { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + */ + 'apiVersion': string; + /** + * Items is a list of schema objects. + */ + 'items': Array; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'kind': string; + /** + * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + */ + 'metadata': V1ListMeta; +} + +/** +* Pod Security Policy Spec defines the policy enforced. +*/ +export class V1beta1PodSecurityPolicySpec { + /** + * AllowPrivilegeEscalation determines if a pod can request to allow privilege escalation. If unspecified, defaults to true. + */ + 'allowPrivilegeEscalation': boolean; + /** + * AllowedCapabilities is a list of capabilities that can be requested to add to the container. Capabilities in this field may be added at the pod author's discretion. You must not list a capability in both AllowedCapabilities and RequiredDropCapabilities. + */ + 'allowedCapabilities': Array; + /** + * is a white list of allowed host paths. Empty indicates that all host paths may be used. + */ + 'allowedHostPaths': Array; + /** + * DefaultAddCapabilities is the default set of capabilities that will be added to the container unless the pod spec specifically drops the capability. You may not list a capabiility in both DefaultAddCapabilities and RequiredDropCapabilities. + */ + 'defaultAddCapabilities': Array; + /** + * DefaultAllowPrivilegeEscalation controls the default setting for whether a process can gain more privileges than its parent process. + */ + 'defaultAllowPrivilegeEscalation': boolean; + /** + * FSGroup is the strategy that will dictate what fs group is used by the SecurityContext. + */ + 'fsGroup': V1beta1FSGroupStrategyOptions; + /** + * hostIPC determines if the policy allows the use of HostIPC in the pod spec. + */ + 'hostIPC': boolean; + /** + * hostNetwork determines if the policy allows the use of HostNetwork in the pod spec. + */ + 'hostNetwork': boolean; + /** + * hostPID determines if the policy allows the use of HostPID in the pod spec. + */ + 'hostPID': boolean; + /** + * hostPorts determines which host port ranges are allowed to be exposed. + */ + 'hostPorts': Array; + /** + * privileged determines if a pod can request to be run as privileged. + */ + 'privileged': boolean; + /** + * ReadOnlyRootFilesystem when set to true will force containers to run with a read only root file system. If the container specifically requests to run with a non-read only root file system the PSP should deny the pod. If set to false the container may run with a read only root file system if it wishes but it will not be forced to. + */ + 'readOnlyRootFilesystem': boolean; + /** + * RequiredDropCapabilities are the capabilities that will be dropped from the container. These are required to be dropped and cannot be added. + */ + 'requiredDropCapabilities': Array; + /** + * runAsUser is the strategy that will dictate the allowable RunAsUser values that may be set. + */ + 'runAsUser': V1beta1RunAsUserStrategyOptions; + /** + * seLinux is the strategy that will dictate the allowable labels that may be set. + */ + 'seLinux': V1beta1SELinuxStrategyOptions; + /** + * SupplementalGroups is the strategy that will dictate what supplemental groups are used by the SecurityContext. + */ + 'supplementalGroups': V1beta1SupplementalGroupsStrategyOptions; + /** + * volumes is a white list of allowed volume plugins. Empty indicates that all plugins may be used. + */ + 'volumes': Array; +} + +/** +* PolicyRule holds information that describes a policy rule, but does not contain information about who the rule applies to or which namespace the rule applies to. +*/ +export class V1beta1PolicyRule { + /** + * APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. + */ + 'apiGroups': Array; + /** + * NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules can either apply to API resources (such as \"pods\" or \"secrets\") or non-resource URL paths (such as \"/api\"), but not both. + */ + 'nonResourceURLs': Array; + /** + * ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. + */ + 'resourceNames': Array; + /** + * Resources is a list of resources this rule applies to. ResourceAll represents all resources. + */ + 'resources': Array; + /** + * Verbs is a list of Verbs that apply to ALL the ResourceKinds and AttributeRestrictions contained in this rule. VerbAll represents all kinds. + */ + 'verbs': Array; +} + +/** +* DEPRECATED - This group version of ReplicaSet is deprecated by apps/v1beta2/ReplicaSet. See the release notes for more information. ReplicaSet represents the configuration of a ReplicaSet. +*/ +export class V1beta1ReplicaSet { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + */ + 'apiVersion': string; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'kind': string; + /** + * If the Labels of a ReplicaSet are empty, they are defaulted to be the same as the Pod(s) that the ReplicaSet manages. Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + */ + 'metadata': V1ObjectMeta; + /** + * Spec defines the specification of the desired behavior of the ReplicaSet. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status + */ + 'spec': V1beta1ReplicaSetSpec; + /** + * Status is the most recently observed status of the ReplicaSet. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status + */ + 'status': V1beta1ReplicaSetStatus; +} + +/** +* ReplicaSetCondition describes the state of a replica set at a certain point. +*/ +export class V1beta1ReplicaSetCondition { + /** + * The last time the condition transitioned from one status to another. + */ + 'lastTransitionTime': Date; + /** + * A human readable message indicating details about the transition. + */ + 'message': string; + /** + * The reason for the condition's last transition. + */ + 'reason': string; + /** + * Status of the condition, one of True, False, Unknown. + */ + 'status': string; + /** + * Type of replica set condition. + */ + 'type': string; +} + +/** +* ReplicaSetList is a collection of ReplicaSets. +*/ +export class V1beta1ReplicaSetList { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + */ + 'apiVersion': string; + /** + * List of ReplicaSets. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller + */ + 'items': Array; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'kind': string; + /** + * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'metadata': V1ListMeta; +} + +/** +* ReplicaSetSpec is the specification of a ReplicaSet. +*/ +export class V1beta1ReplicaSetSpec { + /** + * Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) + */ + 'minReadySeconds': number; + /** + * Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller + */ + 'replicas': number; + /** + * Selector is a label query over pods that should match the replica count. If the selector is empty, it is defaulted to the labels present on the pod template. Label keys and values that must match in order to be controlled by this replica set. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors + */ + 'selector': V1LabelSelector; + /** + * Template is the object that describes the pod that will be created if insufficient replicas are detected. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template + */ + 'template': V1PodTemplateSpec; +} + +/** +* ReplicaSetStatus represents the current status of a ReplicaSet. +*/ +export class V1beta1ReplicaSetStatus { + /** + * The number of available replicas (ready for at least minReadySeconds) for this replica set. + */ + 'availableReplicas': number; + /** + * Represents the latest available observations of a replica set's current state. + */ + 'conditions': Array; + /** + * The number of pods that have labels matching the labels of the pod template of the replicaset. + */ + 'fullyLabeledReplicas': number; + /** + * ObservedGeneration reflects the generation of the most recently observed ReplicaSet. + */ + 'observedGeneration': number; + /** + * The number of ready replicas for this replica set. + */ + 'readyReplicas': number; + /** + * Replicas is the most recently oberved number of replicas. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller + */ + 'replicas': number; +} + +/** +* ResourceAttributes includes the authorization attributes available for resource requests to the Authorizer interface +*/ +export class V1beta1ResourceAttributes { + /** + * Group is the API Group of the Resource. \"*\" means all. + */ + 'group': string; + /** + * Name is the name of the resource being requested for a \"get\" or deleted for a \"delete\". \"\" (empty) means all. + */ + 'name': string; + /** + * Namespace is the namespace of the action being requested. Currently, there is no distinction between no namespace and all namespaces \"\" (empty) is defaulted for LocalSubjectAccessReviews \"\" (empty) is empty for cluster-scoped resources \"\" (empty) means \"all\" for namespace scoped resources from a SubjectAccessReview or SelfSubjectAccessReview + */ + 'namespace': string; + /** + * Resource is one of the existing resource types. \"*\" means all. + */ + 'resource': string; + /** + * Subresource is one of the existing resource types. \"\" means none. + */ + 'subresource': string; + /** + * Verb is a kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy. \"*\" means all. + */ + 'verb': string; + /** + * Version is the API Version of the Resource. \"*\" means all. + */ + 'version': string; +} + +/** +* ResourceRule is the list of actions the subject is allowed to perform on resources. The list ordering isn't significant, may contain duplicates, and possibly be incomplete. +*/ +export class V1beta1ResourceRule { + /** + * APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. \"*\" means all. + */ + 'apiGroups': Array; + /** + * ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. \"*\" means all. + */ + 'resourceNames': Array; + /** + * Resources is a list of resources this rule applies to. ResourceAll represents all resources. \"*\" means all. + */ + 'resources': Array; + /** + * Verb is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxy. \"*\" means all. + */ + 'verbs': Array; +} + +/** +* Role is a namespaced, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding. +*/ +export class V1beta1Role { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + */ + 'apiVersion': string; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'kind': string; + /** + * Standard object's metadata. + */ + 'metadata': V1ObjectMeta; + /** + * Rules holds all the PolicyRules for this Role + */ + 'rules': Array; +} + +/** +* RoleBinding references a role, but does not contain it. It can reference a Role in the same namespace or a ClusterRole in the global namespace. It adds who information via Subjects and namespace information by which namespace it exists in. RoleBindings in a given namespace only have effect in that namespace. +*/ +export class V1beta1RoleBinding { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + */ + 'apiVersion': string; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'kind': string; + /** + * Standard object's metadata. + */ + 'metadata': V1ObjectMeta; + /** + * RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. + */ + 'roleRef': V1beta1RoleRef; + /** + * Subjects holds references to the objects the role applies to. + */ + 'subjects': Array; +} + +/** +* RoleBindingList is a collection of RoleBindings +*/ +export class V1beta1RoleBindingList { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + */ + 'apiVersion': string; + /** + * Items is a list of RoleBindings + */ + 'items': Array; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'kind': string; + /** + * Standard object's metadata. + */ + 'metadata': V1ListMeta; +} + +/** +* RoleList is a collection of Roles +*/ +export class V1beta1RoleList { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + */ + 'apiVersion': string; + /** + * Items is a list of Roles + */ + 'items': Array; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'kind': string; + /** + * Standard object's metadata. + */ + 'metadata': V1ListMeta; +} + +/** +* RoleRef contains information that points to the role being used +*/ +export class V1beta1RoleRef { + /** + * APIGroup is the group for the resource being referenced + */ + 'apiGroup': string; + /** + * Kind is the type of resource being referenced + */ + 'kind': string; + /** + * Name is the name of resource being referenced + */ + 'name': string; +} + +/** +* Spec to control the desired behavior of daemon set rolling update. +*/ +export class V1beta1RollingUpdateDaemonSet { + /** + * The maximum number of DaemonSet pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of total number of DaemonSet pods at the start of the update (ex: 10%). Absolute number is calculated from percentage by rounding up. This cannot be 0. Default value is 1. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their pods stopped for an update at any given time. The update starts by stopping at most 30% of those DaemonSet pods and then brings up new DaemonSet pods in their place. Once the new pods are available, it then proceeds onto other DaemonSet pods, thus ensuring that at least 70% of original number of DaemonSet pods are available at all times during the update. + */ + 'maxUnavailable': any; +} + +/** +* RollingUpdateStatefulSetStrategy is used to communicate parameter for RollingUpdateStatefulSetStrategyType. +*/ +export class V1beta1RollingUpdateStatefulSetStrategy { + /** + * Partition indicates the ordinal at which the StatefulSet should be partitioned. + */ + 'partition': number; +} + +/** +* Run A sUser Strategy Options defines the strategy type and any options used to create the strategy. +*/ +export class V1beta1RunAsUserStrategyOptions { + /** + * Ranges are the allowed ranges of uids that may be used. + */ + 'ranges': Array; + /** + * Rule is the strategy that will dictate the allowable RunAsUser values that may be set. + */ + 'rule': string; +} + +/** +* SELinux Strategy Options defines the strategy type and any options used to create the strategy. +*/ +export class V1beta1SELinuxStrategyOptions { + /** + * type is the strategy that will dictate the allowable labels that may be set. + */ + 'rule': string; + /** + * seLinuxOptions required to run as; required for MustRunAs More info: https://git.k8s.io/community/contributors/design-proposals/security_context.md + */ + 'seLinuxOptions': V1SELinuxOptions; +} + +/** +* SelfSubjectAccessReview checks whether or the current user can perform an action. Not filling in a spec.namespace means \"in all namespaces\". Self is a special case, because users should always be able to check whether they can perform an action +*/ +export class V1beta1SelfSubjectAccessReview { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + */ + 'apiVersion': string; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'kind': string; + 'metadata': V1ObjectMeta; + /** + * Spec holds information about the request being evaluated. user and groups must be empty + */ + 'spec': V1beta1SelfSubjectAccessReviewSpec; + /** + * Status is filled in by the server and indicates whether the request is allowed or not + */ + 'status': V1beta1SubjectAccessReviewStatus; +} + +/** +* SelfSubjectAccessReviewSpec is a description of the access request. Exactly one of ResourceAuthorizationAttributes and NonResourceAuthorizationAttributes must be set +*/ +export class V1beta1SelfSubjectAccessReviewSpec { + /** + * NonResourceAttributes describes information for a non-resource access request + */ + 'nonResourceAttributes': V1beta1NonResourceAttributes; + /** + * ResourceAuthorizationAttributes describes information for a resource access request + */ + 'resourceAttributes': V1beta1ResourceAttributes; +} + +/** +* SelfSubjectRulesReview enumerates the set of actions the current user can perform within a namespace. The returned list of actions may be incomplete depending on the server's authorization mode, and any errors experienced during the evaluation. SelfSubjectRulesReview should be used by UIs to show/hide actions, or to quickly let an end user reason about their permissions. It should NOT Be used by external systems to drive authorization decisions as this raises confused deputy, cache lifetime/revocation, and correctness concerns. SubjectAccessReview, and LocalAccessReview are the correct way to defer authorization decisions to the API server. +*/ +export class V1beta1SelfSubjectRulesReview { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + */ + 'apiVersion': string; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'kind': string; + 'metadata': V1ObjectMeta; + /** + * Spec holds information about the request being evaluated. + */ + 'spec': V1beta1SelfSubjectRulesReviewSpec; + /** + * Status is filled in by the server and indicates the set of actions a user can perform. + */ + 'status': V1beta1SubjectRulesReviewStatus; +} + +export class V1beta1SelfSubjectRulesReviewSpec { + /** + * Namespace to evaluate rules for. Required. + */ + 'namespace': string; +} + +/** +* ServiceReference holds a reference to Service.legacy.k8s.io +*/ +export class V1beta1ServiceReference { + /** + * Name is the name of the service + */ + 'name': string; + /** + * Namespace is the namespace of the service + */ + 'namespace': string; +} + +/** +* DEPRECATED - This group version of StatefulSet is deprecated by apps/v1beta2/StatefulSet. See the release notes for more information. StatefulSet represents a set of pods with consistent identities. Identities are defined as: - Network: A single stable DNS and hostname. - Storage: As many VolumeClaims as requested. The StatefulSet guarantees that a given network identity will always map to the same storage identity. +*/ +export class V1beta1StatefulSet { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + */ + 'apiVersion': string; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'kind': string; + 'metadata': V1ObjectMeta; + /** + * Spec defines the desired identities of pods in this set. + */ + 'spec': V1beta1StatefulSetSpec; + /** + * Status is the current status of Pods in this StatefulSet. This data may be out of date by some window of time. + */ + 'status': V1beta1StatefulSetStatus; +} + +/** +* StatefulSetList is a collection of StatefulSets. +*/ +export class V1beta1StatefulSetList { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + */ + 'apiVersion': string; + 'items': Array; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'kind': string; + 'metadata': V1ListMeta; +} + +/** +* A StatefulSetSpec is the specification of a StatefulSet. +*/ +export class V1beta1StatefulSetSpec { + /** + * podManagementPolicy controls how pods are created during initial scale up, when replacing pods on nodes, or when scaling down. The default policy is `OrderedReady`, where pods are created in increasing order (pod-0, then pod-1, etc) and the controller will wait until each pod is ready before continuing. When scaling down, the pods are removed in the opposite order. The alternative policy is `Parallel` which will create pods in parallel to match the desired scale without waiting, and on scale down will delete all pods at once. + */ + 'podManagementPolicy': string; + /** + * replicas is the desired number of replicas of the given Template. These are replicas in the sense that they are instantiations of the same Template, but individual replicas also have a consistent identity. If unspecified, defaults to 1. + */ + 'replicas': number; + /** + * revisionHistoryLimit is the maximum number of revisions that will be maintained in the StatefulSet's revision history. The revision history consists of all revisions not represented by a currently applied StatefulSetSpec version. The default value is 10. + */ + 'revisionHistoryLimit': number; + /** + * selector is a label query over pods that should match the replica count. If empty, defaulted to labels on the pod template. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors + */ + 'selector': V1LabelSelector; + /** + * serviceName is the name of the service that governs this StatefulSet. This service must exist before the StatefulSet, and is responsible for the network identity of the set. Pods get DNS/hostnames that follow the pattern: pod-specific-string.serviceName.default.svc.cluster.local where \"pod-specific-string\" is managed by the StatefulSet controller. + */ + 'serviceName': string; + /** + * template is the object that describes the pod that will be created if insufficient replicas are detected. Each pod stamped out by the StatefulSet will fulfill this Template, but have a unique identity from the rest of the StatefulSet. + */ + 'template': V1PodTemplateSpec; + /** + * updateStrategy indicates the StatefulSetUpdateStrategy that will be employed to update Pods in the StatefulSet when a revision is made to Template. + */ + 'updateStrategy': V1beta1StatefulSetUpdateStrategy; + /** + * volumeClaimTemplates is a list of claims that pods are allowed to reference. The StatefulSet controller is responsible for mapping network identities to claims in a way that maintains the identity of a pod. Every claim in this list must have at least one matching (by name) volumeMount in one container in the template. A claim in this list takes precedence over any volumes in the template, with the same name. + */ + 'volumeClaimTemplates': Array; +} + +/** +* StatefulSetStatus represents the current state of a StatefulSet. +*/ +export class V1beta1StatefulSetStatus { + /** + * collisionCount is the count of hash collisions for the StatefulSet. The StatefulSet controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ControllerRevision. + */ + 'collisionCount': number; + /** + * currentReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version indicated by currentRevision. + */ + 'currentReplicas': number; + /** + * currentRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the sequence [0,currentReplicas). + */ + 'currentRevision': string; + /** + * observedGeneration is the most recent generation observed for this StatefulSet. It corresponds to the StatefulSet's generation, which is updated on mutation by the API Server. + */ + 'observedGeneration': number; + /** + * readyReplicas is the number of Pods created by the StatefulSet controller that have a Ready Condition. + */ + 'readyReplicas': number; + /** + * replicas is the number of Pods created by the StatefulSet controller. + */ + 'replicas': number; + /** + * updateRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the sequence [replicas-updatedReplicas,replicas) + */ + 'updateRevision': string; + /** + * updatedReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version indicated by updateRevision. + */ + 'updatedReplicas': number; +} + +/** +* StatefulSetUpdateStrategy indicates the strategy that the StatefulSet controller will use to perform updates. It includes any additional parameters necessary to perform the update for the indicated strategy. +*/ +export class V1beta1StatefulSetUpdateStrategy { + /** + * RollingUpdate is used to communicate parameters when Type is RollingUpdateStatefulSetStrategyType. + */ + 'rollingUpdate': V1beta1RollingUpdateStatefulSetStrategy; + /** + * Type indicates the type of the StatefulSetUpdateStrategy. + */ + 'type': string; +} + +/** +* StorageClass describes the parameters for a class of storage for which PersistentVolumes can be dynamically provisioned. StorageClasses are non-namespaced; the name of the storage class according to etcd is in ObjectMeta.Name. +*/ +export class V1beta1StorageClass { + /** + * AllowVolumeExpansion shows whether the storage class allow volume expand + */ + 'allowVolumeExpansion': boolean; + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + */ + 'apiVersion': string; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'kind': string; + /** + * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + */ + 'metadata': V1ObjectMeta; + /** + * Dynamically provisioned PersistentVolumes of this storage class are created with these mountOptions, e.g. [\"ro\", \"soft\"]. Not validated - mount of the PVs will simply fail if one is invalid. + */ + 'mountOptions': Array; + /** + * Parameters holds the parameters for the provisioner that should create volumes of this storage class. + */ + 'parameters': { [key: string]: string; }; + /** + * Provisioner indicates the type of the provisioner. + */ + 'provisioner': string; + /** + * Dynamically provisioned PersistentVolumes of this storage class are created with this reclaimPolicy. Defaults to Delete. + */ + 'reclaimPolicy': string; +} + +/** +* StorageClassList is a collection of storage classes. +*/ +export class V1beta1StorageClassList { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + */ + 'apiVersion': string; + /** + * Items is the list of StorageClasses + */ + 'items': Array; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'kind': string; + /** + * Standard list metadata More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + */ + 'metadata': V1ListMeta; +} + +/** +* Subject contains a reference to the object or user identities a role binding applies to. This can either hold a direct API object reference, or a value for non-objects such as user and group names. +*/ +export class V1beta1Subject { + /** + * APIGroup holds the API group of the referenced subject. Defaults to \"\" for ServiceAccount subjects. Defaults to \"rbac.authorization.k8s.io\" for User and Group subjects. + */ + 'apiGroup': string; + /** + * Kind of object being referenced. Values defined by this API group are \"User\", \"Group\", and \"ServiceAccount\". If the Authorizer does not recognized the kind value, the Authorizer should report an error. + */ + 'kind': string; + /** + * Name of the object being referenced. + */ + 'name': string; + /** + * Namespace of the referenced object. If the object kind is non-namespace, such as \"User\" or \"Group\", and this value is not empty the Authorizer should report an error. + */ + 'namespace': string; +} + +/** +* SubjectAccessReview checks whether or not a user or group can perform an action. +*/ +export class V1beta1SubjectAccessReview { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + */ + 'apiVersion': string; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'kind': string; + 'metadata': V1ObjectMeta; + /** + * Spec holds information about the request being evaluated + */ + 'spec': V1beta1SubjectAccessReviewSpec; + /** + * Status is filled in by the server and indicates whether the request is allowed or not + */ + 'status': V1beta1SubjectAccessReviewStatus; +} + +/** +* SubjectAccessReviewSpec is a description of the access request. Exactly one of ResourceAuthorizationAttributes and NonResourceAuthorizationAttributes must be set +*/ +export class V1beta1SubjectAccessReviewSpec { + /** + * Extra corresponds to the user.Info.GetExtra() method from the authenticator. Since that is input to the authorizer it needs a reflection here. + */ + 'extra': { [key: string]: Array; }; + /** + * Groups is the groups you're testing for. + */ + 'group': Array; + /** + * NonResourceAttributes describes information for a non-resource access request + */ + 'nonResourceAttributes': V1beta1NonResourceAttributes; + /** + * ResourceAuthorizationAttributes describes information for a resource access request + */ + 'resourceAttributes': V1beta1ResourceAttributes; + /** + * UID information about the requesting user. + */ + 'uid': string; + /** + * User is the user you're testing for. If you specify \"User\" but not \"Group\", then is it interpreted as \"What if User were not a member of any groups + */ + 'user': string; +} + +/** +* SubjectAccessReviewStatus +*/ +export class V1beta1SubjectAccessReviewStatus { + /** + * Allowed is required. True if the action would be allowed, false otherwise. + */ + 'allowed': boolean; + /** + * EvaluationError is an indication that some error occurred during the authorization check. It is entirely possible to get an error and be able to continue determine authorization status in spite of it. For instance, RBAC can be missing a role, but enough roles are still present and bound to reason about the request. + */ + 'evaluationError': string; + /** + * Reason is optional. It indicates why a request was allowed or denied. + */ + 'reason': string; +} + +/** +* SubjectRulesReviewStatus contains the result of a rules check. This check can be incomplete depending on the set of authorizers the server is configured with and any errors experienced during evaluation. Because authorization rules are additive, if a rule appears in a list it's safe to assume the subject has that permission, even if that list is incomplete. +*/ +export class V1beta1SubjectRulesReviewStatus { + /** + * EvaluationError can appear in combination with Rules. It indicates an error occurred during rule evaluation, such as an authorizer that doesn't support rule evaluation, and that ResourceRules and/or NonResourceRules may be incomplete. + */ + 'evaluationError': string; + /** + * Incomplete is true when the rules returned by this call are incomplete. This is most commonly encountered when an authorizer, such as an external authorizer, doesn't support rules evaluation. + */ + 'incomplete': boolean; + /** + * NonResourceRules is the list of actions the subject is allowed to perform on non-resources. The list ordering isn't significant, may contain duplicates, and possibly be incomplete. + */ + 'nonResourceRules': Array; + /** + * ResourceRules is the list of actions the subject is allowed to perform on resources. The list ordering isn't significant, may contain duplicates, and possibly be incomplete. + */ + 'resourceRules': Array; +} + +/** +* SupplementalGroupsStrategyOptions defines the strategy type and options used to create the strategy. +*/ +export class V1beta1SupplementalGroupsStrategyOptions { + /** + * Ranges are the allowed ranges of supplemental groups. If you would like to force a single supplemental group then supply a single range with the same start and end. + */ + 'ranges': Array; + /** + * Rule is the strategy that will dictate what supplemental groups is used in the SecurityContext. + */ + 'rule': string; +} + +/** +* TokenReview attempts to authenticate a token to a known user. Note: TokenReview requests may be cached by the webhook token authenticator plugin in the kube-apiserver. +*/ +export class V1beta1TokenReview { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + */ + 'apiVersion': string; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'kind': string; + 'metadata': V1ObjectMeta; + /** + * Spec holds information about the request being evaluated + */ + 'spec': V1beta1TokenReviewSpec; + /** + * Status is filled in by the server and indicates whether the request can be authenticated. + */ + 'status': V1beta1TokenReviewStatus; +} + +/** +* TokenReviewSpec is a description of the token authentication request. +*/ +export class V1beta1TokenReviewSpec { + /** + * Token is the opaque bearer token. + */ + 'token': string; +} + +/** +* TokenReviewStatus is the result of the token authentication request. +*/ +export class V1beta1TokenReviewStatus { + /** + * Authenticated indicates that the token was associated with a known user. + */ + 'authenticated': boolean; + /** + * Error indicates that the token couldn't be checked + */ + 'error': string; + /** + * User is the UserInfo associated with the provided token. + */ + 'user': V1beta1UserInfo; +} + +/** +* UserInfo holds the information about the user needed to implement the user.Info interface. +*/ +export class V1beta1UserInfo { + /** + * Any additional information provided by the authenticator. + */ + 'extra': { [key: string]: Array; }; + /** + * The names of groups this user is a part of. + */ + 'groups': Array; + /** + * A unique value that identifies this user across time. If this user is deleted and another user by the same name is added, they will have different UIDs. + */ + 'uid': string; + /** + * The name that uniquely identifies this user among all active users. + */ + 'username': string; +} + +/** +* ControllerRevision implements an immutable snapshot of state data. Clients are responsible for serializing and deserializing the objects that contain their internal state. Once a ControllerRevision has been successfully created, it can not be updated. The API Server will fail validation of all requests that attempt to mutate the Data field. ControllerRevisions may, however, be deleted. Note that, due to its use by both the DaemonSet and StatefulSet controllers for update and rollback, this object is beta. However, it may be subject to name and representation changes in future releases, and clients should not depend on its stability. It is primarily for internal use by controllers. +*/ +export class V1beta2ControllerRevision { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + */ + 'apiVersion': string; + /** + * Data is the serialized representation of the state. + */ + 'data': RuntimeRawExtension; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'kind': string; + /** + * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + */ + 'metadata': V1ObjectMeta; + /** + * Revision indicates the revision of the state represented by Data. + */ + 'revision': number; +} + +/** +* ControllerRevisionList is a resource containing a list of ControllerRevision objects. +*/ +export class V1beta2ControllerRevisionList { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + */ + 'apiVersion': string; + /** + * Items is the list of ControllerRevisions + */ + 'items': Array; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'kind': string; + /** + * More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + */ + 'metadata': V1ListMeta; +} + +/** +* DaemonSet represents the configuration of a daemon set. +*/ +export class V1beta2DaemonSet { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + */ + 'apiVersion': string; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'kind': string; + /** + * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + */ + 'metadata': V1ObjectMeta; + /** + * The desired behavior of this daemon set. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status + */ + 'spec': V1beta2DaemonSetSpec; + /** + * The current status of this daemon set. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status + */ + 'status': V1beta2DaemonSetStatus; +} + +/** +* DaemonSetList is a collection of daemon sets. +*/ +export class V1beta2DaemonSetList { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + */ + 'apiVersion': string; + /** + * A list of daemon sets. + */ + 'items': Array; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'kind': string; + /** + * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + */ + 'metadata': V1ListMeta; +} + +/** +* DaemonSetSpec is the specification of a daemon set. +*/ +export class V1beta2DaemonSetSpec { + /** + * The minimum number of seconds for which a newly created DaemonSet pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready). + */ + 'minReadySeconds': number; + /** + * The number of old history to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 10. + */ + 'revisionHistoryLimit': number; + /** + * A label query over pods that are managed by the daemon set. Must match in order to be controlled. If empty, defaulted to labels on Pod template. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors + */ + 'selector': V1LabelSelector; + /** + * An object that describes the pod that will be created. The DaemonSet will create exactly one copy of this pod on every node that matches the template's node selector (or on every node if no node selector is specified). More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template + */ + 'template': V1PodTemplateSpec; + /** + * An update strategy to replace existing DaemonSet pods with new pods. + */ + 'updateStrategy': V1beta2DaemonSetUpdateStrategy; +} + +/** +* DaemonSetStatus represents the current status of a daemon set. +*/ +export class V1beta2DaemonSetStatus { + /** + * Count of hash collisions for the DaemonSet. The DaemonSet controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ControllerRevision. + */ + 'collisionCount': number; + /** + * The number of nodes that are running at least 1 daemon pod and are supposed to run the daemon pod. More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/ + */ + 'currentNumberScheduled': number; + /** + * The total number of nodes that should be running the daemon pod (including nodes correctly running the daemon pod). More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/ + */ + 'desiredNumberScheduled': number; + /** + * The number of nodes that should be running the daemon pod and have one or more of the daemon pod running and available (ready for at least spec.minReadySeconds) + */ + 'numberAvailable': number; + /** + * The number of nodes that are running the daemon pod, but are not supposed to run the daemon pod. More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/ + */ + 'numberMisscheduled': number; + /** + * The number of nodes that should be running the daemon pod and have one or more of the daemon pod running and ready. + */ + 'numberReady': number; + /** + * The number of nodes that should be running the daemon pod and have none of the daemon pod running and available (ready for at least spec.minReadySeconds) + */ + 'numberUnavailable': number; + /** + * The most recent generation observed by the daemon set controller. + */ + 'observedGeneration': number; + /** + * The total number of nodes that are running updated daemon pod + */ + 'updatedNumberScheduled': number; +} + +/** +* DaemonSetUpdateStrategy is a struct used to control the update strategy for a DaemonSet. +*/ +export class V1beta2DaemonSetUpdateStrategy { + /** + * Rolling update config params. Present only if type = \"RollingUpdate\". + */ + 'rollingUpdate': V1beta2RollingUpdateDaemonSet; + /** + * Type of daemon set update. Can be \"RollingUpdate\" or \"OnDelete\". Default is RollingUpdate. + */ + 'type': string; +} + +/** +* Deployment enables declarative updates for Pods and ReplicaSets. +*/ +export class V1beta2Deployment { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + */ + 'apiVersion': string; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'kind': string; + /** + * Standard object metadata. + */ + 'metadata': V1ObjectMeta; + /** + * Specification of the desired behavior of the Deployment. + */ + 'spec': V1beta2DeploymentSpec; + /** + * Most recently observed status of the Deployment. + */ + 'status': V1beta2DeploymentStatus; +} + +/** +* DeploymentCondition describes the state of a deployment at a certain point. +*/ +export class V1beta2DeploymentCondition { + /** + * Last time the condition transitioned from one status to another. + */ + 'lastTransitionTime': Date; + /** + * The last time this condition was updated. + */ + 'lastUpdateTime': Date; + /** + * A human readable message indicating details about the transition. + */ + 'message': string; + /** + * The reason for the condition's last transition. + */ + 'reason': string; + /** + * Status of the condition, one of True, False, Unknown. + */ + 'status': string; + /** + * Type of deployment condition. + */ + 'type': string; +} + +/** +* DeploymentList is a list of Deployments. +*/ +export class V1beta2DeploymentList { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + */ + 'apiVersion': string; + /** + * Items is the list of Deployments. + */ + 'items': Array; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'kind': string; + /** + * Standard list metadata. + */ + 'metadata': V1ListMeta; +} + +/** +* DeploymentSpec is the specification of the desired behavior of the Deployment. +*/ +export class V1beta2DeploymentSpec { + /** + * Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) + */ + 'minReadySeconds': number; + /** + * Indicates that the deployment is paused. + */ + 'paused': boolean; + /** + * The maximum time in seconds for a deployment to make progress before it is considered to be failed. The deployment controller will continue to process failed deployments and a condition with a ProgressDeadlineExceeded reason will be surfaced in the deployment status. Note that progress will not be estimated during the time a deployment is paused. Defaults to 600s. + */ + 'progressDeadlineSeconds': number; + /** + * Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1. + */ + 'replicas': number; + /** + * The number of old ReplicaSets to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 10. + */ + 'revisionHistoryLimit': number; + /** + * Label selector for pods. Existing ReplicaSets whose pods are selected by this will be the ones affected by this deployment. + */ + 'selector': V1LabelSelector; + /** + * The deployment strategy to use to replace existing pods with new ones. + */ + 'strategy': V1beta2DeploymentStrategy; + /** + * Template describes the pods that will be created. + */ + 'template': V1PodTemplateSpec; +} + +/** +* DeploymentStatus is the most recently observed status of the Deployment. +*/ +export class V1beta2DeploymentStatus { + /** + * Total number of available pods (ready for at least minReadySeconds) targeted by this deployment. + */ + 'availableReplicas': number; + /** + * Count of hash collisions for the Deployment. The Deployment controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ReplicaSet. + */ + 'collisionCount': number; + /** + * Represents the latest available observations of a deployment's current state. + */ + 'conditions': Array; + /** + * The generation observed by the deployment controller. + */ + 'observedGeneration': number; + /** + * Total number of ready pods targeted by this deployment. + */ + 'readyReplicas': number; + /** + * Total number of non-terminated pods targeted by this deployment (their labels match the selector). + */ + 'replicas': number; + /** + * Total number of unavailable pods targeted by this deployment. This is the total number of pods that are still required for the deployment to have 100% available capacity. They may either be pods that are running but not yet available or pods that still have not been created. + */ + 'unavailableReplicas': number; + /** + * Total number of non-terminated pods targeted by this deployment that have the desired template spec. + */ + 'updatedReplicas': number; +} + +/** +* DeploymentStrategy describes how to replace existing pods with new ones. +*/ +export class V1beta2DeploymentStrategy { + /** + * Rolling update config params. Present only if DeploymentStrategyType = RollingUpdate. + */ + 'rollingUpdate': V1beta2RollingUpdateDeployment; + /** + * Type of deployment. Can be \"Recreate\" or \"RollingUpdate\". Default is RollingUpdate. + */ + 'type': string; +} + +/** +* ReplicaSet represents the configuration of a ReplicaSet. +*/ +export class V1beta2ReplicaSet { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + */ + 'apiVersion': string; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'kind': string; + /** + * If the Labels of a ReplicaSet are empty, they are defaulted to be the same as the Pod(s) that the ReplicaSet manages. Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + */ + 'metadata': V1ObjectMeta; + /** + * Spec defines the specification of the desired behavior of the ReplicaSet. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status + */ + 'spec': V1beta2ReplicaSetSpec; + /** + * Status is the most recently observed status of the ReplicaSet. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status + */ + 'status': V1beta2ReplicaSetStatus; +} + +/** +* ReplicaSetCondition describes the state of a replica set at a certain point. +*/ +export class V1beta2ReplicaSetCondition { + /** + * The last time the condition transitioned from one status to another. + */ + 'lastTransitionTime': Date; + /** + * A human readable message indicating details about the transition. + */ + 'message': string; + /** + * The reason for the condition's last transition. + */ + 'reason': string; + /** + * Status of the condition, one of True, False, Unknown. + */ + 'status': string; + /** + * Type of replica set condition. + */ + 'type': string; +} + +/** +* ReplicaSetList is a collection of ReplicaSets. +*/ +export class V1beta2ReplicaSetList { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + */ + 'apiVersion': string; + /** + * List of ReplicaSets. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller + */ + 'items': Array; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'kind': string; + /** + * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'metadata': V1ListMeta; +} + +/** +* ReplicaSetSpec is the specification of a ReplicaSet. +*/ +export class V1beta2ReplicaSetSpec { + /** + * Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) + */ + 'minReadySeconds': number; + /** + * Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller + */ + 'replicas': number; + /** + * Selector is a label query over pods that should match the replica count. If the selector is empty, it is defaulted to the labels present on the pod template. Label keys and values that must match in order to be controlled by this replica set. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors + */ + 'selector': V1LabelSelector; + /** + * Template is the object that describes the pod that will be created if insufficient replicas are detected. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template + */ + 'template': V1PodTemplateSpec; +} + +/** +* ReplicaSetStatus represents the current status of a ReplicaSet. +*/ +export class V1beta2ReplicaSetStatus { + /** + * The number of available replicas (ready for at least minReadySeconds) for this replica set. + */ + 'availableReplicas': number; + /** + * Represents the latest available observations of a replica set's current state. + */ + 'conditions': Array; + /** + * The number of pods that have labels matching the labels of the pod template of the replicaset. + */ + 'fullyLabeledReplicas': number; + /** + * ObservedGeneration reflects the generation of the most recently observed ReplicaSet. + */ + 'observedGeneration': number; + /** + * The number of ready replicas for this replica set. + */ + 'readyReplicas': number; + /** + * Replicas is the most recently oberved number of replicas. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller + */ + 'replicas': number; +} + +/** +* Spec to control the desired behavior of daemon set rolling update. +*/ +export class V1beta2RollingUpdateDaemonSet { + /** + * The maximum number of DaemonSet pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of total number of DaemonSet pods at the start of the update (ex: 10%). Absolute number is calculated from percentage by rounding up. This cannot be 0. Default value is 1. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their pods stopped for an update at any given time. The update starts by stopping at most 30% of those DaemonSet pods and then brings up new DaemonSet pods in their place. Once the new pods are available, it then proceeds onto other DaemonSet pods, thus ensuring that at least 70% of original number of DaemonSet pods are available at all times during the update. + */ + 'maxUnavailable': any; +} + +/** +* Spec to control the desired behavior of rolling update. +*/ +export class V1beta2RollingUpdateDeployment { + /** + * The maximum number of pods that can be scheduled above the desired number of pods. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up. Defaults to 25%. Example: when this is set to 30%, the new RC can be scaled up immediately when the rolling update starts, such that the total number of old and new pods do not exceed 130% of desired pods. Once old pods have been killed, new RC can be scaled up further, ensuring that total number of pods running at any time during the update is atmost 130% of desired pods. + */ + 'maxSurge': any; + /** + * The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding down. This can not be 0 if MaxSurge is 0. Defaults to 25%. Example: when this is set to 30%, the old RC can be scaled down to 70% of desired pods immediately when the rolling update starts. Once new pods are ready, old RC can be scaled down further, followed by scaling up the new RC, ensuring that the total number of pods available at all times during the update is at least 70% of desired pods. + */ + 'maxUnavailable': any; +} + +/** +* RollingUpdateStatefulSetStrategy is used to communicate parameter for RollingUpdateStatefulSetStrategyType. +*/ +export class V1beta2RollingUpdateStatefulSetStrategy { + /** + * Partition indicates the ordinal at which the StatefulSet should be partitioned. Default value is 0. + */ + 'partition': number; +} + +/** +* Scale represents a scaling request for a resource. +*/ +export class V1beta2Scale { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + */ + 'apiVersion': string; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'kind': string; + /** + * Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata. + */ + 'metadata': V1ObjectMeta; + /** + * defines the behavior of the scale. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status. + */ + 'spec': V1beta2ScaleSpec; + /** + * current status of the scale. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status. Read-only. + */ + 'status': V1beta2ScaleStatus; +} + +/** +* ScaleSpec describes the attributes of a scale subresource +*/ +export class V1beta2ScaleSpec { + /** + * desired number of instances for the scaled object. + */ + 'replicas': number; +} + +/** +* ScaleStatus represents the current status of a scale subresource. +*/ +export class V1beta2ScaleStatus { + /** + * actual number of observed instances of the scaled object. + */ + 'replicas': number; + /** + * label query over pods that should match the replicas count. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors + */ + 'selector': { [key: string]: string; }; + /** + * label selector for pods that should match the replicas count. This is a serializated version of both map-based and more expressive set-based selectors. This is done to avoid introspection in the clients. The string will be in the same format as the query-param syntax. If the target type only supports map-based selectors, both this field and map-based selector field are populated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors + */ + 'targetSelector': string; +} + +/** +* StatefulSet represents a set of pods with consistent identities. Identities are defined as: - Network: A single stable DNS and hostname. - Storage: As many VolumeClaims as requested. The StatefulSet guarantees that a given network identity will always map to the same storage identity. +*/ +export class V1beta2StatefulSet { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + */ + 'apiVersion': string; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'kind': string; + 'metadata': V1ObjectMeta; + /** + * Spec defines the desired identities of pods in this set. + */ + 'spec': V1beta2StatefulSetSpec; + /** + * Status is the current status of Pods in this StatefulSet. This data may be out of date by some window of time. + */ + 'status': V1beta2StatefulSetStatus; +} + +/** +* StatefulSetList is a collection of StatefulSets. +*/ +export class V1beta2StatefulSetList { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + */ + 'apiVersion': string; + 'items': Array; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'kind': string; + 'metadata': V1ListMeta; +} + +/** +* A StatefulSetSpec is the specification of a StatefulSet. +*/ +export class V1beta2StatefulSetSpec { + /** + * podManagementPolicy controls how pods are created during initial scale up, when replacing pods on nodes, or when scaling down. The default policy is `OrderedReady`, where pods are created in increasing order (pod-0, then pod-1, etc) and the controller will wait until each pod is ready before continuing. When scaling down, the pods are removed in the opposite order. The alternative policy is `Parallel` which will create pods in parallel to match the desired scale without waiting, and on scale down will delete all pods at once. + */ + 'podManagementPolicy': string; + /** + * replicas is the desired number of replicas of the given Template. These are replicas in the sense that they are instantiations of the same Template, but individual replicas also have a consistent identity. If unspecified, defaults to 1. + */ + 'replicas': number; + /** + * revisionHistoryLimit is the maximum number of revisions that will be maintained in the StatefulSet's revision history. The revision history consists of all revisions not represented by a currently applied StatefulSetSpec version. The default value is 10. + */ + 'revisionHistoryLimit': number; + /** + * selector is a label query over pods that should match the replica count. If empty, defaulted to labels on the pod template. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors + */ + 'selector': V1LabelSelector; + /** + * serviceName is the name of the service that governs this StatefulSet. This service must exist before the StatefulSet, and is responsible for the network identity of the set. Pods get DNS/hostnames that follow the pattern: pod-specific-string.serviceName.default.svc.cluster.local where \"pod-specific-string\" is managed by the StatefulSet controller. + */ + 'serviceName': string; + /** + * template is the object that describes the pod that will be created if insufficient replicas are detected. Each pod stamped out by the StatefulSet will fulfill this Template, but have a unique identity from the rest of the StatefulSet. + */ + 'template': V1PodTemplateSpec; + /** + * updateStrategy indicates the StatefulSetUpdateStrategy that will be employed to update Pods in the StatefulSet when a revision is made to Template. + */ + 'updateStrategy': V1beta2StatefulSetUpdateStrategy; + /** + * volumeClaimTemplates is a list of claims that pods are allowed to reference. The StatefulSet controller is responsible for mapping network identities to claims in a way that maintains the identity of a pod. Every claim in this list must have at least one matching (by name) volumeMount in one container in the template. A claim in this list takes precedence over any volumes in the template, with the same name. + */ + 'volumeClaimTemplates': Array; +} + +/** +* StatefulSetStatus represents the current state of a StatefulSet. +*/ +export class V1beta2StatefulSetStatus { + /** + * collisionCount is the count of hash collisions for the StatefulSet. The StatefulSet controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ControllerRevision. + */ + 'collisionCount': number; + /** + * currentReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version indicated by currentRevision. + */ + 'currentReplicas': number; + /** + * currentRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the sequence [0,currentReplicas). + */ + 'currentRevision': string; + /** + * observedGeneration is the most recent generation observed for this StatefulSet. It corresponds to the StatefulSet's generation, which is updated on mutation by the API Server. + */ + 'observedGeneration': number; + /** + * readyReplicas is the number of Pods created by the StatefulSet controller that have a Ready Condition. + */ + 'readyReplicas': number; + /** + * replicas is the number of Pods created by the StatefulSet controller. + */ + 'replicas': number; + /** + * updateRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the sequence [replicas-updatedReplicas,replicas) + */ + 'updateRevision': string; + /** + * updatedReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version indicated by updateRevision. + */ + 'updatedReplicas': number; +} + +/** +* StatefulSetUpdateStrategy indicates the strategy that the StatefulSet controller will use to perform updates. It includes any additional parameters necessary to perform the update for the indicated strategy. +*/ +export class V1beta2StatefulSetUpdateStrategy { + /** + * RollingUpdate is used to communicate parameters when Type is RollingUpdateStatefulSetStrategyType. + */ + 'rollingUpdate': V1beta2RollingUpdateStatefulSetStrategy; + /** + * Type indicates the type of the StatefulSetUpdateStrategy. Default is RollingUpdate. + */ + 'type': string; +} + +/** +* CronJob represents the configuration of a single cron job. +*/ +export class V2alpha1CronJob { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + */ + 'apiVersion': string; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'kind': string; + /** + * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + */ + 'metadata': V1ObjectMeta; + /** + * Specification of the desired behavior of a cron job, including the schedule. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status + */ + 'spec': V2alpha1CronJobSpec; + /** + * Current status of a cron job. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status + */ + 'status': V2alpha1CronJobStatus; +} + +/** +* CronJobList is a collection of cron jobs. +*/ +export class V2alpha1CronJobList { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + */ + 'apiVersion': string; + /** + * items is the list of CronJobs. + */ + 'items': Array; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'kind': string; + /** + * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + */ + 'metadata': V1ListMeta; +} + +/** +* CronJobSpec describes how the job execution will look like and when it will actually run. +*/ +export class V2alpha1CronJobSpec { + /** + * Specifies how to treat concurrent executions of a Job. Defaults to Allow. + */ + 'concurrencyPolicy': string; + /** + * The number of failed finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified. + */ + 'failedJobsHistoryLimit': number; + /** + * Specifies the job that will be created when executing a CronJob. + */ + 'jobTemplate': V2alpha1JobTemplateSpec; + /** + * The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron. + */ + 'schedule': string; + /** + * Optional deadline in seconds for starting the job if it misses scheduled time for any reason. Missed jobs executions will be counted as failed ones. + */ + 'startingDeadlineSeconds': number; + /** + * The number of successful finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified. + */ + 'successfulJobsHistoryLimit': number; + /** + * This flag tells the controller to suspend subsequent executions, it does not apply to already started executions. Defaults to false. + */ + 'suspend': boolean; +} + +/** +* CronJobStatus represents the current state of a cron job. +*/ +export class V2alpha1CronJobStatus { + /** + * A list of pointers to currently running jobs. + */ + 'active': Array; + /** + * Information when was the last time the job was successfully scheduled. + */ + 'lastScheduleTime': Date; +} + +/** +* JobTemplateSpec describes the data a Job should have when created from a template +*/ +export class V2alpha1JobTemplateSpec { + /** + * Standard object's metadata of the jobs created from this template. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + */ + 'metadata': V1ObjectMeta; + /** + * Specification of the desired behavior of the job. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status + */ + 'spec': V1JobSpec; +} + +/** +* CrossVersionObjectReference contains enough information to let you identify the referred resource. +*/ +export class V2beta1CrossVersionObjectReference { + /** + * API version of the referent + */ + 'apiVersion': string; + /** + * Kind of the referent; More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds\" + */ + 'kind': string; + /** + * Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names + */ + 'name': string; +} + +/** +* HorizontalPodAutoscaler is the configuration for a horizontal pod autoscaler, which automatically manages the replica count of any resource implementing the scale subresource based on the metrics specified. +*/ +export class V2beta1HorizontalPodAutoscaler { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + */ + 'apiVersion': string; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'kind': string; + /** + * metadata is the standard object metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + */ + 'metadata': V1ObjectMeta; + /** + * spec is the specification for the behaviour of the autoscaler. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status. + */ + 'spec': V2beta1HorizontalPodAutoscalerSpec; + /** + * status is the current information about the autoscaler. + */ + 'status': V2beta1HorizontalPodAutoscalerStatus; +} + +/** +* HorizontalPodAutoscalerCondition describes the state of a HorizontalPodAutoscaler at a certain point. +*/ +export class V2beta1HorizontalPodAutoscalerCondition { + /** + * lastTransitionTime is the last time the condition transitioned from one status to another + */ + 'lastTransitionTime': Date; + /** + * message is a human-readable explanation containing details about the transition + */ + 'message': string; + /** + * reason is the reason for the condition's last transition. + */ + 'reason': string; + /** + * status is the status of the condition (True, False, Unknown) + */ + 'status': string; + /** + * type describes the current condition + */ + 'type': string; +} + +/** +* HorizontalPodAutoscaler is a list of horizontal pod autoscaler objects. +*/ +export class V2beta1HorizontalPodAutoscalerList { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + */ + 'apiVersion': string; + /** + * items is the list of horizontal pod autoscaler objects. + */ + 'items': Array; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + */ + 'kind': string; + /** + * metadata is the standard list metadata. + */ + 'metadata': V1ListMeta; +} + +/** +* HorizontalPodAutoscalerSpec describes the desired functionality of the HorizontalPodAutoscaler. +*/ +export class V2beta1HorizontalPodAutoscalerSpec { + /** + * maxReplicas is the upper limit for the number of replicas to which the autoscaler can scale up. It cannot be less that minReplicas. + */ + 'maxReplicas': number; + /** + * metrics contains the specifications for which to use to calculate the desired replica count (the maximum replica count across all metrics will be used). The desired replica count is calculated multiplying the ratio between the target value and the current value by the current number of pods. Ergo, metrics used must decrease as the pod count is increased, and vice-versa. See the individual metric source types for more information about how each type of metric must respond. + */ + 'metrics': Array; + /** + * minReplicas is the lower limit for the number of replicas to which the autoscaler can scale down. It defaults to 1 pod. + */ + 'minReplicas': number; + /** + * scaleTargetRef points to the target resource to scale, and is used to the pods for which metrics should be collected, as well as to actually change the replica count. + */ + 'scaleTargetRef': V2beta1CrossVersionObjectReference; +} + +/** +* HorizontalPodAutoscalerStatus describes the current status of a horizontal pod autoscaler. +*/ +export class V2beta1HorizontalPodAutoscalerStatus { + /** + * conditions is the set of conditions required for this autoscaler to scale its target, and indicates whether or not those conditions are met. + */ + 'conditions': Array; + /** + * currentMetrics is the last read state of the metrics used by this autoscaler. + */ + 'currentMetrics': Array; + /** + * currentReplicas is current number of replicas of pods managed by this autoscaler, as last seen by the autoscaler. + */ + 'currentReplicas': number; + /** + * desiredReplicas is the desired number of replicas of pods managed by this autoscaler, as last calculated by the autoscaler. + */ + 'desiredReplicas': number; + /** + * lastScaleTime is the last time the HorizontalPodAutoscaler scaled the number of pods, used by the autoscaler to control how often the number of pods is changed. + */ + 'lastScaleTime': Date; + /** + * observedGeneration is the most recent generation observed by this autoscaler. + */ + 'observedGeneration': number; +} + +/** +* MetricSpec specifies how to scale based on a single metric (only `type` and one other matching field should be set at once). +*/ +export class V2beta1MetricSpec { + /** + * object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object). + */ + 'object': V2beta1ObjectMetricSource; + /** + * pods refers to a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value. + */ + 'pods': V2beta1PodsMetricSource; + /** + * resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source. + */ + 'resource': V2beta1ResourceMetricSource; + /** + * type is the type of metric source. It should match one of the fields below. + */ + 'type': string; +} + +/** +* MetricStatus describes the last-read state of a single metric. +*/ +export class V2beta1MetricStatus { + /** + * object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object). + */ + 'object': V2beta1ObjectMetricStatus; + /** + * pods refers to a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value. + */ + 'pods': V2beta1PodsMetricStatus; + /** + * resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source. + */ + 'resource': V2beta1ResourceMetricStatus; + /** + * type is the type of metric source. It will match one of the fields below. + */ + 'type': string; +} + +/** +* ObjectMetricSource indicates how to scale on a metric describing a kubernetes object (for example, hits-per-second on an Ingress object). +*/ +export class V2beta1ObjectMetricSource { + /** + * metricName is the name of the metric in question. + */ + 'metricName': string; + /** + * target is the described Kubernetes object. + */ + 'target': V2beta1CrossVersionObjectReference; + /** + * targetValue is the target value of the metric (as a quantity). + */ + 'targetValue': string; +} + +/** +* ObjectMetricStatus indicates the current value of a metric describing a kubernetes object (for example, hits-per-second on an Ingress object). +*/ +export class V2beta1ObjectMetricStatus { + /** + * currentValue is the current value of the metric (as a quantity). + */ + 'currentValue': string; + /** + * metricName is the name of the metric in question. + */ + 'metricName': string; + /** + * target is the described Kubernetes object. + */ + 'target': V2beta1CrossVersionObjectReference; +} + +/** +* PodsMetricSource indicates how to scale on a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value. +*/ +export class V2beta1PodsMetricSource { + /** + * metricName is the name of the metric in question + */ + 'metricName': string; + /** + * targetAverageValue is the target value of the average of the metric across all relevant pods (as a quantity) + */ + 'targetAverageValue': string; +} + +/** +* PodsMetricStatus indicates the current value of a metric describing each pod in the current scale target (for example, transactions-processed-per-second). +*/ +export class V2beta1PodsMetricStatus { + /** + * currentAverageValue is the current value of the average of the metric across all relevant pods (as a quantity) + */ + 'currentAverageValue': string; + /** + * metricName is the name of the metric in question + */ + 'metricName': string; +} + +/** +* ResourceMetricSource indicates how to scale on a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). The values will be averaged together before being compared to the target. Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source. Only one \"target\" type should be set. +*/ +export class V2beta1ResourceMetricSource { + /** + * name is the name of the resource in question. + */ + 'name': string; + /** + * targetAverageUtilization is the target value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. + */ + 'targetAverageUtilization': number; + /** + * targetAverageValue is the target value of the average of the resource metric across all relevant pods, as a raw value (instead of as a percentage of the request), similar to the \"pods\" metric source type. + */ + 'targetAverageValue': string; +} + +/** +* ResourceMetricStatus indicates the current value of a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source. +*/ +export class V2beta1ResourceMetricStatus { + /** + * currentAverageUtilization is the current value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. It will only be present if `targetAverageValue` was set in the corresponding metric specification. + */ + 'currentAverageUtilization': number; + /** + * currentAverageValue is the current value of the average of the resource metric across all relevant pods, as a raw value (instead of as a percentage of the request), similar to the \"pods\" metric source type. It will always be set, regardless of the corresponding metric specification. + */ + 'currentAverageValue': string; + /** + * name is the name of the resource in question. + */ + 'name': string; +} + +/** +* Info contains versioning information. how we'll want to distribute that information. +*/ +export class VersionInfo { + 'buildDate': string; + 'compiler': string; + 'gitCommit': string; + 'gitTreeState': string; + 'gitVersion': string; + 'goVersion': string; + 'major': string; + 'minor': string; + 'platform': string; +} + + +export interface Authentication { + /** + * Apply authentication settings to header and query params. + */ + applyToRequest(requestOptions: request.Options): void; +} + +export class HttpBasicAuth implements Authentication { + public username: string; + public password: string; + applyToRequest(requestOptions: request.Options): void { + requestOptions.auth = { + username: this.username, password: this.password + } + } +} + +export class ApiKeyAuth implements Authentication { + public apiKey: string; + + constructor(private location: string, private paramName: string) { + } + + applyToRequest(requestOptions: request.Options): void { + if (this.location == "query") { + (requestOptions.qs)[this.paramName] = this.apiKey; + } else if (this.location == "header" && requestOptions && requestOptions.headers) { + requestOptions.headers[this.paramName] = this.apiKey; + } + } +} + +export class OAuth implements Authentication { + public accessToken: string; + + applyToRequest(requestOptions: request.Options): void { + if (requestOptions && requestOptions.headers) { + requestOptions.headers["Authorization"] = "Bearer " + this.accessToken; + } + } +} + +export class VoidAuth implements Authentication { + public username: string; + public password: string; + applyToRequest(_: request.Options): void { + // Do nothing + } +} + +export enum AdmissionregistrationApiApiKeys { + BearerToken, +} + +export class AdmissionregistrationApi { + protected _basePath = defaultBasePath; + protected defaultHeaders : any = {}; + protected _useQuerystring : boolean = false; + + protected authentications = { + 'default': new VoidAuth(), + 'BearerToken': new ApiKeyAuth('header', 'authorization'), + } + + constructor(basePath?: string); + constructor(basePathOrUsername: string, password?: string, basePath?: string) { + if (password) { + if (basePath) { + this.basePath = basePath; + } + } else { + if (basePathOrUsername) { + this.basePath = basePathOrUsername + } + } + } + + set useQuerystring(value: boolean) { + this._useQuerystring = value; + } + + set basePath(basePath: string) { + this._basePath = basePath; + } + + get basePath() { + return this._basePath; + } + + public setDefaultAuthentication(auth: Authentication) { + this.authentications.default = auth; + } + + public setApiKey(key: AdmissionregistrationApiApiKeys, value: string) { + this.authentications[AdmissionregistrationApiApiKeys[key]].apiKey = value; + } + /** + * get information of a group + */ + public getAPIGroup () : Promise<{ response: http.ClientResponse; body: V1APIGroup; }> { + const localVarPath = this.basePath + '/apis/admissionregistration.k8s.io/'; + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1APIGroup; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } +} +export enum Admissionregistration_v1alpha1ApiApiKeys { + BearerToken, +} + +export class Admissionregistration_v1alpha1Api { + protected _basePath = defaultBasePath; + protected defaultHeaders : any = {}; + protected _useQuerystring : boolean = false; + + protected authentications = { + 'default': new VoidAuth(), + 'BearerToken': new ApiKeyAuth('header', 'authorization'), + } + + constructor(basePath?: string); + constructor(basePathOrUsername: string, password?: string, basePath?: string) { + if (password) { + if (basePath) { + this.basePath = basePath; + } + } else { + if (basePathOrUsername) { + this.basePath = basePathOrUsername + } + } + } + + set useQuerystring(value: boolean) { + this._useQuerystring = value; + } + + set basePath(basePath: string) { + this._basePath = basePath; + } + + get basePath() { + return this._basePath; + } + + public setDefaultAuthentication(auth: Authentication) { + this.authentications.default = auth; + } + + public setApiKey(key: Admissionregistration_v1alpha1ApiApiKeys, value: string) { + this.authentications[Admissionregistration_v1alpha1ApiApiKeys[key]].apiKey = value; + } + /** + * create an ExternalAdmissionHookConfiguration + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public createExternalAdmissionHookConfiguration (body: V1alpha1ExternalAdmissionHookConfiguration, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1alpha1ExternalAdmissionHookConfiguration; }> { + const localVarPath = this.basePath + '/apis/admissionregistration.k8s.io/v1alpha1/externaladmissionhookconfigurations'; + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling createExternalAdmissionHookConfiguration.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'POST', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1alpha1ExternalAdmissionHookConfiguration; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * create an InitializerConfiguration + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public createInitializerConfiguration (body: V1alpha1InitializerConfiguration, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1alpha1InitializerConfiguration; }> { + const localVarPath = this.basePath + '/apis/admissionregistration.k8s.io/v1alpha1/initializerconfigurations'; + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling createInitializerConfiguration.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'POST', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1alpha1InitializerConfiguration; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * delete collection of ExternalAdmissionHookConfiguration + * @param pretty If 'true', then the output is pretty printed. + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param includeUninitialized If true, partially initialized resources are included in the response. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + * @param timeoutSeconds Timeout for the list/watch call. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public deleteCollectionExternalAdmissionHookConfiguration (pretty?: string, _continue?: string, fieldSelector?: string, includeUninitialized?: boolean, labelSelector?: string, limit?: number, resourceVersion?: string, timeoutSeconds?: number, watch?: boolean) : Promise<{ response: http.ClientResponse; body: V1Status; }> { + const localVarPath = this.basePath + '/apis/admissionregistration.k8s.io/v1alpha1/externaladmissionhookconfigurations'; + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (_continue !== undefined) { + queryParameters['continue'] = _continue; + } + + if (fieldSelector !== undefined) { + queryParameters['fieldSelector'] = fieldSelector; + } + + if (includeUninitialized !== undefined) { + queryParameters['includeUninitialized'] = includeUninitialized; + } + + if (labelSelector !== undefined) { + queryParameters['labelSelector'] = labelSelector; + } + + if (limit !== undefined) { + queryParameters['limit'] = limit; + } + + if (resourceVersion !== undefined) { + queryParameters['resourceVersion'] = resourceVersion; + } + + if (timeoutSeconds !== undefined) { + queryParameters['timeoutSeconds'] = timeoutSeconds; + } + + if (watch !== undefined) { + queryParameters['watch'] = watch; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'DELETE', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Status; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * delete collection of InitializerConfiguration + * @param pretty If 'true', then the output is pretty printed. + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param includeUninitialized If true, partially initialized resources are included in the response. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + * @param timeoutSeconds Timeout for the list/watch call. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public deleteCollectionInitializerConfiguration (pretty?: string, _continue?: string, fieldSelector?: string, includeUninitialized?: boolean, labelSelector?: string, limit?: number, resourceVersion?: string, timeoutSeconds?: number, watch?: boolean) : Promise<{ response: http.ClientResponse; body: V1Status; }> { + const localVarPath = this.basePath + '/apis/admissionregistration.k8s.io/v1alpha1/initializerconfigurations'; + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (_continue !== undefined) { + queryParameters['continue'] = _continue; + } + + if (fieldSelector !== undefined) { + queryParameters['fieldSelector'] = fieldSelector; + } + + if (includeUninitialized !== undefined) { + queryParameters['includeUninitialized'] = includeUninitialized; + } + + if (labelSelector !== undefined) { + queryParameters['labelSelector'] = labelSelector; + } + + if (limit !== undefined) { + queryParameters['limit'] = limit; + } + + if (resourceVersion !== undefined) { + queryParameters['resourceVersion'] = resourceVersion; + } + + if (timeoutSeconds !== undefined) { + queryParameters['timeoutSeconds'] = timeoutSeconds; + } + + if (watch !== undefined) { + queryParameters['watch'] = watch; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'DELETE', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Status; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * delete an ExternalAdmissionHookConfiguration + * @param name name of the ExternalAdmissionHookConfiguration + * @param body + * @param pretty If 'true', then the output is pretty printed. + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. + */ + public deleteExternalAdmissionHookConfiguration (name: string, body: V1DeleteOptions, pretty?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string) : Promise<{ response: http.ClientResponse; body: V1Status; }> { + const localVarPath = this.basePath + '/apis/admissionregistration.k8s.io/v1alpha1/externaladmissionhookconfigurations/{name}' + .replace('{' + 'name' + '}', String(name)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling deleteExternalAdmissionHookConfiguration.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling deleteExternalAdmissionHookConfiguration.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (gracePeriodSeconds !== undefined) { + queryParameters['gracePeriodSeconds'] = gracePeriodSeconds; + } + + if (orphanDependents !== undefined) { + queryParameters['orphanDependents'] = orphanDependents; + } + + if (propagationPolicy !== undefined) { + queryParameters['propagationPolicy'] = propagationPolicy; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'DELETE', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Status; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * delete an InitializerConfiguration + * @param name name of the InitializerConfiguration + * @param body + * @param pretty If 'true', then the output is pretty printed. + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. + */ + public deleteInitializerConfiguration (name: string, body: V1DeleteOptions, pretty?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string) : Promise<{ response: http.ClientResponse; body: V1Status; }> { + const localVarPath = this.basePath + '/apis/admissionregistration.k8s.io/v1alpha1/initializerconfigurations/{name}' + .replace('{' + 'name' + '}', String(name)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling deleteInitializerConfiguration.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling deleteInitializerConfiguration.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (gracePeriodSeconds !== undefined) { + queryParameters['gracePeriodSeconds'] = gracePeriodSeconds; + } + + if (orphanDependents !== undefined) { + queryParameters['orphanDependents'] = orphanDependents; + } + + if (propagationPolicy !== undefined) { + queryParameters['propagationPolicy'] = propagationPolicy; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'DELETE', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Status; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * get available resources + */ + public getAPIResources () : Promise<{ response: http.ClientResponse; body: V1APIResourceList; }> { + const localVarPath = this.basePath + '/apis/admissionregistration.k8s.io/v1alpha1/'; + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1APIResourceList; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * list or watch objects of kind ExternalAdmissionHookConfiguration + * @param pretty If 'true', then the output is pretty printed. + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param includeUninitialized If true, partially initialized resources are included in the response. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + * @param timeoutSeconds Timeout for the list/watch call. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public listExternalAdmissionHookConfiguration (pretty?: string, _continue?: string, fieldSelector?: string, includeUninitialized?: boolean, labelSelector?: string, limit?: number, resourceVersion?: string, timeoutSeconds?: number, watch?: boolean) : Promise<{ response: http.ClientResponse; body: V1alpha1ExternalAdmissionHookConfigurationList; }> { + const localVarPath = this.basePath + '/apis/admissionregistration.k8s.io/v1alpha1/externaladmissionhookconfigurations'; + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (_continue !== undefined) { + queryParameters['continue'] = _continue; + } + + if (fieldSelector !== undefined) { + queryParameters['fieldSelector'] = fieldSelector; + } + + if (includeUninitialized !== undefined) { + queryParameters['includeUninitialized'] = includeUninitialized; + } + + if (labelSelector !== undefined) { + queryParameters['labelSelector'] = labelSelector; + } + + if (limit !== undefined) { + queryParameters['limit'] = limit; + } + + if (resourceVersion !== undefined) { + queryParameters['resourceVersion'] = resourceVersion; + } + + if (timeoutSeconds !== undefined) { + queryParameters['timeoutSeconds'] = timeoutSeconds; + } + + if (watch !== undefined) { + queryParameters['watch'] = watch; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1alpha1ExternalAdmissionHookConfigurationList; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * list or watch objects of kind InitializerConfiguration + * @param pretty If 'true', then the output is pretty printed. + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param includeUninitialized If true, partially initialized resources are included in the response. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + * @param timeoutSeconds Timeout for the list/watch call. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public listInitializerConfiguration (pretty?: string, _continue?: string, fieldSelector?: string, includeUninitialized?: boolean, labelSelector?: string, limit?: number, resourceVersion?: string, timeoutSeconds?: number, watch?: boolean) : Promise<{ response: http.ClientResponse; body: V1alpha1InitializerConfigurationList; }> { + const localVarPath = this.basePath + '/apis/admissionregistration.k8s.io/v1alpha1/initializerconfigurations'; + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (_continue !== undefined) { + queryParameters['continue'] = _continue; + } + + if (fieldSelector !== undefined) { + queryParameters['fieldSelector'] = fieldSelector; + } + + if (includeUninitialized !== undefined) { + queryParameters['includeUninitialized'] = includeUninitialized; + } + + if (labelSelector !== undefined) { + queryParameters['labelSelector'] = labelSelector; + } + + if (limit !== undefined) { + queryParameters['limit'] = limit; + } + + if (resourceVersion !== undefined) { + queryParameters['resourceVersion'] = resourceVersion; + } + + if (timeoutSeconds !== undefined) { + queryParameters['timeoutSeconds'] = timeoutSeconds; + } + + if (watch !== undefined) { + queryParameters['watch'] = watch; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1alpha1InitializerConfigurationList; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * partially update the specified ExternalAdmissionHookConfiguration + * @param name name of the ExternalAdmissionHookConfiguration + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public patchExternalAdmissionHookConfiguration (name: string, body: any, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1alpha1ExternalAdmissionHookConfiguration; }> { + const localVarPath = this.basePath + '/apis/admissionregistration.k8s.io/v1alpha1/externaladmissionhookconfigurations/{name}' + .replace('{' + 'name' + '}', String(name)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling patchExternalAdmissionHookConfiguration.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling patchExternalAdmissionHookConfiguration.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PATCH', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1alpha1ExternalAdmissionHookConfiguration; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * partially update the specified InitializerConfiguration + * @param name name of the InitializerConfiguration + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public patchInitializerConfiguration (name: string, body: any, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1alpha1InitializerConfiguration; }> { + const localVarPath = this.basePath + '/apis/admissionregistration.k8s.io/v1alpha1/initializerconfigurations/{name}' + .replace('{' + 'name' + '}', String(name)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling patchInitializerConfiguration.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling patchInitializerConfiguration.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PATCH', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1alpha1InitializerConfiguration; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * read the specified ExternalAdmissionHookConfiguration + * @param name name of the ExternalAdmissionHookConfiguration + * @param pretty If 'true', then the output is pretty printed. + * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + * @param _export Should this value be exported. Export strips fields that a user can not specify. + */ + public readExternalAdmissionHookConfiguration (name: string, pretty?: string, exact?: boolean, _export?: boolean) : Promise<{ response: http.ClientResponse; body: V1alpha1ExternalAdmissionHookConfiguration; }> { + const localVarPath = this.basePath + '/apis/admissionregistration.k8s.io/v1alpha1/externaladmissionhookconfigurations/{name}' + .replace('{' + 'name' + '}', String(name)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling readExternalAdmissionHookConfiguration.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (exact !== undefined) { + queryParameters['exact'] = exact; + } + + if (_export !== undefined) { + queryParameters['export'] = _export; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1alpha1ExternalAdmissionHookConfiguration; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * read the specified InitializerConfiguration + * @param name name of the InitializerConfiguration + * @param pretty If 'true', then the output is pretty printed. + * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + * @param _export Should this value be exported. Export strips fields that a user can not specify. + */ + public readInitializerConfiguration (name: string, pretty?: string, exact?: boolean, _export?: boolean) : Promise<{ response: http.ClientResponse; body: V1alpha1InitializerConfiguration; }> { + const localVarPath = this.basePath + '/apis/admissionregistration.k8s.io/v1alpha1/initializerconfigurations/{name}' + .replace('{' + 'name' + '}', String(name)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling readInitializerConfiguration.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (exact !== undefined) { + queryParameters['exact'] = exact; + } + + if (_export !== undefined) { + queryParameters['export'] = _export; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1alpha1InitializerConfiguration; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * replace the specified ExternalAdmissionHookConfiguration + * @param name name of the ExternalAdmissionHookConfiguration + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public replaceExternalAdmissionHookConfiguration (name: string, body: V1alpha1ExternalAdmissionHookConfiguration, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1alpha1ExternalAdmissionHookConfiguration; }> { + const localVarPath = this.basePath + '/apis/admissionregistration.k8s.io/v1alpha1/externaladmissionhookconfigurations/{name}' + .replace('{' + 'name' + '}', String(name)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling replaceExternalAdmissionHookConfiguration.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling replaceExternalAdmissionHookConfiguration.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PUT', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1alpha1ExternalAdmissionHookConfiguration; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * replace the specified InitializerConfiguration + * @param name name of the InitializerConfiguration + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public replaceInitializerConfiguration (name: string, body: V1alpha1InitializerConfiguration, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1alpha1InitializerConfiguration; }> { + const localVarPath = this.basePath + '/apis/admissionregistration.k8s.io/v1alpha1/initializerconfigurations/{name}' + .replace('{' + 'name' + '}', String(name)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling replaceInitializerConfiguration.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling replaceInitializerConfiguration.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PUT', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1alpha1InitializerConfiguration; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } +} +export enum ApiextensionsApiApiKeys { + BearerToken, +} + +export class ApiextensionsApi { + protected _basePath = defaultBasePath; + protected defaultHeaders : any = {}; + protected _useQuerystring : boolean = false; + + protected authentications = { + 'default': new VoidAuth(), + 'BearerToken': new ApiKeyAuth('header', 'authorization'), + } + + constructor(basePath?: string); + constructor(basePathOrUsername: string, password?: string, basePath?: string) { + if (password) { + if (basePath) { + this.basePath = basePath; + } + } else { + if (basePathOrUsername) { + this.basePath = basePathOrUsername + } + } + } + + set useQuerystring(value: boolean) { + this._useQuerystring = value; + } + + set basePath(basePath: string) { + this._basePath = basePath; + } + + get basePath() { + return this._basePath; + } + + public setDefaultAuthentication(auth: Authentication) { + this.authentications.default = auth; + } + + public setApiKey(key: ApiextensionsApiApiKeys, value: string) { + this.authentications[ApiextensionsApiApiKeys[key]].apiKey = value; + } + /** + * get information of a group + */ + public getAPIGroup () : Promise<{ response: http.ClientResponse; body: V1APIGroup; }> { + const localVarPath = this.basePath + '/apis/apiextensions.k8s.io/'; + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1APIGroup; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } +} +export enum Apiextensions_v1beta1ApiApiKeys { + BearerToken, +} + +export class Apiextensions_v1beta1Api { + protected _basePath = defaultBasePath; + protected defaultHeaders : any = {}; + protected _useQuerystring : boolean = false; + + protected authentications = { + 'default': new VoidAuth(), + 'BearerToken': new ApiKeyAuth('header', 'authorization'), + } + + constructor(basePath?: string); + constructor(basePathOrUsername: string, password?: string, basePath?: string) { + if (password) { + if (basePath) { + this.basePath = basePath; + } + } else { + if (basePathOrUsername) { + this.basePath = basePathOrUsername + } + } + } + + set useQuerystring(value: boolean) { + this._useQuerystring = value; + } + + set basePath(basePath: string) { + this._basePath = basePath; + } + + get basePath() { + return this._basePath; + } + + public setDefaultAuthentication(auth: Authentication) { + this.authentications.default = auth; + } + + public setApiKey(key: Apiextensions_v1beta1ApiApiKeys, value: string) { + this.authentications[Apiextensions_v1beta1ApiApiKeys[key]].apiKey = value; + } + /** + * create a CustomResourceDefinition + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public createCustomResourceDefinition (body: V1beta1CustomResourceDefinition, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1beta1CustomResourceDefinition; }> { + const localVarPath = this.basePath + '/apis/apiextensions.k8s.io/v1beta1/customresourcedefinitions'; + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling createCustomResourceDefinition.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'POST', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta1CustomResourceDefinition; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * delete collection of CustomResourceDefinition + * @param pretty If 'true', then the output is pretty printed. + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param includeUninitialized If true, partially initialized resources are included in the response. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + * @param timeoutSeconds Timeout for the list/watch call. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public deleteCollectionCustomResourceDefinition (pretty?: string, _continue?: string, fieldSelector?: string, includeUninitialized?: boolean, labelSelector?: string, limit?: number, resourceVersion?: string, timeoutSeconds?: number, watch?: boolean) : Promise<{ response: http.ClientResponse; body: V1Status; }> { + const localVarPath = this.basePath + '/apis/apiextensions.k8s.io/v1beta1/customresourcedefinitions'; + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (_continue !== undefined) { + queryParameters['continue'] = _continue; + } + + if (fieldSelector !== undefined) { + queryParameters['fieldSelector'] = fieldSelector; + } + + if (includeUninitialized !== undefined) { + queryParameters['includeUninitialized'] = includeUninitialized; + } + + if (labelSelector !== undefined) { + queryParameters['labelSelector'] = labelSelector; + } + + if (limit !== undefined) { + queryParameters['limit'] = limit; + } + + if (resourceVersion !== undefined) { + queryParameters['resourceVersion'] = resourceVersion; + } + + if (timeoutSeconds !== undefined) { + queryParameters['timeoutSeconds'] = timeoutSeconds; + } + + if (watch !== undefined) { + queryParameters['watch'] = watch; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'DELETE', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Status; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * delete a CustomResourceDefinition + * @param name name of the CustomResourceDefinition + * @param body + * @param pretty If 'true', then the output is pretty printed. + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. + */ + public deleteCustomResourceDefinition (name: string, body: V1DeleteOptions, pretty?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string) : Promise<{ response: http.ClientResponse; body: V1Status; }> { + const localVarPath = this.basePath + '/apis/apiextensions.k8s.io/v1beta1/customresourcedefinitions/{name}' + .replace('{' + 'name' + '}', String(name)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling deleteCustomResourceDefinition.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling deleteCustomResourceDefinition.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (gracePeriodSeconds !== undefined) { + queryParameters['gracePeriodSeconds'] = gracePeriodSeconds; + } + + if (orphanDependents !== undefined) { + queryParameters['orphanDependents'] = orphanDependents; + } + + if (propagationPolicy !== undefined) { + queryParameters['propagationPolicy'] = propagationPolicy; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'DELETE', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Status; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * get available resources + */ + public getAPIResources () : Promise<{ response: http.ClientResponse; body: V1APIResourceList; }> { + const localVarPath = this.basePath + '/apis/apiextensions.k8s.io/v1beta1/'; + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1APIResourceList; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * list or watch objects of kind CustomResourceDefinition + * @param pretty If 'true', then the output is pretty printed. + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param includeUninitialized If true, partially initialized resources are included in the response. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + * @param timeoutSeconds Timeout for the list/watch call. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public listCustomResourceDefinition (pretty?: string, _continue?: string, fieldSelector?: string, includeUninitialized?: boolean, labelSelector?: string, limit?: number, resourceVersion?: string, timeoutSeconds?: number, watch?: boolean) : Promise<{ response: http.ClientResponse; body: V1beta1CustomResourceDefinitionList; }> { + const localVarPath = this.basePath + '/apis/apiextensions.k8s.io/v1beta1/customresourcedefinitions'; + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (_continue !== undefined) { + queryParameters['continue'] = _continue; + } + + if (fieldSelector !== undefined) { + queryParameters['fieldSelector'] = fieldSelector; + } + + if (includeUninitialized !== undefined) { + queryParameters['includeUninitialized'] = includeUninitialized; + } + + if (labelSelector !== undefined) { + queryParameters['labelSelector'] = labelSelector; + } + + if (limit !== undefined) { + queryParameters['limit'] = limit; + } + + if (resourceVersion !== undefined) { + queryParameters['resourceVersion'] = resourceVersion; + } + + if (timeoutSeconds !== undefined) { + queryParameters['timeoutSeconds'] = timeoutSeconds; + } + + if (watch !== undefined) { + queryParameters['watch'] = watch; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta1CustomResourceDefinitionList; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * partially update the specified CustomResourceDefinition + * @param name name of the CustomResourceDefinition + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public patchCustomResourceDefinition (name: string, body: any, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1beta1CustomResourceDefinition; }> { + const localVarPath = this.basePath + '/apis/apiextensions.k8s.io/v1beta1/customresourcedefinitions/{name}' + .replace('{' + 'name' + '}', String(name)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling patchCustomResourceDefinition.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling patchCustomResourceDefinition.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PATCH', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta1CustomResourceDefinition; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * read the specified CustomResourceDefinition + * @param name name of the CustomResourceDefinition + * @param pretty If 'true', then the output is pretty printed. + * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + * @param _export Should this value be exported. Export strips fields that a user can not specify. + */ + public readCustomResourceDefinition (name: string, pretty?: string, exact?: boolean, _export?: boolean) : Promise<{ response: http.ClientResponse; body: V1beta1CustomResourceDefinition; }> { + const localVarPath = this.basePath + '/apis/apiextensions.k8s.io/v1beta1/customresourcedefinitions/{name}' + .replace('{' + 'name' + '}', String(name)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling readCustomResourceDefinition.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (exact !== undefined) { + queryParameters['exact'] = exact; + } + + if (_export !== undefined) { + queryParameters['export'] = _export; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta1CustomResourceDefinition; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * replace the specified CustomResourceDefinition + * @param name name of the CustomResourceDefinition + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public replaceCustomResourceDefinition (name: string, body: V1beta1CustomResourceDefinition, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1beta1CustomResourceDefinition; }> { + const localVarPath = this.basePath + '/apis/apiextensions.k8s.io/v1beta1/customresourcedefinitions/{name}' + .replace('{' + 'name' + '}', String(name)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling replaceCustomResourceDefinition.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling replaceCustomResourceDefinition.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PUT', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta1CustomResourceDefinition; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * replace status of the specified CustomResourceDefinition + * @param name name of the CustomResourceDefinition + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public replaceCustomResourceDefinitionStatus (name: string, body: V1beta1CustomResourceDefinition, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1beta1CustomResourceDefinition; }> { + const localVarPath = this.basePath + '/apis/apiextensions.k8s.io/v1beta1/customresourcedefinitions/{name}/status' + .replace('{' + 'name' + '}', String(name)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling replaceCustomResourceDefinitionStatus.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling replaceCustomResourceDefinitionStatus.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PUT', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta1CustomResourceDefinition; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } +} +export enum ApiregistrationApiApiKeys { + BearerToken, +} + +export class ApiregistrationApi { + protected _basePath = defaultBasePath; + protected defaultHeaders : any = {}; + protected _useQuerystring : boolean = false; + + protected authentications = { + 'default': new VoidAuth(), + 'BearerToken': new ApiKeyAuth('header', 'authorization'), + } + + constructor(basePath?: string); + constructor(basePathOrUsername: string, password?: string, basePath?: string) { + if (password) { + if (basePath) { + this.basePath = basePath; + } + } else { + if (basePathOrUsername) { + this.basePath = basePathOrUsername + } + } + } + + set useQuerystring(value: boolean) { + this._useQuerystring = value; + } + + set basePath(basePath: string) { + this._basePath = basePath; + } + + get basePath() { + return this._basePath; + } + + public setDefaultAuthentication(auth: Authentication) { + this.authentications.default = auth; + } + + public setApiKey(key: ApiregistrationApiApiKeys, value: string) { + this.authentications[ApiregistrationApiApiKeys[key]].apiKey = value; + } + /** + * get information of a group + */ + public getAPIGroup () : Promise<{ response: http.ClientResponse; body: V1APIGroup; }> { + const localVarPath = this.basePath + '/apis/apiregistration.k8s.io/'; + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1APIGroup; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } +} +export enum Apiregistration_v1beta1ApiApiKeys { + BearerToken, +} + +export class Apiregistration_v1beta1Api { + protected _basePath = defaultBasePath; + protected defaultHeaders : any = {}; + protected _useQuerystring : boolean = false; + + protected authentications = { + 'default': new VoidAuth(), + 'BearerToken': new ApiKeyAuth('header', 'authorization'), + } + + constructor(basePath?: string); + constructor(basePathOrUsername: string, password?: string, basePath?: string) { + if (password) { + if (basePath) { + this.basePath = basePath; + } + } else { + if (basePathOrUsername) { + this.basePath = basePathOrUsername + } + } + } + + set useQuerystring(value: boolean) { + this._useQuerystring = value; + } + + set basePath(basePath: string) { + this._basePath = basePath; + } + + get basePath() { + return this._basePath; + } + + public setDefaultAuthentication(auth: Authentication) { + this.authentications.default = auth; + } + + public setApiKey(key: Apiregistration_v1beta1ApiApiKeys, value: string) { + this.authentications[Apiregistration_v1beta1ApiApiKeys[key]].apiKey = value; + } + /** + * create an APIService + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public createAPIService (body: V1beta1APIService, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1beta1APIService; }> { + const localVarPath = this.basePath + '/apis/apiregistration.k8s.io/v1beta1/apiservices'; + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling createAPIService.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'POST', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta1APIService; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * delete an APIService + * @param name name of the APIService + * @param body + * @param pretty If 'true', then the output is pretty printed. + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. + */ + public deleteAPIService (name: string, body: V1DeleteOptions, pretty?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string) : Promise<{ response: http.ClientResponse; body: V1Status; }> { + const localVarPath = this.basePath + '/apis/apiregistration.k8s.io/v1beta1/apiservices/{name}' + .replace('{' + 'name' + '}', String(name)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling deleteAPIService.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling deleteAPIService.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (gracePeriodSeconds !== undefined) { + queryParameters['gracePeriodSeconds'] = gracePeriodSeconds; + } + + if (orphanDependents !== undefined) { + queryParameters['orphanDependents'] = orphanDependents; + } + + if (propagationPolicy !== undefined) { + queryParameters['propagationPolicy'] = propagationPolicy; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'DELETE', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Status; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * delete collection of APIService + * @param pretty If 'true', then the output is pretty printed. + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param includeUninitialized If true, partially initialized resources are included in the response. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + * @param timeoutSeconds Timeout for the list/watch call. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public deleteCollectionAPIService (pretty?: string, _continue?: string, fieldSelector?: string, includeUninitialized?: boolean, labelSelector?: string, limit?: number, resourceVersion?: string, timeoutSeconds?: number, watch?: boolean) : Promise<{ response: http.ClientResponse; body: V1Status; }> { + const localVarPath = this.basePath + '/apis/apiregistration.k8s.io/v1beta1/apiservices'; + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (_continue !== undefined) { + queryParameters['continue'] = _continue; + } + + if (fieldSelector !== undefined) { + queryParameters['fieldSelector'] = fieldSelector; + } + + if (includeUninitialized !== undefined) { + queryParameters['includeUninitialized'] = includeUninitialized; + } + + if (labelSelector !== undefined) { + queryParameters['labelSelector'] = labelSelector; + } + + if (limit !== undefined) { + queryParameters['limit'] = limit; + } + + if (resourceVersion !== undefined) { + queryParameters['resourceVersion'] = resourceVersion; + } + + if (timeoutSeconds !== undefined) { + queryParameters['timeoutSeconds'] = timeoutSeconds; + } + + if (watch !== undefined) { + queryParameters['watch'] = watch; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'DELETE', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Status; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * get available resources + */ + public getAPIResources () : Promise<{ response: http.ClientResponse; body: V1APIResourceList; }> { + const localVarPath = this.basePath + '/apis/apiregistration.k8s.io/v1beta1/'; + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1APIResourceList; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * list or watch objects of kind APIService + * @param pretty If 'true', then the output is pretty printed. + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param includeUninitialized If true, partially initialized resources are included in the response. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + * @param timeoutSeconds Timeout for the list/watch call. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public listAPIService (pretty?: string, _continue?: string, fieldSelector?: string, includeUninitialized?: boolean, labelSelector?: string, limit?: number, resourceVersion?: string, timeoutSeconds?: number, watch?: boolean) : Promise<{ response: http.ClientResponse; body: V1beta1APIServiceList; }> { + const localVarPath = this.basePath + '/apis/apiregistration.k8s.io/v1beta1/apiservices'; + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (_continue !== undefined) { + queryParameters['continue'] = _continue; + } + + if (fieldSelector !== undefined) { + queryParameters['fieldSelector'] = fieldSelector; + } + + if (includeUninitialized !== undefined) { + queryParameters['includeUninitialized'] = includeUninitialized; + } + + if (labelSelector !== undefined) { + queryParameters['labelSelector'] = labelSelector; + } + + if (limit !== undefined) { + queryParameters['limit'] = limit; + } + + if (resourceVersion !== undefined) { + queryParameters['resourceVersion'] = resourceVersion; + } + + if (timeoutSeconds !== undefined) { + queryParameters['timeoutSeconds'] = timeoutSeconds; + } + + if (watch !== undefined) { + queryParameters['watch'] = watch; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta1APIServiceList; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * partially update the specified APIService + * @param name name of the APIService + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public patchAPIService (name: string, body: any, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1beta1APIService; }> { + const localVarPath = this.basePath + '/apis/apiregistration.k8s.io/v1beta1/apiservices/{name}' + .replace('{' + 'name' + '}', String(name)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling patchAPIService.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling patchAPIService.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PATCH', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta1APIService; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * read the specified APIService + * @param name name of the APIService + * @param pretty If 'true', then the output is pretty printed. + * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + * @param _export Should this value be exported. Export strips fields that a user can not specify. + */ + public readAPIService (name: string, pretty?: string, exact?: boolean, _export?: boolean) : Promise<{ response: http.ClientResponse; body: V1beta1APIService; }> { + const localVarPath = this.basePath + '/apis/apiregistration.k8s.io/v1beta1/apiservices/{name}' + .replace('{' + 'name' + '}', String(name)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling readAPIService.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (exact !== undefined) { + queryParameters['exact'] = exact; + } + + if (_export !== undefined) { + queryParameters['export'] = _export; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta1APIService; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * replace the specified APIService + * @param name name of the APIService + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public replaceAPIService (name: string, body: V1beta1APIService, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1beta1APIService; }> { + const localVarPath = this.basePath + '/apis/apiregistration.k8s.io/v1beta1/apiservices/{name}' + .replace('{' + 'name' + '}', String(name)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling replaceAPIService.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling replaceAPIService.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PUT', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta1APIService; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * replace status of the specified APIService + * @param name name of the APIService + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public replaceAPIServiceStatus (name: string, body: V1beta1APIService, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1beta1APIService; }> { + const localVarPath = this.basePath + '/apis/apiregistration.k8s.io/v1beta1/apiservices/{name}/status' + .replace('{' + 'name' + '}', String(name)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling replaceAPIServiceStatus.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling replaceAPIServiceStatus.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PUT', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta1APIService; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } +} +export enum ApisApiApiKeys { + BearerToken, +} + +export class ApisApi { + protected _basePath = defaultBasePath; + protected defaultHeaders : any = {}; + protected _useQuerystring : boolean = false; + + protected authentications = { + 'default': new VoidAuth(), + 'BearerToken': new ApiKeyAuth('header', 'authorization'), + } + + constructor(basePath?: string); + constructor(basePathOrUsername: string, password?: string, basePath?: string) { + if (password) { + if (basePath) { + this.basePath = basePath; + } + } else { + if (basePathOrUsername) { + this.basePath = basePathOrUsername + } + } + } + + set useQuerystring(value: boolean) { + this._useQuerystring = value; + } + + set basePath(basePath: string) { + this._basePath = basePath; + } + + get basePath() { + return this._basePath; + } + + public setDefaultAuthentication(auth: Authentication) { + this.authentications.default = auth; + } + + public setApiKey(key: ApisApiApiKeys, value: string) { + this.authentications[ApisApiApiKeys[key]].apiKey = value; + } + /** + * get available API versions + */ + public getAPIVersions () : Promise<{ response: http.ClientResponse; body: V1APIGroupList; }> { + const localVarPath = this.basePath + '/apis/'; + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1APIGroupList; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } +} +export enum AppsApiApiKeys { + BearerToken, +} + +export class AppsApi { + protected _basePath = defaultBasePath; + protected defaultHeaders : any = {}; + protected _useQuerystring : boolean = false; + + protected authentications = { + 'default': new VoidAuth(), + 'BearerToken': new ApiKeyAuth('header', 'authorization'), + } + + constructor(basePath?: string); + constructor(basePathOrUsername: string, password?: string, basePath?: string) { + if (password) { + if (basePath) { + this.basePath = basePath; + } + } else { + if (basePathOrUsername) { + this.basePath = basePathOrUsername + } + } + } + + set useQuerystring(value: boolean) { + this._useQuerystring = value; + } + + set basePath(basePath: string) { + this._basePath = basePath; + } + + get basePath() { + return this._basePath; + } + + public setDefaultAuthentication(auth: Authentication) { + this.authentications.default = auth; + } + + public setApiKey(key: AppsApiApiKeys, value: string) { + this.authentications[AppsApiApiKeys[key]].apiKey = value; + } + /** + * get information of a group + */ + public getAPIGroup () : Promise<{ response: http.ClientResponse; body: V1APIGroup; }> { + const localVarPath = this.basePath + '/apis/apps/'; + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1APIGroup; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } +} +export enum Apps_v1beta1ApiApiKeys { + BearerToken, +} + +export class Apps_v1beta1Api { + protected _basePath = defaultBasePath; + protected defaultHeaders : any = {}; + protected _useQuerystring : boolean = false; + + protected authentications = { + 'default': new VoidAuth(), + 'BearerToken': new ApiKeyAuth('header', 'authorization'), + } + + constructor(basePath?: string); + constructor(basePathOrUsername: string, password?: string, basePath?: string) { + if (password) { + if (basePath) { + this.basePath = basePath; + } + } else { + if (basePathOrUsername) { + this.basePath = basePathOrUsername + } + } + } + + set useQuerystring(value: boolean) { + this._useQuerystring = value; + } + + set basePath(basePath: string) { + this._basePath = basePath; + } + + get basePath() { + return this._basePath; + } + + public setDefaultAuthentication(auth: Authentication) { + this.authentications.default = auth; + } + + public setApiKey(key: Apps_v1beta1ApiApiKeys, value: string) { + this.authentications[Apps_v1beta1ApiApiKeys[key]].apiKey = value; + } + /** + * create a ControllerRevision + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public createNamespacedControllerRevision (namespace: string, body: V1beta1ControllerRevision, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1beta1ControllerRevision; }> { + const localVarPath = this.basePath + '/apis/apps/v1beta1/namespaces/{namespace}/controllerrevisions' + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling createNamespacedControllerRevision.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling createNamespacedControllerRevision.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'POST', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta1ControllerRevision; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * create a Deployment + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public createNamespacedDeployment (namespace: string, body: AppsV1beta1Deployment, pretty?: string) : Promise<{ response: http.ClientResponse; body: AppsV1beta1Deployment; }> { + const localVarPath = this.basePath + '/apis/apps/v1beta1/namespaces/{namespace}/deployments' + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling createNamespacedDeployment.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling createNamespacedDeployment.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'POST', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: AppsV1beta1Deployment; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * create rollback of a Deployment + * @param name name of the DeploymentRollback + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public createNamespacedDeploymentRollback (name: string, namespace: string, body: AppsV1beta1DeploymentRollback, pretty?: string) : Promise<{ response: http.ClientResponse; body: AppsV1beta1DeploymentRollback; }> { + const localVarPath = this.basePath + '/apis/apps/v1beta1/namespaces/{namespace}/deployments/{name}/rollback' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling createNamespacedDeploymentRollback.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling createNamespacedDeploymentRollback.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling createNamespacedDeploymentRollback.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'POST', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: AppsV1beta1DeploymentRollback; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * create a StatefulSet + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public createNamespacedStatefulSet (namespace: string, body: V1beta1StatefulSet, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1beta1StatefulSet; }> { + const localVarPath = this.basePath + '/apis/apps/v1beta1/namespaces/{namespace}/statefulsets' + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling createNamespacedStatefulSet.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling createNamespacedStatefulSet.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'POST', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta1StatefulSet; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * delete collection of ControllerRevision + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If 'true', then the output is pretty printed. + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param includeUninitialized If true, partially initialized resources are included in the response. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + * @param timeoutSeconds Timeout for the list/watch call. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public deleteCollectionNamespacedControllerRevision (namespace: string, pretty?: string, _continue?: string, fieldSelector?: string, includeUninitialized?: boolean, labelSelector?: string, limit?: number, resourceVersion?: string, timeoutSeconds?: number, watch?: boolean) : Promise<{ response: http.ClientResponse; body: V1Status; }> { + const localVarPath = this.basePath + '/apis/apps/v1beta1/namespaces/{namespace}/controllerrevisions' + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling deleteCollectionNamespacedControllerRevision.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (_continue !== undefined) { + queryParameters['continue'] = _continue; + } + + if (fieldSelector !== undefined) { + queryParameters['fieldSelector'] = fieldSelector; + } + + if (includeUninitialized !== undefined) { + queryParameters['includeUninitialized'] = includeUninitialized; + } + + if (labelSelector !== undefined) { + queryParameters['labelSelector'] = labelSelector; + } + + if (limit !== undefined) { + queryParameters['limit'] = limit; + } + + if (resourceVersion !== undefined) { + queryParameters['resourceVersion'] = resourceVersion; + } + + if (timeoutSeconds !== undefined) { + queryParameters['timeoutSeconds'] = timeoutSeconds; + } + + if (watch !== undefined) { + queryParameters['watch'] = watch; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'DELETE', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Status; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * delete collection of Deployment + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If 'true', then the output is pretty printed. + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param includeUninitialized If true, partially initialized resources are included in the response. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + * @param timeoutSeconds Timeout for the list/watch call. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public deleteCollectionNamespacedDeployment (namespace: string, pretty?: string, _continue?: string, fieldSelector?: string, includeUninitialized?: boolean, labelSelector?: string, limit?: number, resourceVersion?: string, timeoutSeconds?: number, watch?: boolean) : Promise<{ response: http.ClientResponse; body: V1Status; }> { + const localVarPath = this.basePath + '/apis/apps/v1beta1/namespaces/{namespace}/deployments' + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling deleteCollectionNamespacedDeployment.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (_continue !== undefined) { + queryParameters['continue'] = _continue; + } + + if (fieldSelector !== undefined) { + queryParameters['fieldSelector'] = fieldSelector; + } + + if (includeUninitialized !== undefined) { + queryParameters['includeUninitialized'] = includeUninitialized; + } + + if (labelSelector !== undefined) { + queryParameters['labelSelector'] = labelSelector; + } + + if (limit !== undefined) { + queryParameters['limit'] = limit; + } + + if (resourceVersion !== undefined) { + queryParameters['resourceVersion'] = resourceVersion; + } + + if (timeoutSeconds !== undefined) { + queryParameters['timeoutSeconds'] = timeoutSeconds; + } + + if (watch !== undefined) { + queryParameters['watch'] = watch; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'DELETE', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Status; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * delete collection of StatefulSet + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If 'true', then the output is pretty printed. + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param includeUninitialized If true, partially initialized resources are included in the response. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + * @param timeoutSeconds Timeout for the list/watch call. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public deleteCollectionNamespacedStatefulSet (namespace: string, pretty?: string, _continue?: string, fieldSelector?: string, includeUninitialized?: boolean, labelSelector?: string, limit?: number, resourceVersion?: string, timeoutSeconds?: number, watch?: boolean) : Promise<{ response: http.ClientResponse; body: V1Status; }> { + const localVarPath = this.basePath + '/apis/apps/v1beta1/namespaces/{namespace}/statefulsets' + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling deleteCollectionNamespacedStatefulSet.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (_continue !== undefined) { + queryParameters['continue'] = _continue; + } + + if (fieldSelector !== undefined) { + queryParameters['fieldSelector'] = fieldSelector; + } + + if (includeUninitialized !== undefined) { + queryParameters['includeUninitialized'] = includeUninitialized; + } + + if (labelSelector !== undefined) { + queryParameters['labelSelector'] = labelSelector; + } + + if (limit !== undefined) { + queryParameters['limit'] = limit; + } + + if (resourceVersion !== undefined) { + queryParameters['resourceVersion'] = resourceVersion; + } + + if (timeoutSeconds !== undefined) { + queryParameters['timeoutSeconds'] = timeoutSeconds; + } + + if (watch !== undefined) { + queryParameters['watch'] = watch; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'DELETE', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Status; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * delete a ControllerRevision + * @param name name of the ControllerRevision + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. + */ + public deleteNamespacedControllerRevision (name: string, namespace: string, body: V1DeleteOptions, pretty?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string) : Promise<{ response: http.ClientResponse; body: V1Status; }> { + const localVarPath = this.basePath + '/apis/apps/v1beta1/namespaces/{namespace}/controllerrevisions/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling deleteNamespacedControllerRevision.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling deleteNamespacedControllerRevision.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling deleteNamespacedControllerRevision.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (gracePeriodSeconds !== undefined) { + queryParameters['gracePeriodSeconds'] = gracePeriodSeconds; + } + + if (orphanDependents !== undefined) { + queryParameters['orphanDependents'] = orphanDependents; + } + + if (propagationPolicy !== undefined) { + queryParameters['propagationPolicy'] = propagationPolicy; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'DELETE', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Status; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * delete a Deployment + * @param name name of the Deployment + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. + */ + public deleteNamespacedDeployment (name: string, namespace: string, body: V1DeleteOptions, pretty?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string) : Promise<{ response: http.ClientResponse; body: V1Status; }> { + const localVarPath = this.basePath + '/apis/apps/v1beta1/namespaces/{namespace}/deployments/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling deleteNamespacedDeployment.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling deleteNamespacedDeployment.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling deleteNamespacedDeployment.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (gracePeriodSeconds !== undefined) { + queryParameters['gracePeriodSeconds'] = gracePeriodSeconds; + } + + if (orphanDependents !== undefined) { + queryParameters['orphanDependents'] = orphanDependents; + } + + if (propagationPolicy !== undefined) { + queryParameters['propagationPolicy'] = propagationPolicy; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'DELETE', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Status; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * delete a StatefulSet + * @param name name of the StatefulSet + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. + */ + public deleteNamespacedStatefulSet (name: string, namespace: string, body: V1DeleteOptions, pretty?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string) : Promise<{ response: http.ClientResponse; body: V1Status; }> { + const localVarPath = this.basePath + '/apis/apps/v1beta1/namespaces/{namespace}/statefulsets/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling deleteNamespacedStatefulSet.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling deleteNamespacedStatefulSet.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling deleteNamespacedStatefulSet.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (gracePeriodSeconds !== undefined) { + queryParameters['gracePeriodSeconds'] = gracePeriodSeconds; + } + + if (orphanDependents !== undefined) { + queryParameters['orphanDependents'] = orphanDependents; + } + + if (propagationPolicy !== undefined) { + queryParameters['propagationPolicy'] = propagationPolicy; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'DELETE', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Status; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * get available resources + */ + public getAPIResources () : Promise<{ response: http.ClientResponse; body: V1APIResourceList; }> { + const localVarPath = this.basePath + '/apis/apps/v1beta1/'; + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1APIResourceList; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * list or watch objects of kind ControllerRevision + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param includeUninitialized If true, partially initialized resources are included in the response. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param pretty If 'true', then the output is pretty printed. + * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + * @param timeoutSeconds Timeout for the list/watch call. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public listControllerRevisionForAllNamespaces (_continue?: string, fieldSelector?: string, includeUninitialized?: boolean, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, timeoutSeconds?: number, watch?: boolean) : Promise<{ response: http.ClientResponse; body: V1beta1ControllerRevisionList; }> { + const localVarPath = this.basePath + '/apis/apps/v1beta1/controllerrevisions'; + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + if (_continue !== undefined) { + queryParameters['continue'] = _continue; + } + + if (fieldSelector !== undefined) { + queryParameters['fieldSelector'] = fieldSelector; + } + + if (includeUninitialized !== undefined) { + queryParameters['includeUninitialized'] = includeUninitialized; + } + + if (labelSelector !== undefined) { + queryParameters['labelSelector'] = labelSelector; + } + + if (limit !== undefined) { + queryParameters['limit'] = limit; + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (resourceVersion !== undefined) { + queryParameters['resourceVersion'] = resourceVersion; + } + + if (timeoutSeconds !== undefined) { + queryParameters['timeoutSeconds'] = timeoutSeconds; + } + + if (watch !== undefined) { + queryParameters['watch'] = watch; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta1ControllerRevisionList; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * list or watch objects of kind Deployment + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param includeUninitialized If true, partially initialized resources are included in the response. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param pretty If 'true', then the output is pretty printed. + * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + * @param timeoutSeconds Timeout for the list/watch call. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public listDeploymentForAllNamespaces (_continue?: string, fieldSelector?: string, includeUninitialized?: boolean, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, timeoutSeconds?: number, watch?: boolean) : Promise<{ response: http.ClientResponse; body: AppsV1beta1DeploymentList; }> { + const localVarPath = this.basePath + '/apis/apps/v1beta1/deployments'; + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + if (_continue !== undefined) { + queryParameters['continue'] = _continue; + } + + if (fieldSelector !== undefined) { + queryParameters['fieldSelector'] = fieldSelector; + } + + if (includeUninitialized !== undefined) { + queryParameters['includeUninitialized'] = includeUninitialized; + } + + if (labelSelector !== undefined) { + queryParameters['labelSelector'] = labelSelector; + } + + if (limit !== undefined) { + queryParameters['limit'] = limit; + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (resourceVersion !== undefined) { + queryParameters['resourceVersion'] = resourceVersion; + } + + if (timeoutSeconds !== undefined) { + queryParameters['timeoutSeconds'] = timeoutSeconds; + } + + if (watch !== undefined) { + queryParameters['watch'] = watch; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: AppsV1beta1DeploymentList; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * list or watch objects of kind ControllerRevision + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If 'true', then the output is pretty printed. + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param includeUninitialized If true, partially initialized resources are included in the response. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + * @param timeoutSeconds Timeout for the list/watch call. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public listNamespacedControllerRevision (namespace: string, pretty?: string, _continue?: string, fieldSelector?: string, includeUninitialized?: boolean, labelSelector?: string, limit?: number, resourceVersion?: string, timeoutSeconds?: number, watch?: boolean) : Promise<{ response: http.ClientResponse; body: V1beta1ControllerRevisionList; }> { + const localVarPath = this.basePath + '/apis/apps/v1beta1/namespaces/{namespace}/controllerrevisions' + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling listNamespacedControllerRevision.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (_continue !== undefined) { + queryParameters['continue'] = _continue; + } + + if (fieldSelector !== undefined) { + queryParameters['fieldSelector'] = fieldSelector; + } + + if (includeUninitialized !== undefined) { + queryParameters['includeUninitialized'] = includeUninitialized; + } + + if (labelSelector !== undefined) { + queryParameters['labelSelector'] = labelSelector; + } + + if (limit !== undefined) { + queryParameters['limit'] = limit; + } + + if (resourceVersion !== undefined) { + queryParameters['resourceVersion'] = resourceVersion; + } + + if (timeoutSeconds !== undefined) { + queryParameters['timeoutSeconds'] = timeoutSeconds; + } + + if (watch !== undefined) { + queryParameters['watch'] = watch; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta1ControllerRevisionList; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * list or watch objects of kind Deployment + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If 'true', then the output is pretty printed. + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param includeUninitialized If true, partially initialized resources are included in the response. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + * @param timeoutSeconds Timeout for the list/watch call. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public listNamespacedDeployment (namespace: string, pretty?: string, _continue?: string, fieldSelector?: string, includeUninitialized?: boolean, labelSelector?: string, limit?: number, resourceVersion?: string, timeoutSeconds?: number, watch?: boolean) : Promise<{ response: http.ClientResponse; body: AppsV1beta1DeploymentList; }> { + const localVarPath = this.basePath + '/apis/apps/v1beta1/namespaces/{namespace}/deployments' + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling listNamespacedDeployment.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (_continue !== undefined) { + queryParameters['continue'] = _continue; + } + + if (fieldSelector !== undefined) { + queryParameters['fieldSelector'] = fieldSelector; + } + + if (includeUninitialized !== undefined) { + queryParameters['includeUninitialized'] = includeUninitialized; + } + + if (labelSelector !== undefined) { + queryParameters['labelSelector'] = labelSelector; + } + + if (limit !== undefined) { + queryParameters['limit'] = limit; + } + + if (resourceVersion !== undefined) { + queryParameters['resourceVersion'] = resourceVersion; + } + + if (timeoutSeconds !== undefined) { + queryParameters['timeoutSeconds'] = timeoutSeconds; + } + + if (watch !== undefined) { + queryParameters['watch'] = watch; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: AppsV1beta1DeploymentList; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * list or watch objects of kind StatefulSet + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If 'true', then the output is pretty printed. + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param includeUninitialized If true, partially initialized resources are included in the response. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + * @param timeoutSeconds Timeout for the list/watch call. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public listNamespacedStatefulSet (namespace: string, pretty?: string, _continue?: string, fieldSelector?: string, includeUninitialized?: boolean, labelSelector?: string, limit?: number, resourceVersion?: string, timeoutSeconds?: number, watch?: boolean) : Promise<{ response: http.ClientResponse; body: V1beta1StatefulSetList; }> { + const localVarPath = this.basePath + '/apis/apps/v1beta1/namespaces/{namespace}/statefulsets' + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling listNamespacedStatefulSet.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (_continue !== undefined) { + queryParameters['continue'] = _continue; + } + + if (fieldSelector !== undefined) { + queryParameters['fieldSelector'] = fieldSelector; + } + + if (includeUninitialized !== undefined) { + queryParameters['includeUninitialized'] = includeUninitialized; + } + + if (labelSelector !== undefined) { + queryParameters['labelSelector'] = labelSelector; + } + + if (limit !== undefined) { + queryParameters['limit'] = limit; + } + + if (resourceVersion !== undefined) { + queryParameters['resourceVersion'] = resourceVersion; + } + + if (timeoutSeconds !== undefined) { + queryParameters['timeoutSeconds'] = timeoutSeconds; + } + + if (watch !== undefined) { + queryParameters['watch'] = watch; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta1StatefulSetList; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * list or watch objects of kind StatefulSet + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param includeUninitialized If true, partially initialized resources are included in the response. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param pretty If 'true', then the output is pretty printed. + * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + * @param timeoutSeconds Timeout for the list/watch call. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public listStatefulSetForAllNamespaces (_continue?: string, fieldSelector?: string, includeUninitialized?: boolean, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, timeoutSeconds?: number, watch?: boolean) : Promise<{ response: http.ClientResponse; body: V1beta1StatefulSetList; }> { + const localVarPath = this.basePath + '/apis/apps/v1beta1/statefulsets'; + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + if (_continue !== undefined) { + queryParameters['continue'] = _continue; + } + + if (fieldSelector !== undefined) { + queryParameters['fieldSelector'] = fieldSelector; + } + + if (includeUninitialized !== undefined) { + queryParameters['includeUninitialized'] = includeUninitialized; + } + + if (labelSelector !== undefined) { + queryParameters['labelSelector'] = labelSelector; + } + + if (limit !== undefined) { + queryParameters['limit'] = limit; + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (resourceVersion !== undefined) { + queryParameters['resourceVersion'] = resourceVersion; + } + + if (timeoutSeconds !== undefined) { + queryParameters['timeoutSeconds'] = timeoutSeconds; + } + + if (watch !== undefined) { + queryParameters['watch'] = watch; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta1StatefulSetList; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * partially update the specified ControllerRevision + * @param name name of the ControllerRevision + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public patchNamespacedControllerRevision (name: string, namespace: string, body: any, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1beta1ControllerRevision; }> { + const localVarPath = this.basePath + '/apis/apps/v1beta1/namespaces/{namespace}/controllerrevisions/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling patchNamespacedControllerRevision.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling patchNamespacedControllerRevision.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling patchNamespacedControllerRevision.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PATCH', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta1ControllerRevision; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * partially update the specified Deployment + * @param name name of the Deployment + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public patchNamespacedDeployment (name: string, namespace: string, body: any, pretty?: string) : Promise<{ response: http.ClientResponse; body: AppsV1beta1Deployment; }> { + const localVarPath = this.basePath + '/apis/apps/v1beta1/namespaces/{namespace}/deployments/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling patchNamespacedDeployment.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling patchNamespacedDeployment.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling patchNamespacedDeployment.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PATCH', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: AppsV1beta1Deployment; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * partially update scale of the specified Deployment + * @param name name of the Scale + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public patchNamespacedDeploymentScale (name: string, namespace: string, body: any, pretty?: string) : Promise<{ response: http.ClientResponse; body: AppsV1beta1Scale; }> { + const localVarPath = this.basePath + '/apis/apps/v1beta1/namespaces/{namespace}/deployments/{name}/scale' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling patchNamespacedDeploymentScale.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling patchNamespacedDeploymentScale.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling patchNamespacedDeploymentScale.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PATCH', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: AppsV1beta1Scale; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * partially update status of the specified Deployment + * @param name name of the Deployment + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public patchNamespacedDeploymentStatus (name: string, namespace: string, body: any, pretty?: string) : Promise<{ response: http.ClientResponse; body: AppsV1beta1Deployment; }> { + const localVarPath = this.basePath + '/apis/apps/v1beta1/namespaces/{namespace}/deployments/{name}/status' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling patchNamespacedDeploymentStatus.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling patchNamespacedDeploymentStatus.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling patchNamespacedDeploymentStatus.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PATCH', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: AppsV1beta1Deployment; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * partially update the specified StatefulSet + * @param name name of the StatefulSet + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public patchNamespacedStatefulSet (name: string, namespace: string, body: any, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1beta1StatefulSet; }> { + const localVarPath = this.basePath + '/apis/apps/v1beta1/namespaces/{namespace}/statefulsets/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling patchNamespacedStatefulSet.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling patchNamespacedStatefulSet.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling patchNamespacedStatefulSet.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PATCH', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta1StatefulSet; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * partially update scale of the specified StatefulSet + * @param name name of the Scale + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public patchNamespacedStatefulSetScale (name: string, namespace: string, body: any, pretty?: string) : Promise<{ response: http.ClientResponse; body: AppsV1beta1Scale; }> { + const localVarPath = this.basePath + '/apis/apps/v1beta1/namespaces/{namespace}/statefulsets/{name}/scale' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling patchNamespacedStatefulSetScale.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling patchNamespacedStatefulSetScale.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling patchNamespacedStatefulSetScale.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PATCH', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: AppsV1beta1Scale; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * partially update status of the specified StatefulSet + * @param name name of the StatefulSet + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public patchNamespacedStatefulSetStatus (name: string, namespace: string, body: any, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1beta1StatefulSet; }> { + const localVarPath = this.basePath + '/apis/apps/v1beta1/namespaces/{namespace}/statefulsets/{name}/status' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling patchNamespacedStatefulSetStatus.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling patchNamespacedStatefulSetStatus.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling patchNamespacedStatefulSetStatus.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PATCH', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta1StatefulSet; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * read the specified ControllerRevision + * @param name name of the ControllerRevision + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If 'true', then the output is pretty printed. + * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + * @param _export Should this value be exported. Export strips fields that a user can not specify. + */ + public readNamespacedControllerRevision (name: string, namespace: string, pretty?: string, exact?: boolean, _export?: boolean) : Promise<{ response: http.ClientResponse; body: V1beta1ControllerRevision; }> { + const localVarPath = this.basePath + '/apis/apps/v1beta1/namespaces/{namespace}/controllerrevisions/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling readNamespacedControllerRevision.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling readNamespacedControllerRevision.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (exact !== undefined) { + queryParameters['exact'] = exact; + } + + if (_export !== undefined) { + queryParameters['export'] = _export; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta1ControllerRevision; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * read the specified Deployment + * @param name name of the Deployment + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If 'true', then the output is pretty printed. + * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + * @param _export Should this value be exported. Export strips fields that a user can not specify. + */ + public readNamespacedDeployment (name: string, namespace: string, pretty?: string, exact?: boolean, _export?: boolean) : Promise<{ response: http.ClientResponse; body: AppsV1beta1Deployment; }> { + const localVarPath = this.basePath + '/apis/apps/v1beta1/namespaces/{namespace}/deployments/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling readNamespacedDeployment.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling readNamespacedDeployment.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (exact !== undefined) { + queryParameters['exact'] = exact; + } + + if (_export !== undefined) { + queryParameters['export'] = _export; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: AppsV1beta1Deployment; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * read scale of the specified Deployment + * @param name name of the Scale + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If 'true', then the output is pretty printed. + */ + public readNamespacedDeploymentScale (name: string, namespace: string, pretty?: string) : Promise<{ response: http.ClientResponse; body: AppsV1beta1Scale; }> { + const localVarPath = this.basePath + '/apis/apps/v1beta1/namespaces/{namespace}/deployments/{name}/scale' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling readNamespacedDeploymentScale.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling readNamespacedDeploymentScale.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: AppsV1beta1Scale; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * read status of the specified Deployment + * @param name name of the Deployment + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If 'true', then the output is pretty printed. + */ + public readNamespacedDeploymentStatus (name: string, namespace: string, pretty?: string) : Promise<{ response: http.ClientResponse; body: AppsV1beta1Deployment; }> { + const localVarPath = this.basePath + '/apis/apps/v1beta1/namespaces/{namespace}/deployments/{name}/status' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling readNamespacedDeploymentStatus.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling readNamespacedDeploymentStatus.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: AppsV1beta1Deployment; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * read the specified StatefulSet + * @param name name of the StatefulSet + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If 'true', then the output is pretty printed. + * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + * @param _export Should this value be exported. Export strips fields that a user can not specify. + */ + public readNamespacedStatefulSet (name: string, namespace: string, pretty?: string, exact?: boolean, _export?: boolean) : Promise<{ response: http.ClientResponse; body: V1beta1StatefulSet; }> { + const localVarPath = this.basePath + '/apis/apps/v1beta1/namespaces/{namespace}/statefulsets/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling readNamespacedStatefulSet.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling readNamespacedStatefulSet.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (exact !== undefined) { + queryParameters['exact'] = exact; + } + + if (_export !== undefined) { + queryParameters['export'] = _export; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta1StatefulSet; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * read scale of the specified StatefulSet + * @param name name of the Scale + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If 'true', then the output is pretty printed. + */ + public readNamespacedStatefulSetScale (name: string, namespace: string, pretty?: string) : Promise<{ response: http.ClientResponse; body: AppsV1beta1Scale; }> { + const localVarPath = this.basePath + '/apis/apps/v1beta1/namespaces/{namespace}/statefulsets/{name}/scale' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling readNamespacedStatefulSetScale.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling readNamespacedStatefulSetScale.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: AppsV1beta1Scale; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * read status of the specified StatefulSet + * @param name name of the StatefulSet + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If 'true', then the output is pretty printed. + */ + public readNamespacedStatefulSetStatus (name: string, namespace: string, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1beta1StatefulSet; }> { + const localVarPath = this.basePath + '/apis/apps/v1beta1/namespaces/{namespace}/statefulsets/{name}/status' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling readNamespacedStatefulSetStatus.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling readNamespacedStatefulSetStatus.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta1StatefulSet; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * replace the specified ControllerRevision + * @param name name of the ControllerRevision + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public replaceNamespacedControllerRevision (name: string, namespace: string, body: V1beta1ControllerRevision, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1beta1ControllerRevision; }> { + const localVarPath = this.basePath + '/apis/apps/v1beta1/namespaces/{namespace}/controllerrevisions/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling replaceNamespacedControllerRevision.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling replaceNamespacedControllerRevision.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling replaceNamespacedControllerRevision.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PUT', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta1ControllerRevision; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * replace the specified Deployment + * @param name name of the Deployment + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public replaceNamespacedDeployment (name: string, namespace: string, body: AppsV1beta1Deployment, pretty?: string) : Promise<{ response: http.ClientResponse; body: AppsV1beta1Deployment; }> { + const localVarPath = this.basePath + '/apis/apps/v1beta1/namespaces/{namespace}/deployments/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling replaceNamespacedDeployment.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling replaceNamespacedDeployment.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling replaceNamespacedDeployment.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PUT', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: AppsV1beta1Deployment; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * replace scale of the specified Deployment + * @param name name of the Scale + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public replaceNamespacedDeploymentScale (name: string, namespace: string, body: AppsV1beta1Scale, pretty?: string) : Promise<{ response: http.ClientResponse; body: AppsV1beta1Scale; }> { + const localVarPath = this.basePath + '/apis/apps/v1beta1/namespaces/{namespace}/deployments/{name}/scale' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling replaceNamespacedDeploymentScale.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling replaceNamespacedDeploymentScale.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling replaceNamespacedDeploymentScale.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PUT', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: AppsV1beta1Scale; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * replace status of the specified Deployment + * @param name name of the Deployment + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public replaceNamespacedDeploymentStatus (name: string, namespace: string, body: AppsV1beta1Deployment, pretty?: string) : Promise<{ response: http.ClientResponse; body: AppsV1beta1Deployment; }> { + const localVarPath = this.basePath + '/apis/apps/v1beta1/namespaces/{namespace}/deployments/{name}/status' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling replaceNamespacedDeploymentStatus.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling replaceNamespacedDeploymentStatus.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling replaceNamespacedDeploymentStatus.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PUT', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: AppsV1beta1Deployment; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * replace the specified StatefulSet + * @param name name of the StatefulSet + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public replaceNamespacedStatefulSet (name: string, namespace: string, body: V1beta1StatefulSet, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1beta1StatefulSet; }> { + const localVarPath = this.basePath + '/apis/apps/v1beta1/namespaces/{namespace}/statefulsets/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling replaceNamespacedStatefulSet.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling replaceNamespacedStatefulSet.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling replaceNamespacedStatefulSet.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PUT', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta1StatefulSet; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * replace scale of the specified StatefulSet + * @param name name of the Scale + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public replaceNamespacedStatefulSetScale (name: string, namespace: string, body: AppsV1beta1Scale, pretty?: string) : Promise<{ response: http.ClientResponse; body: AppsV1beta1Scale; }> { + const localVarPath = this.basePath + '/apis/apps/v1beta1/namespaces/{namespace}/statefulsets/{name}/scale' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling replaceNamespacedStatefulSetScale.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling replaceNamespacedStatefulSetScale.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling replaceNamespacedStatefulSetScale.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PUT', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: AppsV1beta1Scale; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * replace status of the specified StatefulSet + * @param name name of the StatefulSet + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public replaceNamespacedStatefulSetStatus (name: string, namespace: string, body: V1beta1StatefulSet, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1beta1StatefulSet; }> { + const localVarPath = this.basePath + '/apis/apps/v1beta1/namespaces/{namespace}/statefulsets/{name}/status' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling replaceNamespacedStatefulSetStatus.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling replaceNamespacedStatefulSetStatus.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling replaceNamespacedStatefulSetStatus.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PUT', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta1StatefulSet; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } +} +export enum Apps_v1beta2ApiApiKeys { + BearerToken, +} + +export class Apps_v1beta2Api { + protected _basePath = defaultBasePath; + protected defaultHeaders : any = {}; + protected _useQuerystring : boolean = false; + + protected authentications = { + 'default': new VoidAuth(), + 'BearerToken': new ApiKeyAuth('header', 'authorization'), + } + + constructor(basePath?: string); + constructor(basePathOrUsername: string, password?: string, basePath?: string) { + if (password) { + if (basePath) { + this.basePath = basePath; + } + } else { + if (basePathOrUsername) { + this.basePath = basePathOrUsername + } + } + } + + set useQuerystring(value: boolean) { + this._useQuerystring = value; + } + + set basePath(basePath: string) { + this._basePath = basePath; + } + + get basePath() { + return this._basePath; + } + + public setDefaultAuthentication(auth: Authentication) { + this.authentications.default = auth; + } + + public setApiKey(key: Apps_v1beta2ApiApiKeys, value: string) { + this.authentications[Apps_v1beta2ApiApiKeys[key]].apiKey = value; + } + /** + * create a ControllerRevision + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public createNamespacedControllerRevision (namespace: string, body: V1beta2ControllerRevision, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1beta2ControllerRevision; }> { + const localVarPath = this.basePath + '/apis/apps/v1beta2/namespaces/{namespace}/controllerrevisions' + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling createNamespacedControllerRevision.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling createNamespacedControllerRevision.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'POST', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta2ControllerRevision; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * create a DaemonSet + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public createNamespacedDaemonSet (namespace: string, body: V1beta2DaemonSet, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1beta2DaemonSet; }> { + const localVarPath = this.basePath + '/apis/apps/v1beta2/namespaces/{namespace}/daemonsets' + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling createNamespacedDaemonSet.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling createNamespacedDaemonSet.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'POST', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta2DaemonSet; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * create a Deployment + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public createNamespacedDeployment (namespace: string, body: V1beta2Deployment, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1beta2Deployment; }> { + const localVarPath = this.basePath + '/apis/apps/v1beta2/namespaces/{namespace}/deployments' + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling createNamespacedDeployment.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling createNamespacedDeployment.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'POST', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta2Deployment; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * create a ReplicaSet + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public createNamespacedReplicaSet (namespace: string, body: V1beta2ReplicaSet, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1beta2ReplicaSet; }> { + const localVarPath = this.basePath + '/apis/apps/v1beta2/namespaces/{namespace}/replicasets' + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling createNamespacedReplicaSet.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling createNamespacedReplicaSet.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'POST', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta2ReplicaSet; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * create a StatefulSet + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public createNamespacedStatefulSet (namespace: string, body: V1beta2StatefulSet, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1beta2StatefulSet; }> { + const localVarPath = this.basePath + '/apis/apps/v1beta2/namespaces/{namespace}/statefulsets' + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling createNamespacedStatefulSet.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling createNamespacedStatefulSet.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'POST', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta2StatefulSet; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * delete collection of ControllerRevision + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If 'true', then the output is pretty printed. + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param includeUninitialized If true, partially initialized resources are included in the response. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + * @param timeoutSeconds Timeout for the list/watch call. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public deleteCollectionNamespacedControllerRevision (namespace: string, pretty?: string, _continue?: string, fieldSelector?: string, includeUninitialized?: boolean, labelSelector?: string, limit?: number, resourceVersion?: string, timeoutSeconds?: number, watch?: boolean) : Promise<{ response: http.ClientResponse; body: V1Status; }> { + const localVarPath = this.basePath + '/apis/apps/v1beta2/namespaces/{namespace}/controllerrevisions' + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling deleteCollectionNamespacedControllerRevision.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (_continue !== undefined) { + queryParameters['continue'] = _continue; + } + + if (fieldSelector !== undefined) { + queryParameters['fieldSelector'] = fieldSelector; + } + + if (includeUninitialized !== undefined) { + queryParameters['includeUninitialized'] = includeUninitialized; + } + + if (labelSelector !== undefined) { + queryParameters['labelSelector'] = labelSelector; + } + + if (limit !== undefined) { + queryParameters['limit'] = limit; + } + + if (resourceVersion !== undefined) { + queryParameters['resourceVersion'] = resourceVersion; + } + + if (timeoutSeconds !== undefined) { + queryParameters['timeoutSeconds'] = timeoutSeconds; + } + + if (watch !== undefined) { + queryParameters['watch'] = watch; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'DELETE', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Status; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * delete collection of DaemonSet + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If 'true', then the output is pretty printed. + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param includeUninitialized If true, partially initialized resources are included in the response. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + * @param timeoutSeconds Timeout for the list/watch call. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public deleteCollectionNamespacedDaemonSet (namespace: string, pretty?: string, _continue?: string, fieldSelector?: string, includeUninitialized?: boolean, labelSelector?: string, limit?: number, resourceVersion?: string, timeoutSeconds?: number, watch?: boolean) : Promise<{ response: http.ClientResponse; body: V1Status; }> { + const localVarPath = this.basePath + '/apis/apps/v1beta2/namespaces/{namespace}/daemonsets' + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling deleteCollectionNamespacedDaemonSet.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (_continue !== undefined) { + queryParameters['continue'] = _continue; + } + + if (fieldSelector !== undefined) { + queryParameters['fieldSelector'] = fieldSelector; + } + + if (includeUninitialized !== undefined) { + queryParameters['includeUninitialized'] = includeUninitialized; + } + + if (labelSelector !== undefined) { + queryParameters['labelSelector'] = labelSelector; + } + + if (limit !== undefined) { + queryParameters['limit'] = limit; + } + + if (resourceVersion !== undefined) { + queryParameters['resourceVersion'] = resourceVersion; + } + + if (timeoutSeconds !== undefined) { + queryParameters['timeoutSeconds'] = timeoutSeconds; + } + + if (watch !== undefined) { + queryParameters['watch'] = watch; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'DELETE', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Status; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * delete collection of Deployment + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If 'true', then the output is pretty printed. + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param includeUninitialized If true, partially initialized resources are included in the response. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + * @param timeoutSeconds Timeout for the list/watch call. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public deleteCollectionNamespacedDeployment (namespace: string, pretty?: string, _continue?: string, fieldSelector?: string, includeUninitialized?: boolean, labelSelector?: string, limit?: number, resourceVersion?: string, timeoutSeconds?: number, watch?: boolean) : Promise<{ response: http.ClientResponse; body: V1Status; }> { + const localVarPath = this.basePath + '/apis/apps/v1beta2/namespaces/{namespace}/deployments' + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling deleteCollectionNamespacedDeployment.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (_continue !== undefined) { + queryParameters['continue'] = _continue; + } + + if (fieldSelector !== undefined) { + queryParameters['fieldSelector'] = fieldSelector; + } + + if (includeUninitialized !== undefined) { + queryParameters['includeUninitialized'] = includeUninitialized; + } + + if (labelSelector !== undefined) { + queryParameters['labelSelector'] = labelSelector; + } + + if (limit !== undefined) { + queryParameters['limit'] = limit; + } + + if (resourceVersion !== undefined) { + queryParameters['resourceVersion'] = resourceVersion; + } + + if (timeoutSeconds !== undefined) { + queryParameters['timeoutSeconds'] = timeoutSeconds; + } + + if (watch !== undefined) { + queryParameters['watch'] = watch; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'DELETE', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Status; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * delete collection of ReplicaSet + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If 'true', then the output is pretty printed. + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param includeUninitialized If true, partially initialized resources are included in the response. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + * @param timeoutSeconds Timeout for the list/watch call. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public deleteCollectionNamespacedReplicaSet (namespace: string, pretty?: string, _continue?: string, fieldSelector?: string, includeUninitialized?: boolean, labelSelector?: string, limit?: number, resourceVersion?: string, timeoutSeconds?: number, watch?: boolean) : Promise<{ response: http.ClientResponse; body: V1Status; }> { + const localVarPath = this.basePath + '/apis/apps/v1beta2/namespaces/{namespace}/replicasets' + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling deleteCollectionNamespacedReplicaSet.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (_continue !== undefined) { + queryParameters['continue'] = _continue; + } + + if (fieldSelector !== undefined) { + queryParameters['fieldSelector'] = fieldSelector; + } + + if (includeUninitialized !== undefined) { + queryParameters['includeUninitialized'] = includeUninitialized; + } + + if (labelSelector !== undefined) { + queryParameters['labelSelector'] = labelSelector; + } + + if (limit !== undefined) { + queryParameters['limit'] = limit; + } + + if (resourceVersion !== undefined) { + queryParameters['resourceVersion'] = resourceVersion; + } + + if (timeoutSeconds !== undefined) { + queryParameters['timeoutSeconds'] = timeoutSeconds; + } + + if (watch !== undefined) { + queryParameters['watch'] = watch; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'DELETE', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Status; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * delete collection of StatefulSet + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If 'true', then the output is pretty printed. + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param includeUninitialized If true, partially initialized resources are included in the response. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + * @param timeoutSeconds Timeout for the list/watch call. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public deleteCollectionNamespacedStatefulSet (namespace: string, pretty?: string, _continue?: string, fieldSelector?: string, includeUninitialized?: boolean, labelSelector?: string, limit?: number, resourceVersion?: string, timeoutSeconds?: number, watch?: boolean) : Promise<{ response: http.ClientResponse; body: V1Status; }> { + const localVarPath = this.basePath + '/apis/apps/v1beta2/namespaces/{namespace}/statefulsets' + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling deleteCollectionNamespacedStatefulSet.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (_continue !== undefined) { + queryParameters['continue'] = _continue; + } + + if (fieldSelector !== undefined) { + queryParameters['fieldSelector'] = fieldSelector; + } + + if (includeUninitialized !== undefined) { + queryParameters['includeUninitialized'] = includeUninitialized; + } + + if (labelSelector !== undefined) { + queryParameters['labelSelector'] = labelSelector; + } + + if (limit !== undefined) { + queryParameters['limit'] = limit; + } + + if (resourceVersion !== undefined) { + queryParameters['resourceVersion'] = resourceVersion; + } + + if (timeoutSeconds !== undefined) { + queryParameters['timeoutSeconds'] = timeoutSeconds; + } + + if (watch !== undefined) { + queryParameters['watch'] = watch; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'DELETE', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Status; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * delete a ControllerRevision + * @param name name of the ControllerRevision + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. + */ + public deleteNamespacedControllerRevision (name: string, namespace: string, body: V1DeleteOptions, pretty?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string) : Promise<{ response: http.ClientResponse; body: V1Status; }> { + const localVarPath = this.basePath + '/apis/apps/v1beta2/namespaces/{namespace}/controllerrevisions/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling deleteNamespacedControllerRevision.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling deleteNamespacedControllerRevision.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling deleteNamespacedControllerRevision.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (gracePeriodSeconds !== undefined) { + queryParameters['gracePeriodSeconds'] = gracePeriodSeconds; + } + + if (orphanDependents !== undefined) { + queryParameters['orphanDependents'] = orphanDependents; + } + + if (propagationPolicy !== undefined) { + queryParameters['propagationPolicy'] = propagationPolicy; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'DELETE', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Status; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * delete a DaemonSet + * @param name name of the DaemonSet + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. + */ + public deleteNamespacedDaemonSet (name: string, namespace: string, body: V1DeleteOptions, pretty?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string) : Promise<{ response: http.ClientResponse; body: V1Status; }> { + const localVarPath = this.basePath + '/apis/apps/v1beta2/namespaces/{namespace}/daemonsets/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling deleteNamespacedDaemonSet.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling deleteNamespacedDaemonSet.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling deleteNamespacedDaemonSet.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (gracePeriodSeconds !== undefined) { + queryParameters['gracePeriodSeconds'] = gracePeriodSeconds; + } + + if (orphanDependents !== undefined) { + queryParameters['orphanDependents'] = orphanDependents; + } + + if (propagationPolicy !== undefined) { + queryParameters['propagationPolicy'] = propagationPolicy; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'DELETE', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Status; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * delete a Deployment + * @param name name of the Deployment + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. + */ + public deleteNamespacedDeployment (name: string, namespace: string, body: V1DeleteOptions, pretty?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string) : Promise<{ response: http.ClientResponse; body: V1Status; }> { + const localVarPath = this.basePath + '/apis/apps/v1beta2/namespaces/{namespace}/deployments/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling deleteNamespacedDeployment.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling deleteNamespacedDeployment.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling deleteNamespacedDeployment.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (gracePeriodSeconds !== undefined) { + queryParameters['gracePeriodSeconds'] = gracePeriodSeconds; + } + + if (orphanDependents !== undefined) { + queryParameters['orphanDependents'] = orphanDependents; + } + + if (propagationPolicy !== undefined) { + queryParameters['propagationPolicy'] = propagationPolicy; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'DELETE', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Status; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * delete a ReplicaSet + * @param name name of the ReplicaSet + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. + */ + public deleteNamespacedReplicaSet (name: string, namespace: string, body: V1DeleteOptions, pretty?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string) : Promise<{ response: http.ClientResponse; body: V1Status; }> { + const localVarPath = this.basePath + '/apis/apps/v1beta2/namespaces/{namespace}/replicasets/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling deleteNamespacedReplicaSet.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling deleteNamespacedReplicaSet.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling deleteNamespacedReplicaSet.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (gracePeriodSeconds !== undefined) { + queryParameters['gracePeriodSeconds'] = gracePeriodSeconds; + } + + if (orphanDependents !== undefined) { + queryParameters['orphanDependents'] = orphanDependents; + } + + if (propagationPolicy !== undefined) { + queryParameters['propagationPolicy'] = propagationPolicy; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'DELETE', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Status; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * delete a StatefulSet + * @param name name of the StatefulSet + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. + */ + public deleteNamespacedStatefulSet (name: string, namespace: string, body: V1DeleteOptions, pretty?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string) : Promise<{ response: http.ClientResponse; body: V1Status; }> { + const localVarPath = this.basePath + '/apis/apps/v1beta2/namespaces/{namespace}/statefulsets/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling deleteNamespacedStatefulSet.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling deleteNamespacedStatefulSet.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling deleteNamespacedStatefulSet.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (gracePeriodSeconds !== undefined) { + queryParameters['gracePeriodSeconds'] = gracePeriodSeconds; + } + + if (orphanDependents !== undefined) { + queryParameters['orphanDependents'] = orphanDependents; + } + + if (propagationPolicy !== undefined) { + queryParameters['propagationPolicy'] = propagationPolicy; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'DELETE', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Status; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * get available resources + */ + public getAPIResources () : Promise<{ response: http.ClientResponse; body: V1APIResourceList; }> { + const localVarPath = this.basePath + '/apis/apps/v1beta2/'; + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1APIResourceList; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * list or watch objects of kind ControllerRevision + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param includeUninitialized If true, partially initialized resources are included in the response. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param pretty If 'true', then the output is pretty printed. + * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + * @param timeoutSeconds Timeout for the list/watch call. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public listControllerRevisionForAllNamespaces (_continue?: string, fieldSelector?: string, includeUninitialized?: boolean, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, timeoutSeconds?: number, watch?: boolean) : Promise<{ response: http.ClientResponse; body: V1beta2ControllerRevisionList; }> { + const localVarPath = this.basePath + '/apis/apps/v1beta2/controllerrevisions'; + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + if (_continue !== undefined) { + queryParameters['continue'] = _continue; + } + + if (fieldSelector !== undefined) { + queryParameters['fieldSelector'] = fieldSelector; + } + + if (includeUninitialized !== undefined) { + queryParameters['includeUninitialized'] = includeUninitialized; + } + + if (labelSelector !== undefined) { + queryParameters['labelSelector'] = labelSelector; + } + + if (limit !== undefined) { + queryParameters['limit'] = limit; + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (resourceVersion !== undefined) { + queryParameters['resourceVersion'] = resourceVersion; + } + + if (timeoutSeconds !== undefined) { + queryParameters['timeoutSeconds'] = timeoutSeconds; + } + + if (watch !== undefined) { + queryParameters['watch'] = watch; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta2ControllerRevisionList; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * list or watch objects of kind DaemonSet + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param includeUninitialized If true, partially initialized resources are included in the response. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param pretty If 'true', then the output is pretty printed. + * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + * @param timeoutSeconds Timeout for the list/watch call. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public listDaemonSetForAllNamespaces (_continue?: string, fieldSelector?: string, includeUninitialized?: boolean, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, timeoutSeconds?: number, watch?: boolean) : Promise<{ response: http.ClientResponse; body: V1beta2DaemonSetList; }> { + const localVarPath = this.basePath + '/apis/apps/v1beta2/daemonsets'; + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + if (_continue !== undefined) { + queryParameters['continue'] = _continue; + } + + if (fieldSelector !== undefined) { + queryParameters['fieldSelector'] = fieldSelector; + } + + if (includeUninitialized !== undefined) { + queryParameters['includeUninitialized'] = includeUninitialized; + } + + if (labelSelector !== undefined) { + queryParameters['labelSelector'] = labelSelector; + } + + if (limit !== undefined) { + queryParameters['limit'] = limit; + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (resourceVersion !== undefined) { + queryParameters['resourceVersion'] = resourceVersion; + } + + if (timeoutSeconds !== undefined) { + queryParameters['timeoutSeconds'] = timeoutSeconds; + } + + if (watch !== undefined) { + queryParameters['watch'] = watch; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta2DaemonSetList; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * list or watch objects of kind Deployment + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param includeUninitialized If true, partially initialized resources are included in the response. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param pretty If 'true', then the output is pretty printed. + * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + * @param timeoutSeconds Timeout for the list/watch call. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public listDeploymentForAllNamespaces (_continue?: string, fieldSelector?: string, includeUninitialized?: boolean, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, timeoutSeconds?: number, watch?: boolean) : Promise<{ response: http.ClientResponse; body: V1beta2DeploymentList; }> { + const localVarPath = this.basePath + '/apis/apps/v1beta2/deployments'; + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + if (_continue !== undefined) { + queryParameters['continue'] = _continue; + } + + if (fieldSelector !== undefined) { + queryParameters['fieldSelector'] = fieldSelector; + } + + if (includeUninitialized !== undefined) { + queryParameters['includeUninitialized'] = includeUninitialized; + } + + if (labelSelector !== undefined) { + queryParameters['labelSelector'] = labelSelector; + } + + if (limit !== undefined) { + queryParameters['limit'] = limit; + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (resourceVersion !== undefined) { + queryParameters['resourceVersion'] = resourceVersion; + } + + if (timeoutSeconds !== undefined) { + queryParameters['timeoutSeconds'] = timeoutSeconds; + } + + if (watch !== undefined) { + queryParameters['watch'] = watch; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta2DeploymentList; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * list or watch objects of kind ControllerRevision + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If 'true', then the output is pretty printed. + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param includeUninitialized If true, partially initialized resources are included in the response. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + * @param timeoutSeconds Timeout for the list/watch call. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public listNamespacedControllerRevision (namespace: string, pretty?: string, _continue?: string, fieldSelector?: string, includeUninitialized?: boolean, labelSelector?: string, limit?: number, resourceVersion?: string, timeoutSeconds?: number, watch?: boolean) : Promise<{ response: http.ClientResponse; body: V1beta2ControllerRevisionList; }> { + const localVarPath = this.basePath + '/apis/apps/v1beta2/namespaces/{namespace}/controllerrevisions' + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling listNamespacedControllerRevision.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (_continue !== undefined) { + queryParameters['continue'] = _continue; + } + + if (fieldSelector !== undefined) { + queryParameters['fieldSelector'] = fieldSelector; + } + + if (includeUninitialized !== undefined) { + queryParameters['includeUninitialized'] = includeUninitialized; + } + + if (labelSelector !== undefined) { + queryParameters['labelSelector'] = labelSelector; + } + + if (limit !== undefined) { + queryParameters['limit'] = limit; + } + + if (resourceVersion !== undefined) { + queryParameters['resourceVersion'] = resourceVersion; + } + + if (timeoutSeconds !== undefined) { + queryParameters['timeoutSeconds'] = timeoutSeconds; + } + + if (watch !== undefined) { + queryParameters['watch'] = watch; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta2ControllerRevisionList; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * list or watch objects of kind DaemonSet + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If 'true', then the output is pretty printed. + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param includeUninitialized If true, partially initialized resources are included in the response. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + * @param timeoutSeconds Timeout for the list/watch call. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public listNamespacedDaemonSet (namespace: string, pretty?: string, _continue?: string, fieldSelector?: string, includeUninitialized?: boolean, labelSelector?: string, limit?: number, resourceVersion?: string, timeoutSeconds?: number, watch?: boolean) : Promise<{ response: http.ClientResponse; body: V1beta2DaemonSetList; }> { + const localVarPath = this.basePath + '/apis/apps/v1beta2/namespaces/{namespace}/daemonsets' + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling listNamespacedDaemonSet.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (_continue !== undefined) { + queryParameters['continue'] = _continue; + } + + if (fieldSelector !== undefined) { + queryParameters['fieldSelector'] = fieldSelector; + } + + if (includeUninitialized !== undefined) { + queryParameters['includeUninitialized'] = includeUninitialized; + } + + if (labelSelector !== undefined) { + queryParameters['labelSelector'] = labelSelector; + } + + if (limit !== undefined) { + queryParameters['limit'] = limit; + } + + if (resourceVersion !== undefined) { + queryParameters['resourceVersion'] = resourceVersion; + } + + if (timeoutSeconds !== undefined) { + queryParameters['timeoutSeconds'] = timeoutSeconds; + } + + if (watch !== undefined) { + queryParameters['watch'] = watch; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta2DaemonSetList; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * list or watch objects of kind Deployment + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If 'true', then the output is pretty printed. + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param includeUninitialized If true, partially initialized resources are included in the response. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + * @param timeoutSeconds Timeout for the list/watch call. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public listNamespacedDeployment (namespace: string, pretty?: string, _continue?: string, fieldSelector?: string, includeUninitialized?: boolean, labelSelector?: string, limit?: number, resourceVersion?: string, timeoutSeconds?: number, watch?: boolean) : Promise<{ response: http.ClientResponse; body: V1beta2DeploymentList; }> { + const localVarPath = this.basePath + '/apis/apps/v1beta2/namespaces/{namespace}/deployments' + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling listNamespacedDeployment.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (_continue !== undefined) { + queryParameters['continue'] = _continue; + } + + if (fieldSelector !== undefined) { + queryParameters['fieldSelector'] = fieldSelector; + } + + if (includeUninitialized !== undefined) { + queryParameters['includeUninitialized'] = includeUninitialized; + } + + if (labelSelector !== undefined) { + queryParameters['labelSelector'] = labelSelector; + } + + if (limit !== undefined) { + queryParameters['limit'] = limit; + } + + if (resourceVersion !== undefined) { + queryParameters['resourceVersion'] = resourceVersion; + } + + if (timeoutSeconds !== undefined) { + queryParameters['timeoutSeconds'] = timeoutSeconds; + } + + if (watch !== undefined) { + queryParameters['watch'] = watch; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta2DeploymentList; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * list or watch objects of kind ReplicaSet + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If 'true', then the output is pretty printed. + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param includeUninitialized If true, partially initialized resources are included in the response. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + * @param timeoutSeconds Timeout for the list/watch call. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public listNamespacedReplicaSet (namespace: string, pretty?: string, _continue?: string, fieldSelector?: string, includeUninitialized?: boolean, labelSelector?: string, limit?: number, resourceVersion?: string, timeoutSeconds?: number, watch?: boolean) : Promise<{ response: http.ClientResponse; body: V1beta2ReplicaSetList; }> { + const localVarPath = this.basePath + '/apis/apps/v1beta2/namespaces/{namespace}/replicasets' + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling listNamespacedReplicaSet.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (_continue !== undefined) { + queryParameters['continue'] = _continue; + } + + if (fieldSelector !== undefined) { + queryParameters['fieldSelector'] = fieldSelector; + } + + if (includeUninitialized !== undefined) { + queryParameters['includeUninitialized'] = includeUninitialized; + } + + if (labelSelector !== undefined) { + queryParameters['labelSelector'] = labelSelector; + } + + if (limit !== undefined) { + queryParameters['limit'] = limit; + } + + if (resourceVersion !== undefined) { + queryParameters['resourceVersion'] = resourceVersion; + } + + if (timeoutSeconds !== undefined) { + queryParameters['timeoutSeconds'] = timeoutSeconds; + } + + if (watch !== undefined) { + queryParameters['watch'] = watch; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta2ReplicaSetList; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * list or watch objects of kind StatefulSet + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If 'true', then the output is pretty printed. + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param includeUninitialized If true, partially initialized resources are included in the response. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + * @param timeoutSeconds Timeout for the list/watch call. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public listNamespacedStatefulSet (namespace: string, pretty?: string, _continue?: string, fieldSelector?: string, includeUninitialized?: boolean, labelSelector?: string, limit?: number, resourceVersion?: string, timeoutSeconds?: number, watch?: boolean) : Promise<{ response: http.ClientResponse; body: V1beta2StatefulSetList; }> { + const localVarPath = this.basePath + '/apis/apps/v1beta2/namespaces/{namespace}/statefulsets' + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling listNamespacedStatefulSet.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (_continue !== undefined) { + queryParameters['continue'] = _continue; + } + + if (fieldSelector !== undefined) { + queryParameters['fieldSelector'] = fieldSelector; + } + + if (includeUninitialized !== undefined) { + queryParameters['includeUninitialized'] = includeUninitialized; + } + + if (labelSelector !== undefined) { + queryParameters['labelSelector'] = labelSelector; + } + + if (limit !== undefined) { + queryParameters['limit'] = limit; + } + + if (resourceVersion !== undefined) { + queryParameters['resourceVersion'] = resourceVersion; + } + + if (timeoutSeconds !== undefined) { + queryParameters['timeoutSeconds'] = timeoutSeconds; + } + + if (watch !== undefined) { + queryParameters['watch'] = watch; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta2StatefulSetList; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * list or watch objects of kind ReplicaSet + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param includeUninitialized If true, partially initialized resources are included in the response. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param pretty If 'true', then the output is pretty printed. + * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + * @param timeoutSeconds Timeout for the list/watch call. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public listReplicaSetForAllNamespaces (_continue?: string, fieldSelector?: string, includeUninitialized?: boolean, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, timeoutSeconds?: number, watch?: boolean) : Promise<{ response: http.ClientResponse; body: V1beta2ReplicaSetList; }> { + const localVarPath = this.basePath + '/apis/apps/v1beta2/replicasets'; + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + if (_continue !== undefined) { + queryParameters['continue'] = _continue; + } + + if (fieldSelector !== undefined) { + queryParameters['fieldSelector'] = fieldSelector; + } + + if (includeUninitialized !== undefined) { + queryParameters['includeUninitialized'] = includeUninitialized; + } + + if (labelSelector !== undefined) { + queryParameters['labelSelector'] = labelSelector; + } + + if (limit !== undefined) { + queryParameters['limit'] = limit; + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (resourceVersion !== undefined) { + queryParameters['resourceVersion'] = resourceVersion; + } + + if (timeoutSeconds !== undefined) { + queryParameters['timeoutSeconds'] = timeoutSeconds; + } + + if (watch !== undefined) { + queryParameters['watch'] = watch; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta2ReplicaSetList; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * list or watch objects of kind StatefulSet + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param includeUninitialized If true, partially initialized resources are included in the response. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param pretty If 'true', then the output is pretty printed. + * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + * @param timeoutSeconds Timeout for the list/watch call. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public listStatefulSetForAllNamespaces (_continue?: string, fieldSelector?: string, includeUninitialized?: boolean, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, timeoutSeconds?: number, watch?: boolean) : Promise<{ response: http.ClientResponse; body: V1beta2StatefulSetList; }> { + const localVarPath = this.basePath + '/apis/apps/v1beta2/statefulsets'; + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + if (_continue !== undefined) { + queryParameters['continue'] = _continue; + } + + if (fieldSelector !== undefined) { + queryParameters['fieldSelector'] = fieldSelector; + } + + if (includeUninitialized !== undefined) { + queryParameters['includeUninitialized'] = includeUninitialized; + } + + if (labelSelector !== undefined) { + queryParameters['labelSelector'] = labelSelector; + } + + if (limit !== undefined) { + queryParameters['limit'] = limit; + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (resourceVersion !== undefined) { + queryParameters['resourceVersion'] = resourceVersion; + } + + if (timeoutSeconds !== undefined) { + queryParameters['timeoutSeconds'] = timeoutSeconds; + } + + if (watch !== undefined) { + queryParameters['watch'] = watch; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta2StatefulSetList; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * partially update the specified ControllerRevision + * @param name name of the ControllerRevision + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public patchNamespacedControllerRevision (name: string, namespace: string, body: any, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1beta2ControllerRevision; }> { + const localVarPath = this.basePath + '/apis/apps/v1beta2/namespaces/{namespace}/controllerrevisions/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling patchNamespacedControllerRevision.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling patchNamespacedControllerRevision.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling patchNamespacedControllerRevision.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PATCH', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta2ControllerRevision; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * partially update the specified DaemonSet + * @param name name of the DaemonSet + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public patchNamespacedDaemonSet (name: string, namespace: string, body: any, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1beta2DaemonSet; }> { + const localVarPath = this.basePath + '/apis/apps/v1beta2/namespaces/{namespace}/daemonsets/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling patchNamespacedDaemonSet.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling patchNamespacedDaemonSet.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling patchNamespacedDaemonSet.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PATCH', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta2DaemonSet; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * partially update status of the specified DaemonSet + * @param name name of the DaemonSet + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public patchNamespacedDaemonSetStatus (name: string, namespace: string, body: any, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1beta2DaemonSet; }> { + const localVarPath = this.basePath + '/apis/apps/v1beta2/namespaces/{namespace}/daemonsets/{name}/status' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling patchNamespacedDaemonSetStatus.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling patchNamespacedDaemonSetStatus.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling patchNamespacedDaemonSetStatus.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PATCH', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta2DaemonSet; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * partially update the specified Deployment + * @param name name of the Deployment + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public patchNamespacedDeployment (name: string, namespace: string, body: any, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1beta2Deployment; }> { + const localVarPath = this.basePath + '/apis/apps/v1beta2/namespaces/{namespace}/deployments/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling patchNamespacedDeployment.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling patchNamespacedDeployment.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling patchNamespacedDeployment.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PATCH', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta2Deployment; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * partially update scale of the specified Deployment + * @param name name of the Scale + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public patchNamespacedDeploymentScale (name: string, namespace: string, body: any, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1beta2Scale; }> { + const localVarPath = this.basePath + '/apis/apps/v1beta2/namespaces/{namespace}/deployments/{name}/scale' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling patchNamespacedDeploymentScale.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling patchNamespacedDeploymentScale.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling patchNamespacedDeploymentScale.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PATCH', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta2Scale; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * partially update status of the specified Deployment + * @param name name of the Deployment + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public patchNamespacedDeploymentStatus (name: string, namespace: string, body: any, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1beta2Deployment; }> { + const localVarPath = this.basePath + '/apis/apps/v1beta2/namespaces/{namespace}/deployments/{name}/status' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling patchNamespacedDeploymentStatus.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling patchNamespacedDeploymentStatus.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling patchNamespacedDeploymentStatus.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PATCH', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta2Deployment; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * partially update the specified ReplicaSet + * @param name name of the ReplicaSet + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public patchNamespacedReplicaSet (name: string, namespace: string, body: any, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1beta2ReplicaSet; }> { + const localVarPath = this.basePath + '/apis/apps/v1beta2/namespaces/{namespace}/replicasets/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling patchNamespacedReplicaSet.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling patchNamespacedReplicaSet.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling patchNamespacedReplicaSet.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PATCH', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta2ReplicaSet; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * partially update scale of the specified ReplicaSet + * @param name name of the Scale + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public patchNamespacedReplicaSetScale (name: string, namespace: string, body: any, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1beta2Scale; }> { + const localVarPath = this.basePath + '/apis/apps/v1beta2/namespaces/{namespace}/replicasets/{name}/scale' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling patchNamespacedReplicaSetScale.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling patchNamespacedReplicaSetScale.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling patchNamespacedReplicaSetScale.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PATCH', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta2Scale; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * partially update status of the specified ReplicaSet + * @param name name of the ReplicaSet + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public patchNamespacedReplicaSetStatus (name: string, namespace: string, body: any, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1beta2ReplicaSet; }> { + const localVarPath = this.basePath + '/apis/apps/v1beta2/namespaces/{namespace}/replicasets/{name}/status' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling patchNamespacedReplicaSetStatus.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling patchNamespacedReplicaSetStatus.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling patchNamespacedReplicaSetStatus.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PATCH', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta2ReplicaSet; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * partially update the specified StatefulSet + * @param name name of the StatefulSet + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public patchNamespacedStatefulSet (name: string, namespace: string, body: any, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1beta2StatefulSet; }> { + const localVarPath = this.basePath + '/apis/apps/v1beta2/namespaces/{namespace}/statefulsets/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling patchNamespacedStatefulSet.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling patchNamespacedStatefulSet.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling patchNamespacedStatefulSet.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PATCH', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta2StatefulSet; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * partially update scale of the specified StatefulSet + * @param name name of the Scale + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public patchNamespacedStatefulSetScale (name: string, namespace: string, body: any, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1beta2Scale; }> { + const localVarPath = this.basePath + '/apis/apps/v1beta2/namespaces/{namespace}/statefulsets/{name}/scale' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling patchNamespacedStatefulSetScale.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling patchNamespacedStatefulSetScale.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling patchNamespacedStatefulSetScale.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PATCH', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta2Scale; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * partially update status of the specified StatefulSet + * @param name name of the StatefulSet + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public patchNamespacedStatefulSetStatus (name: string, namespace: string, body: any, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1beta2StatefulSet; }> { + const localVarPath = this.basePath + '/apis/apps/v1beta2/namespaces/{namespace}/statefulsets/{name}/status' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling patchNamespacedStatefulSetStatus.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling patchNamespacedStatefulSetStatus.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling patchNamespacedStatefulSetStatus.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PATCH', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta2StatefulSet; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * read the specified ControllerRevision + * @param name name of the ControllerRevision + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If 'true', then the output is pretty printed. + * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + * @param _export Should this value be exported. Export strips fields that a user can not specify. + */ + public readNamespacedControllerRevision (name: string, namespace: string, pretty?: string, exact?: boolean, _export?: boolean) : Promise<{ response: http.ClientResponse; body: V1beta2ControllerRevision; }> { + const localVarPath = this.basePath + '/apis/apps/v1beta2/namespaces/{namespace}/controllerrevisions/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling readNamespacedControllerRevision.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling readNamespacedControllerRevision.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (exact !== undefined) { + queryParameters['exact'] = exact; + } + + if (_export !== undefined) { + queryParameters['export'] = _export; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta2ControllerRevision; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * read the specified DaemonSet + * @param name name of the DaemonSet + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If 'true', then the output is pretty printed. + * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + * @param _export Should this value be exported. Export strips fields that a user can not specify. + */ + public readNamespacedDaemonSet (name: string, namespace: string, pretty?: string, exact?: boolean, _export?: boolean) : Promise<{ response: http.ClientResponse; body: V1beta2DaemonSet; }> { + const localVarPath = this.basePath + '/apis/apps/v1beta2/namespaces/{namespace}/daemonsets/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling readNamespacedDaemonSet.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling readNamespacedDaemonSet.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (exact !== undefined) { + queryParameters['exact'] = exact; + } + + if (_export !== undefined) { + queryParameters['export'] = _export; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta2DaemonSet; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * read status of the specified DaemonSet + * @param name name of the DaemonSet + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If 'true', then the output is pretty printed. + */ + public readNamespacedDaemonSetStatus (name: string, namespace: string, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1beta2DaemonSet; }> { + const localVarPath = this.basePath + '/apis/apps/v1beta2/namespaces/{namespace}/daemonsets/{name}/status' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling readNamespacedDaemonSetStatus.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling readNamespacedDaemonSetStatus.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta2DaemonSet; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * read the specified Deployment + * @param name name of the Deployment + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If 'true', then the output is pretty printed. + * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + * @param _export Should this value be exported. Export strips fields that a user can not specify. + */ + public readNamespacedDeployment (name: string, namespace: string, pretty?: string, exact?: boolean, _export?: boolean) : Promise<{ response: http.ClientResponse; body: V1beta2Deployment; }> { + const localVarPath = this.basePath + '/apis/apps/v1beta2/namespaces/{namespace}/deployments/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling readNamespacedDeployment.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling readNamespacedDeployment.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (exact !== undefined) { + queryParameters['exact'] = exact; + } + + if (_export !== undefined) { + queryParameters['export'] = _export; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta2Deployment; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * read scale of the specified Deployment + * @param name name of the Scale + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If 'true', then the output is pretty printed. + */ + public readNamespacedDeploymentScale (name: string, namespace: string, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1beta2Scale; }> { + const localVarPath = this.basePath + '/apis/apps/v1beta2/namespaces/{namespace}/deployments/{name}/scale' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling readNamespacedDeploymentScale.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling readNamespacedDeploymentScale.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta2Scale; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * read status of the specified Deployment + * @param name name of the Deployment + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If 'true', then the output is pretty printed. + */ + public readNamespacedDeploymentStatus (name: string, namespace: string, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1beta2Deployment; }> { + const localVarPath = this.basePath + '/apis/apps/v1beta2/namespaces/{namespace}/deployments/{name}/status' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling readNamespacedDeploymentStatus.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling readNamespacedDeploymentStatus.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta2Deployment; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * read the specified ReplicaSet + * @param name name of the ReplicaSet + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If 'true', then the output is pretty printed. + * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + * @param _export Should this value be exported. Export strips fields that a user can not specify. + */ + public readNamespacedReplicaSet (name: string, namespace: string, pretty?: string, exact?: boolean, _export?: boolean) : Promise<{ response: http.ClientResponse; body: V1beta2ReplicaSet; }> { + const localVarPath = this.basePath + '/apis/apps/v1beta2/namespaces/{namespace}/replicasets/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling readNamespacedReplicaSet.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling readNamespacedReplicaSet.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (exact !== undefined) { + queryParameters['exact'] = exact; + } + + if (_export !== undefined) { + queryParameters['export'] = _export; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta2ReplicaSet; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * read scale of the specified ReplicaSet + * @param name name of the Scale + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If 'true', then the output is pretty printed. + */ + public readNamespacedReplicaSetScale (name: string, namespace: string, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1beta2Scale; }> { + const localVarPath = this.basePath + '/apis/apps/v1beta2/namespaces/{namespace}/replicasets/{name}/scale' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling readNamespacedReplicaSetScale.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling readNamespacedReplicaSetScale.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta2Scale; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * read status of the specified ReplicaSet + * @param name name of the ReplicaSet + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If 'true', then the output is pretty printed. + */ + public readNamespacedReplicaSetStatus (name: string, namespace: string, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1beta2ReplicaSet; }> { + const localVarPath = this.basePath + '/apis/apps/v1beta2/namespaces/{namespace}/replicasets/{name}/status' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling readNamespacedReplicaSetStatus.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling readNamespacedReplicaSetStatus.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta2ReplicaSet; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * read the specified StatefulSet + * @param name name of the StatefulSet + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If 'true', then the output is pretty printed. + * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + * @param _export Should this value be exported. Export strips fields that a user can not specify. + */ + public readNamespacedStatefulSet (name: string, namespace: string, pretty?: string, exact?: boolean, _export?: boolean) : Promise<{ response: http.ClientResponse; body: V1beta2StatefulSet; }> { + const localVarPath = this.basePath + '/apis/apps/v1beta2/namespaces/{namespace}/statefulsets/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling readNamespacedStatefulSet.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling readNamespacedStatefulSet.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (exact !== undefined) { + queryParameters['exact'] = exact; + } + + if (_export !== undefined) { + queryParameters['export'] = _export; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta2StatefulSet; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * read scale of the specified StatefulSet + * @param name name of the Scale + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If 'true', then the output is pretty printed. + */ + public readNamespacedStatefulSetScale (name: string, namespace: string, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1beta2Scale; }> { + const localVarPath = this.basePath + '/apis/apps/v1beta2/namespaces/{namespace}/statefulsets/{name}/scale' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling readNamespacedStatefulSetScale.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling readNamespacedStatefulSetScale.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta2Scale; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * read status of the specified StatefulSet + * @param name name of the StatefulSet + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If 'true', then the output is pretty printed. + */ + public readNamespacedStatefulSetStatus (name: string, namespace: string, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1beta2StatefulSet; }> { + const localVarPath = this.basePath + '/apis/apps/v1beta2/namespaces/{namespace}/statefulsets/{name}/status' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling readNamespacedStatefulSetStatus.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling readNamespacedStatefulSetStatus.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta2StatefulSet; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * replace the specified ControllerRevision + * @param name name of the ControllerRevision + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public replaceNamespacedControllerRevision (name: string, namespace: string, body: V1beta2ControllerRevision, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1beta2ControllerRevision; }> { + const localVarPath = this.basePath + '/apis/apps/v1beta2/namespaces/{namespace}/controllerrevisions/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling replaceNamespacedControllerRevision.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling replaceNamespacedControllerRevision.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling replaceNamespacedControllerRevision.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PUT', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta2ControllerRevision; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * replace the specified DaemonSet + * @param name name of the DaemonSet + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public replaceNamespacedDaemonSet (name: string, namespace: string, body: V1beta2DaemonSet, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1beta2DaemonSet; }> { + const localVarPath = this.basePath + '/apis/apps/v1beta2/namespaces/{namespace}/daemonsets/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling replaceNamespacedDaemonSet.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling replaceNamespacedDaemonSet.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling replaceNamespacedDaemonSet.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PUT', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta2DaemonSet; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * replace status of the specified DaemonSet + * @param name name of the DaemonSet + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public replaceNamespacedDaemonSetStatus (name: string, namespace: string, body: V1beta2DaemonSet, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1beta2DaemonSet; }> { + const localVarPath = this.basePath + '/apis/apps/v1beta2/namespaces/{namespace}/daemonsets/{name}/status' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling replaceNamespacedDaemonSetStatus.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling replaceNamespacedDaemonSetStatus.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling replaceNamespacedDaemonSetStatus.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PUT', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta2DaemonSet; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * replace the specified Deployment + * @param name name of the Deployment + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public replaceNamespacedDeployment (name: string, namespace: string, body: V1beta2Deployment, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1beta2Deployment; }> { + const localVarPath = this.basePath + '/apis/apps/v1beta2/namespaces/{namespace}/deployments/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling replaceNamespacedDeployment.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling replaceNamespacedDeployment.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling replaceNamespacedDeployment.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PUT', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta2Deployment; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * replace scale of the specified Deployment + * @param name name of the Scale + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public replaceNamespacedDeploymentScale (name: string, namespace: string, body: V1beta2Scale, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1beta2Scale; }> { + const localVarPath = this.basePath + '/apis/apps/v1beta2/namespaces/{namespace}/deployments/{name}/scale' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling replaceNamespacedDeploymentScale.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling replaceNamespacedDeploymentScale.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling replaceNamespacedDeploymentScale.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PUT', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta2Scale; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * replace status of the specified Deployment + * @param name name of the Deployment + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public replaceNamespacedDeploymentStatus (name: string, namespace: string, body: V1beta2Deployment, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1beta2Deployment; }> { + const localVarPath = this.basePath + '/apis/apps/v1beta2/namespaces/{namespace}/deployments/{name}/status' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling replaceNamespacedDeploymentStatus.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling replaceNamespacedDeploymentStatus.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling replaceNamespacedDeploymentStatus.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PUT', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta2Deployment; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * replace the specified ReplicaSet + * @param name name of the ReplicaSet + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public replaceNamespacedReplicaSet (name: string, namespace: string, body: V1beta2ReplicaSet, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1beta2ReplicaSet; }> { + const localVarPath = this.basePath + '/apis/apps/v1beta2/namespaces/{namespace}/replicasets/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling replaceNamespacedReplicaSet.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling replaceNamespacedReplicaSet.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling replaceNamespacedReplicaSet.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PUT', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta2ReplicaSet; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * replace scale of the specified ReplicaSet + * @param name name of the Scale + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public replaceNamespacedReplicaSetScale (name: string, namespace: string, body: V1beta2Scale, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1beta2Scale; }> { + const localVarPath = this.basePath + '/apis/apps/v1beta2/namespaces/{namespace}/replicasets/{name}/scale' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling replaceNamespacedReplicaSetScale.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling replaceNamespacedReplicaSetScale.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling replaceNamespacedReplicaSetScale.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PUT', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta2Scale; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * replace status of the specified ReplicaSet + * @param name name of the ReplicaSet + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public replaceNamespacedReplicaSetStatus (name: string, namespace: string, body: V1beta2ReplicaSet, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1beta2ReplicaSet; }> { + const localVarPath = this.basePath + '/apis/apps/v1beta2/namespaces/{namespace}/replicasets/{name}/status' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling replaceNamespacedReplicaSetStatus.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling replaceNamespacedReplicaSetStatus.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling replaceNamespacedReplicaSetStatus.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PUT', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta2ReplicaSet; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * replace the specified StatefulSet + * @param name name of the StatefulSet + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public replaceNamespacedStatefulSet (name: string, namespace: string, body: V1beta2StatefulSet, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1beta2StatefulSet; }> { + const localVarPath = this.basePath + '/apis/apps/v1beta2/namespaces/{namespace}/statefulsets/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling replaceNamespacedStatefulSet.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling replaceNamespacedStatefulSet.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling replaceNamespacedStatefulSet.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PUT', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta2StatefulSet; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * replace scale of the specified StatefulSet + * @param name name of the Scale + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public replaceNamespacedStatefulSetScale (name: string, namespace: string, body: V1beta2Scale, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1beta2Scale; }> { + const localVarPath = this.basePath + '/apis/apps/v1beta2/namespaces/{namespace}/statefulsets/{name}/scale' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling replaceNamespacedStatefulSetScale.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling replaceNamespacedStatefulSetScale.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling replaceNamespacedStatefulSetScale.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PUT', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta2Scale; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * replace status of the specified StatefulSet + * @param name name of the StatefulSet + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public replaceNamespacedStatefulSetStatus (name: string, namespace: string, body: V1beta2StatefulSet, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1beta2StatefulSet; }> { + const localVarPath = this.basePath + '/apis/apps/v1beta2/namespaces/{namespace}/statefulsets/{name}/status' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling replaceNamespacedStatefulSetStatus.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling replaceNamespacedStatefulSetStatus.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling replaceNamespacedStatefulSetStatus.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PUT', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta2StatefulSet; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } +} +export enum AuthenticationApiApiKeys { + BearerToken, +} + +export class AuthenticationApi { + protected _basePath = defaultBasePath; + protected defaultHeaders : any = {}; + protected _useQuerystring : boolean = false; + + protected authentications = { + 'default': new VoidAuth(), + 'BearerToken': new ApiKeyAuth('header', 'authorization'), + } + + constructor(basePath?: string); + constructor(basePathOrUsername: string, password?: string, basePath?: string) { + if (password) { + if (basePath) { + this.basePath = basePath; + } + } else { + if (basePathOrUsername) { + this.basePath = basePathOrUsername + } + } + } + + set useQuerystring(value: boolean) { + this._useQuerystring = value; + } + + set basePath(basePath: string) { + this._basePath = basePath; + } + + get basePath() { + return this._basePath; + } + + public setDefaultAuthentication(auth: Authentication) { + this.authentications.default = auth; + } + + public setApiKey(key: AuthenticationApiApiKeys, value: string) { + this.authentications[AuthenticationApiApiKeys[key]].apiKey = value; + } + /** + * get information of a group + */ + public getAPIGroup () : Promise<{ response: http.ClientResponse; body: V1APIGroup; }> { + const localVarPath = this.basePath + '/apis/authentication.k8s.io/'; + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1APIGroup; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } +} +export enum Authentication_v1ApiApiKeys { + BearerToken, +} + +export class Authentication_v1Api { + protected _basePath = defaultBasePath; + protected defaultHeaders : any = {}; + protected _useQuerystring : boolean = false; + + protected authentications = { + 'default': new VoidAuth(), + 'BearerToken': new ApiKeyAuth('header', 'authorization'), + } + + constructor(basePath?: string); + constructor(basePathOrUsername: string, password?: string, basePath?: string) { + if (password) { + if (basePath) { + this.basePath = basePath; + } + } else { + if (basePathOrUsername) { + this.basePath = basePathOrUsername + } + } + } + + set useQuerystring(value: boolean) { + this._useQuerystring = value; + } + + set basePath(basePath: string) { + this._basePath = basePath; + } + + get basePath() { + return this._basePath; + } + + public setDefaultAuthentication(auth: Authentication) { + this.authentications.default = auth; + } + + public setApiKey(key: Authentication_v1ApiApiKeys, value: string) { + this.authentications[Authentication_v1ApiApiKeys[key]].apiKey = value; + } + /** + * create a TokenReview + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public createTokenReview (body: V1TokenReview, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1TokenReview; }> { + const localVarPath = this.basePath + '/apis/authentication.k8s.io/v1/tokenreviews'; + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling createTokenReview.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'POST', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1TokenReview; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * get available resources + */ + public getAPIResources () : Promise<{ response: http.ClientResponse; body: V1APIResourceList; }> { + const localVarPath = this.basePath + '/apis/authentication.k8s.io/v1/'; + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1APIResourceList; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } +} +export enum Authentication_v1beta1ApiApiKeys { + BearerToken, +} + +export class Authentication_v1beta1Api { + protected _basePath = defaultBasePath; + protected defaultHeaders : any = {}; + protected _useQuerystring : boolean = false; + + protected authentications = { + 'default': new VoidAuth(), + 'BearerToken': new ApiKeyAuth('header', 'authorization'), + } + + constructor(basePath?: string); + constructor(basePathOrUsername: string, password?: string, basePath?: string) { + if (password) { + if (basePath) { + this.basePath = basePath; + } + } else { + if (basePathOrUsername) { + this.basePath = basePathOrUsername + } + } + } + + set useQuerystring(value: boolean) { + this._useQuerystring = value; + } + + set basePath(basePath: string) { + this._basePath = basePath; + } + + get basePath() { + return this._basePath; + } + + public setDefaultAuthentication(auth: Authentication) { + this.authentications.default = auth; + } + + public setApiKey(key: Authentication_v1beta1ApiApiKeys, value: string) { + this.authentications[Authentication_v1beta1ApiApiKeys[key]].apiKey = value; + } + /** + * create a TokenReview + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public createTokenReview (body: V1beta1TokenReview, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1beta1TokenReview; }> { + const localVarPath = this.basePath + '/apis/authentication.k8s.io/v1beta1/tokenreviews'; + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling createTokenReview.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'POST', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta1TokenReview; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * get available resources + */ + public getAPIResources () : Promise<{ response: http.ClientResponse; body: V1APIResourceList; }> { + const localVarPath = this.basePath + '/apis/authentication.k8s.io/v1beta1/'; + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1APIResourceList; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } +} +export enum AuthorizationApiApiKeys { + BearerToken, +} + +export class AuthorizationApi { + protected _basePath = defaultBasePath; + protected defaultHeaders : any = {}; + protected _useQuerystring : boolean = false; + + protected authentications = { + 'default': new VoidAuth(), + 'BearerToken': new ApiKeyAuth('header', 'authorization'), + } + + constructor(basePath?: string); + constructor(basePathOrUsername: string, password?: string, basePath?: string) { + if (password) { + if (basePath) { + this.basePath = basePath; + } + } else { + if (basePathOrUsername) { + this.basePath = basePathOrUsername + } + } + } + + set useQuerystring(value: boolean) { + this._useQuerystring = value; + } + + set basePath(basePath: string) { + this._basePath = basePath; + } + + get basePath() { + return this._basePath; + } + + public setDefaultAuthentication(auth: Authentication) { + this.authentications.default = auth; + } + + public setApiKey(key: AuthorizationApiApiKeys, value: string) { + this.authentications[AuthorizationApiApiKeys[key]].apiKey = value; + } + /** + * get information of a group + */ + public getAPIGroup () : Promise<{ response: http.ClientResponse; body: V1APIGroup; }> { + const localVarPath = this.basePath + '/apis/authorization.k8s.io/'; + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1APIGroup; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } +} +export enum Authorization_v1ApiApiKeys { + BearerToken, +} + +export class Authorization_v1Api { + protected _basePath = defaultBasePath; + protected defaultHeaders : any = {}; + protected _useQuerystring : boolean = false; + + protected authentications = { + 'default': new VoidAuth(), + 'BearerToken': new ApiKeyAuth('header', 'authorization'), + } + + constructor(basePath?: string); + constructor(basePathOrUsername: string, password?: string, basePath?: string) { + if (password) { + if (basePath) { + this.basePath = basePath; + } + } else { + if (basePathOrUsername) { + this.basePath = basePathOrUsername + } + } + } + + set useQuerystring(value: boolean) { + this._useQuerystring = value; + } + + set basePath(basePath: string) { + this._basePath = basePath; + } + + get basePath() { + return this._basePath; + } + + public setDefaultAuthentication(auth: Authentication) { + this.authentications.default = auth; + } + + public setApiKey(key: Authorization_v1ApiApiKeys, value: string) { + this.authentications[Authorization_v1ApiApiKeys[key]].apiKey = value; + } + /** + * create a LocalSubjectAccessReview + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public createNamespacedLocalSubjectAccessReview (namespace: string, body: V1LocalSubjectAccessReview, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1LocalSubjectAccessReview; }> { + const localVarPath = this.basePath + '/apis/authorization.k8s.io/v1/namespaces/{namespace}/localsubjectaccessreviews' + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling createNamespacedLocalSubjectAccessReview.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling createNamespacedLocalSubjectAccessReview.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'POST', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1LocalSubjectAccessReview; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * create a SelfSubjectAccessReview + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public createSelfSubjectAccessReview (body: V1SelfSubjectAccessReview, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1SelfSubjectAccessReview; }> { + const localVarPath = this.basePath + '/apis/authorization.k8s.io/v1/selfsubjectaccessreviews'; + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling createSelfSubjectAccessReview.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'POST', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1SelfSubjectAccessReview; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * create a SelfSubjectRulesReview + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public createSelfSubjectRulesReview (body: V1SelfSubjectRulesReview, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1SelfSubjectRulesReview; }> { + const localVarPath = this.basePath + '/apis/authorization.k8s.io/v1/selfsubjectrulesreviews'; + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling createSelfSubjectRulesReview.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'POST', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1SelfSubjectRulesReview; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * create a SubjectAccessReview + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public createSubjectAccessReview (body: V1SubjectAccessReview, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1SubjectAccessReview; }> { + const localVarPath = this.basePath + '/apis/authorization.k8s.io/v1/subjectaccessreviews'; + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling createSubjectAccessReview.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'POST', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1SubjectAccessReview; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * get available resources + */ + public getAPIResources () : Promise<{ response: http.ClientResponse; body: V1APIResourceList; }> { + const localVarPath = this.basePath + '/apis/authorization.k8s.io/v1/'; + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1APIResourceList; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } +} +export enum Authorization_v1beta1ApiApiKeys { + BearerToken, +} + +export class Authorization_v1beta1Api { + protected _basePath = defaultBasePath; + protected defaultHeaders : any = {}; + protected _useQuerystring : boolean = false; + + protected authentications = { + 'default': new VoidAuth(), + 'BearerToken': new ApiKeyAuth('header', 'authorization'), + } + + constructor(basePath?: string); + constructor(basePathOrUsername: string, password?: string, basePath?: string) { + if (password) { + if (basePath) { + this.basePath = basePath; + } + } else { + if (basePathOrUsername) { + this.basePath = basePathOrUsername + } + } + } + + set useQuerystring(value: boolean) { + this._useQuerystring = value; + } + + set basePath(basePath: string) { + this._basePath = basePath; + } + + get basePath() { + return this._basePath; + } + + public setDefaultAuthentication(auth: Authentication) { + this.authentications.default = auth; + } + + public setApiKey(key: Authorization_v1beta1ApiApiKeys, value: string) { + this.authentications[Authorization_v1beta1ApiApiKeys[key]].apiKey = value; + } + /** + * create a LocalSubjectAccessReview + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public createNamespacedLocalSubjectAccessReview (namespace: string, body: V1beta1LocalSubjectAccessReview, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1beta1LocalSubjectAccessReview; }> { + const localVarPath = this.basePath + '/apis/authorization.k8s.io/v1beta1/namespaces/{namespace}/localsubjectaccessreviews' + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling createNamespacedLocalSubjectAccessReview.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling createNamespacedLocalSubjectAccessReview.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'POST', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta1LocalSubjectAccessReview; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * create a SelfSubjectAccessReview + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public createSelfSubjectAccessReview (body: V1beta1SelfSubjectAccessReview, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1beta1SelfSubjectAccessReview; }> { + const localVarPath = this.basePath + '/apis/authorization.k8s.io/v1beta1/selfsubjectaccessreviews'; + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling createSelfSubjectAccessReview.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'POST', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta1SelfSubjectAccessReview; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * create a SelfSubjectRulesReview + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public createSelfSubjectRulesReview (body: V1beta1SelfSubjectRulesReview, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1beta1SelfSubjectRulesReview; }> { + const localVarPath = this.basePath + '/apis/authorization.k8s.io/v1beta1/selfsubjectrulesreviews'; + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling createSelfSubjectRulesReview.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'POST', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta1SelfSubjectRulesReview; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * create a SubjectAccessReview + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public createSubjectAccessReview (body: V1beta1SubjectAccessReview, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1beta1SubjectAccessReview; }> { + const localVarPath = this.basePath + '/apis/authorization.k8s.io/v1beta1/subjectaccessreviews'; + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling createSubjectAccessReview.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'POST', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta1SubjectAccessReview; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * get available resources + */ + public getAPIResources () : Promise<{ response: http.ClientResponse; body: V1APIResourceList; }> { + const localVarPath = this.basePath + '/apis/authorization.k8s.io/v1beta1/'; + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1APIResourceList; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } +} +export enum AutoscalingApiApiKeys { + BearerToken, +} + +export class AutoscalingApi { + protected _basePath = defaultBasePath; + protected defaultHeaders : any = {}; + protected _useQuerystring : boolean = false; + + protected authentications = { + 'default': new VoidAuth(), + 'BearerToken': new ApiKeyAuth('header', 'authorization'), + } + + constructor(basePath?: string); + constructor(basePathOrUsername: string, password?: string, basePath?: string) { + if (password) { + if (basePath) { + this.basePath = basePath; + } + } else { + if (basePathOrUsername) { + this.basePath = basePathOrUsername + } + } + } + + set useQuerystring(value: boolean) { + this._useQuerystring = value; + } + + set basePath(basePath: string) { + this._basePath = basePath; + } + + get basePath() { + return this._basePath; + } + + public setDefaultAuthentication(auth: Authentication) { + this.authentications.default = auth; + } + + public setApiKey(key: AutoscalingApiApiKeys, value: string) { + this.authentications[AutoscalingApiApiKeys[key]].apiKey = value; + } + /** + * get information of a group + */ + public getAPIGroup () : Promise<{ response: http.ClientResponse; body: V1APIGroup; }> { + const localVarPath = this.basePath + '/apis/autoscaling/'; + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1APIGroup; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } +} +export enum Autoscaling_v1ApiApiKeys { + BearerToken, +} + +export class Autoscaling_v1Api { + protected _basePath = defaultBasePath; + protected defaultHeaders : any = {}; + protected _useQuerystring : boolean = false; + + protected authentications = { + 'default': new VoidAuth(), + 'BearerToken': new ApiKeyAuth('header', 'authorization'), + } + + constructor(basePath?: string); + constructor(basePathOrUsername: string, password?: string, basePath?: string) { + if (password) { + if (basePath) { + this.basePath = basePath; + } + } else { + if (basePathOrUsername) { + this.basePath = basePathOrUsername + } + } + } + + set useQuerystring(value: boolean) { + this._useQuerystring = value; + } + + set basePath(basePath: string) { + this._basePath = basePath; + } + + get basePath() { + return this._basePath; + } + + public setDefaultAuthentication(auth: Authentication) { + this.authentications.default = auth; + } + + public setApiKey(key: Autoscaling_v1ApiApiKeys, value: string) { + this.authentications[Autoscaling_v1ApiApiKeys[key]].apiKey = value; + } + /** + * create a HorizontalPodAutoscaler + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public createNamespacedHorizontalPodAutoscaler (namespace: string, body: V1HorizontalPodAutoscaler, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1HorizontalPodAutoscaler; }> { + const localVarPath = this.basePath + '/apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers' + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling createNamespacedHorizontalPodAutoscaler.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling createNamespacedHorizontalPodAutoscaler.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'POST', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1HorizontalPodAutoscaler; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * delete collection of HorizontalPodAutoscaler + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If 'true', then the output is pretty printed. + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param includeUninitialized If true, partially initialized resources are included in the response. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + * @param timeoutSeconds Timeout for the list/watch call. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public deleteCollectionNamespacedHorizontalPodAutoscaler (namespace: string, pretty?: string, _continue?: string, fieldSelector?: string, includeUninitialized?: boolean, labelSelector?: string, limit?: number, resourceVersion?: string, timeoutSeconds?: number, watch?: boolean) : Promise<{ response: http.ClientResponse; body: V1Status; }> { + const localVarPath = this.basePath + '/apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers' + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling deleteCollectionNamespacedHorizontalPodAutoscaler.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (_continue !== undefined) { + queryParameters['continue'] = _continue; + } + + if (fieldSelector !== undefined) { + queryParameters['fieldSelector'] = fieldSelector; + } + + if (includeUninitialized !== undefined) { + queryParameters['includeUninitialized'] = includeUninitialized; + } + + if (labelSelector !== undefined) { + queryParameters['labelSelector'] = labelSelector; + } + + if (limit !== undefined) { + queryParameters['limit'] = limit; + } + + if (resourceVersion !== undefined) { + queryParameters['resourceVersion'] = resourceVersion; + } + + if (timeoutSeconds !== undefined) { + queryParameters['timeoutSeconds'] = timeoutSeconds; + } + + if (watch !== undefined) { + queryParameters['watch'] = watch; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'DELETE', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Status; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * delete a HorizontalPodAutoscaler + * @param name name of the HorizontalPodAutoscaler + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. + */ + public deleteNamespacedHorizontalPodAutoscaler (name: string, namespace: string, body: V1DeleteOptions, pretty?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string) : Promise<{ response: http.ClientResponse; body: V1Status; }> { + const localVarPath = this.basePath + '/apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling deleteNamespacedHorizontalPodAutoscaler.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling deleteNamespacedHorizontalPodAutoscaler.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling deleteNamespacedHorizontalPodAutoscaler.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (gracePeriodSeconds !== undefined) { + queryParameters['gracePeriodSeconds'] = gracePeriodSeconds; + } + + if (orphanDependents !== undefined) { + queryParameters['orphanDependents'] = orphanDependents; + } + + if (propagationPolicy !== undefined) { + queryParameters['propagationPolicy'] = propagationPolicy; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'DELETE', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Status; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * get available resources + */ + public getAPIResources () : Promise<{ response: http.ClientResponse; body: V1APIResourceList; }> { + const localVarPath = this.basePath + '/apis/autoscaling/v1/'; + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1APIResourceList; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * list or watch objects of kind HorizontalPodAutoscaler + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param includeUninitialized If true, partially initialized resources are included in the response. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param pretty If 'true', then the output is pretty printed. + * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + * @param timeoutSeconds Timeout for the list/watch call. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public listHorizontalPodAutoscalerForAllNamespaces (_continue?: string, fieldSelector?: string, includeUninitialized?: boolean, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, timeoutSeconds?: number, watch?: boolean) : Promise<{ response: http.ClientResponse; body: V1HorizontalPodAutoscalerList; }> { + const localVarPath = this.basePath + '/apis/autoscaling/v1/horizontalpodautoscalers'; + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + if (_continue !== undefined) { + queryParameters['continue'] = _continue; + } + + if (fieldSelector !== undefined) { + queryParameters['fieldSelector'] = fieldSelector; + } + + if (includeUninitialized !== undefined) { + queryParameters['includeUninitialized'] = includeUninitialized; + } + + if (labelSelector !== undefined) { + queryParameters['labelSelector'] = labelSelector; + } + + if (limit !== undefined) { + queryParameters['limit'] = limit; + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (resourceVersion !== undefined) { + queryParameters['resourceVersion'] = resourceVersion; + } + + if (timeoutSeconds !== undefined) { + queryParameters['timeoutSeconds'] = timeoutSeconds; + } + + if (watch !== undefined) { + queryParameters['watch'] = watch; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1HorizontalPodAutoscalerList; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * list or watch objects of kind HorizontalPodAutoscaler + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If 'true', then the output is pretty printed. + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param includeUninitialized If true, partially initialized resources are included in the response. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + * @param timeoutSeconds Timeout for the list/watch call. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public listNamespacedHorizontalPodAutoscaler (namespace: string, pretty?: string, _continue?: string, fieldSelector?: string, includeUninitialized?: boolean, labelSelector?: string, limit?: number, resourceVersion?: string, timeoutSeconds?: number, watch?: boolean) : Promise<{ response: http.ClientResponse; body: V1HorizontalPodAutoscalerList; }> { + const localVarPath = this.basePath + '/apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers' + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling listNamespacedHorizontalPodAutoscaler.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (_continue !== undefined) { + queryParameters['continue'] = _continue; + } + + if (fieldSelector !== undefined) { + queryParameters['fieldSelector'] = fieldSelector; + } + + if (includeUninitialized !== undefined) { + queryParameters['includeUninitialized'] = includeUninitialized; + } + + if (labelSelector !== undefined) { + queryParameters['labelSelector'] = labelSelector; + } + + if (limit !== undefined) { + queryParameters['limit'] = limit; + } + + if (resourceVersion !== undefined) { + queryParameters['resourceVersion'] = resourceVersion; + } + + if (timeoutSeconds !== undefined) { + queryParameters['timeoutSeconds'] = timeoutSeconds; + } + + if (watch !== undefined) { + queryParameters['watch'] = watch; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1HorizontalPodAutoscalerList; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * partially update the specified HorizontalPodAutoscaler + * @param name name of the HorizontalPodAutoscaler + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public patchNamespacedHorizontalPodAutoscaler (name: string, namespace: string, body: any, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1HorizontalPodAutoscaler; }> { + const localVarPath = this.basePath + '/apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling patchNamespacedHorizontalPodAutoscaler.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling patchNamespacedHorizontalPodAutoscaler.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling patchNamespacedHorizontalPodAutoscaler.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PATCH', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1HorizontalPodAutoscaler; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * partially update status of the specified HorizontalPodAutoscaler + * @param name name of the HorizontalPodAutoscaler + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public patchNamespacedHorizontalPodAutoscalerStatus (name: string, namespace: string, body: any, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1HorizontalPodAutoscaler; }> { + const localVarPath = this.basePath + '/apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling patchNamespacedHorizontalPodAutoscalerStatus.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling patchNamespacedHorizontalPodAutoscalerStatus.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling patchNamespacedHorizontalPodAutoscalerStatus.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PATCH', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1HorizontalPodAutoscaler; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * read the specified HorizontalPodAutoscaler + * @param name name of the HorizontalPodAutoscaler + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If 'true', then the output is pretty printed. + * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + * @param _export Should this value be exported. Export strips fields that a user can not specify. + */ + public readNamespacedHorizontalPodAutoscaler (name: string, namespace: string, pretty?: string, exact?: boolean, _export?: boolean) : Promise<{ response: http.ClientResponse; body: V1HorizontalPodAutoscaler; }> { + const localVarPath = this.basePath + '/apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling readNamespacedHorizontalPodAutoscaler.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling readNamespacedHorizontalPodAutoscaler.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (exact !== undefined) { + queryParameters['exact'] = exact; + } + + if (_export !== undefined) { + queryParameters['export'] = _export; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1HorizontalPodAutoscaler; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * read status of the specified HorizontalPodAutoscaler + * @param name name of the HorizontalPodAutoscaler + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If 'true', then the output is pretty printed. + */ + public readNamespacedHorizontalPodAutoscalerStatus (name: string, namespace: string, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1HorizontalPodAutoscaler; }> { + const localVarPath = this.basePath + '/apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling readNamespacedHorizontalPodAutoscalerStatus.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling readNamespacedHorizontalPodAutoscalerStatus.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1HorizontalPodAutoscaler; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * replace the specified HorizontalPodAutoscaler + * @param name name of the HorizontalPodAutoscaler + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public replaceNamespacedHorizontalPodAutoscaler (name: string, namespace: string, body: V1HorizontalPodAutoscaler, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1HorizontalPodAutoscaler; }> { + const localVarPath = this.basePath + '/apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling replaceNamespacedHorizontalPodAutoscaler.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling replaceNamespacedHorizontalPodAutoscaler.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling replaceNamespacedHorizontalPodAutoscaler.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PUT', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1HorizontalPodAutoscaler; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * replace status of the specified HorizontalPodAutoscaler + * @param name name of the HorizontalPodAutoscaler + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public replaceNamespacedHorizontalPodAutoscalerStatus (name: string, namespace: string, body: V1HorizontalPodAutoscaler, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1HorizontalPodAutoscaler; }> { + const localVarPath = this.basePath + '/apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling replaceNamespacedHorizontalPodAutoscalerStatus.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling replaceNamespacedHorizontalPodAutoscalerStatus.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling replaceNamespacedHorizontalPodAutoscalerStatus.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PUT', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1HorizontalPodAutoscaler; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } +} +export enum Autoscaling_v2beta1ApiApiKeys { + BearerToken, +} + +export class Autoscaling_v2beta1Api { + protected _basePath = defaultBasePath; + protected defaultHeaders : any = {}; + protected _useQuerystring : boolean = false; + + protected authentications = { + 'default': new VoidAuth(), + 'BearerToken': new ApiKeyAuth('header', 'authorization'), + } + + constructor(basePath?: string); + constructor(basePathOrUsername: string, password?: string, basePath?: string) { + if (password) { + if (basePath) { + this.basePath = basePath; + } + } else { + if (basePathOrUsername) { + this.basePath = basePathOrUsername + } + } + } + + set useQuerystring(value: boolean) { + this._useQuerystring = value; + } + + set basePath(basePath: string) { + this._basePath = basePath; + } + + get basePath() { + return this._basePath; + } + + public setDefaultAuthentication(auth: Authentication) { + this.authentications.default = auth; + } + + public setApiKey(key: Autoscaling_v2beta1ApiApiKeys, value: string) { + this.authentications[Autoscaling_v2beta1ApiApiKeys[key]].apiKey = value; + } + /** + * create a HorizontalPodAutoscaler + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public createNamespacedHorizontalPodAutoscaler (namespace: string, body: V2beta1HorizontalPodAutoscaler, pretty?: string) : Promise<{ response: http.ClientResponse; body: V2beta1HorizontalPodAutoscaler; }> { + const localVarPath = this.basePath + '/apis/autoscaling/v2beta1/namespaces/{namespace}/horizontalpodautoscalers' + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling createNamespacedHorizontalPodAutoscaler.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling createNamespacedHorizontalPodAutoscaler.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'POST', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V2beta1HorizontalPodAutoscaler; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * delete collection of HorizontalPodAutoscaler + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If 'true', then the output is pretty printed. + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param includeUninitialized If true, partially initialized resources are included in the response. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + * @param timeoutSeconds Timeout for the list/watch call. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public deleteCollectionNamespacedHorizontalPodAutoscaler (namespace: string, pretty?: string, _continue?: string, fieldSelector?: string, includeUninitialized?: boolean, labelSelector?: string, limit?: number, resourceVersion?: string, timeoutSeconds?: number, watch?: boolean) : Promise<{ response: http.ClientResponse; body: V1Status; }> { + const localVarPath = this.basePath + '/apis/autoscaling/v2beta1/namespaces/{namespace}/horizontalpodautoscalers' + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling deleteCollectionNamespacedHorizontalPodAutoscaler.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (_continue !== undefined) { + queryParameters['continue'] = _continue; + } + + if (fieldSelector !== undefined) { + queryParameters['fieldSelector'] = fieldSelector; + } + + if (includeUninitialized !== undefined) { + queryParameters['includeUninitialized'] = includeUninitialized; + } + + if (labelSelector !== undefined) { + queryParameters['labelSelector'] = labelSelector; + } + + if (limit !== undefined) { + queryParameters['limit'] = limit; + } + + if (resourceVersion !== undefined) { + queryParameters['resourceVersion'] = resourceVersion; + } + + if (timeoutSeconds !== undefined) { + queryParameters['timeoutSeconds'] = timeoutSeconds; + } + + if (watch !== undefined) { + queryParameters['watch'] = watch; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'DELETE', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Status; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * delete a HorizontalPodAutoscaler + * @param name name of the HorizontalPodAutoscaler + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. + */ + public deleteNamespacedHorizontalPodAutoscaler (name: string, namespace: string, body: V1DeleteOptions, pretty?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string) : Promise<{ response: http.ClientResponse; body: V1Status; }> { + const localVarPath = this.basePath + '/apis/autoscaling/v2beta1/namespaces/{namespace}/horizontalpodautoscalers/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling deleteNamespacedHorizontalPodAutoscaler.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling deleteNamespacedHorizontalPodAutoscaler.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling deleteNamespacedHorizontalPodAutoscaler.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (gracePeriodSeconds !== undefined) { + queryParameters['gracePeriodSeconds'] = gracePeriodSeconds; + } + + if (orphanDependents !== undefined) { + queryParameters['orphanDependents'] = orphanDependents; + } + + if (propagationPolicy !== undefined) { + queryParameters['propagationPolicy'] = propagationPolicy; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'DELETE', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Status; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * get available resources + */ + public getAPIResources () : Promise<{ response: http.ClientResponse; body: V1APIResourceList; }> { + const localVarPath = this.basePath + '/apis/autoscaling/v2beta1/'; + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1APIResourceList; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * list or watch objects of kind HorizontalPodAutoscaler + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param includeUninitialized If true, partially initialized resources are included in the response. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param pretty If 'true', then the output is pretty printed. + * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + * @param timeoutSeconds Timeout for the list/watch call. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public listHorizontalPodAutoscalerForAllNamespaces (_continue?: string, fieldSelector?: string, includeUninitialized?: boolean, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, timeoutSeconds?: number, watch?: boolean) : Promise<{ response: http.ClientResponse; body: V2beta1HorizontalPodAutoscalerList; }> { + const localVarPath = this.basePath + '/apis/autoscaling/v2beta1/horizontalpodautoscalers'; + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + if (_continue !== undefined) { + queryParameters['continue'] = _continue; + } + + if (fieldSelector !== undefined) { + queryParameters['fieldSelector'] = fieldSelector; + } + + if (includeUninitialized !== undefined) { + queryParameters['includeUninitialized'] = includeUninitialized; + } + + if (labelSelector !== undefined) { + queryParameters['labelSelector'] = labelSelector; + } + + if (limit !== undefined) { + queryParameters['limit'] = limit; + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (resourceVersion !== undefined) { + queryParameters['resourceVersion'] = resourceVersion; + } + + if (timeoutSeconds !== undefined) { + queryParameters['timeoutSeconds'] = timeoutSeconds; + } + + if (watch !== undefined) { + queryParameters['watch'] = watch; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V2beta1HorizontalPodAutoscalerList; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * list or watch objects of kind HorizontalPodAutoscaler + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If 'true', then the output is pretty printed. + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param includeUninitialized If true, partially initialized resources are included in the response. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + * @param timeoutSeconds Timeout for the list/watch call. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public listNamespacedHorizontalPodAutoscaler (namespace: string, pretty?: string, _continue?: string, fieldSelector?: string, includeUninitialized?: boolean, labelSelector?: string, limit?: number, resourceVersion?: string, timeoutSeconds?: number, watch?: boolean) : Promise<{ response: http.ClientResponse; body: V2beta1HorizontalPodAutoscalerList; }> { + const localVarPath = this.basePath + '/apis/autoscaling/v2beta1/namespaces/{namespace}/horizontalpodautoscalers' + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling listNamespacedHorizontalPodAutoscaler.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (_continue !== undefined) { + queryParameters['continue'] = _continue; + } + + if (fieldSelector !== undefined) { + queryParameters['fieldSelector'] = fieldSelector; + } + + if (includeUninitialized !== undefined) { + queryParameters['includeUninitialized'] = includeUninitialized; + } + + if (labelSelector !== undefined) { + queryParameters['labelSelector'] = labelSelector; + } + + if (limit !== undefined) { + queryParameters['limit'] = limit; + } + + if (resourceVersion !== undefined) { + queryParameters['resourceVersion'] = resourceVersion; + } + + if (timeoutSeconds !== undefined) { + queryParameters['timeoutSeconds'] = timeoutSeconds; + } + + if (watch !== undefined) { + queryParameters['watch'] = watch; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V2beta1HorizontalPodAutoscalerList; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * partially update the specified HorizontalPodAutoscaler + * @param name name of the HorizontalPodAutoscaler + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public patchNamespacedHorizontalPodAutoscaler (name: string, namespace: string, body: any, pretty?: string) : Promise<{ response: http.ClientResponse; body: V2beta1HorizontalPodAutoscaler; }> { + const localVarPath = this.basePath + '/apis/autoscaling/v2beta1/namespaces/{namespace}/horizontalpodautoscalers/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling patchNamespacedHorizontalPodAutoscaler.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling patchNamespacedHorizontalPodAutoscaler.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling patchNamespacedHorizontalPodAutoscaler.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PATCH', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V2beta1HorizontalPodAutoscaler; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * partially update status of the specified HorizontalPodAutoscaler + * @param name name of the HorizontalPodAutoscaler + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public patchNamespacedHorizontalPodAutoscalerStatus (name: string, namespace: string, body: any, pretty?: string) : Promise<{ response: http.ClientResponse; body: V2beta1HorizontalPodAutoscaler; }> { + const localVarPath = this.basePath + '/apis/autoscaling/v2beta1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling patchNamespacedHorizontalPodAutoscalerStatus.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling patchNamespacedHorizontalPodAutoscalerStatus.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling patchNamespacedHorizontalPodAutoscalerStatus.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PATCH', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V2beta1HorizontalPodAutoscaler; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * read the specified HorizontalPodAutoscaler + * @param name name of the HorizontalPodAutoscaler + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If 'true', then the output is pretty printed. + * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + * @param _export Should this value be exported. Export strips fields that a user can not specify. + */ + public readNamespacedHorizontalPodAutoscaler (name: string, namespace: string, pretty?: string, exact?: boolean, _export?: boolean) : Promise<{ response: http.ClientResponse; body: V2beta1HorizontalPodAutoscaler; }> { + const localVarPath = this.basePath + '/apis/autoscaling/v2beta1/namespaces/{namespace}/horizontalpodautoscalers/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling readNamespacedHorizontalPodAutoscaler.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling readNamespacedHorizontalPodAutoscaler.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (exact !== undefined) { + queryParameters['exact'] = exact; + } + + if (_export !== undefined) { + queryParameters['export'] = _export; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V2beta1HorizontalPodAutoscaler; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * read status of the specified HorizontalPodAutoscaler + * @param name name of the HorizontalPodAutoscaler + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If 'true', then the output is pretty printed. + */ + public readNamespacedHorizontalPodAutoscalerStatus (name: string, namespace: string, pretty?: string) : Promise<{ response: http.ClientResponse; body: V2beta1HorizontalPodAutoscaler; }> { + const localVarPath = this.basePath + '/apis/autoscaling/v2beta1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling readNamespacedHorizontalPodAutoscalerStatus.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling readNamespacedHorizontalPodAutoscalerStatus.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V2beta1HorizontalPodAutoscaler; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * replace the specified HorizontalPodAutoscaler + * @param name name of the HorizontalPodAutoscaler + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public replaceNamespacedHorizontalPodAutoscaler (name: string, namespace: string, body: V2beta1HorizontalPodAutoscaler, pretty?: string) : Promise<{ response: http.ClientResponse; body: V2beta1HorizontalPodAutoscaler; }> { + const localVarPath = this.basePath + '/apis/autoscaling/v2beta1/namespaces/{namespace}/horizontalpodautoscalers/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling replaceNamespacedHorizontalPodAutoscaler.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling replaceNamespacedHorizontalPodAutoscaler.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling replaceNamespacedHorizontalPodAutoscaler.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PUT', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V2beta1HorizontalPodAutoscaler; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * replace status of the specified HorizontalPodAutoscaler + * @param name name of the HorizontalPodAutoscaler + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public replaceNamespacedHorizontalPodAutoscalerStatus (name: string, namespace: string, body: V2beta1HorizontalPodAutoscaler, pretty?: string) : Promise<{ response: http.ClientResponse; body: V2beta1HorizontalPodAutoscaler; }> { + const localVarPath = this.basePath + '/apis/autoscaling/v2beta1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling replaceNamespacedHorizontalPodAutoscalerStatus.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling replaceNamespacedHorizontalPodAutoscalerStatus.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling replaceNamespacedHorizontalPodAutoscalerStatus.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PUT', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V2beta1HorizontalPodAutoscaler; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } +} +export enum BatchApiApiKeys { + BearerToken, +} + +export class BatchApi { + protected _basePath = defaultBasePath; + protected defaultHeaders : any = {}; + protected _useQuerystring : boolean = false; + + protected authentications = { + 'default': new VoidAuth(), + 'BearerToken': new ApiKeyAuth('header', 'authorization'), + } + + constructor(basePath?: string); + constructor(basePathOrUsername: string, password?: string, basePath?: string) { + if (password) { + if (basePath) { + this.basePath = basePath; + } + } else { + if (basePathOrUsername) { + this.basePath = basePathOrUsername + } + } + } + + set useQuerystring(value: boolean) { + this._useQuerystring = value; + } + + set basePath(basePath: string) { + this._basePath = basePath; + } + + get basePath() { + return this._basePath; + } + + public setDefaultAuthentication(auth: Authentication) { + this.authentications.default = auth; + } + + public setApiKey(key: BatchApiApiKeys, value: string) { + this.authentications[BatchApiApiKeys[key]].apiKey = value; + } + /** + * get information of a group + */ + public getAPIGroup () : Promise<{ response: http.ClientResponse; body: V1APIGroup; }> { + const localVarPath = this.basePath + '/apis/batch/'; + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1APIGroup; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } +} +export enum Batch_v1ApiApiKeys { + BearerToken, +} + +export class Batch_v1Api { + protected _basePath = defaultBasePath; + protected defaultHeaders : any = {}; + protected _useQuerystring : boolean = false; + + protected authentications = { + 'default': new VoidAuth(), + 'BearerToken': new ApiKeyAuth('header', 'authorization'), + } + + constructor(basePath?: string); + constructor(basePathOrUsername: string, password?: string, basePath?: string) { + if (password) { + if (basePath) { + this.basePath = basePath; + } + } else { + if (basePathOrUsername) { + this.basePath = basePathOrUsername + } + } + } + + set useQuerystring(value: boolean) { + this._useQuerystring = value; + } + + set basePath(basePath: string) { + this._basePath = basePath; + } + + get basePath() { + return this._basePath; + } + + public setDefaultAuthentication(auth: Authentication) { + this.authentications.default = auth; + } + + public setApiKey(key: Batch_v1ApiApiKeys, value: string) { + this.authentications[Batch_v1ApiApiKeys[key]].apiKey = value; + } + /** + * create a Job + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public createNamespacedJob (namespace: string, body: V1Job, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1Job; }> { + const localVarPath = this.basePath + '/apis/batch/v1/namespaces/{namespace}/jobs' + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling createNamespacedJob.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling createNamespacedJob.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'POST', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Job; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * delete collection of Job + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If 'true', then the output is pretty printed. + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param includeUninitialized If true, partially initialized resources are included in the response. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + * @param timeoutSeconds Timeout for the list/watch call. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public deleteCollectionNamespacedJob (namespace: string, pretty?: string, _continue?: string, fieldSelector?: string, includeUninitialized?: boolean, labelSelector?: string, limit?: number, resourceVersion?: string, timeoutSeconds?: number, watch?: boolean) : Promise<{ response: http.ClientResponse; body: V1Status; }> { + const localVarPath = this.basePath + '/apis/batch/v1/namespaces/{namespace}/jobs' + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling deleteCollectionNamespacedJob.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (_continue !== undefined) { + queryParameters['continue'] = _continue; + } + + if (fieldSelector !== undefined) { + queryParameters['fieldSelector'] = fieldSelector; + } + + if (includeUninitialized !== undefined) { + queryParameters['includeUninitialized'] = includeUninitialized; + } + + if (labelSelector !== undefined) { + queryParameters['labelSelector'] = labelSelector; + } + + if (limit !== undefined) { + queryParameters['limit'] = limit; + } + + if (resourceVersion !== undefined) { + queryParameters['resourceVersion'] = resourceVersion; + } + + if (timeoutSeconds !== undefined) { + queryParameters['timeoutSeconds'] = timeoutSeconds; + } + + if (watch !== undefined) { + queryParameters['watch'] = watch; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'DELETE', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Status; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * delete a Job + * @param name name of the Job + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. + */ + public deleteNamespacedJob (name: string, namespace: string, body: V1DeleteOptions, pretty?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string) : Promise<{ response: http.ClientResponse; body: V1Status; }> { + const localVarPath = this.basePath + '/apis/batch/v1/namespaces/{namespace}/jobs/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling deleteNamespacedJob.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling deleteNamespacedJob.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling deleteNamespacedJob.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (gracePeriodSeconds !== undefined) { + queryParameters['gracePeriodSeconds'] = gracePeriodSeconds; + } + + if (orphanDependents !== undefined) { + queryParameters['orphanDependents'] = orphanDependents; + } + + if (propagationPolicy !== undefined) { + queryParameters['propagationPolicy'] = propagationPolicy; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'DELETE', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Status; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * get available resources + */ + public getAPIResources () : Promise<{ response: http.ClientResponse; body: V1APIResourceList; }> { + const localVarPath = this.basePath + '/apis/batch/v1/'; + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1APIResourceList; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * list or watch objects of kind Job + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param includeUninitialized If true, partially initialized resources are included in the response. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param pretty If 'true', then the output is pretty printed. + * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + * @param timeoutSeconds Timeout for the list/watch call. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public listJobForAllNamespaces (_continue?: string, fieldSelector?: string, includeUninitialized?: boolean, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, timeoutSeconds?: number, watch?: boolean) : Promise<{ response: http.ClientResponse; body: V1JobList; }> { + const localVarPath = this.basePath + '/apis/batch/v1/jobs'; + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + if (_continue !== undefined) { + queryParameters['continue'] = _continue; + } + + if (fieldSelector !== undefined) { + queryParameters['fieldSelector'] = fieldSelector; + } + + if (includeUninitialized !== undefined) { + queryParameters['includeUninitialized'] = includeUninitialized; + } + + if (labelSelector !== undefined) { + queryParameters['labelSelector'] = labelSelector; + } + + if (limit !== undefined) { + queryParameters['limit'] = limit; + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (resourceVersion !== undefined) { + queryParameters['resourceVersion'] = resourceVersion; + } + + if (timeoutSeconds !== undefined) { + queryParameters['timeoutSeconds'] = timeoutSeconds; + } + + if (watch !== undefined) { + queryParameters['watch'] = watch; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1JobList; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * list or watch objects of kind Job + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If 'true', then the output is pretty printed. + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param includeUninitialized If true, partially initialized resources are included in the response. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + * @param timeoutSeconds Timeout for the list/watch call. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public listNamespacedJob (namespace: string, pretty?: string, _continue?: string, fieldSelector?: string, includeUninitialized?: boolean, labelSelector?: string, limit?: number, resourceVersion?: string, timeoutSeconds?: number, watch?: boolean) : Promise<{ response: http.ClientResponse; body: V1JobList; }> { + const localVarPath = this.basePath + '/apis/batch/v1/namespaces/{namespace}/jobs' + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling listNamespacedJob.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (_continue !== undefined) { + queryParameters['continue'] = _continue; + } + + if (fieldSelector !== undefined) { + queryParameters['fieldSelector'] = fieldSelector; + } + + if (includeUninitialized !== undefined) { + queryParameters['includeUninitialized'] = includeUninitialized; + } + + if (labelSelector !== undefined) { + queryParameters['labelSelector'] = labelSelector; + } + + if (limit !== undefined) { + queryParameters['limit'] = limit; + } + + if (resourceVersion !== undefined) { + queryParameters['resourceVersion'] = resourceVersion; + } + + if (timeoutSeconds !== undefined) { + queryParameters['timeoutSeconds'] = timeoutSeconds; + } + + if (watch !== undefined) { + queryParameters['watch'] = watch; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1JobList; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * partially update the specified Job + * @param name name of the Job + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public patchNamespacedJob (name: string, namespace: string, body: any, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1Job; }> { + const localVarPath = this.basePath + '/apis/batch/v1/namespaces/{namespace}/jobs/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling patchNamespacedJob.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling patchNamespacedJob.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling patchNamespacedJob.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PATCH', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Job; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * partially update status of the specified Job + * @param name name of the Job + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public patchNamespacedJobStatus (name: string, namespace: string, body: any, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1Job; }> { + const localVarPath = this.basePath + '/apis/batch/v1/namespaces/{namespace}/jobs/{name}/status' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling patchNamespacedJobStatus.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling patchNamespacedJobStatus.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling patchNamespacedJobStatus.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PATCH', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Job; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * read the specified Job + * @param name name of the Job + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If 'true', then the output is pretty printed. + * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + * @param _export Should this value be exported. Export strips fields that a user can not specify. + */ + public readNamespacedJob (name: string, namespace: string, pretty?: string, exact?: boolean, _export?: boolean) : Promise<{ response: http.ClientResponse; body: V1Job; }> { + const localVarPath = this.basePath + '/apis/batch/v1/namespaces/{namespace}/jobs/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling readNamespacedJob.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling readNamespacedJob.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (exact !== undefined) { + queryParameters['exact'] = exact; + } + + if (_export !== undefined) { + queryParameters['export'] = _export; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Job; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * read status of the specified Job + * @param name name of the Job + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If 'true', then the output is pretty printed. + */ + public readNamespacedJobStatus (name: string, namespace: string, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1Job; }> { + const localVarPath = this.basePath + '/apis/batch/v1/namespaces/{namespace}/jobs/{name}/status' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling readNamespacedJobStatus.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling readNamespacedJobStatus.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Job; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * replace the specified Job + * @param name name of the Job + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public replaceNamespacedJob (name: string, namespace: string, body: V1Job, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1Job; }> { + const localVarPath = this.basePath + '/apis/batch/v1/namespaces/{namespace}/jobs/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling replaceNamespacedJob.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling replaceNamespacedJob.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling replaceNamespacedJob.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PUT', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Job; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * replace status of the specified Job + * @param name name of the Job + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public replaceNamespacedJobStatus (name: string, namespace: string, body: V1Job, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1Job; }> { + const localVarPath = this.basePath + '/apis/batch/v1/namespaces/{namespace}/jobs/{name}/status' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling replaceNamespacedJobStatus.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling replaceNamespacedJobStatus.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling replaceNamespacedJobStatus.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PUT', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Job; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } +} +export enum Batch_v1beta1ApiApiKeys { + BearerToken, +} + +export class Batch_v1beta1Api { + protected _basePath = defaultBasePath; + protected defaultHeaders : any = {}; + protected _useQuerystring : boolean = false; + + protected authentications = { + 'default': new VoidAuth(), + 'BearerToken': new ApiKeyAuth('header', 'authorization'), + } + + constructor(basePath?: string); + constructor(basePathOrUsername: string, password?: string, basePath?: string) { + if (password) { + if (basePath) { + this.basePath = basePath; + } + } else { + if (basePathOrUsername) { + this.basePath = basePathOrUsername + } + } + } + + set useQuerystring(value: boolean) { + this._useQuerystring = value; + } + + set basePath(basePath: string) { + this._basePath = basePath; + } + + get basePath() { + return this._basePath; + } + + public setDefaultAuthentication(auth: Authentication) { + this.authentications.default = auth; + } + + public setApiKey(key: Batch_v1beta1ApiApiKeys, value: string) { + this.authentications[Batch_v1beta1ApiApiKeys[key]].apiKey = value; + } + /** + * create a CronJob + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public createNamespacedCronJob (namespace: string, body: V1beta1CronJob, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1beta1CronJob; }> { + const localVarPath = this.basePath + '/apis/batch/v1beta1/namespaces/{namespace}/cronjobs' + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling createNamespacedCronJob.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling createNamespacedCronJob.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'POST', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta1CronJob; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * delete collection of CronJob + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If 'true', then the output is pretty printed. + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param includeUninitialized If true, partially initialized resources are included in the response. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + * @param timeoutSeconds Timeout for the list/watch call. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public deleteCollectionNamespacedCronJob (namespace: string, pretty?: string, _continue?: string, fieldSelector?: string, includeUninitialized?: boolean, labelSelector?: string, limit?: number, resourceVersion?: string, timeoutSeconds?: number, watch?: boolean) : Promise<{ response: http.ClientResponse; body: V1Status; }> { + const localVarPath = this.basePath + '/apis/batch/v1beta1/namespaces/{namespace}/cronjobs' + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling deleteCollectionNamespacedCronJob.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (_continue !== undefined) { + queryParameters['continue'] = _continue; + } + + if (fieldSelector !== undefined) { + queryParameters['fieldSelector'] = fieldSelector; + } + + if (includeUninitialized !== undefined) { + queryParameters['includeUninitialized'] = includeUninitialized; + } + + if (labelSelector !== undefined) { + queryParameters['labelSelector'] = labelSelector; + } + + if (limit !== undefined) { + queryParameters['limit'] = limit; + } + + if (resourceVersion !== undefined) { + queryParameters['resourceVersion'] = resourceVersion; + } + + if (timeoutSeconds !== undefined) { + queryParameters['timeoutSeconds'] = timeoutSeconds; + } + + if (watch !== undefined) { + queryParameters['watch'] = watch; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'DELETE', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Status; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * delete a CronJob + * @param name name of the CronJob + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. + */ + public deleteNamespacedCronJob (name: string, namespace: string, body: V1DeleteOptions, pretty?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string) : Promise<{ response: http.ClientResponse; body: V1Status; }> { + const localVarPath = this.basePath + '/apis/batch/v1beta1/namespaces/{namespace}/cronjobs/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling deleteNamespacedCronJob.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling deleteNamespacedCronJob.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling deleteNamespacedCronJob.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (gracePeriodSeconds !== undefined) { + queryParameters['gracePeriodSeconds'] = gracePeriodSeconds; + } + + if (orphanDependents !== undefined) { + queryParameters['orphanDependents'] = orphanDependents; + } + + if (propagationPolicy !== undefined) { + queryParameters['propagationPolicy'] = propagationPolicy; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'DELETE', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Status; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * get available resources + */ + public getAPIResources () : Promise<{ response: http.ClientResponse; body: V1APIResourceList; }> { + const localVarPath = this.basePath + '/apis/batch/v1beta1/'; + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1APIResourceList; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * list or watch objects of kind CronJob + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param includeUninitialized If true, partially initialized resources are included in the response. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param pretty If 'true', then the output is pretty printed. + * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + * @param timeoutSeconds Timeout for the list/watch call. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public listCronJobForAllNamespaces (_continue?: string, fieldSelector?: string, includeUninitialized?: boolean, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, timeoutSeconds?: number, watch?: boolean) : Promise<{ response: http.ClientResponse; body: V1beta1CronJobList; }> { + const localVarPath = this.basePath + '/apis/batch/v1beta1/cronjobs'; + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + if (_continue !== undefined) { + queryParameters['continue'] = _continue; + } + + if (fieldSelector !== undefined) { + queryParameters['fieldSelector'] = fieldSelector; + } + + if (includeUninitialized !== undefined) { + queryParameters['includeUninitialized'] = includeUninitialized; + } + + if (labelSelector !== undefined) { + queryParameters['labelSelector'] = labelSelector; + } + + if (limit !== undefined) { + queryParameters['limit'] = limit; + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (resourceVersion !== undefined) { + queryParameters['resourceVersion'] = resourceVersion; + } + + if (timeoutSeconds !== undefined) { + queryParameters['timeoutSeconds'] = timeoutSeconds; + } + + if (watch !== undefined) { + queryParameters['watch'] = watch; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta1CronJobList; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * list or watch objects of kind CronJob + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If 'true', then the output is pretty printed. + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param includeUninitialized If true, partially initialized resources are included in the response. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + * @param timeoutSeconds Timeout for the list/watch call. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public listNamespacedCronJob (namespace: string, pretty?: string, _continue?: string, fieldSelector?: string, includeUninitialized?: boolean, labelSelector?: string, limit?: number, resourceVersion?: string, timeoutSeconds?: number, watch?: boolean) : Promise<{ response: http.ClientResponse; body: V1beta1CronJobList; }> { + const localVarPath = this.basePath + '/apis/batch/v1beta1/namespaces/{namespace}/cronjobs' + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling listNamespacedCronJob.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (_continue !== undefined) { + queryParameters['continue'] = _continue; + } + + if (fieldSelector !== undefined) { + queryParameters['fieldSelector'] = fieldSelector; + } + + if (includeUninitialized !== undefined) { + queryParameters['includeUninitialized'] = includeUninitialized; + } + + if (labelSelector !== undefined) { + queryParameters['labelSelector'] = labelSelector; + } + + if (limit !== undefined) { + queryParameters['limit'] = limit; + } + + if (resourceVersion !== undefined) { + queryParameters['resourceVersion'] = resourceVersion; + } + + if (timeoutSeconds !== undefined) { + queryParameters['timeoutSeconds'] = timeoutSeconds; + } + + if (watch !== undefined) { + queryParameters['watch'] = watch; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta1CronJobList; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * partially update the specified CronJob + * @param name name of the CronJob + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public patchNamespacedCronJob (name: string, namespace: string, body: any, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1beta1CronJob; }> { + const localVarPath = this.basePath + '/apis/batch/v1beta1/namespaces/{namespace}/cronjobs/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling patchNamespacedCronJob.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling patchNamespacedCronJob.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling patchNamespacedCronJob.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PATCH', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta1CronJob; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * partially update status of the specified CronJob + * @param name name of the CronJob + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public patchNamespacedCronJobStatus (name: string, namespace: string, body: any, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1beta1CronJob; }> { + const localVarPath = this.basePath + '/apis/batch/v1beta1/namespaces/{namespace}/cronjobs/{name}/status' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling patchNamespacedCronJobStatus.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling patchNamespacedCronJobStatus.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling patchNamespacedCronJobStatus.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PATCH', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta1CronJob; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * read the specified CronJob + * @param name name of the CronJob + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If 'true', then the output is pretty printed. + * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + * @param _export Should this value be exported. Export strips fields that a user can not specify. + */ + public readNamespacedCronJob (name: string, namespace: string, pretty?: string, exact?: boolean, _export?: boolean) : Promise<{ response: http.ClientResponse; body: V1beta1CronJob; }> { + const localVarPath = this.basePath + '/apis/batch/v1beta1/namespaces/{namespace}/cronjobs/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling readNamespacedCronJob.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling readNamespacedCronJob.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (exact !== undefined) { + queryParameters['exact'] = exact; + } + + if (_export !== undefined) { + queryParameters['export'] = _export; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta1CronJob; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * read status of the specified CronJob + * @param name name of the CronJob + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If 'true', then the output is pretty printed. + */ + public readNamespacedCronJobStatus (name: string, namespace: string, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1beta1CronJob; }> { + const localVarPath = this.basePath + '/apis/batch/v1beta1/namespaces/{namespace}/cronjobs/{name}/status' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling readNamespacedCronJobStatus.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling readNamespacedCronJobStatus.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta1CronJob; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * replace the specified CronJob + * @param name name of the CronJob + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public replaceNamespacedCronJob (name: string, namespace: string, body: V1beta1CronJob, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1beta1CronJob; }> { + const localVarPath = this.basePath + '/apis/batch/v1beta1/namespaces/{namespace}/cronjobs/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling replaceNamespacedCronJob.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling replaceNamespacedCronJob.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling replaceNamespacedCronJob.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PUT', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta1CronJob; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * replace status of the specified CronJob + * @param name name of the CronJob + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public replaceNamespacedCronJobStatus (name: string, namespace: string, body: V1beta1CronJob, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1beta1CronJob; }> { + const localVarPath = this.basePath + '/apis/batch/v1beta1/namespaces/{namespace}/cronjobs/{name}/status' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling replaceNamespacedCronJobStatus.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling replaceNamespacedCronJobStatus.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling replaceNamespacedCronJobStatus.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PUT', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta1CronJob; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } +} +export enum Batch_v2alpha1ApiApiKeys { + BearerToken, +} + +export class Batch_v2alpha1Api { + protected _basePath = defaultBasePath; + protected defaultHeaders : any = {}; + protected _useQuerystring : boolean = false; + + protected authentications = { + 'default': new VoidAuth(), + 'BearerToken': new ApiKeyAuth('header', 'authorization'), + } + + constructor(basePath?: string); + constructor(basePathOrUsername: string, password?: string, basePath?: string) { + if (password) { + if (basePath) { + this.basePath = basePath; + } + } else { + if (basePathOrUsername) { + this.basePath = basePathOrUsername + } + } + } + + set useQuerystring(value: boolean) { + this._useQuerystring = value; + } + + set basePath(basePath: string) { + this._basePath = basePath; + } + + get basePath() { + return this._basePath; + } + + public setDefaultAuthentication(auth: Authentication) { + this.authentications.default = auth; + } + + public setApiKey(key: Batch_v2alpha1ApiApiKeys, value: string) { + this.authentications[Batch_v2alpha1ApiApiKeys[key]].apiKey = value; + } + /** + * create a CronJob + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public createNamespacedCronJob (namespace: string, body: V2alpha1CronJob, pretty?: string) : Promise<{ response: http.ClientResponse; body: V2alpha1CronJob; }> { + const localVarPath = this.basePath + '/apis/batch/v2alpha1/namespaces/{namespace}/cronjobs' + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling createNamespacedCronJob.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling createNamespacedCronJob.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'POST', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V2alpha1CronJob; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * delete collection of CronJob + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If 'true', then the output is pretty printed. + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param includeUninitialized If true, partially initialized resources are included in the response. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + * @param timeoutSeconds Timeout for the list/watch call. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public deleteCollectionNamespacedCronJob (namespace: string, pretty?: string, _continue?: string, fieldSelector?: string, includeUninitialized?: boolean, labelSelector?: string, limit?: number, resourceVersion?: string, timeoutSeconds?: number, watch?: boolean) : Promise<{ response: http.ClientResponse; body: V1Status; }> { + const localVarPath = this.basePath + '/apis/batch/v2alpha1/namespaces/{namespace}/cronjobs' + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling deleteCollectionNamespacedCronJob.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (_continue !== undefined) { + queryParameters['continue'] = _continue; + } + + if (fieldSelector !== undefined) { + queryParameters['fieldSelector'] = fieldSelector; + } + + if (includeUninitialized !== undefined) { + queryParameters['includeUninitialized'] = includeUninitialized; + } + + if (labelSelector !== undefined) { + queryParameters['labelSelector'] = labelSelector; + } + + if (limit !== undefined) { + queryParameters['limit'] = limit; + } + + if (resourceVersion !== undefined) { + queryParameters['resourceVersion'] = resourceVersion; + } + + if (timeoutSeconds !== undefined) { + queryParameters['timeoutSeconds'] = timeoutSeconds; + } + + if (watch !== undefined) { + queryParameters['watch'] = watch; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'DELETE', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Status; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * delete a CronJob + * @param name name of the CronJob + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. + */ + public deleteNamespacedCronJob (name: string, namespace: string, body: V1DeleteOptions, pretty?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string) : Promise<{ response: http.ClientResponse; body: V1Status; }> { + const localVarPath = this.basePath + '/apis/batch/v2alpha1/namespaces/{namespace}/cronjobs/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling deleteNamespacedCronJob.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling deleteNamespacedCronJob.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling deleteNamespacedCronJob.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (gracePeriodSeconds !== undefined) { + queryParameters['gracePeriodSeconds'] = gracePeriodSeconds; + } + + if (orphanDependents !== undefined) { + queryParameters['orphanDependents'] = orphanDependents; + } + + if (propagationPolicy !== undefined) { + queryParameters['propagationPolicy'] = propagationPolicy; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'DELETE', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Status; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * get available resources + */ + public getAPIResources () : Promise<{ response: http.ClientResponse; body: V1APIResourceList; }> { + const localVarPath = this.basePath + '/apis/batch/v2alpha1/'; + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1APIResourceList; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * list or watch objects of kind CronJob + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param includeUninitialized If true, partially initialized resources are included in the response. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param pretty If 'true', then the output is pretty printed. + * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + * @param timeoutSeconds Timeout for the list/watch call. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public listCronJobForAllNamespaces (_continue?: string, fieldSelector?: string, includeUninitialized?: boolean, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, timeoutSeconds?: number, watch?: boolean) : Promise<{ response: http.ClientResponse; body: V2alpha1CronJobList; }> { + const localVarPath = this.basePath + '/apis/batch/v2alpha1/cronjobs'; + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + if (_continue !== undefined) { + queryParameters['continue'] = _continue; + } + + if (fieldSelector !== undefined) { + queryParameters['fieldSelector'] = fieldSelector; + } + + if (includeUninitialized !== undefined) { + queryParameters['includeUninitialized'] = includeUninitialized; + } + + if (labelSelector !== undefined) { + queryParameters['labelSelector'] = labelSelector; + } + + if (limit !== undefined) { + queryParameters['limit'] = limit; + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (resourceVersion !== undefined) { + queryParameters['resourceVersion'] = resourceVersion; + } + + if (timeoutSeconds !== undefined) { + queryParameters['timeoutSeconds'] = timeoutSeconds; + } + + if (watch !== undefined) { + queryParameters['watch'] = watch; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V2alpha1CronJobList; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * list or watch objects of kind CronJob + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If 'true', then the output is pretty printed. + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param includeUninitialized If true, partially initialized resources are included in the response. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + * @param timeoutSeconds Timeout for the list/watch call. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public listNamespacedCronJob (namespace: string, pretty?: string, _continue?: string, fieldSelector?: string, includeUninitialized?: boolean, labelSelector?: string, limit?: number, resourceVersion?: string, timeoutSeconds?: number, watch?: boolean) : Promise<{ response: http.ClientResponse; body: V2alpha1CronJobList; }> { + const localVarPath = this.basePath + '/apis/batch/v2alpha1/namespaces/{namespace}/cronjobs' + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling listNamespacedCronJob.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (_continue !== undefined) { + queryParameters['continue'] = _continue; + } + + if (fieldSelector !== undefined) { + queryParameters['fieldSelector'] = fieldSelector; + } + + if (includeUninitialized !== undefined) { + queryParameters['includeUninitialized'] = includeUninitialized; + } + + if (labelSelector !== undefined) { + queryParameters['labelSelector'] = labelSelector; + } + + if (limit !== undefined) { + queryParameters['limit'] = limit; + } + + if (resourceVersion !== undefined) { + queryParameters['resourceVersion'] = resourceVersion; + } + + if (timeoutSeconds !== undefined) { + queryParameters['timeoutSeconds'] = timeoutSeconds; + } + + if (watch !== undefined) { + queryParameters['watch'] = watch; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V2alpha1CronJobList; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * partially update the specified CronJob + * @param name name of the CronJob + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public patchNamespacedCronJob (name: string, namespace: string, body: any, pretty?: string) : Promise<{ response: http.ClientResponse; body: V2alpha1CronJob; }> { + const localVarPath = this.basePath + '/apis/batch/v2alpha1/namespaces/{namespace}/cronjobs/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling patchNamespacedCronJob.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling patchNamespacedCronJob.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling patchNamespacedCronJob.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PATCH', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V2alpha1CronJob; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * partially update status of the specified CronJob + * @param name name of the CronJob + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public patchNamespacedCronJobStatus (name: string, namespace: string, body: any, pretty?: string) : Promise<{ response: http.ClientResponse; body: V2alpha1CronJob; }> { + const localVarPath = this.basePath + '/apis/batch/v2alpha1/namespaces/{namespace}/cronjobs/{name}/status' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling patchNamespacedCronJobStatus.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling patchNamespacedCronJobStatus.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling patchNamespacedCronJobStatus.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PATCH', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V2alpha1CronJob; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * read the specified CronJob + * @param name name of the CronJob + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If 'true', then the output is pretty printed. + * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + * @param _export Should this value be exported. Export strips fields that a user can not specify. + */ + public readNamespacedCronJob (name: string, namespace: string, pretty?: string, exact?: boolean, _export?: boolean) : Promise<{ response: http.ClientResponse; body: V2alpha1CronJob; }> { + const localVarPath = this.basePath + '/apis/batch/v2alpha1/namespaces/{namespace}/cronjobs/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling readNamespacedCronJob.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling readNamespacedCronJob.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (exact !== undefined) { + queryParameters['exact'] = exact; + } + + if (_export !== undefined) { + queryParameters['export'] = _export; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V2alpha1CronJob; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * read status of the specified CronJob + * @param name name of the CronJob + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If 'true', then the output is pretty printed. + */ + public readNamespacedCronJobStatus (name: string, namespace: string, pretty?: string) : Promise<{ response: http.ClientResponse; body: V2alpha1CronJob; }> { + const localVarPath = this.basePath + '/apis/batch/v2alpha1/namespaces/{namespace}/cronjobs/{name}/status' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling readNamespacedCronJobStatus.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling readNamespacedCronJobStatus.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V2alpha1CronJob; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * replace the specified CronJob + * @param name name of the CronJob + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public replaceNamespacedCronJob (name: string, namespace: string, body: V2alpha1CronJob, pretty?: string) : Promise<{ response: http.ClientResponse; body: V2alpha1CronJob; }> { + const localVarPath = this.basePath + '/apis/batch/v2alpha1/namespaces/{namespace}/cronjobs/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling replaceNamespacedCronJob.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling replaceNamespacedCronJob.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling replaceNamespacedCronJob.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PUT', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V2alpha1CronJob; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * replace status of the specified CronJob + * @param name name of the CronJob + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public replaceNamespacedCronJobStatus (name: string, namespace: string, body: V2alpha1CronJob, pretty?: string) : Promise<{ response: http.ClientResponse; body: V2alpha1CronJob; }> { + const localVarPath = this.basePath + '/apis/batch/v2alpha1/namespaces/{namespace}/cronjobs/{name}/status' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling replaceNamespacedCronJobStatus.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling replaceNamespacedCronJobStatus.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling replaceNamespacedCronJobStatus.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PUT', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V2alpha1CronJob; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } +} +export enum CertificatesApiApiKeys { + BearerToken, +} + +export class CertificatesApi { + protected _basePath = defaultBasePath; + protected defaultHeaders : any = {}; + protected _useQuerystring : boolean = false; + + protected authentications = { + 'default': new VoidAuth(), + 'BearerToken': new ApiKeyAuth('header', 'authorization'), + } + + constructor(basePath?: string); + constructor(basePathOrUsername: string, password?: string, basePath?: string) { + if (password) { + if (basePath) { + this.basePath = basePath; + } + } else { + if (basePathOrUsername) { + this.basePath = basePathOrUsername + } + } + } + + set useQuerystring(value: boolean) { + this._useQuerystring = value; + } + + set basePath(basePath: string) { + this._basePath = basePath; + } + + get basePath() { + return this._basePath; + } + + public setDefaultAuthentication(auth: Authentication) { + this.authentications.default = auth; + } + + public setApiKey(key: CertificatesApiApiKeys, value: string) { + this.authentications[CertificatesApiApiKeys[key]].apiKey = value; + } + /** + * get information of a group + */ + public getAPIGroup () : Promise<{ response: http.ClientResponse; body: V1APIGroup; }> { + const localVarPath = this.basePath + '/apis/certificates.k8s.io/'; + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1APIGroup; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } +} +export enum Certificates_v1beta1ApiApiKeys { + BearerToken, +} + +export class Certificates_v1beta1Api { + protected _basePath = defaultBasePath; + protected defaultHeaders : any = {}; + protected _useQuerystring : boolean = false; + + protected authentications = { + 'default': new VoidAuth(), + 'BearerToken': new ApiKeyAuth('header', 'authorization'), + } + + constructor(basePath?: string); + constructor(basePathOrUsername: string, password?: string, basePath?: string) { + if (password) { + if (basePath) { + this.basePath = basePath; + } + } else { + if (basePathOrUsername) { + this.basePath = basePathOrUsername + } + } + } + + set useQuerystring(value: boolean) { + this._useQuerystring = value; + } + + set basePath(basePath: string) { + this._basePath = basePath; + } + + get basePath() { + return this._basePath; + } + + public setDefaultAuthentication(auth: Authentication) { + this.authentications.default = auth; + } + + public setApiKey(key: Certificates_v1beta1ApiApiKeys, value: string) { + this.authentications[Certificates_v1beta1ApiApiKeys[key]].apiKey = value; + } + /** + * create a CertificateSigningRequest + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public createCertificateSigningRequest (body: V1beta1CertificateSigningRequest, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1beta1CertificateSigningRequest; }> { + const localVarPath = this.basePath + '/apis/certificates.k8s.io/v1beta1/certificatesigningrequests'; + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling createCertificateSigningRequest.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'POST', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta1CertificateSigningRequest; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * delete a CertificateSigningRequest + * @param name name of the CertificateSigningRequest + * @param body + * @param pretty If 'true', then the output is pretty printed. + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. + */ + public deleteCertificateSigningRequest (name: string, body: V1DeleteOptions, pretty?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string) : Promise<{ response: http.ClientResponse; body: V1Status; }> { + const localVarPath = this.basePath + '/apis/certificates.k8s.io/v1beta1/certificatesigningrequests/{name}' + .replace('{' + 'name' + '}', String(name)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling deleteCertificateSigningRequest.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling deleteCertificateSigningRequest.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (gracePeriodSeconds !== undefined) { + queryParameters['gracePeriodSeconds'] = gracePeriodSeconds; + } + + if (orphanDependents !== undefined) { + queryParameters['orphanDependents'] = orphanDependents; + } + + if (propagationPolicy !== undefined) { + queryParameters['propagationPolicy'] = propagationPolicy; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'DELETE', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Status; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * delete collection of CertificateSigningRequest + * @param pretty If 'true', then the output is pretty printed. + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param includeUninitialized If true, partially initialized resources are included in the response. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + * @param timeoutSeconds Timeout for the list/watch call. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public deleteCollectionCertificateSigningRequest (pretty?: string, _continue?: string, fieldSelector?: string, includeUninitialized?: boolean, labelSelector?: string, limit?: number, resourceVersion?: string, timeoutSeconds?: number, watch?: boolean) : Promise<{ response: http.ClientResponse; body: V1Status; }> { + const localVarPath = this.basePath + '/apis/certificates.k8s.io/v1beta1/certificatesigningrequests'; + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (_continue !== undefined) { + queryParameters['continue'] = _continue; + } + + if (fieldSelector !== undefined) { + queryParameters['fieldSelector'] = fieldSelector; + } + + if (includeUninitialized !== undefined) { + queryParameters['includeUninitialized'] = includeUninitialized; + } + + if (labelSelector !== undefined) { + queryParameters['labelSelector'] = labelSelector; + } + + if (limit !== undefined) { + queryParameters['limit'] = limit; + } + + if (resourceVersion !== undefined) { + queryParameters['resourceVersion'] = resourceVersion; + } + + if (timeoutSeconds !== undefined) { + queryParameters['timeoutSeconds'] = timeoutSeconds; + } + + if (watch !== undefined) { + queryParameters['watch'] = watch; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'DELETE', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Status; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * get available resources + */ + public getAPIResources () : Promise<{ response: http.ClientResponse; body: V1APIResourceList; }> { + const localVarPath = this.basePath + '/apis/certificates.k8s.io/v1beta1/'; + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1APIResourceList; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * list or watch objects of kind CertificateSigningRequest + * @param pretty If 'true', then the output is pretty printed. + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param includeUninitialized If true, partially initialized resources are included in the response. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + * @param timeoutSeconds Timeout for the list/watch call. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public listCertificateSigningRequest (pretty?: string, _continue?: string, fieldSelector?: string, includeUninitialized?: boolean, labelSelector?: string, limit?: number, resourceVersion?: string, timeoutSeconds?: number, watch?: boolean) : Promise<{ response: http.ClientResponse; body: V1beta1CertificateSigningRequestList; }> { + const localVarPath = this.basePath + '/apis/certificates.k8s.io/v1beta1/certificatesigningrequests'; + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (_continue !== undefined) { + queryParameters['continue'] = _continue; + } + + if (fieldSelector !== undefined) { + queryParameters['fieldSelector'] = fieldSelector; + } + + if (includeUninitialized !== undefined) { + queryParameters['includeUninitialized'] = includeUninitialized; + } + + if (labelSelector !== undefined) { + queryParameters['labelSelector'] = labelSelector; + } + + if (limit !== undefined) { + queryParameters['limit'] = limit; + } + + if (resourceVersion !== undefined) { + queryParameters['resourceVersion'] = resourceVersion; + } + + if (timeoutSeconds !== undefined) { + queryParameters['timeoutSeconds'] = timeoutSeconds; + } + + if (watch !== undefined) { + queryParameters['watch'] = watch; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta1CertificateSigningRequestList; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * partially update the specified CertificateSigningRequest + * @param name name of the CertificateSigningRequest + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public patchCertificateSigningRequest (name: string, body: any, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1beta1CertificateSigningRequest; }> { + const localVarPath = this.basePath + '/apis/certificates.k8s.io/v1beta1/certificatesigningrequests/{name}' + .replace('{' + 'name' + '}', String(name)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling patchCertificateSigningRequest.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling patchCertificateSigningRequest.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PATCH', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta1CertificateSigningRequest; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * read the specified CertificateSigningRequest + * @param name name of the CertificateSigningRequest + * @param pretty If 'true', then the output is pretty printed. + * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + * @param _export Should this value be exported. Export strips fields that a user can not specify. + */ + public readCertificateSigningRequest (name: string, pretty?: string, exact?: boolean, _export?: boolean) : Promise<{ response: http.ClientResponse; body: V1beta1CertificateSigningRequest; }> { + const localVarPath = this.basePath + '/apis/certificates.k8s.io/v1beta1/certificatesigningrequests/{name}' + .replace('{' + 'name' + '}', String(name)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling readCertificateSigningRequest.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (exact !== undefined) { + queryParameters['exact'] = exact; + } + + if (_export !== undefined) { + queryParameters['export'] = _export; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta1CertificateSigningRequest; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * replace the specified CertificateSigningRequest + * @param name name of the CertificateSigningRequest + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public replaceCertificateSigningRequest (name: string, body: V1beta1CertificateSigningRequest, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1beta1CertificateSigningRequest; }> { + const localVarPath = this.basePath + '/apis/certificates.k8s.io/v1beta1/certificatesigningrequests/{name}' + .replace('{' + 'name' + '}', String(name)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling replaceCertificateSigningRequest.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling replaceCertificateSigningRequest.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PUT', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta1CertificateSigningRequest; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * replace approval of the specified CertificateSigningRequest + * @param name name of the CertificateSigningRequest + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public replaceCertificateSigningRequestApproval (name: string, body: V1beta1CertificateSigningRequest, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1beta1CertificateSigningRequest; }> { + const localVarPath = this.basePath + '/apis/certificates.k8s.io/v1beta1/certificatesigningrequests/{name}/approval' + .replace('{' + 'name' + '}', String(name)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling replaceCertificateSigningRequestApproval.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling replaceCertificateSigningRequestApproval.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PUT', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta1CertificateSigningRequest; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * replace status of the specified CertificateSigningRequest + * @param name name of the CertificateSigningRequest + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public replaceCertificateSigningRequestStatus (name: string, body: V1beta1CertificateSigningRequest, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1beta1CertificateSigningRequest; }> { + const localVarPath = this.basePath + '/apis/certificates.k8s.io/v1beta1/certificatesigningrequests/{name}/status' + .replace('{' + 'name' + '}', String(name)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling replaceCertificateSigningRequestStatus.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling replaceCertificateSigningRequestStatus.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PUT', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta1CertificateSigningRequest; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } +} +export enum CoreApiApiKeys { + BearerToken, +} + +export class CoreApi { + protected _basePath = defaultBasePath; + protected defaultHeaders : any = {}; + protected _useQuerystring : boolean = false; + + protected authentications = { + 'default': new VoidAuth(), + 'BearerToken': new ApiKeyAuth('header', 'authorization'), + } + + constructor(basePath?: string); + constructor(basePathOrUsername: string, password?: string, basePath?: string) { + if (password) { + if (basePath) { + this.basePath = basePath; + } + } else { + if (basePathOrUsername) { + this.basePath = basePathOrUsername + } + } + } + + set useQuerystring(value: boolean) { + this._useQuerystring = value; + } + + set basePath(basePath: string) { + this._basePath = basePath; + } + + get basePath() { + return this._basePath; + } + + public setDefaultAuthentication(auth: Authentication) { + this.authentications.default = auth; + } + + public setApiKey(key: CoreApiApiKeys, value: string) { + this.authentications[CoreApiApiKeys[key]].apiKey = value; + } + /** + * get available API versions + */ + public getAPIVersions () : Promise<{ response: http.ClientResponse; body: V1APIVersions; }> { + const localVarPath = this.basePath + '/api/'; + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1APIVersions; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } +} +export enum Core_v1ApiApiKeys { + BearerToken, +} + +export class Core_v1Api { + protected _basePath = defaultBasePath; + protected defaultHeaders : any = {}; + protected _useQuerystring : boolean = false; + + protected authentications = { + 'default': new VoidAuth(), + 'BearerToken': new ApiKeyAuth('header', 'authorization'), + } + + constructor(basePath?: string); + constructor(basePathOrUsername: string, password?: string, basePath?: string) { + if (password) { + if (basePath) { + this.basePath = basePath; + } + } else { + if (basePathOrUsername) { + this.basePath = basePathOrUsername + } + } + } + + set useQuerystring(value: boolean) { + this._useQuerystring = value; + } + + set basePath(basePath: string) { + this._basePath = basePath; + } + + get basePath() { + return this._basePath; + } + + public setDefaultAuthentication(auth: Authentication) { + this.authentications.default = auth; + } + + public setApiKey(key: Core_v1ApiApiKeys, value: string) { + this.authentications[Core_v1ApiApiKeys[key]].apiKey = value; + } + /** + * connect DELETE requests to proxy of Pod + * @param name name of the Pod + * @param namespace object name and auth scope, such as for teams and projects + * @param path Path is the URL path to use for the current proxy request to pod. + */ + public connectDeleteNamespacedPodProxy (name: string, namespace: string, path?: string) : Promise<{ response: http.ClientResponse; body: string; }> { + const localVarPath = this.basePath + '/api/v1/namespaces/{namespace}/pods/{name}/proxy' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling connectDeleteNamespacedPodProxy.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling connectDeleteNamespacedPodProxy.'); + } + + if (path !== undefined) { + queryParameters['path'] = path; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'DELETE', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: string; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * connect DELETE requests to proxy of Pod + * @param name name of the Pod + * @param namespace object name and auth scope, such as for teams and projects + * @param path path to the resource + * @param path2 Path is the URL path to use for the current proxy request to pod. + */ + public connectDeleteNamespacedPodProxyWithPath (name: string, namespace: string, path: string, path2?: string) : Promise<{ response: http.ClientResponse; body: string; }> { + const localVarPath = this.basePath + '/api/v1/namespaces/{namespace}/pods/{name}/proxy/{path}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)) + .replace('{' + 'path' + '}', String(path)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling connectDeleteNamespacedPodProxyWithPath.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling connectDeleteNamespacedPodProxyWithPath.'); + } + + // verify required parameter 'path' is not null or undefined + if (path === null || path === undefined) { + throw new Error('Required parameter path was null or undefined when calling connectDeleteNamespacedPodProxyWithPath.'); + } + + if (path2 !== undefined) { + queryParameters['path'] = path2; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'DELETE', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: string; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * connect DELETE requests to proxy of Service + * @param name name of the Service + * @param namespace object name and auth scope, such as for teams and projects + * @param path Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. + */ + public connectDeleteNamespacedServiceProxy (name: string, namespace: string, path?: string) : Promise<{ response: http.ClientResponse; body: string; }> { + const localVarPath = this.basePath + '/api/v1/namespaces/{namespace}/services/{name}/proxy' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling connectDeleteNamespacedServiceProxy.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling connectDeleteNamespacedServiceProxy.'); + } + + if (path !== undefined) { + queryParameters['path'] = path; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'DELETE', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: string; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * connect DELETE requests to proxy of Service + * @param name name of the Service + * @param namespace object name and auth scope, such as for teams and projects + * @param path path to the resource + * @param path2 Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. + */ + public connectDeleteNamespacedServiceProxyWithPath (name: string, namespace: string, path: string, path2?: string) : Promise<{ response: http.ClientResponse; body: string; }> { + const localVarPath = this.basePath + '/api/v1/namespaces/{namespace}/services/{name}/proxy/{path}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)) + .replace('{' + 'path' + '}', String(path)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling connectDeleteNamespacedServiceProxyWithPath.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling connectDeleteNamespacedServiceProxyWithPath.'); + } + + // verify required parameter 'path' is not null or undefined + if (path === null || path === undefined) { + throw new Error('Required parameter path was null or undefined when calling connectDeleteNamespacedServiceProxyWithPath.'); + } + + if (path2 !== undefined) { + queryParameters['path'] = path2; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'DELETE', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: string; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * connect DELETE requests to proxy of Node + * @param name name of the Node + * @param path Path is the URL path to use for the current proxy request to node. + */ + public connectDeleteNodeProxy (name: string, path?: string) : Promise<{ response: http.ClientResponse; body: string; }> { + const localVarPath = this.basePath + '/api/v1/nodes/{name}/proxy' + .replace('{' + 'name' + '}', String(name)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling connectDeleteNodeProxy.'); + } + + if (path !== undefined) { + queryParameters['path'] = path; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'DELETE', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: string; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * connect DELETE requests to proxy of Node + * @param name name of the Node + * @param path path to the resource + * @param path2 Path is the URL path to use for the current proxy request to node. + */ + public connectDeleteNodeProxyWithPath (name: string, path: string, path2?: string) : Promise<{ response: http.ClientResponse; body: string; }> { + const localVarPath = this.basePath + '/api/v1/nodes/{name}/proxy/{path}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'path' + '}', String(path)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling connectDeleteNodeProxyWithPath.'); + } + + // verify required parameter 'path' is not null or undefined + if (path === null || path === undefined) { + throw new Error('Required parameter path was null or undefined when calling connectDeleteNodeProxyWithPath.'); + } + + if (path2 !== undefined) { + queryParameters['path'] = path2; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'DELETE', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: string; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * connect GET requests to attach of Pod + * @param name name of the Pod + * @param namespace object name and auth scope, such as for teams and projects + * @param container The container in which to execute the command. Defaults to only container if there is only one container in the pod. + * @param stderr Stderr if true indicates that stderr is to be redirected for the attach call. Defaults to true. + * @param stdin Stdin if true, redirects the standard input stream of the pod for this call. Defaults to false. + * @param stdout Stdout if true indicates that stdout is to be redirected for the attach call. Defaults to true. + * @param tty TTY if true indicates that a tty will be allocated for the attach call. This is passed through the container runtime so the tty is allocated on the worker node by the container runtime. Defaults to false. + */ + public connectGetNamespacedPodAttach (name: string, namespace: string, container?: string, stderr?: boolean, stdin?: boolean, stdout?: boolean, tty?: boolean) : Promise<{ response: http.ClientResponse; body: string; }> { + const localVarPath = this.basePath + '/api/v1/namespaces/{namespace}/pods/{name}/attach' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling connectGetNamespacedPodAttach.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling connectGetNamespacedPodAttach.'); + } + + if (container !== undefined) { + queryParameters['container'] = container; + } + + if (stderr !== undefined) { + queryParameters['stderr'] = stderr; + } + + if (stdin !== undefined) { + queryParameters['stdin'] = stdin; + } + + if (stdout !== undefined) { + queryParameters['stdout'] = stdout; + } + + if (tty !== undefined) { + queryParameters['tty'] = tty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: string; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * connect GET requests to exec of Pod + * @param name name of the Pod + * @param namespace object name and auth scope, such as for teams and projects + * @param command Command is the remote command to execute. argv array. Not executed within a shell. + * @param container Container in which to execute the command. Defaults to only container if there is only one container in the pod. + * @param stderr Redirect the standard error stream of the pod for this call. Defaults to true. + * @param stdin Redirect the standard input stream of the pod for this call. Defaults to false. + * @param stdout Redirect the standard output stream of the pod for this call. Defaults to true. + * @param tty TTY if true indicates that a tty will be allocated for the exec call. Defaults to false. + */ + public connectGetNamespacedPodExec (name: string, namespace: string, command?: string, container?: string, stderr?: boolean, stdin?: boolean, stdout?: boolean, tty?: boolean) : Promise<{ response: http.ClientResponse; body: string; }> { + const localVarPath = this.basePath + '/api/v1/namespaces/{namespace}/pods/{name}/exec' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling connectGetNamespacedPodExec.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling connectGetNamespacedPodExec.'); + } + + if (command !== undefined) { + queryParameters['command'] = command; + } + + if (container !== undefined) { + queryParameters['container'] = container; + } + + if (stderr !== undefined) { + queryParameters['stderr'] = stderr; + } + + if (stdin !== undefined) { + queryParameters['stdin'] = stdin; + } + + if (stdout !== undefined) { + queryParameters['stdout'] = stdout; + } + + if (tty !== undefined) { + queryParameters['tty'] = tty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: string; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * connect GET requests to portforward of Pod + * @param name name of the Pod + * @param namespace object name and auth scope, such as for teams and projects + * @param ports List of ports to forward Required when using WebSockets + */ + public connectGetNamespacedPodPortforward (name: string, namespace: string, ports?: number) : Promise<{ response: http.ClientResponse; body: string; }> { + const localVarPath = this.basePath + '/api/v1/namespaces/{namespace}/pods/{name}/portforward' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling connectGetNamespacedPodPortforward.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling connectGetNamespacedPodPortforward.'); + } + + if (ports !== undefined) { + queryParameters['ports'] = ports; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: string; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * connect GET requests to proxy of Pod + * @param name name of the Pod + * @param namespace object name and auth scope, such as for teams and projects + * @param path Path is the URL path to use for the current proxy request to pod. + */ + public connectGetNamespacedPodProxy (name: string, namespace: string, path?: string) : Promise<{ response: http.ClientResponse; body: string; }> { + const localVarPath = this.basePath + '/api/v1/namespaces/{namespace}/pods/{name}/proxy' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling connectGetNamespacedPodProxy.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling connectGetNamespacedPodProxy.'); + } + + if (path !== undefined) { + queryParameters['path'] = path; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: string; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * connect GET requests to proxy of Pod + * @param name name of the Pod + * @param namespace object name and auth scope, such as for teams and projects + * @param path path to the resource + * @param path2 Path is the URL path to use for the current proxy request to pod. + */ + public connectGetNamespacedPodProxyWithPath (name: string, namespace: string, path: string, path2?: string) : Promise<{ response: http.ClientResponse; body: string; }> { + const localVarPath = this.basePath + '/api/v1/namespaces/{namespace}/pods/{name}/proxy/{path}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)) + .replace('{' + 'path' + '}', String(path)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling connectGetNamespacedPodProxyWithPath.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling connectGetNamespacedPodProxyWithPath.'); + } + + // verify required parameter 'path' is not null or undefined + if (path === null || path === undefined) { + throw new Error('Required parameter path was null or undefined when calling connectGetNamespacedPodProxyWithPath.'); + } + + if (path2 !== undefined) { + queryParameters['path'] = path2; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: string; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * connect GET requests to proxy of Service + * @param name name of the Service + * @param namespace object name and auth scope, such as for teams and projects + * @param path Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. + */ + public connectGetNamespacedServiceProxy (name: string, namespace: string, path?: string) : Promise<{ response: http.ClientResponse; body: string; }> { + const localVarPath = this.basePath + '/api/v1/namespaces/{namespace}/services/{name}/proxy' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling connectGetNamespacedServiceProxy.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling connectGetNamespacedServiceProxy.'); + } + + if (path !== undefined) { + queryParameters['path'] = path; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: string; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * connect GET requests to proxy of Service + * @param name name of the Service + * @param namespace object name and auth scope, such as for teams and projects + * @param path path to the resource + * @param path2 Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. + */ + public connectGetNamespacedServiceProxyWithPath (name: string, namespace: string, path: string, path2?: string) : Promise<{ response: http.ClientResponse; body: string; }> { + const localVarPath = this.basePath + '/api/v1/namespaces/{namespace}/services/{name}/proxy/{path}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)) + .replace('{' + 'path' + '}', String(path)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling connectGetNamespacedServiceProxyWithPath.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling connectGetNamespacedServiceProxyWithPath.'); + } + + // verify required parameter 'path' is not null or undefined + if (path === null || path === undefined) { + throw new Error('Required parameter path was null or undefined when calling connectGetNamespacedServiceProxyWithPath.'); + } + + if (path2 !== undefined) { + queryParameters['path'] = path2; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: string; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * connect GET requests to proxy of Node + * @param name name of the Node + * @param path Path is the URL path to use for the current proxy request to node. + */ + public connectGetNodeProxy (name: string, path?: string) : Promise<{ response: http.ClientResponse; body: string; }> { + const localVarPath = this.basePath + '/api/v1/nodes/{name}/proxy' + .replace('{' + 'name' + '}', String(name)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling connectGetNodeProxy.'); + } + + if (path !== undefined) { + queryParameters['path'] = path; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: string; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * connect GET requests to proxy of Node + * @param name name of the Node + * @param path path to the resource + * @param path2 Path is the URL path to use for the current proxy request to node. + */ + public connectGetNodeProxyWithPath (name: string, path: string, path2?: string) : Promise<{ response: http.ClientResponse; body: string; }> { + const localVarPath = this.basePath + '/api/v1/nodes/{name}/proxy/{path}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'path' + '}', String(path)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling connectGetNodeProxyWithPath.'); + } + + // verify required parameter 'path' is not null or undefined + if (path === null || path === undefined) { + throw new Error('Required parameter path was null or undefined when calling connectGetNodeProxyWithPath.'); + } + + if (path2 !== undefined) { + queryParameters['path'] = path2; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: string; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * connect HEAD requests to proxy of Pod + * @param name name of the Pod + * @param namespace object name and auth scope, such as for teams and projects + * @param path Path is the URL path to use for the current proxy request to pod. + */ + public connectHeadNamespacedPodProxy (name: string, namespace: string, path?: string) : Promise<{ response: http.ClientResponse; body: string; }> { + const localVarPath = this.basePath + '/api/v1/namespaces/{namespace}/pods/{name}/proxy' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling connectHeadNamespacedPodProxy.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling connectHeadNamespacedPodProxy.'); + } + + if (path !== undefined) { + queryParameters['path'] = path; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'HEAD', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: string; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * connect HEAD requests to proxy of Pod + * @param name name of the Pod + * @param namespace object name and auth scope, such as for teams and projects + * @param path path to the resource + * @param path2 Path is the URL path to use for the current proxy request to pod. + */ + public connectHeadNamespacedPodProxyWithPath (name: string, namespace: string, path: string, path2?: string) : Promise<{ response: http.ClientResponse; body: string; }> { + const localVarPath = this.basePath + '/api/v1/namespaces/{namespace}/pods/{name}/proxy/{path}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)) + .replace('{' + 'path' + '}', String(path)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling connectHeadNamespacedPodProxyWithPath.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling connectHeadNamespacedPodProxyWithPath.'); + } + + // verify required parameter 'path' is not null or undefined + if (path === null || path === undefined) { + throw new Error('Required parameter path was null or undefined when calling connectHeadNamespacedPodProxyWithPath.'); + } + + if (path2 !== undefined) { + queryParameters['path'] = path2; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'HEAD', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: string; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * connect HEAD requests to proxy of Service + * @param name name of the Service + * @param namespace object name and auth scope, such as for teams and projects + * @param path Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. + */ + public connectHeadNamespacedServiceProxy (name: string, namespace: string, path?: string) : Promise<{ response: http.ClientResponse; body: string; }> { + const localVarPath = this.basePath + '/api/v1/namespaces/{namespace}/services/{name}/proxy' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling connectHeadNamespacedServiceProxy.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling connectHeadNamespacedServiceProxy.'); + } + + if (path !== undefined) { + queryParameters['path'] = path; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'HEAD', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: string; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * connect HEAD requests to proxy of Service + * @param name name of the Service + * @param namespace object name and auth scope, such as for teams and projects + * @param path path to the resource + * @param path2 Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. + */ + public connectHeadNamespacedServiceProxyWithPath (name: string, namespace: string, path: string, path2?: string) : Promise<{ response: http.ClientResponse; body: string; }> { + const localVarPath = this.basePath + '/api/v1/namespaces/{namespace}/services/{name}/proxy/{path}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)) + .replace('{' + 'path' + '}', String(path)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling connectHeadNamespacedServiceProxyWithPath.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling connectHeadNamespacedServiceProxyWithPath.'); + } + + // verify required parameter 'path' is not null or undefined + if (path === null || path === undefined) { + throw new Error('Required parameter path was null or undefined when calling connectHeadNamespacedServiceProxyWithPath.'); + } + + if (path2 !== undefined) { + queryParameters['path'] = path2; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'HEAD', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: string; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * connect HEAD requests to proxy of Node + * @param name name of the Node + * @param path Path is the URL path to use for the current proxy request to node. + */ + public connectHeadNodeProxy (name: string, path?: string) : Promise<{ response: http.ClientResponse; body: string; }> { + const localVarPath = this.basePath + '/api/v1/nodes/{name}/proxy' + .replace('{' + 'name' + '}', String(name)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling connectHeadNodeProxy.'); + } + + if (path !== undefined) { + queryParameters['path'] = path; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'HEAD', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: string; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * connect HEAD requests to proxy of Node + * @param name name of the Node + * @param path path to the resource + * @param path2 Path is the URL path to use for the current proxy request to node. + */ + public connectHeadNodeProxyWithPath (name: string, path: string, path2?: string) : Promise<{ response: http.ClientResponse; body: string; }> { + const localVarPath = this.basePath + '/api/v1/nodes/{name}/proxy/{path}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'path' + '}', String(path)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling connectHeadNodeProxyWithPath.'); + } + + // verify required parameter 'path' is not null or undefined + if (path === null || path === undefined) { + throw new Error('Required parameter path was null or undefined when calling connectHeadNodeProxyWithPath.'); + } + + if (path2 !== undefined) { + queryParameters['path'] = path2; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'HEAD', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: string; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * connect OPTIONS requests to proxy of Pod + * @param name name of the Pod + * @param namespace object name and auth scope, such as for teams and projects + * @param path Path is the URL path to use for the current proxy request to pod. + */ + public connectOptionsNamespacedPodProxy (name: string, namespace: string, path?: string) : Promise<{ response: http.ClientResponse; body: string; }> { + const localVarPath = this.basePath + '/api/v1/namespaces/{namespace}/pods/{name}/proxy' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling connectOptionsNamespacedPodProxy.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling connectOptionsNamespacedPodProxy.'); + } + + if (path !== undefined) { + queryParameters['path'] = path; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'OPTIONS', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: string; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * connect OPTIONS requests to proxy of Pod + * @param name name of the Pod + * @param namespace object name and auth scope, such as for teams and projects + * @param path path to the resource + * @param path2 Path is the URL path to use for the current proxy request to pod. + */ + public connectOptionsNamespacedPodProxyWithPath (name: string, namespace: string, path: string, path2?: string) : Promise<{ response: http.ClientResponse; body: string; }> { + const localVarPath = this.basePath + '/api/v1/namespaces/{namespace}/pods/{name}/proxy/{path}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)) + .replace('{' + 'path' + '}', String(path)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling connectOptionsNamespacedPodProxyWithPath.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling connectOptionsNamespacedPodProxyWithPath.'); + } + + // verify required parameter 'path' is not null or undefined + if (path === null || path === undefined) { + throw new Error('Required parameter path was null or undefined when calling connectOptionsNamespacedPodProxyWithPath.'); + } + + if (path2 !== undefined) { + queryParameters['path'] = path2; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'OPTIONS', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: string; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * connect OPTIONS requests to proxy of Service + * @param name name of the Service + * @param namespace object name and auth scope, such as for teams and projects + * @param path Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. + */ + public connectOptionsNamespacedServiceProxy (name: string, namespace: string, path?: string) : Promise<{ response: http.ClientResponse; body: string; }> { + const localVarPath = this.basePath + '/api/v1/namespaces/{namespace}/services/{name}/proxy' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling connectOptionsNamespacedServiceProxy.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling connectOptionsNamespacedServiceProxy.'); + } + + if (path !== undefined) { + queryParameters['path'] = path; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'OPTIONS', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: string; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * connect OPTIONS requests to proxy of Service + * @param name name of the Service + * @param namespace object name and auth scope, such as for teams and projects + * @param path path to the resource + * @param path2 Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. + */ + public connectOptionsNamespacedServiceProxyWithPath (name: string, namespace: string, path: string, path2?: string) : Promise<{ response: http.ClientResponse; body: string; }> { + const localVarPath = this.basePath + '/api/v1/namespaces/{namespace}/services/{name}/proxy/{path}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)) + .replace('{' + 'path' + '}', String(path)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling connectOptionsNamespacedServiceProxyWithPath.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling connectOptionsNamespacedServiceProxyWithPath.'); + } + + // verify required parameter 'path' is not null or undefined + if (path === null || path === undefined) { + throw new Error('Required parameter path was null or undefined when calling connectOptionsNamespacedServiceProxyWithPath.'); + } + + if (path2 !== undefined) { + queryParameters['path'] = path2; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'OPTIONS', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: string; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * connect OPTIONS requests to proxy of Node + * @param name name of the Node + * @param path Path is the URL path to use for the current proxy request to node. + */ + public connectOptionsNodeProxy (name: string, path?: string) : Promise<{ response: http.ClientResponse; body: string; }> { + const localVarPath = this.basePath + '/api/v1/nodes/{name}/proxy' + .replace('{' + 'name' + '}', String(name)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling connectOptionsNodeProxy.'); + } + + if (path !== undefined) { + queryParameters['path'] = path; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'OPTIONS', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: string; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * connect OPTIONS requests to proxy of Node + * @param name name of the Node + * @param path path to the resource + * @param path2 Path is the URL path to use for the current proxy request to node. + */ + public connectOptionsNodeProxyWithPath (name: string, path: string, path2?: string) : Promise<{ response: http.ClientResponse; body: string; }> { + const localVarPath = this.basePath + '/api/v1/nodes/{name}/proxy/{path}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'path' + '}', String(path)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling connectOptionsNodeProxyWithPath.'); + } + + // verify required parameter 'path' is not null or undefined + if (path === null || path === undefined) { + throw new Error('Required parameter path was null or undefined when calling connectOptionsNodeProxyWithPath.'); + } + + if (path2 !== undefined) { + queryParameters['path'] = path2; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'OPTIONS', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: string; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * connect PATCH requests to proxy of Pod + * @param name name of the Pod + * @param namespace object name and auth scope, such as for teams and projects + * @param path Path is the URL path to use for the current proxy request to pod. + */ + public connectPatchNamespacedPodProxy (name: string, namespace: string, path?: string) : Promise<{ response: http.ClientResponse; body: string; }> { + const localVarPath = this.basePath + '/api/v1/namespaces/{namespace}/pods/{name}/proxy' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling connectPatchNamespacedPodProxy.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling connectPatchNamespacedPodProxy.'); + } + + if (path !== undefined) { + queryParameters['path'] = path; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PATCH', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: string; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * connect PATCH requests to proxy of Pod + * @param name name of the Pod + * @param namespace object name and auth scope, such as for teams and projects + * @param path path to the resource + * @param path2 Path is the URL path to use for the current proxy request to pod. + */ + public connectPatchNamespacedPodProxyWithPath (name: string, namespace: string, path: string, path2?: string) : Promise<{ response: http.ClientResponse; body: string; }> { + const localVarPath = this.basePath + '/api/v1/namespaces/{namespace}/pods/{name}/proxy/{path}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)) + .replace('{' + 'path' + '}', String(path)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling connectPatchNamespacedPodProxyWithPath.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling connectPatchNamespacedPodProxyWithPath.'); + } + + // verify required parameter 'path' is not null or undefined + if (path === null || path === undefined) { + throw new Error('Required parameter path was null or undefined when calling connectPatchNamespacedPodProxyWithPath.'); + } + + if (path2 !== undefined) { + queryParameters['path'] = path2; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PATCH', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: string; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * connect PATCH requests to proxy of Service + * @param name name of the Service + * @param namespace object name and auth scope, such as for teams and projects + * @param path Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. + */ + public connectPatchNamespacedServiceProxy (name: string, namespace: string, path?: string) : Promise<{ response: http.ClientResponse; body: string; }> { + const localVarPath = this.basePath + '/api/v1/namespaces/{namespace}/services/{name}/proxy' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling connectPatchNamespacedServiceProxy.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling connectPatchNamespacedServiceProxy.'); + } + + if (path !== undefined) { + queryParameters['path'] = path; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PATCH', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: string; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * connect PATCH requests to proxy of Service + * @param name name of the Service + * @param namespace object name and auth scope, such as for teams and projects + * @param path path to the resource + * @param path2 Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. + */ + public connectPatchNamespacedServiceProxyWithPath (name: string, namespace: string, path: string, path2?: string) : Promise<{ response: http.ClientResponse; body: string; }> { + const localVarPath = this.basePath + '/api/v1/namespaces/{namespace}/services/{name}/proxy/{path}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)) + .replace('{' + 'path' + '}', String(path)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling connectPatchNamespacedServiceProxyWithPath.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling connectPatchNamespacedServiceProxyWithPath.'); + } + + // verify required parameter 'path' is not null or undefined + if (path === null || path === undefined) { + throw new Error('Required parameter path was null or undefined when calling connectPatchNamespacedServiceProxyWithPath.'); + } + + if (path2 !== undefined) { + queryParameters['path'] = path2; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PATCH', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: string; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * connect PATCH requests to proxy of Node + * @param name name of the Node + * @param path Path is the URL path to use for the current proxy request to node. + */ + public connectPatchNodeProxy (name: string, path?: string) : Promise<{ response: http.ClientResponse; body: string; }> { + const localVarPath = this.basePath + '/api/v1/nodes/{name}/proxy' + .replace('{' + 'name' + '}', String(name)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling connectPatchNodeProxy.'); + } + + if (path !== undefined) { + queryParameters['path'] = path; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PATCH', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: string; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * connect PATCH requests to proxy of Node + * @param name name of the Node + * @param path path to the resource + * @param path2 Path is the URL path to use for the current proxy request to node. + */ + public connectPatchNodeProxyWithPath (name: string, path: string, path2?: string) : Promise<{ response: http.ClientResponse; body: string; }> { + const localVarPath = this.basePath + '/api/v1/nodes/{name}/proxy/{path}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'path' + '}', String(path)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling connectPatchNodeProxyWithPath.'); + } + + // verify required parameter 'path' is not null or undefined + if (path === null || path === undefined) { + throw new Error('Required parameter path was null or undefined when calling connectPatchNodeProxyWithPath.'); + } + + if (path2 !== undefined) { + queryParameters['path'] = path2; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PATCH', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: string; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * connect POST requests to attach of Pod + * @param name name of the Pod + * @param namespace object name and auth scope, such as for teams and projects + * @param container The container in which to execute the command. Defaults to only container if there is only one container in the pod. + * @param stderr Stderr if true indicates that stderr is to be redirected for the attach call. Defaults to true. + * @param stdin Stdin if true, redirects the standard input stream of the pod for this call. Defaults to false. + * @param stdout Stdout if true indicates that stdout is to be redirected for the attach call. Defaults to true. + * @param tty TTY if true indicates that a tty will be allocated for the attach call. This is passed through the container runtime so the tty is allocated on the worker node by the container runtime. Defaults to false. + */ + public connectPostNamespacedPodAttach (name: string, namespace: string, container?: string, stderr?: boolean, stdin?: boolean, stdout?: boolean, tty?: boolean) : Promise<{ response: http.ClientResponse; body: string; }> { + const localVarPath = this.basePath + '/api/v1/namespaces/{namespace}/pods/{name}/attach' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling connectPostNamespacedPodAttach.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling connectPostNamespacedPodAttach.'); + } + + if (container !== undefined) { + queryParameters['container'] = container; + } + + if (stderr !== undefined) { + queryParameters['stderr'] = stderr; + } + + if (stdin !== undefined) { + queryParameters['stdin'] = stdin; + } + + if (stdout !== undefined) { + queryParameters['stdout'] = stdout; + } + + if (tty !== undefined) { + queryParameters['tty'] = tty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'POST', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: string; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * connect POST requests to exec of Pod + * @param name name of the Pod + * @param namespace object name and auth scope, such as for teams and projects + * @param command Command is the remote command to execute. argv array. Not executed within a shell. + * @param container Container in which to execute the command. Defaults to only container if there is only one container in the pod. + * @param stderr Redirect the standard error stream of the pod for this call. Defaults to true. + * @param stdin Redirect the standard input stream of the pod for this call. Defaults to false. + * @param stdout Redirect the standard output stream of the pod for this call. Defaults to true. + * @param tty TTY if true indicates that a tty will be allocated for the exec call. Defaults to false. + */ + public connectPostNamespacedPodExec (name: string, namespace: string, command?: string, container?: string, stderr?: boolean, stdin?: boolean, stdout?: boolean, tty?: boolean) : Promise<{ response: http.ClientResponse; body: string; }> { + const localVarPath = this.basePath + '/api/v1/namespaces/{namespace}/pods/{name}/exec' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling connectPostNamespacedPodExec.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling connectPostNamespacedPodExec.'); + } + + if (command !== undefined) { + queryParameters['command'] = command; + } + + if (container !== undefined) { + queryParameters['container'] = container; + } + + if (stderr !== undefined) { + queryParameters['stderr'] = stderr; + } + + if (stdin !== undefined) { + queryParameters['stdin'] = stdin; + } + + if (stdout !== undefined) { + queryParameters['stdout'] = stdout; + } + + if (tty !== undefined) { + queryParameters['tty'] = tty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'POST', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: string; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * connect POST requests to portforward of Pod + * @param name name of the Pod + * @param namespace object name and auth scope, such as for teams and projects + * @param ports List of ports to forward Required when using WebSockets + */ + public connectPostNamespacedPodPortforward (name: string, namespace: string, ports?: number) : Promise<{ response: http.ClientResponse; body: string; }> { + const localVarPath = this.basePath + '/api/v1/namespaces/{namespace}/pods/{name}/portforward' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling connectPostNamespacedPodPortforward.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling connectPostNamespacedPodPortforward.'); + } + + if (ports !== undefined) { + queryParameters['ports'] = ports; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'POST', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: string; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * connect POST requests to proxy of Pod + * @param name name of the Pod + * @param namespace object name and auth scope, such as for teams and projects + * @param path Path is the URL path to use for the current proxy request to pod. + */ + public connectPostNamespacedPodProxy (name: string, namespace: string, path?: string) : Promise<{ response: http.ClientResponse; body: string; }> { + const localVarPath = this.basePath + '/api/v1/namespaces/{namespace}/pods/{name}/proxy' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling connectPostNamespacedPodProxy.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling connectPostNamespacedPodProxy.'); + } + + if (path !== undefined) { + queryParameters['path'] = path; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'POST', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: string; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * connect POST requests to proxy of Pod + * @param name name of the Pod + * @param namespace object name and auth scope, such as for teams and projects + * @param path path to the resource + * @param path2 Path is the URL path to use for the current proxy request to pod. + */ + public connectPostNamespacedPodProxyWithPath (name: string, namespace: string, path: string, path2?: string) : Promise<{ response: http.ClientResponse; body: string; }> { + const localVarPath = this.basePath + '/api/v1/namespaces/{namespace}/pods/{name}/proxy/{path}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)) + .replace('{' + 'path' + '}', String(path)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling connectPostNamespacedPodProxyWithPath.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling connectPostNamespacedPodProxyWithPath.'); + } + + // verify required parameter 'path' is not null or undefined + if (path === null || path === undefined) { + throw new Error('Required parameter path was null or undefined when calling connectPostNamespacedPodProxyWithPath.'); + } + + if (path2 !== undefined) { + queryParameters['path'] = path2; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'POST', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: string; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * connect POST requests to proxy of Service + * @param name name of the Service + * @param namespace object name and auth scope, such as for teams and projects + * @param path Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. + */ + public connectPostNamespacedServiceProxy (name: string, namespace: string, path?: string) : Promise<{ response: http.ClientResponse; body: string; }> { + const localVarPath = this.basePath + '/api/v1/namespaces/{namespace}/services/{name}/proxy' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling connectPostNamespacedServiceProxy.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling connectPostNamespacedServiceProxy.'); + } + + if (path !== undefined) { + queryParameters['path'] = path; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'POST', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: string; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * connect POST requests to proxy of Service + * @param name name of the Service + * @param namespace object name and auth scope, such as for teams and projects + * @param path path to the resource + * @param path2 Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. + */ + public connectPostNamespacedServiceProxyWithPath (name: string, namespace: string, path: string, path2?: string) : Promise<{ response: http.ClientResponse; body: string; }> { + const localVarPath = this.basePath + '/api/v1/namespaces/{namespace}/services/{name}/proxy/{path}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)) + .replace('{' + 'path' + '}', String(path)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling connectPostNamespacedServiceProxyWithPath.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling connectPostNamespacedServiceProxyWithPath.'); + } + + // verify required parameter 'path' is not null or undefined + if (path === null || path === undefined) { + throw new Error('Required parameter path was null or undefined when calling connectPostNamespacedServiceProxyWithPath.'); + } + + if (path2 !== undefined) { + queryParameters['path'] = path2; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'POST', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: string; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * connect POST requests to proxy of Node + * @param name name of the Node + * @param path Path is the URL path to use for the current proxy request to node. + */ + public connectPostNodeProxy (name: string, path?: string) : Promise<{ response: http.ClientResponse; body: string; }> { + const localVarPath = this.basePath + '/api/v1/nodes/{name}/proxy' + .replace('{' + 'name' + '}', String(name)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling connectPostNodeProxy.'); + } + + if (path !== undefined) { + queryParameters['path'] = path; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'POST', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: string; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * connect POST requests to proxy of Node + * @param name name of the Node + * @param path path to the resource + * @param path2 Path is the URL path to use for the current proxy request to node. + */ + public connectPostNodeProxyWithPath (name: string, path: string, path2?: string) : Promise<{ response: http.ClientResponse; body: string; }> { + const localVarPath = this.basePath + '/api/v1/nodes/{name}/proxy/{path}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'path' + '}', String(path)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling connectPostNodeProxyWithPath.'); + } + + // verify required parameter 'path' is not null or undefined + if (path === null || path === undefined) { + throw new Error('Required parameter path was null or undefined when calling connectPostNodeProxyWithPath.'); + } + + if (path2 !== undefined) { + queryParameters['path'] = path2; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'POST', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: string; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * connect PUT requests to proxy of Pod + * @param name name of the Pod + * @param namespace object name and auth scope, such as for teams and projects + * @param path Path is the URL path to use for the current proxy request to pod. + */ + public connectPutNamespacedPodProxy (name: string, namespace: string, path?: string) : Promise<{ response: http.ClientResponse; body: string; }> { + const localVarPath = this.basePath + '/api/v1/namespaces/{namespace}/pods/{name}/proxy' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling connectPutNamespacedPodProxy.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling connectPutNamespacedPodProxy.'); + } + + if (path !== undefined) { + queryParameters['path'] = path; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PUT', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: string; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * connect PUT requests to proxy of Pod + * @param name name of the Pod + * @param namespace object name and auth scope, such as for teams and projects + * @param path path to the resource + * @param path2 Path is the URL path to use for the current proxy request to pod. + */ + public connectPutNamespacedPodProxyWithPath (name: string, namespace: string, path: string, path2?: string) : Promise<{ response: http.ClientResponse; body: string; }> { + const localVarPath = this.basePath + '/api/v1/namespaces/{namespace}/pods/{name}/proxy/{path}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)) + .replace('{' + 'path' + '}', String(path)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling connectPutNamespacedPodProxyWithPath.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling connectPutNamespacedPodProxyWithPath.'); + } + + // verify required parameter 'path' is not null or undefined + if (path === null || path === undefined) { + throw new Error('Required parameter path was null or undefined when calling connectPutNamespacedPodProxyWithPath.'); + } + + if (path2 !== undefined) { + queryParameters['path'] = path2; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PUT', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: string; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * connect PUT requests to proxy of Service + * @param name name of the Service + * @param namespace object name and auth scope, such as for teams and projects + * @param path Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. + */ + public connectPutNamespacedServiceProxy (name: string, namespace: string, path?: string) : Promise<{ response: http.ClientResponse; body: string; }> { + const localVarPath = this.basePath + '/api/v1/namespaces/{namespace}/services/{name}/proxy' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling connectPutNamespacedServiceProxy.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling connectPutNamespacedServiceProxy.'); + } + + if (path !== undefined) { + queryParameters['path'] = path; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PUT', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: string; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * connect PUT requests to proxy of Service + * @param name name of the Service + * @param namespace object name and auth scope, such as for teams and projects + * @param path path to the resource + * @param path2 Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. + */ + public connectPutNamespacedServiceProxyWithPath (name: string, namespace: string, path: string, path2?: string) : Promise<{ response: http.ClientResponse; body: string; }> { + const localVarPath = this.basePath + '/api/v1/namespaces/{namespace}/services/{name}/proxy/{path}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)) + .replace('{' + 'path' + '}', String(path)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling connectPutNamespacedServiceProxyWithPath.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling connectPutNamespacedServiceProxyWithPath.'); + } + + // verify required parameter 'path' is not null or undefined + if (path === null || path === undefined) { + throw new Error('Required parameter path was null or undefined when calling connectPutNamespacedServiceProxyWithPath.'); + } + + if (path2 !== undefined) { + queryParameters['path'] = path2; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PUT', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: string; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * connect PUT requests to proxy of Node + * @param name name of the Node + * @param path Path is the URL path to use for the current proxy request to node. + */ + public connectPutNodeProxy (name: string, path?: string) : Promise<{ response: http.ClientResponse; body: string; }> { + const localVarPath = this.basePath + '/api/v1/nodes/{name}/proxy' + .replace('{' + 'name' + '}', String(name)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling connectPutNodeProxy.'); + } + + if (path !== undefined) { + queryParameters['path'] = path; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PUT', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: string; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * connect PUT requests to proxy of Node + * @param name name of the Node + * @param path path to the resource + * @param path2 Path is the URL path to use for the current proxy request to node. + */ + public connectPutNodeProxyWithPath (name: string, path: string, path2?: string) : Promise<{ response: http.ClientResponse; body: string; }> { + const localVarPath = this.basePath + '/api/v1/nodes/{name}/proxy/{path}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'path' + '}', String(path)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling connectPutNodeProxyWithPath.'); + } + + // verify required parameter 'path' is not null or undefined + if (path === null || path === undefined) { + throw new Error('Required parameter path was null or undefined when calling connectPutNodeProxyWithPath.'); + } + + if (path2 !== undefined) { + queryParameters['path'] = path2; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PUT', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: string; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * create a Namespace + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public createNamespace (body: V1Namespace, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1Namespace; }> { + const localVarPath = this.basePath + '/api/v1/namespaces'; + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling createNamespace.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'POST', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Namespace; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * create a Binding + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public createNamespacedBinding (namespace: string, body: V1Binding, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1Binding; }> { + const localVarPath = this.basePath + '/api/v1/namespaces/{namespace}/bindings' + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling createNamespacedBinding.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling createNamespacedBinding.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'POST', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Binding; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * create a ConfigMap + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public createNamespacedConfigMap (namespace: string, body: V1ConfigMap, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1ConfigMap; }> { + const localVarPath = this.basePath + '/api/v1/namespaces/{namespace}/configmaps' + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling createNamespacedConfigMap.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling createNamespacedConfigMap.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'POST', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1ConfigMap; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * create Endpoints + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public createNamespacedEndpoints (namespace: string, body: V1Endpoints, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1Endpoints; }> { + const localVarPath = this.basePath + '/api/v1/namespaces/{namespace}/endpoints' + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling createNamespacedEndpoints.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling createNamespacedEndpoints.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'POST', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Endpoints; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * create an Event + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public createNamespacedEvent (namespace: string, body: V1Event, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1Event; }> { + const localVarPath = this.basePath + '/api/v1/namespaces/{namespace}/events' + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling createNamespacedEvent.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling createNamespacedEvent.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'POST', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Event; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * create a LimitRange + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public createNamespacedLimitRange (namespace: string, body: V1LimitRange, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1LimitRange; }> { + const localVarPath = this.basePath + '/api/v1/namespaces/{namespace}/limitranges' + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling createNamespacedLimitRange.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling createNamespacedLimitRange.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'POST', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1LimitRange; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * create a PersistentVolumeClaim + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public createNamespacedPersistentVolumeClaim (namespace: string, body: V1PersistentVolumeClaim, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1PersistentVolumeClaim; }> { + const localVarPath = this.basePath + '/api/v1/namespaces/{namespace}/persistentvolumeclaims' + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling createNamespacedPersistentVolumeClaim.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling createNamespacedPersistentVolumeClaim.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'POST', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1PersistentVolumeClaim; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * create a Pod + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public createNamespacedPod (namespace: string, body: V1Pod, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1Pod; }> { + const localVarPath = this.basePath + '/api/v1/namespaces/{namespace}/pods' + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling createNamespacedPod.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling createNamespacedPod.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'POST', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Pod; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * create binding of a Pod + * @param name name of the Binding + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public createNamespacedPodBinding (name: string, namespace: string, body: V1Binding, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1Binding; }> { + const localVarPath = this.basePath + '/api/v1/namespaces/{namespace}/pods/{name}/binding' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling createNamespacedPodBinding.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling createNamespacedPodBinding.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling createNamespacedPodBinding.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'POST', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Binding; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * create eviction of a Pod + * @param name name of the Eviction + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public createNamespacedPodEviction (name: string, namespace: string, body: V1beta1Eviction, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1beta1Eviction; }> { + const localVarPath = this.basePath + '/api/v1/namespaces/{namespace}/pods/{name}/eviction' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling createNamespacedPodEviction.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling createNamespacedPodEviction.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling createNamespacedPodEviction.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'POST', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta1Eviction; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * create a PodTemplate + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public createNamespacedPodTemplate (namespace: string, body: V1PodTemplate, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1PodTemplate; }> { + const localVarPath = this.basePath + '/api/v1/namespaces/{namespace}/podtemplates' + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling createNamespacedPodTemplate.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling createNamespacedPodTemplate.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'POST', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1PodTemplate; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * create a ReplicationController + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public createNamespacedReplicationController (namespace: string, body: V1ReplicationController, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1ReplicationController; }> { + const localVarPath = this.basePath + '/api/v1/namespaces/{namespace}/replicationcontrollers' + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling createNamespacedReplicationController.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling createNamespacedReplicationController.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'POST', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1ReplicationController; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * create a ResourceQuota + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public createNamespacedResourceQuota (namespace: string, body: V1ResourceQuota, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1ResourceQuota; }> { + const localVarPath = this.basePath + '/api/v1/namespaces/{namespace}/resourcequotas' + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling createNamespacedResourceQuota.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling createNamespacedResourceQuota.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'POST', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1ResourceQuota; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * create a Secret + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public createNamespacedSecret (namespace: string, body: V1Secret, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1Secret; }> { + const localVarPath = this.basePath + '/api/v1/namespaces/{namespace}/secrets' + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling createNamespacedSecret.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling createNamespacedSecret.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'POST', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Secret; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * create a Service + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public createNamespacedService (namespace: string, body: V1Service, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1Service; }> { + const localVarPath = this.basePath + '/api/v1/namespaces/{namespace}/services' + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling createNamespacedService.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling createNamespacedService.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'POST', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Service; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * create a ServiceAccount + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public createNamespacedServiceAccount (namespace: string, body: V1ServiceAccount, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1ServiceAccount; }> { + const localVarPath = this.basePath + '/api/v1/namespaces/{namespace}/serviceaccounts' + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling createNamespacedServiceAccount.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling createNamespacedServiceAccount.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'POST', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1ServiceAccount; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * create a Node + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public createNode (body: V1Node, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1Node; }> { + const localVarPath = this.basePath + '/api/v1/nodes'; + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling createNode.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'POST', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Node; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * create a PersistentVolume + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public createPersistentVolume (body: V1PersistentVolume, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1PersistentVolume; }> { + const localVarPath = this.basePath + '/api/v1/persistentvolumes'; + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling createPersistentVolume.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'POST', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1PersistentVolume; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * delete collection of ConfigMap + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If 'true', then the output is pretty printed. + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param includeUninitialized If true, partially initialized resources are included in the response. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + * @param timeoutSeconds Timeout for the list/watch call. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public deleteCollectionNamespacedConfigMap (namespace: string, pretty?: string, _continue?: string, fieldSelector?: string, includeUninitialized?: boolean, labelSelector?: string, limit?: number, resourceVersion?: string, timeoutSeconds?: number, watch?: boolean) : Promise<{ response: http.ClientResponse; body: V1Status; }> { + const localVarPath = this.basePath + '/api/v1/namespaces/{namespace}/configmaps' + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling deleteCollectionNamespacedConfigMap.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (_continue !== undefined) { + queryParameters['continue'] = _continue; + } + + if (fieldSelector !== undefined) { + queryParameters['fieldSelector'] = fieldSelector; + } + + if (includeUninitialized !== undefined) { + queryParameters['includeUninitialized'] = includeUninitialized; + } + + if (labelSelector !== undefined) { + queryParameters['labelSelector'] = labelSelector; + } + + if (limit !== undefined) { + queryParameters['limit'] = limit; + } + + if (resourceVersion !== undefined) { + queryParameters['resourceVersion'] = resourceVersion; + } + + if (timeoutSeconds !== undefined) { + queryParameters['timeoutSeconds'] = timeoutSeconds; + } + + if (watch !== undefined) { + queryParameters['watch'] = watch; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'DELETE', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Status; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * delete collection of Endpoints + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If 'true', then the output is pretty printed. + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param includeUninitialized If true, partially initialized resources are included in the response. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + * @param timeoutSeconds Timeout for the list/watch call. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public deleteCollectionNamespacedEndpoints (namespace: string, pretty?: string, _continue?: string, fieldSelector?: string, includeUninitialized?: boolean, labelSelector?: string, limit?: number, resourceVersion?: string, timeoutSeconds?: number, watch?: boolean) : Promise<{ response: http.ClientResponse; body: V1Status; }> { + const localVarPath = this.basePath + '/api/v1/namespaces/{namespace}/endpoints' + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling deleteCollectionNamespacedEndpoints.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (_continue !== undefined) { + queryParameters['continue'] = _continue; + } + + if (fieldSelector !== undefined) { + queryParameters['fieldSelector'] = fieldSelector; + } + + if (includeUninitialized !== undefined) { + queryParameters['includeUninitialized'] = includeUninitialized; + } + + if (labelSelector !== undefined) { + queryParameters['labelSelector'] = labelSelector; + } + + if (limit !== undefined) { + queryParameters['limit'] = limit; + } + + if (resourceVersion !== undefined) { + queryParameters['resourceVersion'] = resourceVersion; + } + + if (timeoutSeconds !== undefined) { + queryParameters['timeoutSeconds'] = timeoutSeconds; + } + + if (watch !== undefined) { + queryParameters['watch'] = watch; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'DELETE', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Status; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * delete collection of Event + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If 'true', then the output is pretty printed. + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param includeUninitialized If true, partially initialized resources are included in the response. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + * @param timeoutSeconds Timeout for the list/watch call. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public deleteCollectionNamespacedEvent (namespace: string, pretty?: string, _continue?: string, fieldSelector?: string, includeUninitialized?: boolean, labelSelector?: string, limit?: number, resourceVersion?: string, timeoutSeconds?: number, watch?: boolean) : Promise<{ response: http.ClientResponse; body: V1Status; }> { + const localVarPath = this.basePath + '/api/v1/namespaces/{namespace}/events' + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling deleteCollectionNamespacedEvent.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (_continue !== undefined) { + queryParameters['continue'] = _continue; + } + + if (fieldSelector !== undefined) { + queryParameters['fieldSelector'] = fieldSelector; + } + + if (includeUninitialized !== undefined) { + queryParameters['includeUninitialized'] = includeUninitialized; + } + + if (labelSelector !== undefined) { + queryParameters['labelSelector'] = labelSelector; + } + + if (limit !== undefined) { + queryParameters['limit'] = limit; + } + + if (resourceVersion !== undefined) { + queryParameters['resourceVersion'] = resourceVersion; + } + + if (timeoutSeconds !== undefined) { + queryParameters['timeoutSeconds'] = timeoutSeconds; + } + + if (watch !== undefined) { + queryParameters['watch'] = watch; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'DELETE', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Status; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * delete collection of LimitRange + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If 'true', then the output is pretty printed. + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param includeUninitialized If true, partially initialized resources are included in the response. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + * @param timeoutSeconds Timeout for the list/watch call. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public deleteCollectionNamespacedLimitRange (namespace: string, pretty?: string, _continue?: string, fieldSelector?: string, includeUninitialized?: boolean, labelSelector?: string, limit?: number, resourceVersion?: string, timeoutSeconds?: number, watch?: boolean) : Promise<{ response: http.ClientResponse; body: V1Status; }> { + const localVarPath = this.basePath + '/api/v1/namespaces/{namespace}/limitranges' + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling deleteCollectionNamespacedLimitRange.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (_continue !== undefined) { + queryParameters['continue'] = _continue; + } + + if (fieldSelector !== undefined) { + queryParameters['fieldSelector'] = fieldSelector; + } + + if (includeUninitialized !== undefined) { + queryParameters['includeUninitialized'] = includeUninitialized; + } + + if (labelSelector !== undefined) { + queryParameters['labelSelector'] = labelSelector; + } + + if (limit !== undefined) { + queryParameters['limit'] = limit; + } + + if (resourceVersion !== undefined) { + queryParameters['resourceVersion'] = resourceVersion; + } + + if (timeoutSeconds !== undefined) { + queryParameters['timeoutSeconds'] = timeoutSeconds; + } + + if (watch !== undefined) { + queryParameters['watch'] = watch; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'DELETE', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Status; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * delete collection of PersistentVolumeClaim + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If 'true', then the output is pretty printed. + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param includeUninitialized If true, partially initialized resources are included in the response. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + * @param timeoutSeconds Timeout for the list/watch call. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public deleteCollectionNamespacedPersistentVolumeClaim (namespace: string, pretty?: string, _continue?: string, fieldSelector?: string, includeUninitialized?: boolean, labelSelector?: string, limit?: number, resourceVersion?: string, timeoutSeconds?: number, watch?: boolean) : Promise<{ response: http.ClientResponse; body: V1Status; }> { + const localVarPath = this.basePath + '/api/v1/namespaces/{namespace}/persistentvolumeclaims' + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling deleteCollectionNamespacedPersistentVolumeClaim.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (_continue !== undefined) { + queryParameters['continue'] = _continue; + } + + if (fieldSelector !== undefined) { + queryParameters['fieldSelector'] = fieldSelector; + } + + if (includeUninitialized !== undefined) { + queryParameters['includeUninitialized'] = includeUninitialized; + } + + if (labelSelector !== undefined) { + queryParameters['labelSelector'] = labelSelector; + } + + if (limit !== undefined) { + queryParameters['limit'] = limit; + } + + if (resourceVersion !== undefined) { + queryParameters['resourceVersion'] = resourceVersion; + } + + if (timeoutSeconds !== undefined) { + queryParameters['timeoutSeconds'] = timeoutSeconds; + } + + if (watch !== undefined) { + queryParameters['watch'] = watch; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'DELETE', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Status; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * delete collection of Pod + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If 'true', then the output is pretty printed. + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param includeUninitialized If true, partially initialized resources are included in the response. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + * @param timeoutSeconds Timeout for the list/watch call. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public deleteCollectionNamespacedPod (namespace: string, pretty?: string, _continue?: string, fieldSelector?: string, includeUninitialized?: boolean, labelSelector?: string, limit?: number, resourceVersion?: string, timeoutSeconds?: number, watch?: boolean) : Promise<{ response: http.ClientResponse; body: V1Status; }> { + const localVarPath = this.basePath + '/api/v1/namespaces/{namespace}/pods' + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling deleteCollectionNamespacedPod.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (_continue !== undefined) { + queryParameters['continue'] = _continue; + } + + if (fieldSelector !== undefined) { + queryParameters['fieldSelector'] = fieldSelector; + } + + if (includeUninitialized !== undefined) { + queryParameters['includeUninitialized'] = includeUninitialized; + } + + if (labelSelector !== undefined) { + queryParameters['labelSelector'] = labelSelector; + } + + if (limit !== undefined) { + queryParameters['limit'] = limit; + } + + if (resourceVersion !== undefined) { + queryParameters['resourceVersion'] = resourceVersion; + } + + if (timeoutSeconds !== undefined) { + queryParameters['timeoutSeconds'] = timeoutSeconds; + } + + if (watch !== undefined) { + queryParameters['watch'] = watch; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'DELETE', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Status; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * delete collection of PodTemplate + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If 'true', then the output is pretty printed. + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param includeUninitialized If true, partially initialized resources are included in the response. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + * @param timeoutSeconds Timeout for the list/watch call. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public deleteCollectionNamespacedPodTemplate (namespace: string, pretty?: string, _continue?: string, fieldSelector?: string, includeUninitialized?: boolean, labelSelector?: string, limit?: number, resourceVersion?: string, timeoutSeconds?: number, watch?: boolean) : Promise<{ response: http.ClientResponse; body: V1Status; }> { + const localVarPath = this.basePath + '/api/v1/namespaces/{namespace}/podtemplates' + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling deleteCollectionNamespacedPodTemplate.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (_continue !== undefined) { + queryParameters['continue'] = _continue; + } + + if (fieldSelector !== undefined) { + queryParameters['fieldSelector'] = fieldSelector; + } + + if (includeUninitialized !== undefined) { + queryParameters['includeUninitialized'] = includeUninitialized; + } + + if (labelSelector !== undefined) { + queryParameters['labelSelector'] = labelSelector; + } + + if (limit !== undefined) { + queryParameters['limit'] = limit; + } + + if (resourceVersion !== undefined) { + queryParameters['resourceVersion'] = resourceVersion; + } + + if (timeoutSeconds !== undefined) { + queryParameters['timeoutSeconds'] = timeoutSeconds; + } + + if (watch !== undefined) { + queryParameters['watch'] = watch; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'DELETE', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Status; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * delete collection of ReplicationController + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If 'true', then the output is pretty printed. + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param includeUninitialized If true, partially initialized resources are included in the response. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + * @param timeoutSeconds Timeout for the list/watch call. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public deleteCollectionNamespacedReplicationController (namespace: string, pretty?: string, _continue?: string, fieldSelector?: string, includeUninitialized?: boolean, labelSelector?: string, limit?: number, resourceVersion?: string, timeoutSeconds?: number, watch?: boolean) : Promise<{ response: http.ClientResponse; body: V1Status; }> { + const localVarPath = this.basePath + '/api/v1/namespaces/{namespace}/replicationcontrollers' + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling deleteCollectionNamespacedReplicationController.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (_continue !== undefined) { + queryParameters['continue'] = _continue; + } + + if (fieldSelector !== undefined) { + queryParameters['fieldSelector'] = fieldSelector; + } + + if (includeUninitialized !== undefined) { + queryParameters['includeUninitialized'] = includeUninitialized; + } + + if (labelSelector !== undefined) { + queryParameters['labelSelector'] = labelSelector; + } + + if (limit !== undefined) { + queryParameters['limit'] = limit; + } + + if (resourceVersion !== undefined) { + queryParameters['resourceVersion'] = resourceVersion; + } + + if (timeoutSeconds !== undefined) { + queryParameters['timeoutSeconds'] = timeoutSeconds; + } + + if (watch !== undefined) { + queryParameters['watch'] = watch; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'DELETE', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Status; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * delete collection of ResourceQuota + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If 'true', then the output is pretty printed. + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param includeUninitialized If true, partially initialized resources are included in the response. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + * @param timeoutSeconds Timeout for the list/watch call. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public deleteCollectionNamespacedResourceQuota (namespace: string, pretty?: string, _continue?: string, fieldSelector?: string, includeUninitialized?: boolean, labelSelector?: string, limit?: number, resourceVersion?: string, timeoutSeconds?: number, watch?: boolean) : Promise<{ response: http.ClientResponse; body: V1Status; }> { + const localVarPath = this.basePath + '/api/v1/namespaces/{namespace}/resourcequotas' + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling deleteCollectionNamespacedResourceQuota.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (_continue !== undefined) { + queryParameters['continue'] = _continue; + } + + if (fieldSelector !== undefined) { + queryParameters['fieldSelector'] = fieldSelector; + } + + if (includeUninitialized !== undefined) { + queryParameters['includeUninitialized'] = includeUninitialized; + } + + if (labelSelector !== undefined) { + queryParameters['labelSelector'] = labelSelector; + } + + if (limit !== undefined) { + queryParameters['limit'] = limit; + } + + if (resourceVersion !== undefined) { + queryParameters['resourceVersion'] = resourceVersion; + } + + if (timeoutSeconds !== undefined) { + queryParameters['timeoutSeconds'] = timeoutSeconds; + } + + if (watch !== undefined) { + queryParameters['watch'] = watch; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'DELETE', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Status; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * delete collection of Secret + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If 'true', then the output is pretty printed. + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param includeUninitialized If true, partially initialized resources are included in the response. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + * @param timeoutSeconds Timeout for the list/watch call. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public deleteCollectionNamespacedSecret (namespace: string, pretty?: string, _continue?: string, fieldSelector?: string, includeUninitialized?: boolean, labelSelector?: string, limit?: number, resourceVersion?: string, timeoutSeconds?: number, watch?: boolean) : Promise<{ response: http.ClientResponse; body: V1Status; }> { + const localVarPath = this.basePath + '/api/v1/namespaces/{namespace}/secrets' + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling deleteCollectionNamespacedSecret.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (_continue !== undefined) { + queryParameters['continue'] = _continue; + } + + if (fieldSelector !== undefined) { + queryParameters['fieldSelector'] = fieldSelector; + } + + if (includeUninitialized !== undefined) { + queryParameters['includeUninitialized'] = includeUninitialized; + } + + if (labelSelector !== undefined) { + queryParameters['labelSelector'] = labelSelector; + } + + if (limit !== undefined) { + queryParameters['limit'] = limit; + } + + if (resourceVersion !== undefined) { + queryParameters['resourceVersion'] = resourceVersion; + } + + if (timeoutSeconds !== undefined) { + queryParameters['timeoutSeconds'] = timeoutSeconds; + } + + if (watch !== undefined) { + queryParameters['watch'] = watch; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'DELETE', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Status; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * delete collection of ServiceAccount + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If 'true', then the output is pretty printed. + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param includeUninitialized If true, partially initialized resources are included in the response. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + * @param timeoutSeconds Timeout for the list/watch call. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public deleteCollectionNamespacedServiceAccount (namespace: string, pretty?: string, _continue?: string, fieldSelector?: string, includeUninitialized?: boolean, labelSelector?: string, limit?: number, resourceVersion?: string, timeoutSeconds?: number, watch?: boolean) : Promise<{ response: http.ClientResponse; body: V1Status; }> { + const localVarPath = this.basePath + '/api/v1/namespaces/{namespace}/serviceaccounts' + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling deleteCollectionNamespacedServiceAccount.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (_continue !== undefined) { + queryParameters['continue'] = _continue; + } + + if (fieldSelector !== undefined) { + queryParameters['fieldSelector'] = fieldSelector; + } + + if (includeUninitialized !== undefined) { + queryParameters['includeUninitialized'] = includeUninitialized; + } + + if (labelSelector !== undefined) { + queryParameters['labelSelector'] = labelSelector; + } + + if (limit !== undefined) { + queryParameters['limit'] = limit; + } + + if (resourceVersion !== undefined) { + queryParameters['resourceVersion'] = resourceVersion; + } + + if (timeoutSeconds !== undefined) { + queryParameters['timeoutSeconds'] = timeoutSeconds; + } + + if (watch !== undefined) { + queryParameters['watch'] = watch; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'DELETE', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Status; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * delete collection of Node + * @param pretty If 'true', then the output is pretty printed. + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param includeUninitialized If true, partially initialized resources are included in the response. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + * @param timeoutSeconds Timeout for the list/watch call. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public deleteCollectionNode (pretty?: string, _continue?: string, fieldSelector?: string, includeUninitialized?: boolean, labelSelector?: string, limit?: number, resourceVersion?: string, timeoutSeconds?: number, watch?: boolean) : Promise<{ response: http.ClientResponse; body: V1Status; }> { + const localVarPath = this.basePath + '/api/v1/nodes'; + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (_continue !== undefined) { + queryParameters['continue'] = _continue; + } + + if (fieldSelector !== undefined) { + queryParameters['fieldSelector'] = fieldSelector; + } + + if (includeUninitialized !== undefined) { + queryParameters['includeUninitialized'] = includeUninitialized; + } + + if (labelSelector !== undefined) { + queryParameters['labelSelector'] = labelSelector; + } + + if (limit !== undefined) { + queryParameters['limit'] = limit; + } + + if (resourceVersion !== undefined) { + queryParameters['resourceVersion'] = resourceVersion; + } + + if (timeoutSeconds !== undefined) { + queryParameters['timeoutSeconds'] = timeoutSeconds; + } + + if (watch !== undefined) { + queryParameters['watch'] = watch; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'DELETE', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Status; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * delete collection of PersistentVolume + * @param pretty If 'true', then the output is pretty printed. + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param includeUninitialized If true, partially initialized resources are included in the response. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + * @param timeoutSeconds Timeout for the list/watch call. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public deleteCollectionPersistentVolume (pretty?: string, _continue?: string, fieldSelector?: string, includeUninitialized?: boolean, labelSelector?: string, limit?: number, resourceVersion?: string, timeoutSeconds?: number, watch?: boolean) : Promise<{ response: http.ClientResponse; body: V1Status; }> { + const localVarPath = this.basePath + '/api/v1/persistentvolumes'; + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (_continue !== undefined) { + queryParameters['continue'] = _continue; + } + + if (fieldSelector !== undefined) { + queryParameters['fieldSelector'] = fieldSelector; + } + + if (includeUninitialized !== undefined) { + queryParameters['includeUninitialized'] = includeUninitialized; + } + + if (labelSelector !== undefined) { + queryParameters['labelSelector'] = labelSelector; + } + + if (limit !== undefined) { + queryParameters['limit'] = limit; + } + + if (resourceVersion !== undefined) { + queryParameters['resourceVersion'] = resourceVersion; + } + + if (timeoutSeconds !== undefined) { + queryParameters['timeoutSeconds'] = timeoutSeconds; + } + + if (watch !== undefined) { + queryParameters['watch'] = watch; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'DELETE', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Status; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * delete a Namespace + * @param name name of the Namespace + * @param body + * @param pretty If 'true', then the output is pretty printed. + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. + */ + public deleteNamespace (name: string, body: V1DeleteOptions, pretty?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string) : Promise<{ response: http.ClientResponse; body: V1Status; }> { + const localVarPath = this.basePath + '/api/v1/namespaces/{name}' + .replace('{' + 'name' + '}', String(name)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling deleteNamespace.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling deleteNamespace.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (gracePeriodSeconds !== undefined) { + queryParameters['gracePeriodSeconds'] = gracePeriodSeconds; + } + + if (orphanDependents !== undefined) { + queryParameters['orphanDependents'] = orphanDependents; + } + + if (propagationPolicy !== undefined) { + queryParameters['propagationPolicy'] = propagationPolicy; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'DELETE', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Status; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * delete a ConfigMap + * @param name name of the ConfigMap + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. + */ + public deleteNamespacedConfigMap (name: string, namespace: string, body: V1DeleteOptions, pretty?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string) : Promise<{ response: http.ClientResponse; body: V1Status; }> { + const localVarPath = this.basePath + '/api/v1/namespaces/{namespace}/configmaps/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling deleteNamespacedConfigMap.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling deleteNamespacedConfigMap.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling deleteNamespacedConfigMap.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (gracePeriodSeconds !== undefined) { + queryParameters['gracePeriodSeconds'] = gracePeriodSeconds; + } + + if (orphanDependents !== undefined) { + queryParameters['orphanDependents'] = orphanDependents; + } + + if (propagationPolicy !== undefined) { + queryParameters['propagationPolicy'] = propagationPolicy; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'DELETE', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Status; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * delete Endpoints + * @param name name of the Endpoints + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. + */ + public deleteNamespacedEndpoints (name: string, namespace: string, body: V1DeleteOptions, pretty?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string) : Promise<{ response: http.ClientResponse; body: V1Status; }> { + const localVarPath = this.basePath + '/api/v1/namespaces/{namespace}/endpoints/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling deleteNamespacedEndpoints.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling deleteNamespacedEndpoints.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling deleteNamespacedEndpoints.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (gracePeriodSeconds !== undefined) { + queryParameters['gracePeriodSeconds'] = gracePeriodSeconds; + } + + if (orphanDependents !== undefined) { + queryParameters['orphanDependents'] = orphanDependents; + } + + if (propagationPolicy !== undefined) { + queryParameters['propagationPolicy'] = propagationPolicy; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'DELETE', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Status; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * delete an Event + * @param name name of the Event + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. + */ + public deleteNamespacedEvent (name: string, namespace: string, body: V1DeleteOptions, pretty?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string) : Promise<{ response: http.ClientResponse; body: V1Status; }> { + const localVarPath = this.basePath + '/api/v1/namespaces/{namespace}/events/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling deleteNamespacedEvent.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling deleteNamespacedEvent.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling deleteNamespacedEvent.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (gracePeriodSeconds !== undefined) { + queryParameters['gracePeriodSeconds'] = gracePeriodSeconds; + } + + if (orphanDependents !== undefined) { + queryParameters['orphanDependents'] = orphanDependents; + } + + if (propagationPolicy !== undefined) { + queryParameters['propagationPolicy'] = propagationPolicy; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'DELETE', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Status; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * delete a LimitRange + * @param name name of the LimitRange + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. + */ + public deleteNamespacedLimitRange (name: string, namespace: string, body: V1DeleteOptions, pretty?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string) : Promise<{ response: http.ClientResponse; body: V1Status; }> { + const localVarPath = this.basePath + '/api/v1/namespaces/{namespace}/limitranges/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling deleteNamespacedLimitRange.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling deleteNamespacedLimitRange.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling deleteNamespacedLimitRange.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (gracePeriodSeconds !== undefined) { + queryParameters['gracePeriodSeconds'] = gracePeriodSeconds; + } + + if (orphanDependents !== undefined) { + queryParameters['orphanDependents'] = orphanDependents; + } + + if (propagationPolicy !== undefined) { + queryParameters['propagationPolicy'] = propagationPolicy; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'DELETE', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Status; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * delete a PersistentVolumeClaim + * @param name name of the PersistentVolumeClaim + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. + */ + public deleteNamespacedPersistentVolumeClaim (name: string, namespace: string, body: V1DeleteOptions, pretty?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string) : Promise<{ response: http.ClientResponse; body: V1Status; }> { + const localVarPath = this.basePath + '/api/v1/namespaces/{namespace}/persistentvolumeclaims/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling deleteNamespacedPersistentVolumeClaim.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling deleteNamespacedPersistentVolumeClaim.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling deleteNamespacedPersistentVolumeClaim.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (gracePeriodSeconds !== undefined) { + queryParameters['gracePeriodSeconds'] = gracePeriodSeconds; + } + + if (orphanDependents !== undefined) { + queryParameters['orphanDependents'] = orphanDependents; + } + + if (propagationPolicy !== undefined) { + queryParameters['propagationPolicy'] = propagationPolicy; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'DELETE', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Status; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * delete a Pod + * @param name name of the Pod + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. + */ + public deleteNamespacedPod (name: string, namespace: string, body: V1DeleteOptions, pretty?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string) : Promise<{ response: http.ClientResponse; body: V1Status; }> { + const localVarPath = this.basePath + '/api/v1/namespaces/{namespace}/pods/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling deleteNamespacedPod.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling deleteNamespacedPod.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling deleteNamespacedPod.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (gracePeriodSeconds !== undefined) { + queryParameters['gracePeriodSeconds'] = gracePeriodSeconds; + } + + if (orphanDependents !== undefined) { + queryParameters['orphanDependents'] = orphanDependents; + } + + if (propagationPolicy !== undefined) { + queryParameters['propagationPolicy'] = propagationPolicy; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'DELETE', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Status; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * delete a PodTemplate + * @param name name of the PodTemplate + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. + */ + public deleteNamespacedPodTemplate (name: string, namespace: string, body: V1DeleteOptions, pretty?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string) : Promise<{ response: http.ClientResponse; body: V1Status; }> { + const localVarPath = this.basePath + '/api/v1/namespaces/{namespace}/podtemplates/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling deleteNamespacedPodTemplate.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling deleteNamespacedPodTemplate.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling deleteNamespacedPodTemplate.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (gracePeriodSeconds !== undefined) { + queryParameters['gracePeriodSeconds'] = gracePeriodSeconds; + } + + if (orphanDependents !== undefined) { + queryParameters['orphanDependents'] = orphanDependents; + } + + if (propagationPolicy !== undefined) { + queryParameters['propagationPolicy'] = propagationPolicy; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'DELETE', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Status; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * delete a ReplicationController + * @param name name of the ReplicationController + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. + */ + public deleteNamespacedReplicationController (name: string, namespace: string, body: V1DeleteOptions, pretty?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string) : Promise<{ response: http.ClientResponse; body: V1Status; }> { + const localVarPath = this.basePath + '/api/v1/namespaces/{namespace}/replicationcontrollers/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling deleteNamespacedReplicationController.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling deleteNamespacedReplicationController.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling deleteNamespacedReplicationController.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (gracePeriodSeconds !== undefined) { + queryParameters['gracePeriodSeconds'] = gracePeriodSeconds; + } + + if (orphanDependents !== undefined) { + queryParameters['orphanDependents'] = orphanDependents; + } + + if (propagationPolicy !== undefined) { + queryParameters['propagationPolicy'] = propagationPolicy; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'DELETE', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Status; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * delete a ResourceQuota + * @param name name of the ResourceQuota + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. + */ + public deleteNamespacedResourceQuota (name: string, namespace: string, body: V1DeleteOptions, pretty?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string) : Promise<{ response: http.ClientResponse; body: V1Status; }> { + const localVarPath = this.basePath + '/api/v1/namespaces/{namespace}/resourcequotas/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling deleteNamespacedResourceQuota.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling deleteNamespacedResourceQuota.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling deleteNamespacedResourceQuota.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (gracePeriodSeconds !== undefined) { + queryParameters['gracePeriodSeconds'] = gracePeriodSeconds; + } + + if (orphanDependents !== undefined) { + queryParameters['orphanDependents'] = orphanDependents; + } + + if (propagationPolicy !== undefined) { + queryParameters['propagationPolicy'] = propagationPolicy; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'DELETE', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Status; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * delete a Secret + * @param name name of the Secret + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. + */ + public deleteNamespacedSecret (name: string, namespace: string, body: V1DeleteOptions, pretty?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string) : Promise<{ response: http.ClientResponse; body: V1Status; }> { + const localVarPath = this.basePath + '/api/v1/namespaces/{namespace}/secrets/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling deleteNamespacedSecret.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling deleteNamespacedSecret.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling deleteNamespacedSecret.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (gracePeriodSeconds !== undefined) { + queryParameters['gracePeriodSeconds'] = gracePeriodSeconds; + } + + if (orphanDependents !== undefined) { + queryParameters['orphanDependents'] = orphanDependents; + } + + if (propagationPolicy !== undefined) { + queryParameters['propagationPolicy'] = propagationPolicy; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'DELETE', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Status; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * delete a Service + * @param name name of the Service + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If 'true', then the output is pretty printed. + */ + public deleteNamespacedService (name: string, namespace: string, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1Status; }> { + const localVarPath = this.basePath + '/api/v1/namespaces/{namespace}/services/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling deleteNamespacedService.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling deleteNamespacedService.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'DELETE', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Status; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * delete a ServiceAccount + * @param name name of the ServiceAccount + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. + */ + public deleteNamespacedServiceAccount (name: string, namespace: string, body: V1DeleteOptions, pretty?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string) : Promise<{ response: http.ClientResponse; body: V1Status; }> { + const localVarPath = this.basePath + '/api/v1/namespaces/{namespace}/serviceaccounts/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling deleteNamespacedServiceAccount.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling deleteNamespacedServiceAccount.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling deleteNamespacedServiceAccount.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (gracePeriodSeconds !== undefined) { + queryParameters['gracePeriodSeconds'] = gracePeriodSeconds; + } + + if (orphanDependents !== undefined) { + queryParameters['orphanDependents'] = orphanDependents; + } + + if (propagationPolicy !== undefined) { + queryParameters['propagationPolicy'] = propagationPolicy; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'DELETE', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Status; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * delete a Node + * @param name name of the Node + * @param body + * @param pretty If 'true', then the output is pretty printed. + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. + */ + public deleteNode (name: string, body: V1DeleteOptions, pretty?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string) : Promise<{ response: http.ClientResponse; body: V1Status; }> { + const localVarPath = this.basePath + '/api/v1/nodes/{name}' + .replace('{' + 'name' + '}', String(name)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling deleteNode.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling deleteNode.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (gracePeriodSeconds !== undefined) { + queryParameters['gracePeriodSeconds'] = gracePeriodSeconds; + } + + if (orphanDependents !== undefined) { + queryParameters['orphanDependents'] = orphanDependents; + } + + if (propagationPolicy !== undefined) { + queryParameters['propagationPolicy'] = propagationPolicy; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'DELETE', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Status; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * delete a PersistentVolume + * @param name name of the PersistentVolume + * @param body + * @param pretty If 'true', then the output is pretty printed. + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. + */ + public deletePersistentVolume (name: string, body: V1DeleteOptions, pretty?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string) : Promise<{ response: http.ClientResponse; body: V1Status; }> { + const localVarPath = this.basePath + '/api/v1/persistentvolumes/{name}' + .replace('{' + 'name' + '}', String(name)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling deletePersistentVolume.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling deletePersistentVolume.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (gracePeriodSeconds !== undefined) { + queryParameters['gracePeriodSeconds'] = gracePeriodSeconds; + } + + if (orphanDependents !== undefined) { + queryParameters['orphanDependents'] = orphanDependents; + } + + if (propagationPolicy !== undefined) { + queryParameters['propagationPolicy'] = propagationPolicy; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'DELETE', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Status; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * get available resources + */ + public getAPIResources () : Promise<{ response: http.ClientResponse; body: V1APIResourceList; }> { + const localVarPath = this.basePath + '/api/v1/'; + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1APIResourceList; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * list objects of kind ComponentStatus + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param includeUninitialized If true, partially initialized resources are included in the response. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param pretty If 'true', then the output is pretty printed. + * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + * @param timeoutSeconds Timeout for the list/watch call. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public listComponentStatus (_continue?: string, fieldSelector?: string, includeUninitialized?: boolean, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, timeoutSeconds?: number, watch?: boolean) : Promise<{ response: http.ClientResponse; body: V1ComponentStatusList; }> { + const localVarPath = this.basePath + '/api/v1/componentstatuses'; + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + if (_continue !== undefined) { + queryParameters['continue'] = _continue; + } + + if (fieldSelector !== undefined) { + queryParameters['fieldSelector'] = fieldSelector; + } + + if (includeUninitialized !== undefined) { + queryParameters['includeUninitialized'] = includeUninitialized; + } + + if (labelSelector !== undefined) { + queryParameters['labelSelector'] = labelSelector; + } + + if (limit !== undefined) { + queryParameters['limit'] = limit; + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (resourceVersion !== undefined) { + queryParameters['resourceVersion'] = resourceVersion; + } + + if (timeoutSeconds !== undefined) { + queryParameters['timeoutSeconds'] = timeoutSeconds; + } + + if (watch !== undefined) { + queryParameters['watch'] = watch; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1ComponentStatusList; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * list or watch objects of kind ConfigMap + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param includeUninitialized If true, partially initialized resources are included in the response. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param pretty If 'true', then the output is pretty printed. + * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + * @param timeoutSeconds Timeout for the list/watch call. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public listConfigMapForAllNamespaces (_continue?: string, fieldSelector?: string, includeUninitialized?: boolean, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, timeoutSeconds?: number, watch?: boolean) : Promise<{ response: http.ClientResponse; body: V1ConfigMapList; }> { + const localVarPath = this.basePath + '/api/v1/configmaps'; + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + if (_continue !== undefined) { + queryParameters['continue'] = _continue; + } + + if (fieldSelector !== undefined) { + queryParameters['fieldSelector'] = fieldSelector; + } + + if (includeUninitialized !== undefined) { + queryParameters['includeUninitialized'] = includeUninitialized; + } + + if (labelSelector !== undefined) { + queryParameters['labelSelector'] = labelSelector; + } + + if (limit !== undefined) { + queryParameters['limit'] = limit; + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (resourceVersion !== undefined) { + queryParameters['resourceVersion'] = resourceVersion; + } + + if (timeoutSeconds !== undefined) { + queryParameters['timeoutSeconds'] = timeoutSeconds; + } + + if (watch !== undefined) { + queryParameters['watch'] = watch; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1ConfigMapList; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * list or watch objects of kind Endpoints + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param includeUninitialized If true, partially initialized resources are included in the response. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param pretty If 'true', then the output is pretty printed. + * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + * @param timeoutSeconds Timeout for the list/watch call. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public listEndpointsForAllNamespaces (_continue?: string, fieldSelector?: string, includeUninitialized?: boolean, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, timeoutSeconds?: number, watch?: boolean) : Promise<{ response: http.ClientResponse; body: V1EndpointsList; }> { + const localVarPath = this.basePath + '/api/v1/endpoints'; + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + if (_continue !== undefined) { + queryParameters['continue'] = _continue; + } + + if (fieldSelector !== undefined) { + queryParameters['fieldSelector'] = fieldSelector; + } + + if (includeUninitialized !== undefined) { + queryParameters['includeUninitialized'] = includeUninitialized; + } + + if (labelSelector !== undefined) { + queryParameters['labelSelector'] = labelSelector; + } + + if (limit !== undefined) { + queryParameters['limit'] = limit; + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (resourceVersion !== undefined) { + queryParameters['resourceVersion'] = resourceVersion; + } + + if (timeoutSeconds !== undefined) { + queryParameters['timeoutSeconds'] = timeoutSeconds; + } + + if (watch !== undefined) { + queryParameters['watch'] = watch; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1EndpointsList; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * list or watch objects of kind Event + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param includeUninitialized If true, partially initialized resources are included in the response. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param pretty If 'true', then the output is pretty printed. + * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + * @param timeoutSeconds Timeout for the list/watch call. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public listEventForAllNamespaces (_continue?: string, fieldSelector?: string, includeUninitialized?: boolean, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, timeoutSeconds?: number, watch?: boolean) : Promise<{ response: http.ClientResponse; body: V1EventList; }> { + const localVarPath = this.basePath + '/api/v1/events'; + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + if (_continue !== undefined) { + queryParameters['continue'] = _continue; + } + + if (fieldSelector !== undefined) { + queryParameters['fieldSelector'] = fieldSelector; + } + + if (includeUninitialized !== undefined) { + queryParameters['includeUninitialized'] = includeUninitialized; + } + + if (labelSelector !== undefined) { + queryParameters['labelSelector'] = labelSelector; + } + + if (limit !== undefined) { + queryParameters['limit'] = limit; + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (resourceVersion !== undefined) { + queryParameters['resourceVersion'] = resourceVersion; + } + + if (timeoutSeconds !== undefined) { + queryParameters['timeoutSeconds'] = timeoutSeconds; + } + + if (watch !== undefined) { + queryParameters['watch'] = watch; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1EventList; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * list or watch objects of kind LimitRange + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param includeUninitialized If true, partially initialized resources are included in the response. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param pretty If 'true', then the output is pretty printed. + * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + * @param timeoutSeconds Timeout for the list/watch call. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public listLimitRangeForAllNamespaces (_continue?: string, fieldSelector?: string, includeUninitialized?: boolean, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, timeoutSeconds?: number, watch?: boolean) : Promise<{ response: http.ClientResponse; body: V1LimitRangeList; }> { + const localVarPath = this.basePath + '/api/v1/limitranges'; + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + if (_continue !== undefined) { + queryParameters['continue'] = _continue; + } + + if (fieldSelector !== undefined) { + queryParameters['fieldSelector'] = fieldSelector; + } + + if (includeUninitialized !== undefined) { + queryParameters['includeUninitialized'] = includeUninitialized; + } + + if (labelSelector !== undefined) { + queryParameters['labelSelector'] = labelSelector; + } + + if (limit !== undefined) { + queryParameters['limit'] = limit; + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (resourceVersion !== undefined) { + queryParameters['resourceVersion'] = resourceVersion; + } + + if (timeoutSeconds !== undefined) { + queryParameters['timeoutSeconds'] = timeoutSeconds; + } + + if (watch !== undefined) { + queryParameters['watch'] = watch; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1LimitRangeList; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * list or watch objects of kind Namespace + * @param pretty If 'true', then the output is pretty printed. + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param includeUninitialized If true, partially initialized resources are included in the response. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + * @param timeoutSeconds Timeout for the list/watch call. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public listNamespace (pretty?: string, _continue?: string, fieldSelector?: string, includeUninitialized?: boolean, labelSelector?: string, limit?: number, resourceVersion?: string, timeoutSeconds?: number, watch?: boolean) : Promise<{ response: http.ClientResponse; body: V1NamespaceList; }> { + const localVarPath = this.basePath + '/api/v1/namespaces'; + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (_continue !== undefined) { + queryParameters['continue'] = _continue; + } + + if (fieldSelector !== undefined) { + queryParameters['fieldSelector'] = fieldSelector; + } + + if (includeUninitialized !== undefined) { + queryParameters['includeUninitialized'] = includeUninitialized; + } + + if (labelSelector !== undefined) { + queryParameters['labelSelector'] = labelSelector; + } + + if (limit !== undefined) { + queryParameters['limit'] = limit; + } + + if (resourceVersion !== undefined) { + queryParameters['resourceVersion'] = resourceVersion; + } + + if (timeoutSeconds !== undefined) { + queryParameters['timeoutSeconds'] = timeoutSeconds; + } + + if (watch !== undefined) { + queryParameters['watch'] = watch; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1NamespaceList; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * list or watch objects of kind ConfigMap + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If 'true', then the output is pretty printed. + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param includeUninitialized If true, partially initialized resources are included in the response. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + * @param timeoutSeconds Timeout for the list/watch call. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public listNamespacedConfigMap (namespace: string, pretty?: string, _continue?: string, fieldSelector?: string, includeUninitialized?: boolean, labelSelector?: string, limit?: number, resourceVersion?: string, timeoutSeconds?: number, watch?: boolean) : Promise<{ response: http.ClientResponse; body: V1ConfigMapList; }> { + const localVarPath = this.basePath + '/api/v1/namespaces/{namespace}/configmaps' + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling listNamespacedConfigMap.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (_continue !== undefined) { + queryParameters['continue'] = _continue; + } + + if (fieldSelector !== undefined) { + queryParameters['fieldSelector'] = fieldSelector; + } + + if (includeUninitialized !== undefined) { + queryParameters['includeUninitialized'] = includeUninitialized; + } + + if (labelSelector !== undefined) { + queryParameters['labelSelector'] = labelSelector; + } + + if (limit !== undefined) { + queryParameters['limit'] = limit; + } + + if (resourceVersion !== undefined) { + queryParameters['resourceVersion'] = resourceVersion; + } + + if (timeoutSeconds !== undefined) { + queryParameters['timeoutSeconds'] = timeoutSeconds; + } + + if (watch !== undefined) { + queryParameters['watch'] = watch; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1ConfigMapList; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * list or watch objects of kind Endpoints + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If 'true', then the output is pretty printed. + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param includeUninitialized If true, partially initialized resources are included in the response. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + * @param timeoutSeconds Timeout for the list/watch call. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public listNamespacedEndpoints (namespace: string, pretty?: string, _continue?: string, fieldSelector?: string, includeUninitialized?: boolean, labelSelector?: string, limit?: number, resourceVersion?: string, timeoutSeconds?: number, watch?: boolean) : Promise<{ response: http.ClientResponse; body: V1EndpointsList; }> { + const localVarPath = this.basePath + '/api/v1/namespaces/{namespace}/endpoints' + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling listNamespacedEndpoints.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (_continue !== undefined) { + queryParameters['continue'] = _continue; + } + + if (fieldSelector !== undefined) { + queryParameters['fieldSelector'] = fieldSelector; + } + + if (includeUninitialized !== undefined) { + queryParameters['includeUninitialized'] = includeUninitialized; + } + + if (labelSelector !== undefined) { + queryParameters['labelSelector'] = labelSelector; + } + + if (limit !== undefined) { + queryParameters['limit'] = limit; + } + + if (resourceVersion !== undefined) { + queryParameters['resourceVersion'] = resourceVersion; + } + + if (timeoutSeconds !== undefined) { + queryParameters['timeoutSeconds'] = timeoutSeconds; + } + + if (watch !== undefined) { + queryParameters['watch'] = watch; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1EndpointsList; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * list or watch objects of kind Event + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If 'true', then the output is pretty printed. + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param includeUninitialized If true, partially initialized resources are included in the response. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + * @param timeoutSeconds Timeout for the list/watch call. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public listNamespacedEvent (namespace: string, pretty?: string, _continue?: string, fieldSelector?: string, includeUninitialized?: boolean, labelSelector?: string, limit?: number, resourceVersion?: string, timeoutSeconds?: number, watch?: boolean) : Promise<{ response: http.ClientResponse; body: V1EventList; }> { + const localVarPath = this.basePath + '/api/v1/namespaces/{namespace}/events' + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling listNamespacedEvent.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (_continue !== undefined) { + queryParameters['continue'] = _continue; + } + + if (fieldSelector !== undefined) { + queryParameters['fieldSelector'] = fieldSelector; + } + + if (includeUninitialized !== undefined) { + queryParameters['includeUninitialized'] = includeUninitialized; + } + + if (labelSelector !== undefined) { + queryParameters['labelSelector'] = labelSelector; + } + + if (limit !== undefined) { + queryParameters['limit'] = limit; + } + + if (resourceVersion !== undefined) { + queryParameters['resourceVersion'] = resourceVersion; + } + + if (timeoutSeconds !== undefined) { + queryParameters['timeoutSeconds'] = timeoutSeconds; + } + + if (watch !== undefined) { + queryParameters['watch'] = watch; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1EventList; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * list or watch objects of kind LimitRange + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If 'true', then the output is pretty printed. + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param includeUninitialized If true, partially initialized resources are included in the response. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + * @param timeoutSeconds Timeout for the list/watch call. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public listNamespacedLimitRange (namespace: string, pretty?: string, _continue?: string, fieldSelector?: string, includeUninitialized?: boolean, labelSelector?: string, limit?: number, resourceVersion?: string, timeoutSeconds?: number, watch?: boolean) : Promise<{ response: http.ClientResponse; body: V1LimitRangeList; }> { + const localVarPath = this.basePath + '/api/v1/namespaces/{namespace}/limitranges' + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling listNamespacedLimitRange.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (_continue !== undefined) { + queryParameters['continue'] = _continue; + } + + if (fieldSelector !== undefined) { + queryParameters['fieldSelector'] = fieldSelector; + } + + if (includeUninitialized !== undefined) { + queryParameters['includeUninitialized'] = includeUninitialized; + } + + if (labelSelector !== undefined) { + queryParameters['labelSelector'] = labelSelector; + } + + if (limit !== undefined) { + queryParameters['limit'] = limit; + } + + if (resourceVersion !== undefined) { + queryParameters['resourceVersion'] = resourceVersion; + } + + if (timeoutSeconds !== undefined) { + queryParameters['timeoutSeconds'] = timeoutSeconds; + } + + if (watch !== undefined) { + queryParameters['watch'] = watch; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1LimitRangeList; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * list or watch objects of kind PersistentVolumeClaim + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If 'true', then the output is pretty printed. + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param includeUninitialized If true, partially initialized resources are included in the response. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + * @param timeoutSeconds Timeout for the list/watch call. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public listNamespacedPersistentVolumeClaim (namespace: string, pretty?: string, _continue?: string, fieldSelector?: string, includeUninitialized?: boolean, labelSelector?: string, limit?: number, resourceVersion?: string, timeoutSeconds?: number, watch?: boolean) : Promise<{ response: http.ClientResponse; body: V1PersistentVolumeClaimList; }> { + const localVarPath = this.basePath + '/api/v1/namespaces/{namespace}/persistentvolumeclaims' + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling listNamespacedPersistentVolumeClaim.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (_continue !== undefined) { + queryParameters['continue'] = _continue; + } + + if (fieldSelector !== undefined) { + queryParameters['fieldSelector'] = fieldSelector; + } + + if (includeUninitialized !== undefined) { + queryParameters['includeUninitialized'] = includeUninitialized; + } + + if (labelSelector !== undefined) { + queryParameters['labelSelector'] = labelSelector; + } + + if (limit !== undefined) { + queryParameters['limit'] = limit; + } + + if (resourceVersion !== undefined) { + queryParameters['resourceVersion'] = resourceVersion; + } + + if (timeoutSeconds !== undefined) { + queryParameters['timeoutSeconds'] = timeoutSeconds; + } + + if (watch !== undefined) { + queryParameters['watch'] = watch; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1PersistentVolumeClaimList; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * list or watch objects of kind Pod + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If 'true', then the output is pretty printed. + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param includeUninitialized If true, partially initialized resources are included in the response. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + * @param timeoutSeconds Timeout for the list/watch call. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public listNamespacedPod (namespace: string, pretty?: string, _continue?: string, fieldSelector?: string, includeUninitialized?: boolean, labelSelector?: string, limit?: number, resourceVersion?: string, timeoutSeconds?: number, watch?: boolean) : Promise<{ response: http.ClientResponse; body: V1PodList; }> { + const localVarPath = this.basePath + '/api/v1/namespaces/{namespace}/pods' + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling listNamespacedPod.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (_continue !== undefined) { + queryParameters['continue'] = _continue; + } + + if (fieldSelector !== undefined) { + queryParameters['fieldSelector'] = fieldSelector; + } + + if (includeUninitialized !== undefined) { + queryParameters['includeUninitialized'] = includeUninitialized; + } + + if (labelSelector !== undefined) { + queryParameters['labelSelector'] = labelSelector; + } + + if (limit !== undefined) { + queryParameters['limit'] = limit; + } + + if (resourceVersion !== undefined) { + queryParameters['resourceVersion'] = resourceVersion; + } + + if (timeoutSeconds !== undefined) { + queryParameters['timeoutSeconds'] = timeoutSeconds; + } + + if (watch !== undefined) { + queryParameters['watch'] = watch; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1PodList; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * list or watch objects of kind PodTemplate + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If 'true', then the output is pretty printed. + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param includeUninitialized If true, partially initialized resources are included in the response. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + * @param timeoutSeconds Timeout for the list/watch call. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public listNamespacedPodTemplate (namespace: string, pretty?: string, _continue?: string, fieldSelector?: string, includeUninitialized?: boolean, labelSelector?: string, limit?: number, resourceVersion?: string, timeoutSeconds?: number, watch?: boolean) : Promise<{ response: http.ClientResponse; body: V1PodTemplateList; }> { + const localVarPath = this.basePath + '/api/v1/namespaces/{namespace}/podtemplates' + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling listNamespacedPodTemplate.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (_continue !== undefined) { + queryParameters['continue'] = _continue; + } + + if (fieldSelector !== undefined) { + queryParameters['fieldSelector'] = fieldSelector; + } + + if (includeUninitialized !== undefined) { + queryParameters['includeUninitialized'] = includeUninitialized; + } + + if (labelSelector !== undefined) { + queryParameters['labelSelector'] = labelSelector; + } + + if (limit !== undefined) { + queryParameters['limit'] = limit; + } + + if (resourceVersion !== undefined) { + queryParameters['resourceVersion'] = resourceVersion; + } + + if (timeoutSeconds !== undefined) { + queryParameters['timeoutSeconds'] = timeoutSeconds; + } + + if (watch !== undefined) { + queryParameters['watch'] = watch; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1PodTemplateList; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * list or watch objects of kind ReplicationController + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If 'true', then the output is pretty printed. + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param includeUninitialized If true, partially initialized resources are included in the response. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + * @param timeoutSeconds Timeout for the list/watch call. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public listNamespacedReplicationController (namespace: string, pretty?: string, _continue?: string, fieldSelector?: string, includeUninitialized?: boolean, labelSelector?: string, limit?: number, resourceVersion?: string, timeoutSeconds?: number, watch?: boolean) : Promise<{ response: http.ClientResponse; body: V1ReplicationControllerList; }> { + const localVarPath = this.basePath + '/api/v1/namespaces/{namespace}/replicationcontrollers' + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling listNamespacedReplicationController.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (_continue !== undefined) { + queryParameters['continue'] = _continue; + } + + if (fieldSelector !== undefined) { + queryParameters['fieldSelector'] = fieldSelector; + } + + if (includeUninitialized !== undefined) { + queryParameters['includeUninitialized'] = includeUninitialized; + } + + if (labelSelector !== undefined) { + queryParameters['labelSelector'] = labelSelector; + } + + if (limit !== undefined) { + queryParameters['limit'] = limit; + } + + if (resourceVersion !== undefined) { + queryParameters['resourceVersion'] = resourceVersion; + } + + if (timeoutSeconds !== undefined) { + queryParameters['timeoutSeconds'] = timeoutSeconds; + } + + if (watch !== undefined) { + queryParameters['watch'] = watch; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1ReplicationControllerList; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * list or watch objects of kind ResourceQuota + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If 'true', then the output is pretty printed. + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param includeUninitialized If true, partially initialized resources are included in the response. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + * @param timeoutSeconds Timeout for the list/watch call. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public listNamespacedResourceQuota (namespace: string, pretty?: string, _continue?: string, fieldSelector?: string, includeUninitialized?: boolean, labelSelector?: string, limit?: number, resourceVersion?: string, timeoutSeconds?: number, watch?: boolean) : Promise<{ response: http.ClientResponse; body: V1ResourceQuotaList; }> { + const localVarPath = this.basePath + '/api/v1/namespaces/{namespace}/resourcequotas' + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling listNamespacedResourceQuota.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (_continue !== undefined) { + queryParameters['continue'] = _continue; + } + + if (fieldSelector !== undefined) { + queryParameters['fieldSelector'] = fieldSelector; + } + + if (includeUninitialized !== undefined) { + queryParameters['includeUninitialized'] = includeUninitialized; + } + + if (labelSelector !== undefined) { + queryParameters['labelSelector'] = labelSelector; + } + + if (limit !== undefined) { + queryParameters['limit'] = limit; + } + + if (resourceVersion !== undefined) { + queryParameters['resourceVersion'] = resourceVersion; + } + + if (timeoutSeconds !== undefined) { + queryParameters['timeoutSeconds'] = timeoutSeconds; + } + + if (watch !== undefined) { + queryParameters['watch'] = watch; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1ResourceQuotaList; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * list or watch objects of kind Secret + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If 'true', then the output is pretty printed. + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param includeUninitialized If true, partially initialized resources are included in the response. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + * @param timeoutSeconds Timeout for the list/watch call. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public listNamespacedSecret (namespace: string, pretty?: string, _continue?: string, fieldSelector?: string, includeUninitialized?: boolean, labelSelector?: string, limit?: number, resourceVersion?: string, timeoutSeconds?: number, watch?: boolean) : Promise<{ response: http.ClientResponse; body: V1SecretList; }> { + const localVarPath = this.basePath + '/api/v1/namespaces/{namespace}/secrets' + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling listNamespacedSecret.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (_continue !== undefined) { + queryParameters['continue'] = _continue; + } + + if (fieldSelector !== undefined) { + queryParameters['fieldSelector'] = fieldSelector; + } + + if (includeUninitialized !== undefined) { + queryParameters['includeUninitialized'] = includeUninitialized; + } + + if (labelSelector !== undefined) { + queryParameters['labelSelector'] = labelSelector; + } + + if (limit !== undefined) { + queryParameters['limit'] = limit; + } + + if (resourceVersion !== undefined) { + queryParameters['resourceVersion'] = resourceVersion; + } + + if (timeoutSeconds !== undefined) { + queryParameters['timeoutSeconds'] = timeoutSeconds; + } + + if (watch !== undefined) { + queryParameters['watch'] = watch; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1SecretList; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * list or watch objects of kind Service + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If 'true', then the output is pretty printed. + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param includeUninitialized If true, partially initialized resources are included in the response. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + * @param timeoutSeconds Timeout for the list/watch call. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public listNamespacedService (namespace: string, pretty?: string, _continue?: string, fieldSelector?: string, includeUninitialized?: boolean, labelSelector?: string, limit?: number, resourceVersion?: string, timeoutSeconds?: number, watch?: boolean) : Promise<{ response: http.ClientResponse; body: V1ServiceList; }> { + const localVarPath = this.basePath + '/api/v1/namespaces/{namespace}/services' + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling listNamespacedService.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (_continue !== undefined) { + queryParameters['continue'] = _continue; + } + + if (fieldSelector !== undefined) { + queryParameters['fieldSelector'] = fieldSelector; + } + + if (includeUninitialized !== undefined) { + queryParameters['includeUninitialized'] = includeUninitialized; + } + + if (labelSelector !== undefined) { + queryParameters['labelSelector'] = labelSelector; + } + + if (limit !== undefined) { + queryParameters['limit'] = limit; + } + + if (resourceVersion !== undefined) { + queryParameters['resourceVersion'] = resourceVersion; + } + + if (timeoutSeconds !== undefined) { + queryParameters['timeoutSeconds'] = timeoutSeconds; + } + + if (watch !== undefined) { + queryParameters['watch'] = watch; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1ServiceList; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * list or watch objects of kind ServiceAccount + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If 'true', then the output is pretty printed. + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param includeUninitialized If true, partially initialized resources are included in the response. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + * @param timeoutSeconds Timeout for the list/watch call. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public listNamespacedServiceAccount (namespace: string, pretty?: string, _continue?: string, fieldSelector?: string, includeUninitialized?: boolean, labelSelector?: string, limit?: number, resourceVersion?: string, timeoutSeconds?: number, watch?: boolean) : Promise<{ response: http.ClientResponse; body: V1ServiceAccountList; }> { + const localVarPath = this.basePath + '/api/v1/namespaces/{namespace}/serviceaccounts' + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling listNamespacedServiceAccount.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (_continue !== undefined) { + queryParameters['continue'] = _continue; + } + + if (fieldSelector !== undefined) { + queryParameters['fieldSelector'] = fieldSelector; + } + + if (includeUninitialized !== undefined) { + queryParameters['includeUninitialized'] = includeUninitialized; + } + + if (labelSelector !== undefined) { + queryParameters['labelSelector'] = labelSelector; + } + + if (limit !== undefined) { + queryParameters['limit'] = limit; + } + + if (resourceVersion !== undefined) { + queryParameters['resourceVersion'] = resourceVersion; + } + + if (timeoutSeconds !== undefined) { + queryParameters['timeoutSeconds'] = timeoutSeconds; + } + + if (watch !== undefined) { + queryParameters['watch'] = watch; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1ServiceAccountList; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * list or watch objects of kind Node + * @param pretty If 'true', then the output is pretty printed. + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param includeUninitialized If true, partially initialized resources are included in the response. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + * @param timeoutSeconds Timeout for the list/watch call. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public listNode (pretty?: string, _continue?: string, fieldSelector?: string, includeUninitialized?: boolean, labelSelector?: string, limit?: number, resourceVersion?: string, timeoutSeconds?: number, watch?: boolean) : Promise<{ response: http.ClientResponse; body: V1NodeList; }> { + const localVarPath = this.basePath + '/api/v1/nodes'; + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (_continue !== undefined) { + queryParameters['continue'] = _continue; + } + + if (fieldSelector !== undefined) { + queryParameters['fieldSelector'] = fieldSelector; + } + + if (includeUninitialized !== undefined) { + queryParameters['includeUninitialized'] = includeUninitialized; + } + + if (labelSelector !== undefined) { + queryParameters['labelSelector'] = labelSelector; + } + + if (limit !== undefined) { + queryParameters['limit'] = limit; + } + + if (resourceVersion !== undefined) { + queryParameters['resourceVersion'] = resourceVersion; + } + + if (timeoutSeconds !== undefined) { + queryParameters['timeoutSeconds'] = timeoutSeconds; + } + + if (watch !== undefined) { + queryParameters['watch'] = watch; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1NodeList; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * list or watch objects of kind PersistentVolume + * @param pretty If 'true', then the output is pretty printed. + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param includeUninitialized If true, partially initialized resources are included in the response. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + * @param timeoutSeconds Timeout for the list/watch call. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public listPersistentVolume (pretty?: string, _continue?: string, fieldSelector?: string, includeUninitialized?: boolean, labelSelector?: string, limit?: number, resourceVersion?: string, timeoutSeconds?: number, watch?: boolean) : Promise<{ response: http.ClientResponse; body: V1PersistentVolumeList; }> { + const localVarPath = this.basePath + '/api/v1/persistentvolumes'; + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (_continue !== undefined) { + queryParameters['continue'] = _continue; + } + + if (fieldSelector !== undefined) { + queryParameters['fieldSelector'] = fieldSelector; + } + + if (includeUninitialized !== undefined) { + queryParameters['includeUninitialized'] = includeUninitialized; + } + + if (labelSelector !== undefined) { + queryParameters['labelSelector'] = labelSelector; + } + + if (limit !== undefined) { + queryParameters['limit'] = limit; + } + + if (resourceVersion !== undefined) { + queryParameters['resourceVersion'] = resourceVersion; + } + + if (timeoutSeconds !== undefined) { + queryParameters['timeoutSeconds'] = timeoutSeconds; + } + + if (watch !== undefined) { + queryParameters['watch'] = watch; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1PersistentVolumeList; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * list or watch objects of kind PersistentVolumeClaim + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param includeUninitialized If true, partially initialized resources are included in the response. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param pretty If 'true', then the output is pretty printed. + * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + * @param timeoutSeconds Timeout for the list/watch call. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public listPersistentVolumeClaimForAllNamespaces (_continue?: string, fieldSelector?: string, includeUninitialized?: boolean, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, timeoutSeconds?: number, watch?: boolean) : Promise<{ response: http.ClientResponse; body: V1PersistentVolumeClaimList; }> { + const localVarPath = this.basePath + '/api/v1/persistentvolumeclaims'; + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + if (_continue !== undefined) { + queryParameters['continue'] = _continue; + } + + if (fieldSelector !== undefined) { + queryParameters['fieldSelector'] = fieldSelector; + } + + if (includeUninitialized !== undefined) { + queryParameters['includeUninitialized'] = includeUninitialized; + } + + if (labelSelector !== undefined) { + queryParameters['labelSelector'] = labelSelector; + } + + if (limit !== undefined) { + queryParameters['limit'] = limit; + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (resourceVersion !== undefined) { + queryParameters['resourceVersion'] = resourceVersion; + } + + if (timeoutSeconds !== undefined) { + queryParameters['timeoutSeconds'] = timeoutSeconds; + } + + if (watch !== undefined) { + queryParameters['watch'] = watch; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1PersistentVolumeClaimList; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * list or watch objects of kind Pod + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param includeUninitialized If true, partially initialized resources are included in the response. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param pretty If 'true', then the output is pretty printed. + * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + * @param timeoutSeconds Timeout for the list/watch call. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public listPodForAllNamespaces (_continue?: string, fieldSelector?: string, includeUninitialized?: boolean, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, timeoutSeconds?: number, watch?: boolean) : Promise<{ response: http.ClientResponse; body: V1PodList; }> { + const localVarPath = this.basePath + '/api/v1/pods'; + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + if (_continue !== undefined) { + queryParameters['continue'] = _continue; + } + + if (fieldSelector !== undefined) { + queryParameters['fieldSelector'] = fieldSelector; + } + + if (includeUninitialized !== undefined) { + queryParameters['includeUninitialized'] = includeUninitialized; + } + + if (labelSelector !== undefined) { + queryParameters['labelSelector'] = labelSelector; + } + + if (limit !== undefined) { + queryParameters['limit'] = limit; + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (resourceVersion !== undefined) { + queryParameters['resourceVersion'] = resourceVersion; + } + + if (timeoutSeconds !== undefined) { + queryParameters['timeoutSeconds'] = timeoutSeconds; + } + + if (watch !== undefined) { + queryParameters['watch'] = watch; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1PodList; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * list or watch objects of kind PodTemplate + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param includeUninitialized If true, partially initialized resources are included in the response. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param pretty If 'true', then the output is pretty printed. + * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + * @param timeoutSeconds Timeout for the list/watch call. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public listPodTemplateForAllNamespaces (_continue?: string, fieldSelector?: string, includeUninitialized?: boolean, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, timeoutSeconds?: number, watch?: boolean) : Promise<{ response: http.ClientResponse; body: V1PodTemplateList; }> { + const localVarPath = this.basePath + '/api/v1/podtemplates'; + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + if (_continue !== undefined) { + queryParameters['continue'] = _continue; + } + + if (fieldSelector !== undefined) { + queryParameters['fieldSelector'] = fieldSelector; + } + + if (includeUninitialized !== undefined) { + queryParameters['includeUninitialized'] = includeUninitialized; + } + + if (labelSelector !== undefined) { + queryParameters['labelSelector'] = labelSelector; + } + + if (limit !== undefined) { + queryParameters['limit'] = limit; + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (resourceVersion !== undefined) { + queryParameters['resourceVersion'] = resourceVersion; + } + + if (timeoutSeconds !== undefined) { + queryParameters['timeoutSeconds'] = timeoutSeconds; + } + + if (watch !== undefined) { + queryParameters['watch'] = watch; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1PodTemplateList; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * list or watch objects of kind ReplicationController + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param includeUninitialized If true, partially initialized resources are included in the response. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param pretty If 'true', then the output is pretty printed. + * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + * @param timeoutSeconds Timeout for the list/watch call. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public listReplicationControllerForAllNamespaces (_continue?: string, fieldSelector?: string, includeUninitialized?: boolean, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, timeoutSeconds?: number, watch?: boolean) : Promise<{ response: http.ClientResponse; body: V1ReplicationControllerList; }> { + const localVarPath = this.basePath + '/api/v1/replicationcontrollers'; + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + if (_continue !== undefined) { + queryParameters['continue'] = _continue; + } + + if (fieldSelector !== undefined) { + queryParameters['fieldSelector'] = fieldSelector; + } + + if (includeUninitialized !== undefined) { + queryParameters['includeUninitialized'] = includeUninitialized; + } + + if (labelSelector !== undefined) { + queryParameters['labelSelector'] = labelSelector; + } + + if (limit !== undefined) { + queryParameters['limit'] = limit; + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (resourceVersion !== undefined) { + queryParameters['resourceVersion'] = resourceVersion; + } + + if (timeoutSeconds !== undefined) { + queryParameters['timeoutSeconds'] = timeoutSeconds; + } + + if (watch !== undefined) { + queryParameters['watch'] = watch; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1ReplicationControllerList; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * list or watch objects of kind ResourceQuota + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param includeUninitialized If true, partially initialized resources are included in the response. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param pretty If 'true', then the output is pretty printed. + * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + * @param timeoutSeconds Timeout for the list/watch call. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public listResourceQuotaForAllNamespaces (_continue?: string, fieldSelector?: string, includeUninitialized?: boolean, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, timeoutSeconds?: number, watch?: boolean) : Promise<{ response: http.ClientResponse; body: V1ResourceQuotaList; }> { + const localVarPath = this.basePath + '/api/v1/resourcequotas'; + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + if (_continue !== undefined) { + queryParameters['continue'] = _continue; + } + + if (fieldSelector !== undefined) { + queryParameters['fieldSelector'] = fieldSelector; + } + + if (includeUninitialized !== undefined) { + queryParameters['includeUninitialized'] = includeUninitialized; + } + + if (labelSelector !== undefined) { + queryParameters['labelSelector'] = labelSelector; + } + + if (limit !== undefined) { + queryParameters['limit'] = limit; + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (resourceVersion !== undefined) { + queryParameters['resourceVersion'] = resourceVersion; + } + + if (timeoutSeconds !== undefined) { + queryParameters['timeoutSeconds'] = timeoutSeconds; + } + + if (watch !== undefined) { + queryParameters['watch'] = watch; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1ResourceQuotaList; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * list or watch objects of kind Secret + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param includeUninitialized If true, partially initialized resources are included in the response. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param pretty If 'true', then the output is pretty printed. + * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + * @param timeoutSeconds Timeout for the list/watch call. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public listSecretForAllNamespaces (_continue?: string, fieldSelector?: string, includeUninitialized?: boolean, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, timeoutSeconds?: number, watch?: boolean) : Promise<{ response: http.ClientResponse; body: V1SecretList; }> { + const localVarPath = this.basePath + '/api/v1/secrets'; + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + if (_continue !== undefined) { + queryParameters['continue'] = _continue; + } + + if (fieldSelector !== undefined) { + queryParameters['fieldSelector'] = fieldSelector; + } + + if (includeUninitialized !== undefined) { + queryParameters['includeUninitialized'] = includeUninitialized; + } + + if (labelSelector !== undefined) { + queryParameters['labelSelector'] = labelSelector; + } + + if (limit !== undefined) { + queryParameters['limit'] = limit; + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (resourceVersion !== undefined) { + queryParameters['resourceVersion'] = resourceVersion; + } + + if (timeoutSeconds !== undefined) { + queryParameters['timeoutSeconds'] = timeoutSeconds; + } + + if (watch !== undefined) { + queryParameters['watch'] = watch; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1SecretList; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * list or watch objects of kind ServiceAccount + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param includeUninitialized If true, partially initialized resources are included in the response. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param pretty If 'true', then the output is pretty printed. + * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + * @param timeoutSeconds Timeout for the list/watch call. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public listServiceAccountForAllNamespaces (_continue?: string, fieldSelector?: string, includeUninitialized?: boolean, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, timeoutSeconds?: number, watch?: boolean) : Promise<{ response: http.ClientResponse; body: V1ServiceAccountList; }> { + const localVarPath = this.basePath + '/api/v1/serviceaccounts'; + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + if (_continue !== undefined) { + queryParameters['continue'] = _continue; + } + + if (fieldSelector !== undefined) { + queryParameters['fieldSelector'] = fieldSelector; + } + + if (includeUninitialized !== undefined) { + queryParameters['includeUninitialized'] = includeUninitialized; + } + + if (labelSelector !== undefined) { + queryParameters['labelSelector'] = labelSelector; + } + + if (limit !== undefined) { + queryParameters['limit'] = limit; + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (resourceVersion !== undefined) { + queryParameters['resourceVersion'] = resourceVersion; + } + + if (timeoutSeconds !== undefined) { + queryParameters['timeoutSeconds'] = timeoutSeconds; + } + + if (watch !== undefined) { + queryParameters['watch'] = watch; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1ServiceAccountList; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * list or watch objects of kind Service + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param includeUninitialized If true, partially initialized resources are included in the response. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param pretty If 'true', then the output is pretty printed. + * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + * @param timeoutSeconds Timeout for the list/watch call. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public listServiceForAllNamespaces (_continue?: string, fieldSelector?: string, includeUninitialized?: boolean, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, timeoutSeconds?: number, watch?: boolean) : Promise<{ response: http.ClientResponse; body: V1ServiceList; }> { + const localVarPath = this.basePath + '/api/v1/services'; + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + if (_continue !== undefined) { + queryParameters['continue'] = _continue; + } + + if (fieldSelector !== undefined) { + queryParameters['fieldSelector'] = fieldSelector; + } + + if (includeUninitialized !== undefined) { + queryParameters['includeUninitialized'] = includeUninitialized; + } + + if (labelSelector !== undefined) { + queryParameters['labelSelector'] = labelSelector; + } + + if (limit !== undefined) { + queryParameters['limit'] = limit; + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (resourceVersion !== undefined) { + queryParameters['resourceVersion'] = resourceVersion; + } + + if (timeoutSeconds !== undefined) { + queryParameters['timeoutSeconds'] = timeoutSeconds; + } + + if (watch !== undefined) { + queryParameters['watch'] = watch; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1ServiceList; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * partially update the specified Namespace + * @param name name of the Namespace + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public patchNamespace (name: string, body: any, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1Namespace; }> { + const localVarPath = this.basePath + '/api/v1/namespaces/{name}' + .replace('{' + 'name' + '}', String(name)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling patchNamespace.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling patchNamespace.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PATCH', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Namespace; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * partially update status of the specified Namespace + * @param name name of the Namespace + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public patchNamespaceStatus (name: string, body: any, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1Namespace; }> { + const localVarPath = this.basePath + '/api/v1/namespaces/{name}/status' + .replace('{' + 'name' + '}', String(name)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling patchNamespaceStatus.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling patchNamespaceStatus.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PATCH', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Namespace; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * partially update the specified ConfigMap + * @param name name of the ConfigMap + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public patchNamespacedConfigMap (name: string, namespace: string, body: any, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1ConfigMap; }> { + const localVarPath = this.basePath + '/api/v1/namespaces/{namespace}/configmaps/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling patchNamespacedConfigMap.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling patchNamespacedConfigMap.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling patchNamespacedConfigMap.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PATCH', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1ConfigMap; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * partially update the specified Endpoints + * @param name name of the Endpoints + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public patchNamespacedEndpoints (name: string, namespace: string, body: any, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1Endpoints; }> { + const localVarPath = this.basePath + '/api/v1/namespaces/{namespace}/endpoints/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling patchNamespacedEndpoints.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling patchNamespacedEndpoints.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling patchNamespacedEndpoints.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PATCH', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Endpoints; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * partially update the specified Event + * @param name name of the Event + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public patchNamespacedEvent (name: string, namespace: string, body: any, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1Event; }> { + const localVarPath = this.basePath + '/api/v1/namespaces/{namespace}/events/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling patchNamespacedEvent.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling patchNamespacedEvent.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling patchNamespacedEvent.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PATCH', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Event; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * partially update the specified LimitRange + * @param name name of the LimitRange + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public patchNamespacedLimitRange (name: string, namespace: string, body: any, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1LimitRange; }> { + const localVarPath = this.basePath + '/api/v1/namespaces/{namespace}/limitranges/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling patchNamespacedLimitRange.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling patchNamespacedLimitRange.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling patchNamespacedLimitRange.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PATCH', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1LimitRange; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * partially update the specified PersistentVolumeClaim + * @param name name of the PersistentVolumeClaim + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public patchNamespacedPersistentVolumeClaim (name: string, namespace: string, body: any, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1PersistentVolumeClaim; }> { + const localVarPath = this.basePath + '/api/v1/namespaces/{namespace}/persistentvolumeclaims/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling patchNamespacedPersistentVolumeClaim.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling patchNamespacedPersistentVolumeClaim.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling patchNamespacedPersistentVolumeClaim.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PATCH', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1PersistentVolumeClaim; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * partially update status of the specified PersistentVolumeClaim + * @param name name of the PersistentVolumeClaim + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public patchNamespacedPersistentVolumeClaimStatus (name: string, namespace: string, body: any, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1PersistentVolumeClaim; }> { + const localVarPath = this.basePath + '/api/v1/namespaces/{namespace}/persistentvolumeclaims/{name}/status' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling patchNamespacedPersistentVolumeClaimStatus.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling patchNamespacedPersistentVolumeClaimStatus.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling patchNamespacedPersistentVolumeClaimStatus.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PATCH', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1PersistentVolumeClaim; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * partially update the specified Pod + * @param name name of the Pod + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public patchNamespacedPod (name: string, namespace: string, body: any, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1Pod; }> { + const localVarPath = this.basePath + '/api/v1/namespaces/{namespace}/pods/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling patchNamespacedPod.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling patchNamespacedPod.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling patchNamespacedPod.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PATCH', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Pod; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * partially update status of the specified Pod + * @param name name of the Pod + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public patchNamespacedPodStatus (name: string, namespace: string, body: any, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1Pod; }> { + const localVarPath = this.basePath + '/api/v1/namespaces/{namespace}/pods/{name}/status' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling patchNamespacedPodStatus.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling patchNamespacedPodStatus.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling patchNamespacedPodStatus.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PATCH', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Pod; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * partially update the specified PodTemplate + * @param name name of the PodTemplate + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public patchNamespacedPodTemplate (name: string, namespace: string, body: any, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1PodTemplate; }> { + const localVarPath = this.basePath + '/api/v1/namespaces/{namespace}/podtemplates/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling patchNamespacedPodTemplate.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling patchNamespacedPodTemplate.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling patchNamespacedPodTemplate.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PATCH', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1PodTemplate; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * partially update the specified ReplicationController + * @param name name of the ReplicationController + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public patchNamespacedReplicationController (name: string, namespace: string, body: any, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1ReplicationController; }> { + const localVarPath = this.basePath + '/api/v1/namespaces/{namespace}/replicationcontrollers/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling patchNamespacedReplicationController.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling patchNamespacedReplicationController.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling patchNamespacedReplicationController.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PATCH', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1ReplicationController; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * partially update scale of the specified ReplicationController + * @param name name of the Scale + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public patchNamespacedReplicationControllerScale (name: string, namespace: string, body: any, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1Scale; }> { + const localVarPath = this.basePath + '/api/v1/namespaces/{namespace}/replicationcontrollers/{name}/scale' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling patchNamespacedReplicationControllerScale.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling patchNamespacedReplicationControllerScale.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling patchNamespacedReplicationControllerScale.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PATCH', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Scale; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * partially update status of the specified ReplicationController + * @param name name of the ReplicationController + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public patchNamespacedReplicationControllerStatus (name: string, namespace: string, body: any, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1ReplicationController; }> { + const localVarPath = this.basePath + '/api/v1/namespaces/{namespace}/replicationcontrollers/{name}/status' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling patchNamespacedReplicationControllerStatus.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling patchNamespacedReplicationControllerStatus.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling patchNamespacedReplicationControllerStatus.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PATCH', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1ReplicationController; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * partially update the specified ResourceQuota + * @param name name of the ResourceQuota + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public patchNamespacedResourceQuota (name: string, namespace: string, body: any, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1ResourceQuota; }> { + const localVarPath = this.basePath + '/api/v1/namespaces/{namespace}/resourcequotas/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling patchNamespacedResourceQuota.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling patchNamespacedResourceQuota.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling patchNamespacedResourceQuota.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PATCH', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1ResourceQuota; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * partially update status of the specified ResourceQuota + * @param name name of the ResourceQuota + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public patchNamespacedResourceQuotaStatus (name: string, namespace: string, body: any, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1ResourceQuota; }> { + const localVarPath = this.basePath + '/api/v1/namespaces/{namespace}/resourcequotas/{name}/status' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling patchNamespacedResourceQuotaStatus.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling patchNamespacedResourceQuotaStatus.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling patchNamespacedResourceQuotaStatus.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PATCH', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1ResourceQuota; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * partially update the specified Secret + * @param name name of the Secret + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public patchNamespacedSecret (name: string, namespace: string, body: any, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1Secret; }> { + const localVarPath = this.basePath + '/api/v1/namespaces/{namespace}/secrets/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling patchNamespacedSecret.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling patchNamespacedSecret.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling patchNamespacedSecret.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PATCH', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Secret; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * partially update the specified Service + * @param name name of the Service + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public patchNamespacedService (name: string, namespace: string, body: any, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1Service; }> { + const localVarPath = this.basePath + '/api/v1/namespaces/{namespace}/services/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling patchNamespacedService.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling patchNamespacedService.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling patchNamespacedService.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PATCH', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Service; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * partially update the specified ServiceAccount + * @param name name of the ServiceAccount + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public patchNamespacedServiceAccount (name: string, namespace: string, body: any, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1ServiceAccount; }> { + const localVarPath = this.basePath + '/api/v1/namespaces/{namespace}/serviceaccounts/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling patchNamespacedServiceAccount.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling patchNamespacedServiceAccount.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling patchNamespacedServiceAccount.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PATCH', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1ServiceAccount; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * partially update status of the specified Service + * @param name name of the Service + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public patchNamespacedServiceStatus (name: string, namespace: string, body: any, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1Service; }> { + const localVarPath = this.basePath + '/api/v1/namespaces/{namespace}/services/{name}/status' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling patchNamespacedServiceStatus.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling patchNamespacedServiceStatus.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling patchNamespacedServiceStatus.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PATCH', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Service; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * partially update the specified Node + * @param name name of the Node + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public patchNode (name: string, body: any, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1Node; }> { + const localVarPath = this.basePath + '/api/v1/nodes/{name}' + .replace('{' + 'name' + '}', String(name)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling patchNode.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling patchNode.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PATCH', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Node; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * partially update status of the specified Node + * @param name name of the Node + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public patchNodeStatus (name: string, body: any, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1Node; }> { + const localVarPath = this.basePath + '/api/v1/nodes/{name}/status' + .replace('{' + 'name' + '}', String(name)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling patchNodeStatus.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling patchNodeStatus.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PATCH', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Node; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * partially update the specified PersistentVolume + * @param name name of the PersistentVolume + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public patchPersistentVolume (name: string, body: any, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1PersistentVolume; }> { + const localVarPath = this.basePath + '/api/v1/persistentvolumes/{name}' + .replace('{' + 'name' + '}', String(name)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling patchPersistentVolume.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling patchPersistentVolume.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PATCH', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1PersistentVolume; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * partially update status of the specified PersistentVolume + * @param name name of the PersistentVolume + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public patchPersistentVolumeStatus (name: string, body: any, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1PersistentVolume; }> { + const localVarPath = this.basePath + '/api/v1/persistentvolumes/{name}/status' + .replace('{' + 'name' + '}', String(name)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling patchPersistentVolumeStatus.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling patchPersistentVolumeStatus.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PATCH', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1PersistentVolume; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * proxy DELETE requests to Pod + * @param name name of the Pod + * @param namespace object name and auth scope, such as for teams and projects + */ + public proxyDELETENamespacedPod (name: string, namespace: string) : Promise<{ response: http.ClientResponse; body: string; }> { + const localVarPath = this.basePath + '/api/v1/proxy/namespaces/{namespace}/pods/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling proxyDELETENamespacedPod.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling proxyDELETENamespacedPod.'); + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'DELETE', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: string; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * proxy DELETE requests to Pod + * @param name name of the Pod + * @param namespace object name and auth scope, such as for teams and projects + * @param path path to the resource + */ + public proxyDELETENamespacedPodWithPath (name: string, namespace: string, path: string) : Promise<{ response: http.ClientResponse; body: string; }> { + const localVarPath = this.basePath + '/api/v1/proxy/namespaces/{namespace}/pods/{name}/{path}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)) + .replace('{' + 'path' + '}', String(path)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling proxyDELETENamespacedPodWithPath.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling proxyDELETENamespacedPodWithPath.'); + } + + // verify required parameter 'path' is not null or undefined + if (path === null || path === undefined) { + throw new Error('Required parameter path was null or undefined when calling proxyDELETENamespacedPodWithPath.'); + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'DELETE', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: string; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * proxy DELETE requests to Service + * @param name name of the Service + * @param namespace object name and auth scope, such as for teams and projects + */ + public proxyDELETENamespacedService (name: string, namespace: string) : Promise<{ response: http.ClientResponse; body: string; }> { + const localVarPath = this.basePath + '/api/v1/proxy/namespaces/{namespace}/services/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling proxyDELETENamespacedService.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling proxyDELETENamespacedService.'); + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'DELETE', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: string; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * proxy DELETE requests to Service + * @param name name of the Service + * @param namespace object name and auth scope, such as for teams and projects + * @param path path to the resource + */ + public proxyDELETENamespacedServiceWithPath (name: string, namespace: string, path: string) : Promise<{ response: http.ClientResponse; body: string; }> { + const localVarPath = this.basePath + '/api/v1/proxy/namespaces/{namespace}/services/{name}/{path}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)) + .replace('{' + 'path' + '}', String(path)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling proxyDELETENamespacedServiceWithPath.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling proxyDELETENamespacedServiceWithPath.'); + } + + // verify required parameter 'path' is not null or undefined + if (path === null || path === undefined) { + throw new Error('Required parameter path was null or undefined when calling proxyDELETENamespacedServiceWithPath.'); + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'DELETE', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: string; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * proxy DELETE requests to Node + * @param name name of the Node + */ + public proxyDELETENode (name: string) : Promise<{ response: http.ClientResponse; body: string; }> { + const localVarPath = this.basePath + '/api/v1/proxy/nodes/{name}' + .replace('{' + 'name' + '}', String(name)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling proxyDELETENode.'); + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'DELETE', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: string; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * proxy DELETE requests to Node + * @param name name of the Node + * @param path path to the resource + */ + public proxyDELETENodeWithPath (name: string, path: string) : Promise<{ response: http.ClientResponse; body: string; }> { + const localVarPath = this.basePath + '/api/v1/proxy/nodes/{name}/{path}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'path' + '}', String(path)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling proxyDELETENodeWithPath.'); + } + + // verify required parameter 'path' is not null or undefined + if (path === null || path === undefined) { + throw new Error('Required parameter path was null or undefined when calling proxyDELETENodeWithPath.'); + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'DELETE', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: string; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * proxy GET requests to Pod + * @param name name of the Pod + * @param namespace object name and auth scope, such as for teams and projects + */ + public proxyGETNamespacedPod (name: string, namespace: string) : Promise<{ response: http.ClientResponse; body: string; }> { + const localVarPath = this.basePath + '/api/v1/proxy/namespaces/{namespace}/pods/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling proxyGETNamespacedPod.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling proxyGETNamespacedPod.'); + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: string; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * proxy GET requests to Pod + * @param name name of the Pod + * @param namespace object name and auth scope, such as for teams and projects + * @param path path to the resource + */ + public proxyGETNamespacedPodWithPath (name: string, namespace: string, path: string) : Promise<{ response: http.ClientResponse; body: string; }> { + const localVarPath = this.basePath + '/api/v1/proxy/namespaces/{namespace}/pods/{name}/{path}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)) + .replace('{' + 'path' + '}', String(path)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling proxyGETNamespacedPodWithPath.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling proxyGETNamespacedPodWithPath.'); + } + + // verify required parameter 'path' is not null or undefined + if (path === null || path === undefined) { + throw new Error('Required parameter path was null or undefined when calling proxyGETNamespacedPodWithPath.'); + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: string; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * proxy GET requests to Service + * @param name name of the Service + * @param namespace object name and auth scope, such as for teams and projects + */ + public proxyGETNamespacedService (name: string, namespace: string) : Promise<{ response: http.ClientResponse; body: string; }> { + const localVarPath = this.basePath + '/api/v1/proxy/namespaces/{namespace}/services/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling proxyGETNamespacedService.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling proxyGETNamespacedService.'); + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: string; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * proxy GET requests to Service + * @param name name of the Service + * @param namespace object name and auth scope, such as for teams and projects + * @param path path to the resource + */ + public proxyGETNamespacedServiceWithPath (name: string, namespace: string, path: string) : Promise<{ response: http.ClientResponse; body: string; }> { + const localVarPath = this.basePath + '/api/v1/proxy/namespaces/{namespace}/services/{name}/{path}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)) + .replace('{' + 'path' + '}', String(path)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling proxyGETNamespacedServiceWithPath.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling proxyGETNamespacedServiceWithPath.'); + } + + // verify required parameter 'path' is not null or undefined + if (path === null || path === undefined) { + throw new Error('Required parameter path was null or undefined when calling proxyGETNamespacedServiceWithPath.'); + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: string; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * proxy GET requests to Node + * @param name name of the Node + */ + public proxyGETNode (name: string) : Promise<{ response: http.ClientResponse; body: string; }> { + const localVarPath = this.basePath + '/api/v1/proxy/nodes/{name}' + .replace('{' + 'name' + '}', String(name)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling proxyGETNode.'); + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: string; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * proxy GET requests to Node + * @param name name of the Node + * @param path path to the resource + */ + public proxyGETNodeWithPath (name: string, path: string) : Promise<{ response: http.ClientResponse; body: string; }> { + const localVarPath = this.basePath + '/api/v1/proxy/nodes/{name}/{path}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'path' + '}', String(path)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling proxyGETNodeWithPath.'); + } + + // verify required parameter 'path' is not null or undefined + if (path === null || path === undefined) { + throw new Error('Required parameter path was null or undefined when calling proxyGETNodeWithPath.'); + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: string; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * proxy HEAD requests to Pod + * @param name name of the Pod + * @param namespace object name and auth scope, such as for teams and projects + */ + public proxyHEADNamespacedPod (name: string, namespace: string) : Promise<{ response: http.ClientResponse; body: string; }> { + const localVarPath = this.basePath + '/api/v1/proxy/namespaces/{namespace}/pods/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling proxyHEADNamespacedPod.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling proxyHEADNamespacedPod.'); + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'HEAD', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: string; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * proxy HEAD requests to Pod + * @param name name of the Pod + * @param namespace object name and auth scope, such as for teams and projects + * @param path path to the resource + */ + public proxyHEADNamespacedPodWithPath (name: string, namespace: string, path: string) : Promise<{ response: http.ClientResponse; body: string; }> { + const localVarPath = this.basePath + '/api/v1/proxy/namespaces/{namespace}/pods/{name}/{path}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)) + .replace('{' + 'path' + '}', String(path)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling proxyHEADNamespacedPodWithPath.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling proxyHEADNamespacedPodWithPath.'); + } + + // verify required parameter 'path' is not null or undefined + if (path === null || path === undefined) { + throw new Error('Required parameter path was null or undefined when calling proxyHEADNamespacedPodWithPath.'); + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'HEAD', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: string; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * proxy HEAD requests to Service + * @param name name of the Service + * @param namespace object name and auth scope, such as for teams and projects + */ + public proxyHEADNamespacedService (name: string, namespace: string) : Promise<{ response: http.ClientResponse; body: string; }> { + const localVarPath = this.basePath + '/api/v1/proxy/namespaces/{namespace}/services/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling proxyHEADNamespacedService.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling proxyHEADNamespacedService.'); + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'HEAD', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: string; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * proxy HEAD requests to Service + * @param name name of the Service + * @param namespace object name and auth scope, such as for teams and projects + * @param path path to the resource + */ + public proxyHEADNamespacedServiceWithPath (name: string, namespace: string, path: string) : Promise<{ response: http.ClientResponse; body: string; }> { + const localVarPath = this.basePath + '/api/v1/proxy/namespaces/{namespace}/services/{name}/{path}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)) + .replace('{' + 'path' + '}', String(path)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling proxyHEADNamespacedServiceWithPath.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling proxyHEADNamespacedServiceWithPath.'); + } + + // verify required parameter 'path' is not null or undefined + if (path === null || path === undefined) { + throw new Error('Required parameter path was null or undefined when calling proxyHEADNamespacedServiceWithPath.'); + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'HEAD', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: string; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * proxy HEAD requests to Node + * @param name name of the Node + */ + public proxyHEADNode (name: string) : Promise<{ response: http.ClientResponse; body: string; }> { + const localVarPath = this.basePath + '/api/v1/proxy/nodes/{name}' + .replace('{' + 'name' + '}', String(name)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling proxyHEADNode.'); + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'HEAD', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: string; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * proxy HEAD requests to Node + * @param name name of the Node + * @param path path to the resource + */ + public proxyHEADNodeWithPath (name: string, path: string) : Promise<{ response: http.ClientResponse; body: string; }> { + const localVarPath = this.basePath + '/api/v1/proxy/nodes/{name}/{path}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'path' + '}', String(path)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling proxyHEADNodeWithPath.'); + } + + // verify required parameter 'path' is not null or undefined + if (path === null || path === undefined) { + throw new Error('Required parameter path was null or undefined when calling proxyHEADNodeWithPath.'); + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'HEAD', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: string; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * proxy OPTIONS requests to Pod + * @param name name of the Pod + * @param namespace object name and auth scope, such as for teams and projects + */ + public proxyOPTIONSNamespacedPod (name: string, namespace: string) : Promise<{ response: http.ClientResponse; body: string; }> { + const localVarPath = this.basePath + '/api/v1/proxy/namespaces/{namespace}/pods/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling proxyOPTIONSNamespacedPod.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling proxyOPTIONSNamespacedPod.'); + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'OPTIONS', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: string; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * proxy OPTIONS requests to Pod + * @param name name of the Pod + * @param namespace object name and auth scope, such as for teams and projects + * @param path path to the resource + */ + public proxyOPTIONSNamespacedPodWithPath (name: string, namespace: string, path: string) : Promise<{ response: http.ClientResponse; body: string; }> { + const localVarPath = this.basePath + '/api/v1/proxy/namespaces/{namespace}/pods/{name}/{path}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)) + .replace('{' + 'path' + '}', String(path)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling proxyOPTIONSNamespacedPodWithPath.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling proxyOPTIONSNamespacedPodWithPath.'); + } + + // verify required parameter 'path' is not null or undefined + if (path === null || path === undefined) { + throw new Error('Required parameter path was null or undefined when calling proxyOPTIONSNamespacedPodWithPath.'); + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'OPTIONS', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: string; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * proxy OPTIONS requests to Service + * @param name name of the Service + * @param namespace object name and auth scope, such as for teams and projects + */ + public proxyOPTIONSNamespacedService (name: string, namespace: string) : Promise<{ response: http.ClientResponse; body: string; }> { + const localVarPath = this.basePath + '/api/v1/proxy/namespaces/{namespace}/services/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling proxyOPTIONSNamespacedService.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling proxyOPTIONSNamespacedService.'); + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'OPTIONS', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: string; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * proxy OPTIONS requests to Service + * @param name name of the Service + * @param namespace object name and auth scope, such as for teams and projects + * @param path path to the resource + */ + public proxyOPTIONSNamespacedServiceWithPath (name: string, namespace: string, path: string) : Promise<{ response: http.ClientResponse; body: string; }> { + const localVarPath = this.basePath + '/api/v1/proxy/namespaces/{namespace}/services/{name}/{path}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)) + .replace('{' + 'path' + '}', String(path)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling proxyOPTIONSNamespacedServiceWithPath.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling proxyOPTIONSNamespacedServiceWithPath.'); + } + + // verify required parameter 'path' is not null or undefined + if (path === null || path === undefined) { + throw new Error('Required parameter path was null or undefined when calling proxyOPTIONSNamespacedServiceWithPath.'); + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'OPTIONS', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: string; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * proxy OPTIONS requests to Node + * @param name name of the Node + */ + public proxyOPTIONSNode (name: string) : Promise<{ response: http.ClientResponse; body: string; }> { + const localVarPath = this.basePath + '/api/v1/proxy/nodes/{name}' + .replace('{' + 'name' + '}', String(name)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling proxyOPTIONSNode.'); + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'OPTIONS', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: string; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * proxy OPTIONS requests to Node + * @param name name of the Node + * @param path path to the resource + */ + public proxyOPTIONSNodeWithPath (name: string, path: string) : Promise<{ response: http.ClientResponse; body: string; }> { + const localVarPath = this.basePath + '/api/v1/proxy/nodes/{name}/{path}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'path' + '}', String(path)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling proxyOPTIONSNodeWithPath.'); + } + + // verify required parameter 'path' is not null or undefined + if (path === null || path === undefined) { + throw new Error('Required parameter path was null or undefined when calling proxyOPTIONSNodeWithPath.'); + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'OPTIONS', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: string; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * proxy PATCH requests to Pod + * @param name name of the Pod + * @param namespace object name and auth scope, such as for teams and projects + */ + public proxyPATCHNamespacedPod (name: string, namespace: string) : Promise<{ response: http.ClientResponse; body: string; }> { + const localVarPath = this.basePath + '/api/v1/proxy/namespaces/{namespace}/pods/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling proxyPATCHNamespacedPod.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling proxyPATCHNamespacedPod.'); + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PATCH', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: string; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * proxy PATCH requests to Pod + * @param name name of the Pod + * @param namespace object name and auth scope, such as for teams and projects + * @param path path to the resource + */ + public proxyPATCHNamespacedPodWithPath (name: string, namespace: string, path: string) : Promise<{ response: http.ClientResponse; body: string; }> { + const localVarPath = this.basePath + '/api/v1/proxy/namespaces/{namespace}/pods/{name}/{path}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)) + .replace('{' + 'path' + '}', String(path)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling proxyPATCHNamespacedPodWithPath.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling proxyPATCHNamespacedPodWithPath.'); + } + + // verify required parameter 'path' is not null or undefined + if (path === null || path === undefined) { + throw new Error('Required parameter path was null or undefined when calling proxyPATCHNamespacedPodWithPath.'); + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PATCH', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: string; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * proxy PATCH requests to Service + * @param name name of the Service + * @param namespace object name and auth scope, such as for teams and projects + */ + public proxyPATCHNamespacedService (name: string, namespace: string) : Promise<{ response: http.ClientResponse; body: string; }> { + const localVarPath = this.basePath + '/api/v1/proxy/namespaces/{namespace}/services/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling proxyPATCHNamespacedService.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling proxyPATCHNamespacedService.'); + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PATCH', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: string; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * proxy PATCH requests to Service + * @param name name of the Service + * @param namespace object name and auth scope, such as for teams and projects + * @param path path to the resource + */ + public proxyPATCHNamespacedServiceWithPath (name: string, namespace: string, path: string) : Promise<{ response: http.ClientResponse; body: string; }> { + const localVarPath = this.basePath + '/api/v1/proxy/namespaces/{namespace}/services/{name}/{path}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)) + .replace('{' + 'path' + '}', String(path)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling proxyPATCHNamespacedServiceWithPath.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling proxyPATCHNamespacedServiceWithPath.'); + } + + // verify required parameter 'path' is not null or undefined + if (path === null || path === undefined) { + throw new Error('Required parameter path was null or undefined when calling proxyPATCHNamespacedServiceWithPath.'); + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PATCH', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: string; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * proxy PATCH requests to Node + * @param name name of the Node + */ + public proxyPATCHNode (name: string) : Promise<{ response: http.ClientResponse; body: string; }> { + const localVarPath = this.basePath + '/api/v1/proxy/nodes/{name}' + .replace('{' + 'name' + '}', String(name)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling proxyPATCHNode.'); + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PATCH', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: string; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * proxy PATCH requests to Node + * @param name name of the Node + * @param path path to the resource + */ + public proxyPATCHNodeWithPath (name: string, path: string) : Promise<{ response: http.ClientResponse; body: string; }> { + const localVarPath = this.basePath + '/api/v1/proxy/nodes/{name}/{path}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'path' + '}', String(path)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling proxyPATCHNodeWithPath.'); + } + + // verify required parameter 'path' is not null or undefined + if (path === null || path === undefined) { + throw new Error('Required parameter path was null or undefined when calling proxyPATCHNodeWithPath.'); + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PATCH', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: string; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * proxy POST requests to Pod + * @param name name of the Pod + * @param namespace object name and auth scope, such as for teams and projects + */ + public proxyPOSTNamespacedPod (name: string, namespace: string) : Promise<{ response: http.ClientResponse; body: string; }> { + const localVarPath = this.basePath + '/api/v1/proxy/namespaces/{namespace}/pods/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling proxyPOSTNamespacedPod.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling proxyPOSTNamespacedPod.'); + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'POST', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: string; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * proxy POST requests to Pod + * @param name name of the Pod + * @param namespace object name and auth scope, such as for teams and projects + * @param path path to the resource + */ + public proxyPOSTNamespacedPodWithPath (name: string, namespace: string, path: string) : Promise<{ response: http.ClientResponse; body: string; }> { + const localVarPath = this.basePath + '/api/v1/proxy/namespaces/{namespace}/pods/{name}/{path}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)) + .replace('{' + 'path' + '}', String(path)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling proxyPOSTNamespacedPodWithPath.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling proxyPOSTNamespacedPodWithPath.'); + } + + // verify required parameter 'path' is not null or undefined + if (path === null || path === undefined) { + throw new Error('Required parameter path was null or undefined when calling proxyPOSTNamespacedPodWithPath.'); + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'POST', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: string; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * proxy POST requests to Service + * @param name name of the Service + * @param namespace object name and auth scope, such as for teams and projects + */ + public proxyPOSTNamespacedService (name: string, namespace: string) : Promise<{ response: http.ClientResponse; body: string; }> { + const localVarPath = this.basePath + '/api/v1/proxy/namespaces/{namespace}/services/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling proxyPOSTNamespacedService.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling proxyPOSTNamespacedService.'); + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'POST', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: string; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * proxy POST requests to Service + * @param name name of the Service + * @param namespace object name and auth scope, such as for teams and projects + * @param path path to the resource + */ + public proxyPOSTNamespacedServiceWithPath (name: string, namespace: string, path: string) : Promise<{ response: http.ClientResponse; body: string; }> { + const localVarPath = this.basePath + '/api/v1/proxy/namespaces/{namespace}/services/{name}/{path}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)) + .replace('{' + 'path' + '}', String(path)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling proxyPOSTNamespacedServiceWithPath.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling proxyPOSTNamespacedServiceWithPath.'); + } + + // verify required parameter 'path' is not null or undefined + if (path === null || path === undefined) { + throw new Error('Required parameter path was null or undefined when calling proxyPOSTNamespacedServiceWithPath.'); + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'POST', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: string; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * proxy POST requests to Node + * @param name name of the Node + */ + public proxyPOSTNode (name: string) : Promise<{ response: http.ClientResponse; body: string; }> { + const localVarPath = this.basePath + '/api/v1/proxy/nodes/{name}' + .replace('{' + 'name' + '}', String(name)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling proxyPOSTNode.'); + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'POST', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: string; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * proxy POST requests to Node + * @param name name of the Node + * @param path path to the resource + */ + public proxyPOSTNodeWithPath (name: string, path: string) : Promise<{ response: http.ClientResponse; body: string; }> { + const localVarPath = this.basePath + '/api/v1/proxy/nodes/{name}/{path}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'path' + '}', String(path)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling proxyPOSTNodeWithPath.'); + } + + // verify required parameter 'path' is not null or undefined + if (path === null || path === undefined) { + throw new Error('Required parameter path was null or undefined when calling proxyPOSTNodeWithPath.'); + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'POST', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: string; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * proxy PUT requests to Pod + * @param name name of the Pod + * @param namespace object name and auth scope, such as for teams and projects + */ + public proxyPUTNamespacedPod (name: string, namespace: string) : Promise<{ response: http.ClientResponse; body: string; }> { + const localVarPath = this.basePath + '/api/v1/proxy/namespaces/{namespace}/pods/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling proxyPUTNamespacedPod.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling proxyPUTNamespacedPod.'); + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PUT', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: string; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * proxy PUT requests to Pod + * @param name name of the Pod + * @param namespace object name and auth scope, such as for teams and projects + * @param path path to the resource + */ + public proxyPUTNamespacedPodWithPath (name: string, namespace: string, path: string) : Promise<{ response: http.ClientResponse; body: string; }> { + const localVarPath = this.basePath + '/api/v1/proxy/namespaces/{namespace}/pods/{name}/{path}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)) + .replace('{' + 'path' + '}', String(path)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling proxyPUTNamespacedPodWithPath.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling proxyPUTNamespacedPodWithPath.'); + } + + // verify required parameter 'path' is not null or undefined + if (path === null || path === undefined) { + throw new Error('Required parameter path was null or undefined when calling proxyPUTNamespacedPodWithPath.'); + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PUT', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: string; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * proxy PUT requests to Service + * @param name name of the Service + * @param namespace object name and auth scope, such as for teams and projects + */ + public proxyPUTNamespacedService (name: string, namespace: string) : Promise<{ response: http.ClientResponse; body: string; }> { + const localVarPath = this.basePath + '/api/v1/proxy/namespaces/{namespace}/services/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling proxyPUTNamespacedService.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling proxyPUTNamespacedService.'); + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PUT', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: string; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * proxy PUT requests to Service + * @param name name of the Service + * @param namespace object name and auth scope, such as for teams and projects + * @param path path to the resource + */ + public proxyPUTNamespacedServiceWithPath (name: string, namespace: string, path: string) : Promise<{ response: http.ClientResponse; body: string; }> { + const localVarPath = this.basePath + '/api/v1/proxy/namespaces/{namespace}/services/{name}/{path}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)) + .replace('{' + 'path' + '}', String(path)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling proxyPUTNamespacedServiceWithPath.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling proxyPUTNamespacedServiceWithPath.'); + } + + // verify required parameter 'path' is not null or undefined + if (path === null || path === undefined) { + throw new Error('Required parameter path was null or undefined when calling proxyPUTNamespacedServiceWithPath.'); + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PUT', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: string; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * proxy PUT requests to Node + * @param name name of the Node + */ + public proxyPUTNode (name: string) : Promise<{ response: http.ClientResponse; body: string; }> { + const localVarPath = this.basePath + '/api/v1/proxy/nodes/{name}' + .replace('{' + 'name' + '}', String(name)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling proxyPUTNode.'); + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PUT', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: string; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * proxy PUT requests to Node + * @param name name of the Node + * @param path path to the resource + */ + public proxyPUTNodeWithPath (name: string, path: string) : Promise<{ response: http.ClientResponse; body: string; }> { + const localVarPath = this.basePath + '/api/v1/proxy/nodes/{name}/{path}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'path' + '}', String(path)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling proxyPUTNodeWithPath.'); + } + + // verify required parameter 'path' is not null or undefined + if (path === null || path === undefined) { + throw new Error('Required parameter path was null or undefined when calling proxyPUTNodeWithPath.'); + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PUT', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: string; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * read the specified ComponentStatus + * @param name name of the ComponentStatus + * @param pretty If 'true', then the output is pretty printed. + */ + public readComponentStatus (name: string, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1ComponentStatus; }> { + const localVarPath = this.basePath + '/api/v1/componentstatuses/{name}' + .replace('{' + 'name' + '}', String(name)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling readComponentStatus.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1ComponentStatus; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * read the specified Namespace + * @param name name of the Namespace + * @param pretty If 'true', then the output is pretty printed. + * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + * @param _export Should this value be exported. Export strips fields that a user can not specify. + */ + public readNamespace (name: string, pretty?: string, exact?: boolean, _export?: boolean) : Promise<{ response: http.ClientResponse; body: V1Namespace; }> { + const localVarPath = this.basePath + '/api/v1/namespaces/{name}' + .replace('{' + 'name' + '}', String(name)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling readNamespace.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (exact !== undefined) { + queryParameters['exact'] = exact; + } + + if (_export !== undefined) { + queryParameters['export'] = _export; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Namespace; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * read status of the specified Namespace + * @param name name of the Namespace + * @param pretty If 'true', then the output is pretty printed. + */ + public readNamespaceStatus (name: string, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1Namespace; }> { + const localVarPath = this.basePath + '/api/v1/namespaces/{name}/status' + .replace('{' + 'name' + '}', String(name)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling readNamespaceStatus.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Namespace; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * read the specified ConfigMap + * @param name name of the ConfigMap + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If 'true', then the output is pretty printed. + * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + * @param _export Should this value be exported. Export strips fields that a user can not specify. + */ + public readNamespacedConfigMap (name: string, namespace: string, pretty?: string, exact?: boolean, _export?: boolean) : Promise<{ response: http.ClientResponse; body: V1ConfigMap; }> { + const localVarPath = this.basePath + '/api/v1/namespaces/{namespace}/configmaps/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling readNamespacedConfigMap.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling readNamespacedConfigMap.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (exact !== undefined) { + queryParameters['exact'] = exact; + } + + if (_export !== undefined) { + queryParameters['export'] = _export; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1ConfigMap; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * read the specified Endpoints + * @param name name of the Endpoints + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If 'true', then the output is pretty printed. + * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + * @param _export Should this value be exported. Export strips fields that a user can not specify. + */ + public readNamespacedEndpoints (name: string, namespace: string, pretty?: string, exact?: boolean, _export?: boolean) : Promise<{ response: http.ClientResponse; body: V1Endpoints; }> { + const localVarPath = this.basePath + '/api/v1/namespaces/{namespace}/endpoints/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling readNamespacedEndpoints.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling readNamespacedEndpoints.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (exact !== undefined) { + queryParameters['exact'] = exact; + } + + if (_export !== undefined) { + queryParameters['export'] = _export; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Endpoints; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * read the specified Event + * @param name name of the Event + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If 'true', then the output is pretty printed. + * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + * @param _export Should this value be exported. Export strips fields that a user can not specify. + */ + public readNamespacedEvent (name: string, namespace: string, pretty?: string, exact?: boolean, _export?: boolean) : Promise<{ response: http.ClientResponse; body: V1Event; }> { + const localVarPath = this.basePath + '/api/v1/namespaces/{namespace}/events/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling readNamespacedEvent.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling readNamespacedEvent.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (exact !== undefined) { + queryParameters['exact'] = exact; + } + + if (_export !== undefined) { + queryParameters['export'] = _export; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Event; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * read the specified LimitRange + * @param name name of the LimitRange + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If 'true', then the output is pretty printed. + * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + * @param _export Should this value be exported. Export strips fields that a user can not specify. + */ + public readNamespacedLimitRange (name: string, namespace: string, pretty?: string, exact?: boolean, _export?: boolean) : Promise<{ response: http.ClientResponse; body: V1LimitRange; }> { + const localVarPath = this.basePath + '/api/v1/namespaces/{namespace}/limitranges/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling readNamespacedLimitRange.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling readNamespacedLimitRange.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (exact !== undefined) { + queryParameters['exact'] = exact; + } + + if (_export !== undefined) { + queryParameters['export'] = _export; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1LimitRange; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * read the specified PersistentVolumeClaim + * @param name name of the PersistentVolumeClaim + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If 'true', then the output is pretty printed. + * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + * @param _export Should this value be exported. Export strips fields that a user can not specify. + */ + public readNamespacedPersistentVolumeClaim (name: string, namespace: string, pretty?: string, exact?: boolean, _export?: boolean) : Promise<{ response: http.ClientResponse; body: V1PersistentVolumeClaim; }> { + const localVarPath = this.basePath + '/api/v1/namespaces/{namespace}/persistentvolumeclaims/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling readNamespacedPersistentVolumeClaim.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling readNamespacedPersistentVolumeClaim.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (exact !== undefined) { + queryParameters['exact'] = exact; + } + + if (_export !== undefined) { + queryParameters['export'] = _export; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1PersistentVolumeClaim; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * read status of the specified PersistentVolumeClaim + * @param name name of the PersistentVolumeClaim + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If 'true', then the output is pretty printed. + */ + public readNamespacedPersistentVolumeClaimStatus (name: string, namespace: string, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1PersistentVolumeClaim; }> { + const localVarPath = this.basePath + '/api/v1/namespaces/{namespace}/persistentvolumeclaims/{name}/status' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling readNamespacedPersistentVolumeClaimStatus.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling readNamespacedPersistentVolumeClaimStatus.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1PersistentVolumeClaim; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * read the specified Pod + * @param name name of the Pod + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If 'true', then the output is pretty printed. + * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + * @param _export Should this value be exported. Export strips fields that a user can not specify. + */ + public readNamespacedPod (name: string, namespace: string, pretty?: string, exact?: boolean, _export?: boolean) : Promise<{ response: http.ClientResponse; body: V1Pod; }> { + const localVarPath = this.basePath + '/api/v1/namespaces/{namespace}/pods/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling readNamespacedPod.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling readNamespacedPod.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (exact !== undefined) { + queryParameters['exact'] = exact; + } + + if (_export !== undefined) { + queryParameters['export'] = _export; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Pod; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * read log of the specified Pod + * @param name name of the Pod + * @param namespace object name and auth scope, such as for teams and projects + * @param container The container for which to stream logs. Defaults to only container if there is one container in the pod. + * @param follow Follow the log stream of the pod. Defaults to false. + * @param limitBytes If set, the number of bytes to read from the server before terminating the log output. This may not display a complete final line of logging, and may return slightly more or slightly less than the specified limit. + * @param pretty If 'true', then the output is pretty printed. + * @param previous Return previous terminated container logs. Defaults to false. + * @param sinceSeconds A relative time in seconds before the current time from which to show logs. If this value precedes the time a pod was started, only logs since the pod start will be returned. If this value is in the future, no logs will be returned. Only one of sinceSeconds or sinceTime may be specified. + * @param tailLines If set, the number of lines from the end of the logs to show. If not specified, logs are shown from the creation of the container or sinceSeconds or sinceTime + * @param timestamps If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line of log output. Defaults to false. + */ + public readNamespacedPodLog (name: string, namespace: string, container?: string, follow?: boolean, limitBytes?: number, pretty?: string, previous?: boolean, sinceSeconds?: number, tailLines?: number, timestamps?: boolean) : Promise<{ response: http.ClientResponse; body: string; }> { + const localVarPath = this.basePath + '/api/v1/namespaces/{namespace}/pods/{name}/log' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling readNamespacedPodLog.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling readNamespacedPodLog.'); + } + + if (container !== undefined) { + queryParameters['container'] = container; + } + + if (follow !== undefined) { + queryParameters['follow'] = follow; + } + + if (limitBytes !== undefined) { + queryParameters['limitBytes'] = limitBytes; + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (previous !== undefined) { + queryParameters['previous'] = previous; + } + + if (sinceSeconds !== undefined) { + queryParameters['sinceSeconds'] = sinceSeconds; + } + + if (tailLines !== undefined) { + queryParameters['tailLines'] = tailLines; + } + + if (timestamps !== undefined) { + queryParameters['timestamps'] = timestamps; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: string; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * read status of the specified Pod + * @param name name of the Pod + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If 'true', then the output is pretty printed. + */ + public readNamespacedPodStatus (name: string, namespace: string, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1Pod; }> { + const localVarPath = this.basePath + '/api/v1/namespaces/{namespace}/pods/{name}/status' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling readNamespacedPodStatus.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling readNamespacedPodStatus.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Pod; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * read the specified PodTemplate + * @param name name of the PodTemplate + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If 'true', then the output is pretty printed. + * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + * @param _export Should this value be exported. Export strips fields that a user can not specify. + */ + public readNamespacedPodTemplate (name: string, namespace: string, pretty?: string, exact?: boolean, _export?: boolean) : Promise<{ response: http.ClientResponse; body: V1PodTemplate; }> { + const localVarPath = this.basePath + '/api/v1/namespaces/{namespace}/podtemplates/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling readNamespacedPodTemplate.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling readNamespacedPodTemplate.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (exact !== undefined) { + queryParameters['exact'] = exact; + } + + if (_export !== undefined) { + queryParameters['export'] = _export; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1PodTemplate; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * read the specified ReplicationController + * @param name name of the ReplicationController + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If 'true', then the output is pretty printed. + * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + * @param _export Should this value be exported. Export strips fields that a user can not specify. + */ + public readNamespacedReplicationController (name: string, namespace: string, pretty?: string, exact?: boolean, _export?: boolean) : Promise<{ response: http.ClientResponse; body: V1ReplicationController; }> { + const localVarPath = this.basePath + '/api/v1/namespaces/{namespace}/replicationcontrollers/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling readNamespacedReplicationController.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling readNamespacedReplicationController.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (exact !== undefined) { + queryParameters['exact'] = exact; + } + + if (_export !== undefined) { + queryParameters['export'] = _export; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1ReplicationController; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * read scale of the specified ReplicationController + * @param name name of the Scale + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If 'true', then the output is pretty printed. + */ + public readNamespacedReplicationControllerScale (name: string, namespace: string, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1Scale; }> { + const localVarPath = this.basePath + '/api/v1/namespaces/{namespace}/replicationcontrollers/{name}/scale' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling readNamespacedReplicationControllerScale.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling readNamespacedReplicationControllerScale.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Scale; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * read status of the specified ReplicationController + * @param name name of the ReplicationController + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If 'true', then the output is pretty printed. + */ + public readNamespacedReplicationControllerStatus (name: string, namespace: string, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1ReplicationController; }> { + const localVarPath = this.basePath + '/api/v1/namespaces/{namespace}/replicationcontrollers/{name}/status' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling readNamespacedReplicationControllerStatus.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling readNamespacedReplicationControllerStatus.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1ReplicationController; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * read the specified ResourceQuota + * @param name name of the ResourceQuota + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If 'true', then the output is pretty printed. + * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + * @param _export Should this value be exported. Export strips fields that a user can not specify. + */ + public readNamespacedResourceQuota (name: string, namespace: string, pretty?: string, exact?: boolean, _export?: boolean) : Promise<{ response: http.ClientResponse; body: V1ResourceQuota; }> { + const localVarPath = this.basePath + '/api/v1/namespaces/{namespace}/resourcequotas/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling readNamespacedResourceQuota.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling readNamespacedResourceQuota.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (exact !== undefined) { + queryParameters['exact'] = exact; + } + + if (_export !== undefined) { + queryParameters['export'] = _export; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1ResourceQuota; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * read status of the specified ResourceQuota + * @param name name of the ResourceQuota + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If 'true', then the output is pretty printed. + */ + public readNamespacedResourceQuotaStatus (name: string, namespace: string, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1ResourceQuota; }> { + const localVarPath = this.basePath + '/api/v1/namespaces/{namespace}/resourcequotas/{name}/status' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling readNamespacedResourceQuotaStatus.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling readNamespacedResourceQuotaStatus.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1ResourceQuota; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * read the specified Secret + * @param name name of the Secret + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If 'true', then the output is pretty printed. + * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + * @param _export Should this value be exported. Export strips fields that a user can not specify. + */ + public readNamespacedSecret (name: string, namespace: string, pretty?: string, exact?: boolean, _export?: boolean) : Promise<{ response: http.ClientResponse; body: V1Secret; }> { + const localVarPath = this.basePath + '/api/v1/namespaces/{namespace}/secrets/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling readNamespacedSecret.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling readNamespacedSecret.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (exact !== undefined) { + queryParameters['exact'] = exact; + } + + if (_export !== undefined) { + queryParameters['export'] = _export; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Secret; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * read the specified Service + * @param name name of the Service + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If 'true', then the output is pretty printed. + * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + * @param _export Should this value be exported. Export strips fields that a user can not specify. + */ + public readNamespacedService (name: string, namespace: string, pretty?: string, exact?: boolean, _export?: boolean) : Promise<{ response: http.ClientResponse; body: V1Service; }> { + const localVarPath = this.basePath + '/api/v1/namespaces/{namespace}/services/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling readNamespacedService.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling readNamespacedService.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (exact !== undefined) { + queryParameters['exact'] = exact; + } + + if (_export !== undefined) { + queryParameters['export'] = _export; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Service; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * read the specified ServiceAccount + * @param name name of the ServiceAccount + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If 'true', then the output is pretty printed. + * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + * @param _export Should this value be exported. Export strips fields that a user can not specify. + */ + public readNamespacedServiceAccount (name: string, namespace: string, pretty?: string, exact?: boolean, _export?: boolean) : Promise<{ response: http.ClientResponse; body: V1ServiceAccount; }> { + const localVarPath = this.basePath + '/api/v1/namespaces/{namespace}/serviceaccounts/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling readNamespacedServiceAccount.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling readNamespacedServiceAccount.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (exact !== undefined) { + queryParameters['exact'] = exact; + } + + if (_export !== undefined) { + queryParameters['export'] = _export; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1ServiceAccount; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * read status of the specified Service + * @param name name of the Service + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If 'true', then the output is pretty printed. + */ + public readNamespacedServiceStatus (name: string, namespace: string, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1Service; }> { + const localVarPath = this.basePath + '/api/v1/namespaces/{namespace}/services/{name}/status' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling readNamespacedServiceStatus.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling readNamespacedServiceStatus.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Service; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * read the specified Node + * @param name name of the Node + * @param pretty If 'true', then the output is pretty printed. + * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + * @param _export Should this value be exported. Export strips fields that a user can not specify. + */ + public readNode (name: string, pretty?: string, exact?: boolean, _export?: boolean) : Promise<{ response: http.ClientResponse; body: V1Node; }> { + const localVarPath = this.basePath + '/api/v1/nodes/{name}' + .replace('{' + 'name' + '}', String(name)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling readNode.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (exact !== undefined) { + queryParameters['exact'] = exact; + } + + if (_export !== undefined) { + queryParameters['export'] = _export; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Node; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * read status of the specified Node + * @param name name of the Node + * @param pretty If 'true', then the output is pretty printed. + */ + public readNodeStatus (name: string, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1Node; }> { + const localVarPath = this.basePath + '/api/v1/nodes/{name}/status' + .replace('{' + 'name' + '}', String(name)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling readNodeStatus.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Node; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * read the specified PersistentVolume + * @param name name of the PersistentVolume + * @param pretty If 'true', then the output is pretty printed. + * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + * @param _export Should this value be exported. Export strips fields that a user can not specify. + */ + public readPersistentVolume (name: string, pretty?: string, exact?: boolean, _export?: boolean) : Promise<{ response: http.ClientResponse; body: V1PersistentVolume; }> { + const localVarPath = this.basePath + '/api/v1/persistentvolumes/{name}' + .replace('{' + 'name' + '}', String(name)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling readPersistentVolume.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (exact !== undefined) { + queryParameters['exact'] = exact; + } + + if (_export !== undefined) { + queryParameters['export'] = _export; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1PersistentVolume; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * read status of the specified PersistentVolume + * @param name name of the PersistentVolume + * @param pretty If 'true', then the output is pretty printed. + */ + public readPersistentVolumeStatus (name: string, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1PersistentVolume; }> { + const localVarPath = this.basePath + '/api/v1/persistentvolumes/{name}/status' + .replace('{' + 'name' + '}', String(name)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling readPersistentVolumeStatus.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1PersistentVolume; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * replace the specified Namespace + * @param name name of the Namespace + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public replaceNamespace (name: string, body: V1Namespace, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1Namespace; }> { + const localVarPath = this.basePath + '/api/v1/namespaces/{name}' + .replace('{' + 'name' + '}', String(name)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling replaceNamespace.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling replaceNamespace.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PUT', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Namespace; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * replace finalize of the specified Namespace + * @param name name of the Namespace + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public replaceNamespaceFinalize (name: string, body: V1Namespace, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1Namespace; }> { + const localVarPath = this.basePath + '/api/v1/namespaces/{name}/finalize' + .replace('{' + 'name' + '}', String(name)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling replaceNamespaceFinalize.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling replaceNamespaceFinalize.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PUT', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Namespace; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * replace status of the specified Namespace + * @param name name of the Namespace + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public replaceNamespaceStatus (name: string, body: V1Namespace, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1Namespace; }> { + const localVarPath = this.basePath + '/api/v1/namespaces/{name}/status' + .replace('{' + 'name' + '}', String(name)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling replaceNamespaceStatus.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling replaceNamespaceStatus.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PUT', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Namespace; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * replace the specified ConfigMap + * @param name name of the ConfigMap + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public replaceNamespacedConfigMap (name: string, namespace: string, body: V1ConfigMap, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1ConfigMap; }> { + const localVarPath = this.basePath + '/api/v1/namespaces/{namespace}/configmaps/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling replaceNamespacedConfigMap.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling replaceNamespacedConfigMap.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling replaceNamespacedConfigMap.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PUT', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1ConfigMap; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * replace the specified Endpoints + * @param name name of the Endpoints + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public replaceNamespacedEndpoints (name: string, namespace: string, body: V1Endpoints, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1Endpoints; }> { + const localVarPath = this.basePath + '/api/v1/namespaces/{namespace}/endpoints/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling replaceNamespacedEndpoints.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling replaceNamespacedEndpoints.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling replaceNamespacedEndpoints.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PUT', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Endpoints; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * replace the specified Event + * @param name name of the Event + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public replaceNamespacedEvent (name: string, namespace: string, body: V1Event, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1Event; }> { + const localVarPath = this.basePath + '/api/v1/namespaces/{namespace}/events/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling replaceNamespacedEvent.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling replaceNamespacedEvent.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling replaceNamespacedEvent.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PUT', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Event; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * replace the specified LimitRange + * @param name name of the LimitRange + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public replaceNamespacedLimitRange (name: string, namespace: string, body: V1LimitRange, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1LimitRange; }> { + const localVarPath = this.basePath + '/api/v1/namespaces/{namespace}/limitranges/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling replaceNamespacedLimitRange.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling replaceNamespacedLimitRange.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling replaceNamespacedLimitRange.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PUT', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1LimitRange; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * replace the specified PersistentVolumeClaim + * @param name name of the PersistentVolumeClaim + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public replaceNamespacedPersistentVolumeClaim (name: string, namespace: string, body: V1PersistentVolumeClaim, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1PersistentVolumeClaim; }> { + const localVarPath = this.basePath + '/api/v1/namespaces/{namespace}/persistentvolumeclaims/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling replaceNamespacedPersistentVolumeClaim.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling replaceNamespacedPersistentVolumeClaim.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling replaceNamespacedPersistentVolumeClaim.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PUT', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1PersistentVolumeClaim; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * replace status of the specified PersistentVolumeClaim + * @param name name of the PersistentVolumeClaim + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public replaceNamespacedPersistentVolumeClaimStatus (name: string, namespace: string, body: V1PersistentVolumeClaim, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1PersistentVolumeClaim; }> { + const localVarPath = this.basePath + '/api/v1/namespaces/{namespace}/persistentvolumeclaims/{name}/status' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling replaceNamespacedPersistentVolumeClaimStatus.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling replaceNamespacedPersistentVolumeClaimStatus.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling replaceNamespacedPersistentVolumeClaimStatus.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PUT', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1PersistentVolumeClaim; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * replace the specified Pod + * @param name name of the Pod + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public replaceNamespacedPod (name: string, namespace: string, body: V1Pod, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1Pod; }> { + const localVarPath = this.basePath + '/api/v1/namespaces/{namespace}/pods/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling replaceNamespacedPod.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling replaceNamespacedPod.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling replaceNamespacedPod.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PUT', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Pod; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * replace status of the specified Pod + * @param name name of the Pod + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public replaceNamespacedPodStatus (name: string, namespace: string, body: V1Pod, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1Pod; }> { + const localVarPath = this.basePath + '/api/v1/namespaces/{namespace}/pods/{name}/status' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling replaceNamespacedPodStatus.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling replaceNamespacedPodStatus.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling replaceNamespacedPodStatus.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PUT', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Pod; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * replace the specified PodTemplate + * @param name name of the PodTemplate + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public replaceNamespacedPodTemplate (name: string, namespace: string, body: V1PodTemplate, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1PodTemplate; }> { + const localVarPath = this.basePath + '/api/v1/namespaces/{namespace}/podtemplates/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling replaceNamespacedPodTemplate.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling replaceNamespacedPodTemplate.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling replaceNamespacedPodTemplate.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PUT', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1PodTemplate; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * replace the specified ReplicationController + * @param name name of the ReplicationController + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public replaceNamespacedReplicationController (name: string, namespace: string, body: V1ReplicationController, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1ReplicationController; }> { + const localVarPath = this.basePath + '/api/v1/namespaces/{namespace}/replicationcontrollers/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling replaceNamespacedReplicationController.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling replaceNamespacedReplicationController.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling replaceNamespacedReplicationController.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PUT', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1ReplicationController; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * replace scale of the specified ReplicationController + * @param name name of the Scale + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public replaceNamespacedReplicationControllerScale (name: string, namespace: string, body: V1Scale, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1Scale; }> { + const localVarPath = this.basePath + '/api/v1/namespaces/{namespace}/replicationcontrollers/{name}/scale' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling replaceNamespacedReplicationControllerScale.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling replaceNamespacedReplicationControllerScale.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling replaceNamespacedReplicationControllerScale.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PUT', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Scale; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * replace status of the specified ReplicationController + * @param name name of the ReplicationController + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public replaceNamespacedReplicationControllerStatus (name: string, namespace: string, body: V1ReplicationController, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1ReplicationController; }> { + const localVarPath = this.basePath + '/api/v1/namespaces/{namespace}/replicationcontrollers/{name}/status' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling replaceNamespacedReplicationControllerStatus.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling replaceNamespacedReplicationControllerStatus.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling replaceNamespacedReplicationControllerStatus.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PUT', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1ReplicationController; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * replace the specified ResourceQuota + * @param name name of the ResourceQuota + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public replaceNamespacedResourceQuota (name: string, namespace: string, body: V1ResourceQuota, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1ResourceQuota; }> { + const localVarPath = this.basePath + '/api/v1/namespaces/{namespace}/resourcequotas/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling replaceNamespacedResourceQuota.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling replaceNamespacedResourceQuota.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling replaceNamespacedResourceQuota.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PUT', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1ResourceQuota; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * replace status of the specified ResourceQuota + * @param name name of the ResourceQuota + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public replaceNamespacedResourceQuotaStatus (name: string, namespace: string, body: V1ResourceQuota, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1ResourceQuota; }> { + const localVarPath = this.basePath + '/api/v1/namespaces/{namespace}/resourcequotas/{name}/status' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling replaceNamespacedResourceQuotaStatus.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling replaceNamespacedResourceQuotaStatus.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling replaceNamespacedResourceQuotaStatus.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PUT', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1ResourceQuota; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * replace the specified Secret + * @param name name of the Secret + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public replaceNamespacedSecret (name: string, namespace: string, body: V1Secret, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1Secret; }> { + const localVarPath = this.basePath + '/api/v1/namespaces/{namespace}/secrets/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling replaceNamespacedSecret.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling replaceNamespacedSecret.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling replaceNamespacedSecret.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PUT', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Secret; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * replace the specified Service + * @param name name of the Service + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public replaceNamespacedService (name: string, namespace: string, body: V1Service, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1Service; }> { + const localVarPath = this.basePath + '/api/v1/namespaces/{namespace}/services/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling replaceNamespacedService.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling replaceNamespacedService.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling replaceNamespacedService.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PUT', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Service; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * replace the specified ServiceAccount + * @param name name of the ServiceAccount + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public replaceNamespacedServiceAccount (name: string, namespace: string, body: V1ServiceAccount, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1ServiceAccount; }> { + const localVarPath = this.basePath + '/api/v1/namespaces/{namespace}/serviceaccounts/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling replaceNamespacedServiceAccount.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling replaceNamespacedServiceAccount.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling replaceNamespacedServiceAccount.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PUT', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1ServiceAccount; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * replace status of the specified Service + * @param name name of the Service + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public replaceNamespacedServiceStatus (name: string, namespace: string, body: V1Service, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1Service; }> { + const localVarPath = this.basePath + '/api/v1/namespaces/{namespace}/services/{name}/status' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling replaceNamespacedServiceStatus.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling replaceNamespacedServiceStatus.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling replaceNamespacedServiceStatus.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PUT', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Service; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * replace the specified Node + * @param name name of the Node + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public replaceNode (name: string, body: V1Node, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1Node; }> { + const localVarPath = this.basePath + '/api/v1/nodes/{name}' + .replace('{' + 'name' + '}', String(name)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling replaceNode.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling replaceNode.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PUT', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Node; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * replace status of the specified Node + * @param name name of the Node + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public replaceNodeStatus (name: string, body: V1Node, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1Node; }> { + const localVarPath = this.basePath + '/api/v1/nodes/{name}/status' + .replace('{' + 'name' + '}', String(name)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling replaceNodeStatus.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling replaceNodeStatus.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PUT', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Node; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * replace the specified PersistentVolume + * @param name name of the PersistentVolume + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public replacePersistentVolume (name: string, body: V1PersistentVolume, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1PersistentVolume; }> { + const localVarPath = this.basePath + '/api/v1/persistentvolumes/{name}' + .replace('{' + 'name' + '}', String(name)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling replacePersistentVolume.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling replacePersistentVolume.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PUT', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1PersistentVolume; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * replace status of the specified PersistentVolume + * @param name name of the PersistentVolume + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public replacePersistentVolumeStatus (name: string, body: V1PersistentVolume, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1PersistentVolume; }> { + const localVarPath = this.basePath + '/api/v1/persistentvolumes/{name}/status' + .replace('{' + 'name' + '}', String(name)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling replacePersistentVolumeStatus.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling replacePersistentVolumeStatus.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PUT', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1PersistentVolume; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } +} +export enum Custom_objectsApiApiKeys { + BearerToken, +} + +export class Custom_objectsApi { + protected _basePath = defaultBasePath; + protected defaultHeaders : any = {}; + protected _useQuerystring : boolean = false; + + protected authentications = { + 'default': new VoidAuth(), + 'BearerToken': new ApiKeyAuth('header', 'authorization'), + } + + constructor(basePath?: string); + constructor(basePathOrUsername: string, password?: string, basePath?: string) { + if (password) { + if (basePath) { + this.basePath = basePath; + } + } else { + if (basePathOrUsername) { + this.basePath = basePathOrUsername + } + } + } + + set useQuerystring(value: boolean) { + this._useQuerystring = value; + } + + set basePath(basePath: string) { + this._basePath = basePath; + } + + get basePath() { + return this._basePath; + } + + public setDefaultAuthentication(auth: Authentication) { + this.authentications.default = auth; + } + + public setApiKey(key: Custom_objectsApiApiKeys, value: string) { + this.authentications[Custom_objectsApiApiKeys[key]].apiKey = value; + } + /** + * Creates a cluster scoped Custom object + * @param group The custom resource's group name + * @param version The custom resource's version + * @param plural The custom resource's plural name. For TPRs this would be lowercase plural kind. + * @param body The JSON schema of the Resource to create. + * @param pretty If 'true', then the output is pretty printed. + */ + public createClusterCustomObject (group: string, version: string, plural: string, body: any, pretty?: string) : Promise<{ response: http.ClientResponse; body: any; }> { + const localVarPath = this.basePath + '/apis/{group}/{version}/{plural}' + .replace('{' + 'group' + '}', String(group)) + .replace('{' + 'version' + '}', String(version)) + .replace('{' + 'plural' + '}', String(plural)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'group' is not null or undefined + if (group === null || group === undefined) { + throw new Error('Required parameter group was null or undefined when calling createClusterCustomObject.'); + } + + // verify required parameter 'version' is not null or undefined + if (version === null || version === undefined) { + throw new Error('Required parameter version was null or undefined when calling createClusterCustomObject.'); + } + + // verify required parameter 'plural' is not null or undefined + if (plural === null || plural === undefined) { + throw new Error('Required parameter plural was null or undefined when calling createClusterCustomObject.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling createClusterCustomObject.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'POST', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: any; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * Creates a namespace scoped Custom object + * @param group The custom resource's group name + * @param version The custom resource's version + * @param namespace The custom resource's namespace + * @param plural The custom resource's plural name. For TPRs this would be lowercase plural kind. + * @param body The JSON schema of the Resource to create. + * @param pretty If 'true', then the output is pretty printed. + */ + public createNamespacedCustomObject (group: string, version: string, namespace: string, plural: string, body: any, pretty?: string) : Promise<{ response: http.ClientResponse; body: any; }> { + const localVarPath = this.basePath + '/apis/{group}/{version}/namespaces/{namespace}/{plural}' + .replace('{' + 'group' + '}', String(group)) + .replace('{' + 'version' + '}', String(version)) + .replace('{' + 'namespace' + '}', String(namespace)) + .replace('{' + 'plural' + '}', String(plural)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'group' is not null or undefined + if (group === null || group === undefined) { + throw new Error('Required parameter group was null or undefined when calling createNamespacedCustomObject.'); + } + + // verify required parameter 'version' is not null or undefined + if (version === null || version === undefined) { + throw new Error('Required parameter version was null or undefined when calling createNamespacedCustomObject.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling createNamespacedCustomObject.'); + } + + // verify required parameter 'plural' is not null or undefined + if (plural === null || plural === undefined) { + throw new Error('Required parameter plural was null or undefined when calling createNamespacedCustomObject.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling createNamespacedCustomObject.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'POST', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: any; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * Deletes the specified cluster scoped custom object + * @param group the custom resource's group + * @param version the custom resource's version + * @param plural the custom object's plural name. For TPRs this would be lowercase plural kind. + * @param name the custom object's name + * @param body + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. + */ + public deleteClusterCustomObject (group: string, version: string, plural: string, name: string, body: V1DeleteOptions, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string) : Promise<{ response: http.ClientResponse; body: any; }> { + const localVarPath = this.basePath + '/apis/{group}/{version}/{plural}/{name}' + .replace('{' + 'group' + '}', String(group)) + .replace('{' + 'version' + '}', String(version)) + .replace('{' + 'plural' + '}', String(plural)) + .replace('{' + 'name' + '}', String(name)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'group' is not null or undefined + if (group === null || group === undefined) { + throw new Error('Required parameter group was null or undefined when calling deleteClusterCustomObject.'); + } + + // verify required parameter 'version' is not null or undefined + if (version === null || version === undefined) { + throw new Error('Required parameter version was null or undefined when calling deleteClusterCustomObject.'); + } + + // verify required parameter 'plural' is not null or undefined + if (plural === null || plural === undefined) { + throw new Error('Required parameter plural was null or undefined when calling deleteClusterCustomObject.'); + } + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling deleteClusterCustomObject.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling deleteClusterCustomObject.'); + } + + if (gracePeriodSeconds !== undefined) { + queryParameters['gracePeriodSeconds'] = gracePeriodSeconds; + } + + if (orphanDependents !== undefined) { + queryParameters['orphanDependents'] = orphanDependents; + } + + if (propagationPolicy !== undefined) { + queryParameters['propagationPolicy'] = propagationPolicy; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'DELETE', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: any; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * Deletes the specified namespace scoped custom object + * @param group the custom resource's group + * @param version the custom resource's version + * @param namespace The custom resource's namespace + * @param plural the custom resource's plural name. For TPRs this would be lowercase plural kind. + * @param name the custom object's name + * @param body + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. + */ + public deleteNamespacedCustomObject (group: string, version: string, namespace: string, plural: string, name: string, body: V1DeleteOptions, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string) : Promise<{ response: http.ClientResponse; body: any; }> { + const localVarPath = this.basePath + '/apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}' + .replace('{' + 'group' + '}', String(group)) + .replace('{' + 'version' + '}', String(version)) + .replace('{' + 'namespace' + '}', String(namespace)) + .replace('{' + 'plural' + '}', String(plural)) + .replace('{' + 'name' + '}', String(name)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'group' is not null or undefined + if (group === null || group === undefined) { + throw new Error('Required parameter group was null or undefined when calling deleteNamespacedCustomObject.'); + } + + // verify required parameter 'version' is not null or undefined + if (version === null || version === undefined) { + throw new Error('Required parameter version was null or undefined when calling deleteNamespacedCustomObject.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling deleteNamespacedCustomObject.'); + } + + // verify required parameter 'plural' is not null or undefined + if (plural === null || plural === undefined) { + throw new Error('Required parameter plural was null or undefined when calling deleteNamespacedCustomObject.'); + } + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling deleteNamespacedCustomObject.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling deleteNamespacedCustomObject.'); + } + + if (gracePeriodSeconds !== undefined) { + queryParameters['gracePeriodSeconds'] = gracePeriodSeconds; + } + + if (orphanDependents !== undefined) { + queryParameters['orphanDependents'] = orphanDependents; + } + + if (propagationPolicy !== undefined) { + queryParameters['propagationPolicy'] = propagationPolicy; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'DELETE', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: any; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * Returns a cluster scoped custom object + * @param group the custom resource's group + * @param version the custom resource's version + * @param plural the custom object's plural name. For TPRs this would be lowercase plural kind. + * @param name the custom object's name + */ + public getClusterCustomObject (group: string, version: string, plural: string, name: string) : Promise<{ response: http.ClientResponse; body: any; }> { + const localVarPath = this.basePath + '/apis/{group}/{version}/{plural}/{name}' + .replace('{' + 'group' + '}', String(group)) + .replace('{' + 'version' + '}', String(version)) + .replace('{' + 'plural' + '}', String(plural)) + .replace('{' + 'name' + '}', String(name)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'group' is not null or undefined + if (group === null || group === undefined) { + throw new Error('Required parameter group was null or undefined when calling getClusterCustomObject.'); + } + + // verify required parameter 'version' is not null or undefined + if (version === null || version === undefined) { + throw new Error('Required parameter version was null or undefined when calling getClusterCustomObject.'); + } + + // verify required parameter 'plural' is not null or undefined + if (plural === null || plural === undefined) { + throw new Error('Required parameter plural was null or undefined when calling getClusterCustomObject.'); + } + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling getClusterCustomObject.'); + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: any; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * Returns a namespace scoped custom object + * @param group the custom resource's group + * @param version the custom resource's version + * @param namespace The custom resource's namespace + * @param plural the custom resource's plural name. For TPRs this would be lowercase plural kind. + * @param name the custom object's name + */ + public getNamespacedCustomObject (group: string, version: string, namespace: string, plural: string, name: string) : Promise<{ response: http.ClientResponse; body: any; }> { + const localVarPath = this.basePath + '/apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}' + .replace('{' + 'group' + '}', String(group)) + .replace('{' + 'version' + '}', String(version)) + .replace('{' + 'namespace' + '}', String(namespace)) + .replace('{' + 'plural' + '}', String(plural)) + .replace('{' + 'name' + '}', String(name)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'group' is not null or undefined + if (group === null || group === undefined) { + throw new Error('Required parameter group was null or undefined when calling getNamespacedCustomObject.'); + } + + // verify required parameter 'version' is not null or undefined + if (version === null || version === undefined) { + throw new Error('Required parameter version was null or undefined when calling getNamespacedCustomObject.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling getNamespacedCustomObject.'); + } + + // verify required parameter 'plural' is not null or undefined + if (plural === null || plural === undefined) { + throw new Error('Required parameter plural was null or undefined when calling getNamespacedCustomObject.'); + } + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling getNamespacedCustomObject.'); + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: any; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * list or watch cluster scoped custom objects + * @param group The custom resource's group name + * @param version The custom resource's version + * @param plural The custom resource's plural name. For TPRs this would be lowercase plural kind. + * @param pretty If 'true', then the output is pretty printed. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. + */ + public listClusterCustomObject (group: string, version: string, plural: string, pretty?: string, labelSelector?: string, resourceVersion?: string, watch?: boolean) : Promise<{ response: http.ClientResponse; body: any; }> { + const localVarPath = this.basePath + '/apis/{group}/{version}/{plural}' + .replace('{' + 'group' + '}', String(group)) + .replace('{' + 'version' + '}', String(version)) + .replace('{' + 'plural' + '}', String(plural)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'group' is not null or undefined + if (group === null || group === undefined) { + throw new Error('Required parameter group was null or undefined when calling listClusterCustomObject.'); + } + + // verify required parameter 'version' is not null or undefined + if (version === null || version === undefined) { + throw new Error('Required parameter version was null or undefined when calling listClusterCustomObject.'); + } + + // verify required parameter 'plural' is not null or undefined + if (plural === null || plural === undefined) { + throw new Error('Required parameter plural was null or undefined when calling listClusterCustomObject.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (labelSelector !== undefined) { + queryParameters['labelSelector'] = labelSelector; + } + + if (resourceVersion !== undefined) { + queryParameters['resourceVersion'] = resourceVersion; + } + + if (watch !== undefined) { + queryParameters['watch'] = watch; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: any; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * list or watch namespace scoped custom objects + * @param group The custom resource's group name + * @param version The custom resource's version + * @param namespace The custom resource's namespace + * @param plural The custom resource's plural name. For TPRs this would be lowercase plural kind. + * @param pretty If 'true', then the output is pretty printed. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. + */ + public listNamespacedCustomObject (group: string, version: string, namespace: string, plural: string, pretty?: string, labelSelector?: string, resourceVersion?: string, watch?: boolean) : Promise<{ response: http.ClientResponse; body: any; }> { + const localVarPath = this.basePath + '/apis/{group}/{version}/namespaces/{namespace}/{plural}' + .replace('{' + 'group' + '}', String(group)) + .replace('{' + 'version' + '}', String(version)) + .replace('{' + 'namespace' + '}', String(namespace)) + .replace('{' + 'plural' + '}', String(plural)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'group' is not null or undefined + if (group === null || group === undefined) { + throw new Error('Required parameter group was null or undefined when calling listNamespacedCustomObject.'); + } + + // verify required parameter 'version' is not null or undefined + if (version === null || version === undefined) { + throw new Error('Required parameter version was null or undefined when calling listNamespacedCustomObject.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling listNamespacedCustomObject.'); + } + + // verify required parameter 'plural' is not null or undefined + if (plural === null || plural === undefined) { + throw new Error('Required parameter plural was null or undefined when calling listNamespacedCustomObject.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (labelSelector !== undefined) { + queryParameters['labelSelector'] = labelSelector; + } + + if (resourceVersion !== undefined) { + queryParameters['resourceVersion'] = resourceVersion; + } + + if (watch !== undefined) { + queryParameters['watch'] = watch; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: any; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * replace the specified cluster scoped custom object + * @param group the custom resource's group + * @param version the custom resource's version + * @param plural the custom object's plural name. For TPRs this would be lowercase plural kind. + * @param name the custom object's name + * @param body The JSON schema of the Resource to replace. + */ + public replaceClusterCustomObject (group: string, version: string, plural: string, name: string, body: any) : Promise<{ response: http.ClientResponse; body: any; }> { + const localVarPath = this.basePath + '/apis/{group}/{version}/{plural}/{name}' + .replace('{' + 'group' + '}', String(group)) + .replace('{' + 'version' + '}', String(version)) + .replace('{' + 'plural' + '}', String(plural)) + .replace('{' + 'name' + '}', String(name)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'group' is not null or undefined + if (group === null || group === undefined) { + throw new Error('Required parameter group was null or undefined when calling replaceClusterCustomObject.'); + } + + // verify required parameter 'version' is not null or undefined + if (version === null || version === undefined) { + throw new Error('Required parameter version was null or undefined when calling replaceClusterCustomObject.'); + } + + // verify required parameter 'plural' is not null or undefined + if (plural === null || plural === undefined) { + throw new Error('Required parameter plural was null or undefined when calling replaceClusterCustomObject.'); + } + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling replaceClusterCustomObject.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling replaceClusterCustomObject.'); + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PUT', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: any; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * replace the specified namespace scoped custom object + * @param group the custom resource's group + * @param version the custom resource's version + * @param namespace The custom resource's namespace + * @param plural the custom resource's plural name. For TPRs this would be lowercase plural kind. + * @param name the custom object's name + * @param body The JSON schema of the Resource to replace. + */ + public replaceNamespacedCustomObject (group: string, version: string, namespace: string, plural: string, name: string, body: any) : Promise<{ response: http.ClientResponse; body: any; }> { + const localVarPath = this.basePath + '/apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}' + .replace('{' + 'group' + '}', String(group)) + .replace('{' + 'version' + '}', String(version)) + .replace('{' + 'namespace' + '}', String(namespace)) + .replace('{' + 'plural' + '}', String(plural)) + .replace('{' + 'name' + '}', String(name)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'group' is not null or undefined + if (group === null || group === undefined) { + throw new Error('Required parameter group was null or undefined when calling replaceNamespacedCustomObject.'); + } + + // verify required parameter 'version' is not null or undefined + if (version === null || version === undefined) { + throw new Error('Required parameter version was null or undefined when calling replaceNamespacedCustomObject.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling replaceNamespacedCustomObject.'); + } + + // verify required parameter 'plural' is not null or undefined + if (plural === null || plural === undefined) { + throw new Error('Required parameter plural was null or undefined when calling replaceNamespacedCustomObject.'); + } + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling replaceNamespacedCustomObject.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling replaceNamespacedCustomObject.'); + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PUT', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: any; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } +} +export enum ExtensionsApiApiKeys { + BearerToken, +} + +export class ExtensionsApi { + protected _basePath = defaultBasePath; + protected defaultHeaders : any = {}; + protected _useQuerystring : boolean = false; + + protected authentications = { + 'default': new VoidAuth(), + 'BearerToken': new ApiKeyAuth('header', 'authorization'), + } + + constructor(basePath?: string); + constructor(basePathOrUsername: string, password?: string, basePath?: string) { + if (password) { + if (basePath) { + this.basePath = basePath; + } + } else { + if (basePathOrUsername) { + this.basePath = basePathOrUsername + } + } + } + + set useQuerystring(value: boolean) { + this._useQuerystring = value; + } + + set basePath(basePath: string) { + this._basePath = basePath; + } + + get basePath() { + return this._basePath; + } + + public setDefaultAuthentication(auth: Authentication) { + this.authentications.default = auth; + } + + public setApiKey(key: ExtensionsApiApiKeys, value: string) { + this.authentications[ExtensionsApiApiKeys[key]].apiKey = value; + } + /** + * get information of a group + */ + public getAPIGroup () : Promise<{ response: http.ClientResponse; body: V1APIGroup; }> { + const localVarPath = this.basePath + '/apis/extensions/'; + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1APIGroup; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } +} +export enum Extensions_v1beta1ApiApiKeys { + BearerToken, +} + +export class Extensions_v1beta1Api { + protected _basePath = defaultBasePath; + protected defaultHeaders : any = {}; + protected _useQuerystring : boolean = false; + + protected authentications = { + 'default': new VoidAuth(), + 'BearerToken': new ApiKeyAuth('header', 'authorization'), + } + + constructor(basePath?: string); + constructor(basePathOrUsername: string, password?: string, basePath?: string) { + if (password) { + if (basePath) { + this.basePath = basePath; + } + } else { + if (basePathOrUsername) { + this.basePath = basePathOrUsername + } + } + } + + set useQuerystring(value: boolean) { + this._useQuerystring = value; + } + + set basePath(basePath: string) { + this._basePath = basePath; + } + + get basePath() { + return this._basePath; + } + + public setDefaultAuthentication(auth: Authentication) { + this.authentications.default = auth; + } + + public setApiKey(key: Extensions_v1beta1ApiApiKeys, value: string) { + this.authentications[Extensions_v1beta1ApiApiKeys[key]].apiKey = value; + } + /** + * create a DaemonSet + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public createNamespacedDaemonSet (namespace: string, body: V1beta1DaemonSet, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1beta1DaemonSet; }> { + const localVarPath = this.basePath + '/apis/extensions/v1beta1/namespaces/{namespace}/daemonsets' + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling createNamespacedDaemonSet.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling createNamespacedDaemonSet.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'POST', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta1DaemonSet; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * create a Deployment + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public createNamespacedDeployment (namespace: string, body: ExtensionsV1beta1Deployment, pretty?: string) : Promise<{ response: http.ClientResponse; body: ExtensionsV1beta1Deployment; }> { + const localVarPath = this.basePath + '/apis/extensions/v1beta1/namespaces/{namespace}/deployments' + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling createNamespacedDeployment.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling createNamespacedDeployment.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'POST', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: ExtensionsV1beta1Deployment; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * create rollback of a Deployment + * @param name name of the DeploymentRollback + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public createNamespacedDeploymentRollback (name: string, namespace: string, body: ExtensionsV1beta1DeploymentRollback, pretty?: string) : Promise<{ response: http.ClientResponse; body: ExtensionsV1beta1DeploymentRollback; }> { + const localVarPath = this.basePath + '/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/rollback' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling createNamespacedDeploymentRollback.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling createNamespacedDeploymentRollback.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling createNamespacedDeploymentRollback.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'POST', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: ExtensionsV1beta1DeploymentRollback; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * create an Ingress + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public createNamespacedIngress (namespace: string, body: V1beta1Ingress, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1beta1Ingress; }> { + const localVarPath = this.basePath + '/apis/extensions/v1beta1/namespaces/{namespace}/ingresses' + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling createNamespacedIngress.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling createNamespacedIngress.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'POST', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta1Ingress; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * create a NetworkPolicy + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public createNamespacedNetworkPolicy (namespace: string, body: V1beta1NetworkPolicy, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1beta1NetworkPolicy; }> { + const localVarPath = this.basePath + '/apis/extensions/v1beta1/namespaces/{namespace}/networkpolicies' + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling createNamespacedNetworkPolicy.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling createNamespacedNetworkPolicy.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'POST', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta1NetworkPolicy; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * create a ReplicaSet + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public createNamespacedReplicaSet (namespace: string, body: V1beta1ReplicaSet, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1beta1ReplicaSet; }> { + const localVarPath = this.basePath + '/apis/extensions/v1beta1/namespaces/{namespace}/replicasets' + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling createNamespacedReplicaSet.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling createNamespacedReplicaSet.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'POST', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta1ReplicaSet; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * create a PodSecurityPolicy + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public createPodSecurityPolicy (body: V1beta1PodSecurityPolicy, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1beta1PodSecurityPolicy; }> { + const localVarPath = this.basePath + '/apis/extensions/v1beta1/podsecuritypolicies'; + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling createPodSecurityPolicy.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'POST', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta1PodSecurityPolicy; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * delete collection of DaemonSet + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If 'true', then the output is pretty printed. + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param includeUninitialized If true, partially initialized resources are included in the response. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + * @param timeoutSeconds Timeout for the list/watch call. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public deleteCollectionNamespacedDaemonSet (namespace: string, pretty?: string, _continue?: string, fieldSelector?: string, includeUninitialized?: boolean, labelSelector?: string, limit?: number, resourceVersion?: string, timeoutSeconds?: number, watch?: boolean) : Promise<{ response: http.ClientResponse; body: V1Status; }> { + const localVarPath = this.basePath + '/apis/extensions/v1beta1/namespaces/{namespace}/daemonsets' + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling deleteCollectionNamespacedDaemonSet.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (_continue !== undefined) { + queryParameters['continue'] = _continue; + } + + if (fieldSelector !== undefined) { + queryParameters['fieldSelector'] = fieldSelector; + } + + if (includeUninitialized !== undefined) { + queryParameters['includeUninitialized'] = includeUninitialized; + } + + if (labelSelector !== undefined) { + queryParameters['labelSelector'] = labelSelector; + } + + if (limit !== undefined) { + queryParameters['limit'] = limit; + } + + if (resourceVersion !== undefined) { + queryParameters['resourceVersion'] = resourceVersion; + } + + if (timeoutSeconds !== undefined) { + queryParameters['timeoutSeconds'] = timeoutSeconds; + } + + if (watch !== undefined) { + queryParameters['watch'] = watch; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'DELETE', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Status; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * delete collection of Deployment + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If 'true', then the output is pretty printed. + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param includeUninitialized If true, partially initialized resources are included in the response. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + * @param timeoutSeconds Timeout for the list/watch call. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public deleteCollectionNamespacedDeployment (namespace: string, pretty?: string, _continue?: string, fieldSelector?: string, includeUninitialized?: boolean, labelSelector?: string, limit?: number, resourceVersion?: string, timeoutSeconds?: number, watch?: boolean) : Promise<{ response: http.ClientResponse; body: V1Status; }> { + const localVarPath = this.basePath + '/apis/extensions/v1beta1/namespaces/{namespace}/deployments' + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling deleteCollectionNamespacedDeployment.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (_continue !== undefined) { + queryParameters['continue'] = _continue; + } + + if (fieldSelector !== undefined) { + queryParameters['fieldSelector'] = fieldSelector; + } + + if (includeUninitialized !== undefined) { + queryParameters['includeUninitialized'] = includeUninitialized; + } + + if (labelSelector !== undefined) { + queryParameters['labelSelector'] = labelSelector; + } + + if (limit !== undefined) { + queryParameters['limit'] = limit; + } + + if (resourceVersion !== undefined) { + queryParameters['resourceVersion'] = resourceVersion; + } + + if (timeoutSeconds !== undefined) { + queryParameters['timeoutSeconds'] = timeoutSeconds; + } + + if (watch !== undefined) { + queryParameters['watch'] = watch; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'DELETE', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Status; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * delete collection of Ingress + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If 'true', then the output is pretty printed. + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param includeUninitialized If true, partially initialized resources are included in the response. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + * @param timeoutSeconds Timeout for the list/watch call. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public deleteCollectionNamespacedIngress (namespace: string, pretty?: string, _continue?: string, fieldSelector?: string, includeUninitialized?: boolean, labelSelector?: string, limit?: number, resourceVersion?: string, timeoutSeconds?: number, watch?: boolean) : Promise<{ response: http.ClientResponse; body: V1Status; }> { + const localVarPath = this.basePath + '/apis/extensions/v1beta1/namespaces/{namespace}/ingresses' + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling deleteCollectionNamespacedIngress.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (_continue !== undefined) { + queryParameters['continue'] = _continue; + } + + if (fieldSelector !== undefined) { + queryParameters['fieldSelector'] = fieldSelector; + } + + if (includeUninitialized !== undefined) { + queryParameters['includeUninitialized'] = includeUninitialized; + } + + if (labelSelector !== undefined) { + queryParameters['labelSelector'] = labelSelector; + } + + if (limit !== undefined) { + queryParameters['limit'] = limit; + } + + if (resourceVersion !== undefined) { + queryParameters['resourceVersion'] = resourceVersion; + } + + if (timeoutSeconds !== undefined) { + queryParameters['timeoutSeconds'] = timeoutSeconds; + } + + if (watch !== undefined) { + queryParameters['watch'] = watch; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'DELETE', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Status; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * delete collection of NetworkPolicy + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If 'true', then the output is pretty printed. + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param includeUninitialized If true, partially initialized resources are included in the response. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + * @param timeoutSeconds Timeout for the list/watch call. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public deleteCollectionNamespacedNetworkPolicy (namespace: string, pretty?: string, _continue?: string, fieldSelector?: string, includeUninitialized?: boolean, labelSelector?: string, limit?: number, resourceVersion?: string, timeoutSeconds?: number, watch?: boolean) : Promise<{ response: http.ClientResponse; body: V1Status; }> { + const localVarPath = this.basePath + '/apis/extensions/v1beta1/namespaces/{namespace}/networkpolicies' + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling deleteCollectionNamespacedNetworkPolicy.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (_continue !== undefined) { + queryParameters['continue'] = _continue; + } + + if (fieldSelector !== undefined) { + queryParameters['fieldSelector'] = fieldSelector; + } + + if (includeUninitialized !== undefined) { + queryParameters['includeUninitialized'] = includeUninitialized; + } + + if (labelSelector !== undefined) { + queryParameters['labelSelector'] = labelSelector; + } + + if (limit !== undefined) { + queryParameters['limit'] = limit; + } + + if (resourceVersion !== undefined) { + queryParameters['resourceVersion'] = resourceVersion; + } + + if (timeoutSeconds !== undefined) { + queryParameters['timeoutSeconds'] = timeoutSeconds; + } + + if (watch !== undefined) { + queryParameters['watch'] = watch; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'DELETE', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Status; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * delete collection of ReplicaSet + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If 'true', then the output is pretty printed. + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param includeUninitialized If true, partially initialized resources are included in the response. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + * @param timeoutSeconds Timeout for the list/watch call. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public deleteCollectionNamespacedReplicaSet (namespace: string, pretty?: string, _continue?: string, fieldSelector?: string, includeUninitialized?: boolean, labelSelector?: string, limit?: number, resourceVersion?: string, timeoutSeconds?: number, watch?: boolean) : Promise<{ response: http.ClientResponse; body: V1Status; }> { + const localVarPath = this.basePath + '/apis/extensions/v1beta1/namespaces/{namespace}/replicasets' + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling deleteCollectionNamespacedReplicaSet.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (_continue !== undefined) { + queryParameters['continue'] = _continue; + } + + if (fieldSelector !== undefined) { + queryParameters['fieldSelector'] = fieldSelector; + } + + if (includeUninitialized !== undefined) { + queryParameters['includeUninitialized'] = includeUninitialized; + } + + if (labelSelector !== undefined) { + queryParameters['labelSelector'] = labelSelector; + } + + if (limit !== undefined) { + queryParameters['limit'] = limit; + } + + if (resourceVersion !== undefined) { + queryParameters['resourceVersion'] = resourceVersion; + } + + if (timeoutSeconds !== undefined) { + queryParameters['timeoutSeconds'] = timeoutSeconds; + } + + if (watch !== undefined) { + queryParameters['watch'] = watch; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'DELETE', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Status; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * delete collection of PodSecurityPolicy + * @param pretty If 'true', then the output is pretty printed. + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param includeUninitialized If true, partially initialized resources are included in the response. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + * @param timeoutSeconds Timeout for the list/watch call. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public deleteCollectionPodSecurityPolicy (pretty?: string, _continue?: string, fieldSelector?: string, includeUninitialized?: boolean, labelSelector?: string, limit?: number, resourceVersion?: string, timeoutSeconds?: number, watch?: boolean) : Promise<{ response: http.ClientResponse; body: V1Status; }> { + const localVarPath = this.basePath + '/apis/extensions/v1beta1/podsecuritypolicies'; + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (_continue !== undefined) { + queryParameters['continue'] = _continue; + } + + if (fieldSelector !== undefined) { + queryParameters['fieldSelector'] = fieldSelector; + } + + if (includeUninitialized !== undefined) { + queryParameters['includeUninitialized'] = includeUninitialized; + } + + if (labelSelector !== undefined) { + queryParameters['labelSelector'] = labelSelector; + } + + if (limit !== undefined) { + queryParameters['limit'] = limit; + } + + if (resourceVersion !== undefined) { + queryParameters['resourceVersion'] = resourceVersion; + } + + if (timeoutSeconds !== undefined) { + queryParameters['timeoutSeconds'] = timeoutSeconds; + } + + if (watch !== undefined) { + queryParameters['watch'] = watch; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'DELETE', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Status; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * delete a DaemonSet + * @param name name of the DaemonSet + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. + */ + public deleteNamespacedDaemonSet (name: string, namespace: string, body: V1DeleteOptions, pretty?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string) : Promise<{ response: http.ClientResponse; body: V1Status; }> { + const localVarPath = this.basePath + '/apis/extensions/v1beta1/namespaces/{namespace}/daemonsets/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling deleteNamespacedDaemonSet.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling deleteNamespacedDaemonSet.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling deleteNamespacedDaemonSet.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (gracePeriodSeconds !== undefined) { + queryParameters['gracePeriodSeconds'] = gracePeriodSeconds; + } + + if (orphanDependents !== undefined) { + queryParameters['orphanDependents'] = orphanDependents; + } + + if (propagationPolicy !== undefined) { + queryParameters['propagationPolicy'] = propagationPolicy; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'DELETE', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Status; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * delete a Deployment + * @param name name of the Deployment + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. + */ + public deleteNamespacedDeployment (name: string, namespace: string, body: V1DeleteOptions, pretty?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string) : Promise<{ response: http.ClientResponse; body: V1Status; }> { + const localVarPath = this.basePath + '/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling deleteNamespacedDeployment.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling deleteNamespacedDeployment.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling deleteNamespacedDeployment.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (gracePeriodSeconds !== undefined) { + queryParameters['gracePeriodSeconds'] = gracePeriodSeconds; + } + + if (orphanDependents !== undefined) { + queryParameters['orphanDependents'] = orphanDependents; + } + + if (propagationPolicy !== undefined) { + queryParameters['propagationPolicy'] = propagationPolicy; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'DELETE', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Status; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * delete an Ingress + * @param name name of the Ingress + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. + */ + public deleteNamespacedIngress (name: string, namespace: string, body: V1DeleteOptions, pretty?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string) : Promise<{ response: http.ClientResponse; body: V1Status; }> { + const localVarPath = this.basePath + '/apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling deleteNamespacedIngress.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling deleteNamespacedIngress.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling deleteNamespacedIngress.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (gracePeriodSeconds !== undefined) { + queryParameters['gracePeriodSeconds'] = gracePeriodSeconds; + } + + if (orphanDependents !== undefined) { + queryParameters['orphanDependents'] = orphanDependents; + } + + if (propagationPolicy !== undefined) { + queryParameters['propagationPolicy'] = propagationPolicy; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'DELETE', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Status; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * delete a NetworkPolicy + * @param name name of the NetworkPolicy + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. + */ + public deleteNamespacedNetworkPolicy (name: string, namespace: string, body: V1DeleteOptions, pretty?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string) : Promise<{ response: http.ClientResponse; body: V1Status; }> { + const localVarPath = this.basePath + '/apis/extensions/v1beta1/namespaces/{namespace}/networkpolicies/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling deleteNamespacedNetworkPolicy.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling deleteNamespacedNetworkPolicy.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling deleteNamespacedNetworkPolicy.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (gracePeriodSeconds !== undefined) { + queryParameters['gracePeriodSeconds'] = gracePeriodSeconds; + } + + if (orphanDependents !== undefined) { + queryParameters['orphanDependents'] = orphanDependents; + } + + if (propagationPolicy !== undefined) { + queryParameters['propagationPolicy'] = propagationPolicy; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'DELETE', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Status; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * delete a ReplicaSet + * @param name name of the ReplicaSet + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. + */ + public deleteNamespacedReplicaSet (name: string, namespace: string, body: V1DeleteOptions, pretty?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string) : Promise<{ response: http.ClientResponse; body: V1Status; }> { + const localVarPath = this.basePath + '/apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling deleteNamespacedReplicaSet.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling deleteNamespacedReplicaSet.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling deleteNamespacedReplicaSet.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (gracePeriodSeconds !== undefined) { + queryParameters['gracePeriodSeconds'] = gracePeriodSeconds; + } + + if (orphanDependents !== undefined) { + queryParameters['orphanDependents'] = orphanDependents; + } + + if (propagationPolicy !== undefined) { + queryParameters['propagationPolicy'] = propagationPolicy; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'DELETE', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Status; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * delete a PodSecurityPolicy + * @param name name of the PodSecurityPolicy + * @param body + * @param pretty If 'true', then the output is pretty printed. + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. + */ + public deletePodSecurityPolicy (name: string, body: V1DeleteOptions, pretty?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string) : Promise<{ response: http.ClientResponse; body: V1Status; }> { + const localVarPath = this.basePath + '/apis/extensions/v1beta1/podsecuritypolicies/{name}' + .replace('{' + 'name' + '}', String(name)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling deletePodSecurityPolicy.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling deletePodSecurityPolicy.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (gracePeriodSeconds !== undefined) { + queryParameters['gracePeriodSeconds'] = gracePeriodSeconds; + } + + if (orphanDependents !== undefined) { + queryParameters['orphanDependents'] = orphanDependents; + } + + if (propagationPolicy !== undefined) { + queryParameters['propagationPolicy'] = propagationPolicy; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'DELETE', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Status; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * get available resources + */ + public getAPIResources () : Promise<{ response: http.ClientResponse; body: V1APIResourceList; }> { + const localVarPath = this.basePath + '/apis/extensions/v1beta1/'; + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1APIResourceList; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * list or watch objects of kind DaemonSet + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param includeUninitialized If true, partially initialized resources are included in the response. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param pretty If 'true', then the output is pretty printed. + * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + * @param timeoutSeconds Timeout for the list/watch call. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public listDaemonSetForAllNamespaces (_continue?: string, fieldSelector?: string, includeUninitialized?: boolean, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, timeoutSeconds?: number, watch?: boolean) : Promise<{ response: http.ClientResponse; body: V1beta1DaemonSetList; }> { + const localVarPath = this.basePath + '/apis/extensions/v1beta1/daemonsets'; + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + if (_continue !== undefined) { + queryParameters['continue'] = _continue; + } + + if (fieldSelector !== undefined) { + queryParameters['fieldSelector'] = fieldSelector; + } + + if (includeUninitialized !== undefined) { + queryParameters['includeUninitialized'] = includeUninitialized; + } + + if (labelSelector !== undefined) { + queryParameters['labelSelector'] = labelSelector; + } + + if (limit !== undefined) { + queryParameters['limit'] = limit; + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (resourceVersion !== undefined) { + queryParameters['resourceVersion'] = resourceVersion; + } + + if (timeoutSeconds !== undefined) { + queryParameters['timeoutSeconds'] = timeoutSeconds; + } + + if (watch !== undefined) { + queryParameters['watch'] = watch; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta1DaemonSetList; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * list or watch objects of kind Deployment + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param includeUninitialized If true, partially initialized resources are included in the response. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param pretty If 'true', then the output is pretty printed. + * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + * @param timeoutSeconds Timeout for the list/watch call. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public listDeploymentForAllNamespaces (_continue?: string, fieldSelector?: string, includeUninitialized?: boolean, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, timeoutSeconds?: number, watch?: boolean) : Promise<{ response: http.ClientResponse; body: ExtensionsV1beta1DeploymentList; }> { + const localVarPath = this.basePath + '/apis/extensions/v1beta1/deployments'; + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + if (_continue !== undefined) { + queryParameters['continue'] = _continue; + } + + if (fieldSelector !== undefined) { + queryParameters['fieldSelector'] = fieldSelector; + } + + if (includeUninitialized !== undefined) { + queryParameters['includeUninitialized'] = includeUninitialized; + } + + if (labelSelector !== undefined) { + queryParameters['labelSelector'] = labelSelector; + } + + if (limit !== undefined) { + queryParameters['limit'] = limit; + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (resourceVersion !== undefined) { + queryParameters['resourceVersion'] = resourceVersion; + } + + if (timeoutSeconds !== undefined) { + queryParameters['timeoutSeconds'] = timeoutSeconds; + } + + if (watch !== undefined) { + queryParameters['watch'] = watch; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: ExtensionsV1beta1DeploymentList; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * list or watch objects of kind Ingress + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param includeUninitialized If true, partially initialized resources are included in the response. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param pretty If 'true', then the output is pretty printed. + * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + * @param timeoutSeconds Timeout for the list/watch call. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public listIngressForAllNamespaces (_continue?: string, fieldSelector?: string, includeUninitialized?: boolean, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, timeoutSeconds?: number, watch?: boolean) : Promise<{ response: http.ClientResponse; body: V1beta1IngressList; }> { + const localVarPath = this.basePath + '/apis/extensions/v1beta1/ingresses'; + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + if (_continue !== undefined) { + queryParameters['continue'] = _continue; + } + + if (fieldSelector !== undefined) { + queryParameters['fieldSelector'] = fieldSelector; + } + + if (includeUninitialized !== undefined) { + queryParameters['includeUninitialized'] = includeUninitialized; + } + + if (labelSelector !== undefined) { + queryParameters['labelSelector'] = labelSelector; + } + + if (limit !== undefined) { + queryParameters['limit'] = limit; + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (resourceVersion !== undefined) { + queryParameters['resourceVersion'] = resourceVersion; + } + + if (timeoutSeconds !== undefined) { + queryParameters['timeoutSeconds'] = timeoutSeconds; + } + + if (watch !== undefined) { + queryParameters['watch'] = watch; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta1IngressList; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * list or watch objects of kind DaemonSet + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If 'true', then the output is pretty printed. + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param includeUninitialized If true, partially initialized resources are included in the response. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + * @param timeoutSeconds Timeout for the list/watch call. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public listNamespacedDaemonSet (namespace: string, pretty?: string, _continue?: string, fieldSelector?: string, includeUninitialized?: boolean, labelSelector?: string, limit?: number, resourceVersion?: string, timeoutSeconds?: number, watch?: boolean) : Promise<{ response: http.ClientResponse; body: V1beta1DaemonSetList; }> { + const localVarPath = this.basePath + '/apis/extensions/v1beta1/namespaces/{namespace}/daemonsets' + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling listNamespacedDaemonSet.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (_continue !== undefined) { + queryParameters['continue'] = _continue; + } + + if (fieldSelector !== undefined) { + queryParameters['fieldSelector'] = fieldSelector; + } + + if (includeUninitialized !== undefined) { + queryParameters['includeUninitialized'] = includeUninitialized; + } + + if (labelSelector !== undefined) { + queryParameters['labelSelector'] = labelSelector; + } + + if (limit !== undefined) { + queryParameters['limit'] = limit; + } + + if (resourceVersion !== undefined) { + queryParameters['resourceVersion'] = resourceVersion; + } + + if (timeoutSeconds !== undefined) { + queryParameters['timeoutSeconds'] = timeoutSeconds; + } + + if (watch !== undefined) { + queryParameters['watch'] = watch; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta1DaemonSetList; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * list or watch objects of kind Deployment + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If 'true', then the output is pretty printed. + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param includeUninitialized If true, partially initialized resources are included in the response. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + * @param timeoutSeconds Timeout for the list/watch call. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public listNamespacedDeployment (namespace: string, pretty?: string, _continue?: string, fieldSelector?: string, includeUninitialized?: boolean, labelSelector?: string, limit?: number, resourceVersion?: string, timeoutSeconds?: number, watch?: boolean) : Promise<{ response: http.ClientResponse; body: ExtensionsV1beta1DeploymentList; }> { + const localVarPath = this.basePath + '/apis/extensions/v1beta1/namespaces/{namespace}/deployments' + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling listNamespacedDeployment.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (_continue !== undefined) { + queryParameters['continue'] = _continue; + } + + if (fieldSelector !== undefined) { + queryParameters['fieldSelector'] = fieldSelector; + } + + if (includeUninitialized !== undefined) { + queryParameters['includeUninitialized'] = includeUninitialized; + } + + if (labelSelector !== undefined) { + queryParameters['labelSelector'] = labelSelector; + } + + if (limit !== undefined) { + queryParameters['limit'] = limit; + } + + if (resourceVersion !== undefined) { + queryParameters['resourceVersion'] = resourceVersion; + } + + if (timeoutSeconds !== undefined) { + queryParameters['timeoutSeconds'] = timeoutSeconds; + } + + if (watch !== undefined) { + queryParameters['watch'] = watch; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: ExtensionsV1beta1DeploymentList; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * list or watch objects of kind Ingress + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If 'true', then the output is pretty printed. + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param includeUninitialized If true, partially initialized resources are included in the response. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + * @param timeoutSeconds Timeout for the list/watch call. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public listNamespacedIngress (namespace: string, pretty?: string, _continue?: string, fieldSelector?: string, includeUninitialized?: boolean, labelSelector?: string, limit?: number, resourceVersion?: string, timeoutSeconds?: number, watch?: boolean) : Promise<{ response: http.ClientResponse; body: V1beta1IngressList; }> { + const localVarPath = this.basePath + '/apis/extensions/v1beta1/namespaces/{namespace}/ingresses' + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling listNamespacedIngress.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (_continue !== undefined) { + queryParameters['continue'] = _continue; + } + + if (fieldSelector !== undefined) { + queryParameters['fieldSelector'] = fieldSelector; + } + + if (includeUninitialized !== undefined) { + queryParameters['includeUninitialized'] = includeUninitialized; + } + + if (labelSelector !== undefined) { + queryParameters['labelSelector'] = labelSelector; + } + + if (limit !== undefined) { + queryParameters['limit'] = limit; + } + + if (resourceVersion !== undefined) { + queryParameters['resourceVersion'] = resourceVersion; + } + + if (timeoutSeconds !== undefined) { + queryParameters['timeoutSeconds'] = timeoutSeconds; + } + + if (watch !== undefined) { + queryParameters['watch'] = watch; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta1IngressList; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * list or watch objects of kind NetworkPolicy + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If 'true', then the output is pretty printed. + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param includeUninitialized If true, partially initialized resources are included in the response. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + * @param timeoutSeconds Timeout for the list/watch call. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public listNamespacedNetworkPolicy (namespace: string, pretty?: string, _continue?: string, fieldSelector?: string, includeUninitialized?: boolean, labelSelector?: string, limit?: number, resourceVersion?: string, timeoutSeconds?: number, watch?: boolean) : Promise<{ response: http.ClientResponse; body: V1beta1NetworkPolicyList; }> { + const localVarPath = this.basePath + '/apis/extensions/v1beta1/namespaces/{namespace}/networkpolicies' + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling listNamespacedNetworkPolicy.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (_continue !== undefined) { + queryParameters['continue'] = _continue; + } + + if (fieldSelector !== undefined) { + queryParameters['fieldSelector'] = fieldSelector; + } + + if (includeUninitialized !== undefined) { + queryParameters['includeUninitialized'] = includeUninitialized; + } + + if (labelSelector !== undefined) { + queryParameters['labelSelector'] = labelSelector; + } + + if (limit !== undefined) { + queryParameters['limit'] = limit; + } + + if (resourceVersion !== undefined) { + queryParameters['resourceVersion'] = resourceVersion; + } + + if (timeoutSeconds !== undefined) { + queryParameters['timeoutSeconds'] = timeoutSeconds; + } + + if (watch !== undefined) { + queryParameters['watch'] = watch; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta1NetworkPolicyList; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * list or watch objects of kind ReplicaSet + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If 'true', then the output is pretty printed. + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param includeUninitialized If true, partially initialized resources are included in the response. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + * @param timeoutSeconds Timeout for the list/watch call. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public listNamespacedReplicaSet (namespace: string, pretty?: string, _continue?: string, fieldSelector?: string, includeUninitialized?: boolean, labelSelector?: string, limit?: number, resourceVersion?: string, timeoutSeconds?: number, watch?: boolean) : Promise<{ response: http.ClientResponse; body: V1beta1ReplicaSetList; }> { + const localVarPath = this.basePath + '/apis/extensions/v1beta1/namespaces/{namespace}/replicasets' + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling listNamespacedReplicaSet.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (_continue !== undefined) { + queryParameters['continue'] = _continue; + } + + if (fieldSelector !== undefined) { + queryParameters['fieldSelector'] = fieldSelector; + } + + if (includeUninitialized !== undefined) { + queryParameters['includeUninitialized'] = includeUninitialized; + } + + if (labelSelector !== undefined) { + queryParameters['labelSelector'] = labelSelector; + } + + if (limit !== undefined) { + queryParameters['limit'] = limit; + } + + if (resourceVersion !== undefined) { + queryParameters['resourceVersion'] = resourceVersion; + } + + if (timeoutSeconds !== undefined) { + queryParameters['timeoutSeconds'] = timeoutSeconds; + } + + if (watch !== undefined) { + queryParameters['watch'] = watch; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta1ReplicaSetList; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * list or watch objects of kind NetworkPolicy + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param includeUninitialized If true, partially initialized resources are included in the response. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param pretty If 'true', then the output is pretty printed. + * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + * @param timeoutSeconds Timeout for the list/watch call. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public listNetworkPolicyForAllNamespaces (_continue?: string, fieldSelector?: string, includeUninitialized?: boolean, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, timeoutSeconds?: number, watch?: boolean) : Promise<{ response: http.ClientResponse; body: V1beta1NetworkPolicyList; }> { + const localVarPath = this.basePath + '/apis/extensions/v1beta1/networkpolicies'; + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + if (_continue !== undefined) { + queryParameters['continue'] = _continue; + } + + if (fieldSelector !== undefined) { + queryParameters['fieldSelector'] = fieldSelector; + } + + if (includeUninitialized !== undefined) { + queryParameters['includeUninitialized'] = includeUninitialized; + } + + if (labelSelector !== undefined) { + queryParameters['labelSelector'] = labelSelector; + } + + if (limit !== undefined) { + queryParameters['limit'] = limit; + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (resourceVersion !== undefined) { + queryParameters['resourceVersion'] = resourceVersion; + } + + if (timeoutSeconds !== undefined) { + queryParameters['timeoutSeconds'] = timeoutSeconds; + } + + if (watch !== undefined) { + queryParameters['watch'] = watch; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta1NetworkPolicyList; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * list or watch objects of kind PodSecurityPolicy + * @param pretty If 'true', then the output is pretty printed. + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param includeUninitialized If true, partially initialized resources are included in the response. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + * @param timeoutSeconds Timeout for the list/watch call. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public listPodSecurityPolicy (pretty?: string, _continue?: string, fieldSelector?: string, includeUninitialized?: boolean, labelSelector?: string, limit?: number, resourceVersion?: string, timeoutSeconds?: number, watch?: boolean) : Promise<{ response: http.ClientResponse; body: V1beta1PodSecurityPolicyList; }> { + const localVarPath = this.basePath + '/apis/extensions/v1beta1/podsecuritypolicies'; + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (_continue !== undefined) { + queryParameters['continue'] = _continue; + } + + if (fieldSelector !== undefined) { + queryParameters['fieldSelector'] = fieldSelector; + } + + if (includeUninitialized !== undefined) { + queryParameters['includeUninitialized'] = includeUninitialized; + } + + if (labelSelector !== undefined) { + queryParameters['labelSelector'] = labelSelector; + } + + if (limit !== undefined) { + queryParameters['limit'] = limit; + } + + if (resourceVersion !== undefined) { + queryParameters['resourceVersion'] = resourceVersion; + } + + if (timeoutSeconds !== undefined) { + queryParameters['timeoutSeconds'] = timeoutSeconds; + } + + if (watch !== undefined) { + queryParameters['watch'] = watch; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta1PodSecurityPolicyList; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * list or watch objects of kind ReplicaSet + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param includeUninitialized If true, partially initialized resources are included in the response. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param pretty If 'true', then the output is pretty printed. + * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + * @param timeoutSeconds Timeout for the list/watch call. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public listReplicaSetForAllNamespaces (_continue?: string, fieldSelector?: string, includeUninitialized?: boolean, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, timeoutSeconds?: number, watch?: boolean) : Promise<{ response: http.ClientResponse; body: V1beta1ReplicaSetList; }> { + const localVarPath = this.basePath + '/apis/extensions/v1beta1/replicasets'; + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + if (_continue !== undefined) { + queryParameters['continue'] = _continue; + } + + if (fieldSelector !== undefined) { + queryParameters['fieldSelector'] = fieldSelector; + } + + if (includeUninitialized !== undefined) { + queryParameters['includeUninitialized'] = includeUninitialized; + } + + if (labelSelector !== undefined) { + queryParameters['labelSelector'] = labelSelector; + } + + if (limit !== undefined) { + queryParameters['limit'] = limit; + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (resourceVersion !== undefined) { + queryParameters['resourceVersion'] = resourceVersion; + } + + if (timeoutSeconds !== undefined) { + queryParameters['timeoutSeconds'] = timeoutSeconds; + } + + if (watch !== undefined) { + queryParameters['watch'] = watch; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta1ReplicaSetList; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * partially update the specified DaemonSet + * @param name name of the DaemonSet + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public patchNamespacedDaemonSet (name: string, namespace: string, body: any, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1beta1DaemonSet; }> { + const localVarPath = this.basePath + '/apis/extensions/v1beta1/namespaces/{namespace}/daemonsets/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling patchNamespacedDaemonSet.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling patchNamespacedDaemonSet.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling patchNamespacedDaemonSet.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PATCH', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta1DaemonSet; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * partially update status of the specified DaemonSet + * @param name name of the DaemonSet + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public patchNamespacedDaemonSetStatus (name: string, namespace: string, body: any, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1beta1DaemonSet; }> { + const localVarPath = this.basePath + '/apis/extensions/v1beta1/namespaces/{namespace}/daemonsets/{name}/status' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling patchNamespacedDaemonSetStatus.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling patchNamespacedDaemonSetStatus.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling patchNamespacedDaemonSetStatus.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PATCH', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta1DaemonSet; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * partially update the specified Deployment + * @param name name of the Deployment + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public patchNamespacedDeployment (name: string, namespace: string, body: any, pretty?: string) : Promise<{ response: http.ClientResponse; body: ExtensionsV1beta1Deployment; }> { + const localVarPath = this.basePath + '/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling patchNamespacedDeployment.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling patchNamespacedDeployment.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling patchNamespacedDeployment.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PATCH', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: ExtensionsV1beta1Deployment; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * partially update scale of the specified Deployment + * @param name name of the Scale + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public patchNamespacedDeploymentScale (name: string, namespace: string, body: any, pretty?: string) : Promise<{ response: http.ClientResponse; body: ExtensionsV1beta1Scale; }> { + const localVarPath = this.basePath + '/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/scale' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling patchNamespacedDeploymentScale.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling patchNamespacedDeploymentScale.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling patchNamespacedDeploymentScale.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PATCH', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: ExtensionsV1beta1Scale; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * partially update status of the specified Deployment + * @param name name of the Deployment + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public patchNamespacedDeploymentStatus (name: string, namespace: string, body: any, pretty?: string) : Promise<{ response: http.ClientResponse; body: ExtensionsV1beta1Deployment; }> { + const localVarPath = this.basePath + '/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/status' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling patchNamespacedDeploymentStatus.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling patchNamespacedDeploymentStatus.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling patchNamespacedDeploymentStatus.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PATCH', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: ExtensionsV1beta1Deployment; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * partially update the specified Ingress + * @param name name of the Ingress + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public patchNamespacedIngress (name: string, namespace: string, body: any, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1beta1Ingress; }> { + const localVarPath = this.basePath + '/apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling patchNamespacedIngress.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling patchNamespacedIngress.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling patchNamespacedIngress.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PATCH', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta1Ingress; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * partially update status of the specified Ingress + * @param name name of the Ingress + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public patchNamespacedIngressStatus (name: string, namespace: string, body: any, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1beta1Ingress; }> { + const localVarPath = this.basePath + '/apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name}/status' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling patchNamespacedIngressStatus.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling patchNamespacedIngressStatus.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling patchNamespacedIngressStatus.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PATCH', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta1Ingress; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * partially update the specified NetworkPolicy + * @param name name of the NetworkPolicy + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public patchNamespacedNetworkPolicy (name: string, namespace: string, body: any, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1beta1NetworkPolicy; }> { + const localVarPath = this.basePath + '/apis/extensions/v1beta1/namespaces/{namespace}/networkpolicies/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling patchNamespacedNetworkPolicy.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling patchNamespacedNetworkPolicy.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling patchNamespacedNetworkPolicy.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PATCH', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta1NetworkPolicy; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * partially update the specified ReplicaSet + * @param name name of the ReplicaSet + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public patchNamespacedReplicaSet (name: string, namespace: string, body: any, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1beta1ReplicaSet; }> { + const localVarPath = this.basePath + '/apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling patchNamespacedReplicaSet.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling patchNamespacedReplicaSet.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling patchNamespacedReplicaSet.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PATCH', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta1ReplicaSet; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * partially update scale of the specified ReplicaSet + * @param name name of the Scale + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public patchNamespacedReplicaSetScale (name: string, namespace: string, body: any, pretty?: string) : Promise<{ response: http.ClientResponse; body: ExtensionsV1beta1Scale; }> { + const localVarPath = this.basePath + '/apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}/scale' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling patchNamespacedReplicaSetScale.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling patchNamespacedReplicaSetScale.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling patchNamespacedReplicaSetScale.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PATCH', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: ExtensionsV1beta1Scale; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * partially update status of the specified ReplicaSet + * @param name name of the ReplicaSet + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public patchNamespacedReplicaSetStatus (name: string, namespace: string, body: any, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1beta1ReplicaSet; }> { + const localVarPath = this.basePath + '/apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}/status' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling patchNamespacedReplicaSetStatus.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling patchNamespacedReplicaSetStatus.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling patchNamespacedReplicaSetStatus.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PATCH', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta1ReplicaSet; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * partially update scale of the specified ReplicationControllerDummy + * @param name name of the Scale + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public patchNamespacedReplicationControllerDummyScale (name: string, namespace: string, body: any, pretty?: string) : Promise<{ response: http.ClientResponse; body: ExtensionsV1beta1Scale; }> { + const localVarPath = this.basePath + '/apis/extensions/v1beta1/namespaces/{namespace}/replicationcontrollers/{name}/scale' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling patchNamespacedReplicationControllerDummyScale.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling patchNamespacedReplicationControllerDummyScale.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling patchNamespacedReplicationControllerDummyScale.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PATCH', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: ExtensionsV1beta1Scale; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * partially update the specified PodSecurityPolicy + * @param name name of the PodSecurityPolicy + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public patchPodSecurityPolicy (name: string, body: any, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1beta1PodSecurityPolicy; }> { + const localVarPath = this.basePath + '/apis/extensions/v1beta1/podsecuritypolicies/{name}' + .replace('{' + 'name' + '}', String(name)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling patchPodSecurityPolicy.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling patchPodSecurityPolicy.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PATCH', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta1PodSecurityPolicy; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * read the specified DaemonSet + * @param name name of the DaemonSet + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If 'true', then the output is pretty printed. + * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + * @param _export Should this value be exported. Export strips fields that a user can not specify. + */ + public readNamespacedDaemonSet (name: string, namespace: string, pretty?: string, exact?: boolean, _export?: boolean) : Promise<{ response: http.ClientResponse; body: V1beta1DaemonSet; }> { + const localVarPath = this.basePath + '/apis/extensions/v1beta1/namespaces/{namespace}/daemonsets/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling readNamespacedDaemonSet.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling readNamespacedDaemonSet.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (exact !== undefined) { + queryParameters['exact'] = exact; + } + + if (_export !== undefined) { + queryParameters['export'] = _export; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta1DaemonSet; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * read status of the specified DaemonSet + * @param name name of the DaemonSet + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If 'true', then the output is pretty printed. + */ + public readNamespacedDaemonSetStatus (name: string, namespace: string, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1beta1DaemonSet; }> { + const localVarPath = this.basePath + '/apis/extensions/v1beta1/namespaces/{namespace}/daemonsets/{name}/status' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling readNamespacedDaemonSetStatus.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling readNamespacedDaemonSetStatus.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta1DaemonSet; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * read the specified Deployment + * @param name name of the Deployment + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If 'true', then the output is pretty printed. + * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + * @param _export Should this value be exported. Export strips fields that a user can not specify. + */ + public readNamespacedDeployment (name: string, namespace: string, pretty?: string, exact?: boolean, _export?: boolean) : Promise<{ response: http.ClientResponse; body: ExtensionsV1beta1Deployment; }> { + const localVarPath = this.basePath + '/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling readNamespacedDeployment.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling readNamespacedDeployment.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (exact !== undefined) { + queryParameters['exact'] = exact; + } + + if (_export !== undefined) { + queryParameters['export'] = _export; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: ExtensionsV1beta1Deployment; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * read scale of the specified Deployment + * @param name name of the Scale + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If 'true', then the output is pretty printed. + */ + public readNamespacedDeploymentScale (name: string, namespace: string, pretty?: string) : Promise<{ response: http.ClientResponse; body: ExtensionsV1beta1Scale; }> { + const localVarPath = this.basePath + '/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/scale' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling readNamespacedDeploymentScale.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling readNamespacedDeploymentScale.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: ExtensionsV1beta1Scale; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * read status of the specified Deployment + * @param name name of the Deployment + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If 'true', then the output is pretty printed. + */ + public readNamespacedDeploymentStatus (name: string, namespace: string, pretty?: string) : Promise<{ response: http.ClientResponse; body: ExtensionsV1beta1Deployment; }> { + const localVarPath = this.basePath + '/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/status' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling readNamespacedDeploymentStatus.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling readNamespacedDeploymentStatus.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: ExtensionsV1beta1Deployment; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * read the specified Ingress + * @param name name of the Ingress + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If 'true', then the output is pretty printed. + * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + * @param _export Should this value be exported. Export strips fields that a user can not specify. + */ + public readNamespacedIngress (name: string, namespace: string, pretty?: string, exact?: boolean, _export?: boolean) : Promise<{ response: http.ClientResponse; body: V1beta1Ingress; }> { + const localVarPath = this.basePath + '/apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling readNamespacedIngress.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling readNamespacedIngress.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (exact !== undefined) { + queryParameters['exact'] = exact; + } + + if (_export !== undefined) { + queryParameters['export'] = _export; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta1Ingress; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * read status of the specified Ingress + * @param name name of the Ingress + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If 'true', then the output is pretty printed. + */ + public readNamespacedIngressStatus (name: string, namespace: string, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1beta1Ingress; }> { + const localVarPath = this.basePath + '/apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name}/status' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling readNamespacedIngressStatus.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling readNamespacedIngressStatus.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta1Ingress; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * read the specified NetworkPolicy + * @param name name of the NetworkPolicy + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If 'true', then the output is pretty printed. + * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + * @param _export Should this value be exported. Export strips fields that a user can not specify. + */ + public readNamespacedNetworkPolicy (name: string, namespace: string, pretty?: string, exact?: boolean, _export?: boolean) : Promise<{ response: http.ClientResponse; body: V1beta1NetworkPolicy; }> { + const localVarPath = this.basePath + '/apis/extensions/v1beta1/namespaces/{namespace}/networkpolicies/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling readNamespacedNetworkPolicy.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling readNamespacedNetworkPolicy.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (exact !== undefined) { + queryParameters['exact'] = exact; + } + + if (_export !== undefined) { + queryParameters['export'] = _export; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta1NetworkPolicy; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * read the specified ReplicaSet + * @param name name of the ReplicaSet + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If 'true', then the output is pretty printed. + * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + * @param _export Should this value be exported. Export strips fields that a user can not specify. + */ + public readNamespacedReplicaSet (name: string, namespace: string, pretty?: string, exact?: boolean, _export?: boolean) : Promise<{ response: http.ClientResponse; body: V1beta1ReplicaSet; }> { + const localVarPath = this.basePath + '/apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling readNamespacedReplicaSet.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling readNamespacedReplicaSet.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (exact !== undefined) { + queryParameters['exact'] = exact; + } + + if (_export !== undefined) { + queryParameters['export'] = _export; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta1ReplicaSet; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * read scale of the specified ReplicaSet + * @param name name of the Scale + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If 'true', then the output is pretty printed. + */ + public readNamespacedReplicaSetScale (name: string, namespace: string, pretty?: string) : Promise<{ response: http.ClientResponse; body: ExtensionsV1beta1Scale; }> { + const localVarPath = this.basePath + '/apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}/scale' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling readNamespacedReplicaSetScale.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling readNamespacedReplicaSetScale.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: ExtensionsV1beta1Scale; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * read status of the specified ReplicaSet + * @param name name of the ReplicaSet + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If 'true', then the output is pretty printed. + */ + public readNamespacedReplicaSetStatus (name: string, namespace: string, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1beta1ReplicaSet; }> { + const localVarPath = this.basePath + '/apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}/status' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling readNamespacedReplicaSetStatus.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling readNamespacedReplicaSetStatus.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta1ReplicaSet; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * read scale of the specified ReplicationControllerDummy + * @param name name of the Scale + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If 'true', then the output is pretty printed. + */ + public readNamespacedReplicationControllerDummyScale (name: string, namespace: string, pretty?: string) : Promise<{ response: http.ClientResponse; body: ExtensionsV1beta1Scale; }> { + const localVarPath = this.basePath + '/apis/extensions/v1beta1/namespaces/{namespace}/replicationcontrollers/{name}/scale' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling readNamespacedReplicationControllerDummyScale.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling readNamespacedReplicationControllerDummyScale.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: ExtensionsV1beta1Scale; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * read the specified PodSecurityPolicy + * @param name name of the PodSecurityPolicy + * @param pretty If 'true', then the output is pretty printed. + * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + * @param _export Should this value be exported. Export strips fields that a user can not specify. + */ + public readPodSecurityPolicy (name: string, pretty?: string, exact?: boolean, _export?: boolean) : Promise<{ response: http.ClientResponse; body: V1beta1PodSecurityPolicy; }> { + const localVarPath = this.basePath + '/apis/extensions/v1beta1/podsecuritypolicies/{name}' + .replace('{' + 'name' + '}', String(name)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling readPodSecurityPolicy.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (exact !== undefined) { + queryParameters['exact'] = exact; + } + + if (_export !== undefined) { + queryParameters['export'] = _export; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta1PodSecurityPolicy; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * replace the specified DaemonSet + * @param name name of the DaemonSet + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public replaceNamespacedDaemonSet (name: string, namespace: string, body: V1beta1DaemonSet, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1beta1DaemonSet; }> { + const localVarPath = this.basePath + '/apis/extensions/v1beta1/namespaces/{namespace}/daemonsets/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling replaceNamespacedDaemonSet.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling replaceNamespacedDaemonSet.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling replaceNamespacedDaemonSet.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PUT', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta1DaemonSet; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * replace status of the specified DaemonSet + * @param name name of the DaemonSet + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public replaceNamespacedDaemonSetStatus (name: string, namespace: string, body: V1beta1DaemonSet, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1beta1DaemonSet; }> { + const localVarPath = this.basePath + '/apis/extensions/v1beta1/namespaces/{namespace}/daemonsets/{name}/status' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling replaceNamespacedDaemonSetStatus.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling replaceNamespacedDaemonSetStatus.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling replaceNamespacedDaemonSetStatus.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PUT', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta1DaemonSet; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * replace the specified Deployment + * @param name name of the Deployment + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public replaceNamespacedDeployment (name: string, namespace: string, body: ExtensionsV1beta1Deployment, pretty?: string) : Promise<{ response: http.ClientResponse; body: ExtensionsV1beta1Deployment; }> { + const localVarPath = this.basePath + '/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling replaceNamespacedDeployment.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling replaceNamespacedDeployment.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling replaceNamespacedDeployment.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PUT', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: ExtensionsV1beta1Deployment; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * replace scale of the specified Deployment + * @param name name of the Scale + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public replaceNamespacedDeploymentScale (name: string, namespace: string, body: ExtensionsV1beta1Scale, pretty?: string) : Promise<{ response: http.ClientResponse; body: ExtensionsV1beta1Scale; }> { + const localVarPath = this.basePath + '/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/scale' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling replaceNamespacedDeploymentScale.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling replaceNamespacedDeploymentScale.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling replaceNamespacedDeploymentScale.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PUT', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: ExtensionsV1beta1Scale; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * replace status of the specified Deployment + * @param name name of the Deployment + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public replaceNamespacedDeploymentStatus (name: string, namespace: string, body: ExtensionsV1beta1Deployment, pretty?: string) : Promise<{ response: http.ClientResponse; body: ExtensionsV1beta1Deployment; }> { + const localVarPath = this.basePath + '/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/status' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling replaceNamespacedDeploymentStatus.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling replaceNamespacedDeploymentStatus.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling replaceNamespacedDeploymentStatus.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PUT', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: ExtensionsV1beta1Deployment; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * replace the specified Ingress + * @param name name of the Ingress + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public replaceNamespacedIngress (name: string, namespace: string, body: V1beta1Ingress, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1beta1Ingress; }> { + const localVarPath = this.basePath + '/apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling replaceNamespacedIngress.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling replaceNamespacedIngress.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling replaceNamespacedIngress.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PUT', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta1Ingress; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * replace status of the specified Ingress + * @param name name of the Ingress + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public replaceNamespacedIngressStatus (name: string, namespace: string, body: V1beta1Ingress, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1beta1Ingress; }> { + const localVarPath = this.basePath + '/apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name}/status' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling replaceNamespacedIngressStatus.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling replaceNamespacedIngressStatus.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling replaceNamespacedIngressStatus.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PUT', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta1Ingress; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * replace the specified NetworkPolicy + * @param name name of the NetworkPolicy + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public replaceNamespacedNetworkPolicy (name: string, namespace: string, body: V1beta1NetworkPolicy, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1beta1NetworkPolicy; }> { + const localVarPath = this.basePath + '/apis/extensions/v1beta1/namespaces/{namespace}/networkpolicies/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling replaceNamespacedNetworkPolicy.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling replaceNamespacedNetworkPolicy.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling replaceNamespacedNetworkPolicy.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PUT', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta1NetworkPolicy; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * replace the specified ReplicaSet + * @param name name of the ReplicaSet + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public replaceNamespacedReplicaSet (name: string, namespace: string, body: V1beta1ReplicaSet, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1beta1ReplicaSet; }> { + const localVarPath = this.basePath + '/apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling replaceNamespacedReplicaSet.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling replaceNamespacedReplicaSet.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling replaceNamespacedReplicaSet.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PUT', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta1ReplicaSet; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * replace scale of the specified ReplicaSet + * @param name name of the Scale + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public replaceNamespacedReplicaSetScale (name: string, namespace: string, body: ExtensionsV1beta1Scale, pretty?: string) : Promise<{ response: http.ClientResponse; body: ExtensionsV1beta1Scale; }> { + const localVarPath = this.basePath + '/apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}/scale' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling replaceNamespacedReplicaSetScale.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling replaceNamespacedReplicaSetScale.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling replaceNamespacedReplicaSetScale.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PUT', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: ExtensionsV1beta1Scale; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * replace status of the specified ReplicaSet + * @param name name of the ReplicaSet + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public replaceNamespacedReplicaSetStatus (name: string, namespace: string, body: V1beta1ReplicaSet, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1beta1ReplicaSet; }> { + const localVarPath = this.basePath + '/apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}/status' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling replaceNamespacedReplicaSetStatus.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling replaceNamespacedReplicaSetStatus.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling replaceNamespacedReplicaSetStatus.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PUT', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta1ReplicaSet; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * replace scale of the specified ReplicationControllerDummy + * @param name name of the Scale + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public replaceNamespacedReplicationControllerDummyScale (name: string, namespace: string, body: ExtensionsV1beta1Scale, pretty?: string) : Promise<{ response: http.ClientResponse; body: ExtensionsV1beta1Scale; }> { + const localVarPath = this.basePath + '/apis/extensions/v1beta1/namespaces/{namespace}/replicationcontrollers/{name}/scale' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling replaceNamespacedReplicationControllerDummyScale.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling replaceNamespacedReplicationControllerDummyScale.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling replaceNamespacedReplicationControllerDummyScale.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PUT', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: ExtensionsV1beta1Scale; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * replace the specified PodSecurityPolicy + * @param name name of the PodSecurityPolicy + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public replacePodSecurityPolicy (name: string, body: V1beta1PodSecurityPolicy, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1beta1PodSecurityPolicy; }> { + const localVarPath = this.basePath + '/apis/extensions/v1beta1/podsecuritypolicies/{name}' + .replace('{' + 'name' + '}', String(name)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling replacePodSecurityPolicy.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling replacePodSecurityPolicy.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PUT', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta1PodSecurityPolicy; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } +} +export enum LogsApiApiKeys { + BearerToken, +} + +export class LogsApi { + protected _basePath = defaultBasePath; + protected defaultHeaders : any = {}; + protected _useQuerystring : boolean = false; + + protected authentications = { + 'default': new VoidAuth(), + 'BearerToken': new ApiKeyAuth('header', 'authorization'), + } + + constructor(basePath?: string); + constructor(basePathOrUsername: string, password?: string, basePath?: string) { + if (password) { + if (basePath) { + this.basePath = basePath; + } + } else { + if (basePathOrUsername) { + this.basePath = basePathOrUsername + } + } + } + + set useQuerystring(value: boolean) { + this._useQuerystring = value; + } + + set basePath(basePath: string) { + this._basePath = basePath; + } + + get basePath() { + return this._basePath; + } + + public setDefaultAuthentication(auth: Authentication) { + this.authentications.default = auth; + } + + public setApiKey(key: LogsApiApiKeys, value: string) { + this.authentications[LogsApiApiKeys[key]].apiKey = value; + } + /** + * + * @param logpath path to the log + */ + public logFileHandler (logpath: string) : Promise<{ response: http.ClientResponse; body?: any; }> { + const localVarPath = this.basePath + '/logs/{logpath}' + .replace('{' + 'logpath' + '}', String(logpath)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'logpath' is not null or undefined + if (logpath === null || logpath === undefined) { + throw new Error('Required parameter logpath was null or undefined when calling logFileHandler.'); + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body?: any; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * + */ + public logFileListHandler () : Promise<{ response: http.ClientResponse; body?: any; }> { + const localVarPath = this.basePath + '/logs/'; + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body?: any; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } +} +export enum NetworkingApiApiKeys { + BearerToken, +} + +export class NetworkingApi { + protected _basePath = defaultBasePath; + protected defaultHeaders : any = {}; + protected _useQuerystring : boolean = false; + + protected authentications = { + 'default': new VoidAuth(), + 'BearerToken': new ApiKeyAuth('header', 'authorization'), + } + + constructor(basePath?: string); + constructor(basePathOrUsername: string, password?: string, basePath?: string) { + if (password) { + if (basePath) { + this.basePath = basePath; + } + } else { + if (basePathOrUsername) { + this.basePath = basePathOrUsername + } + } + } + + set useQuerystring(value: boolean) { + this._useQuerystring = value; + } + + set basePath(basePath: string) { + this._basePath = basePath; + } + + get basePath() { + return this._basePath; + } + + public setDefaultAuthentication(auth: Authentication) { + this.authentications.default = auth; + } + + public setApiKey(key: NetworkingApiApiKeys, value: string) { + this.authentications[NetworkingApiApiKeys[key]].apiKey = value; + } + /** + * get information of a group + */ + public getAPIGroup () : Promise<{ response: http.ClientResponse; body: V1APIGroup; }> { + const localVarPath = this.basePath + '/apis/networking.k8s.io/'; + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1APIGroup; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } +} +export enum Networking_v1ApiApiKeys { + BearerToken, +} + +export class Networking_v1Api { + protected _basePath = defaultBasePath; + protected defaultHeaders : any = {}; + protected _useQuerystring : boolean = false; + + protected authentications = { + 'default': new VoidAuth(), + 'BearerToken': new ApiKeyAuth('header', 'authorization'), + } + + constructor(basePath?: string); + constructor(basePathOrUsername: string, password?: string, basePath?: string) { + if (password) { + if (basePath) { + this.basePath = basePath; + } + } else { + if (basePathOrUsername) { + this.basePath = basePathOrUsername + } + } + } + + set useQuerystring(value: boolean) { + this._useQuerystring = value; + } + + set basePath(basePath: string) { + this._basePath = basePath; + } + + get basePath() { + return this._basePath; + } + + public setDefaultAuthentication(auth: Authentication) { + this.authentications.default = auth; + } + + public setApiKey(key: Networking_v1ApiApiKeys, value: string) { + this.authentications[Networking_v1ApiApiKeys[key]].apiKey = value; + } + /** + * create a NetworkPolicy + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public createNamespacedNetworkPolicy (namespace: string, body: V1NetworkPolicy, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1NetworkPolicy; }> { + const localVarPath = this.basePath + '/apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies' + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling createNamespacedNetworkPolicy.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling createNamespacedNetworkPolicy.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'POST', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1NetworkPolicy; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * delete collection of NetworkPolicy + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If 'true', then the output is pretty printed. + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param includeUninitialized If true, partially initialized resources are included in the response. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + * @param timeoutSeconds Timeout for the list/watch call. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public deleteCollectionNamespacedNetworkPolicy (namespace: string, pretty?: string, _continue?: string, fieldSelector?: string, includeUninitialized?: boolean, labelSelector?: string, limit?: number, resourceVersion?: string, timeoutSeconds?: number, watch?: boolean) : Promise<{ response: http.ClientResponse; body: V1Status; }> { + const localVarPath = this.basePath + '/apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies' + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling deleteCollectionNamespacedNetworkPolicy.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (_continue !== undefined) { + queryParameters['continue'] = _continue; + } + + if (fieldSelector !== undefined) { + queryParameters['fieldSelector'] = fieldSelector; + } + + if (includeUninitialized !== undefined) { + queryParameters['includeUninitialized'] = includeUninitialized; + } + + if (labelSelector !== undefined) { + queryParameters['labelSelector'] = labelSelector; + } + + if (limit !== undefined) { + queryParameters['limit'] = limit; + } + + if (resourceVersion !== undefined) { + queryParameters['resourceVersion'] = resourceVersion; + } + + if (timeoutSeconds !== undefined) { + queryParameters['timeoutSeconds'] = timeoutSeconds; + } + + if (watch !== undefined) { + queryParameters['watch'] = watch; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'DELETE', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Status; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * delete a NetworkPolicy + * @param name name of the NetworkPolicy + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. + */ + public deleteNamespacedNetworkPolicy (name: string, namespace: string, body: V1DeleteOptions, pretty?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string) : Promise<{ response: http.ClientResponse; body: V1Status; }> { + const localVarPath = this.basePath + '/apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling deleteNamespacedNetworkPolicy.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling deleteNamespacedNetworkPolicy.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling deleteNamespacedNetworkPolicy.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (gracePeriodSeconds !== undefined) { + queryParameters['gracePeriodSeconds'] = gracePeriodSeconds; + } + + if (orphanDependents !== undefined) { + queryParameters['orphanDependents'] = orphanDependents; + } + + if (propagationPolicy !== undefined) { + queryParameters['propagationPolicy'] = propagationPolicy; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'DELETE', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Status; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * get available resources + */ + public getAPIResources () : Promise<{ response: http.ClientResponse; body: V1APIResourceList; }> { + const localVarPath = this.basePath + '/apis/networking.k8s.io/v1/'; + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1APIResourceList; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * list or watch objects of kind NetworkPolicy + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If 'true', then the output is pretty printed. + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param includeUninitialized If true, partially initialized resources are included in the response. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + * @param timeoutSeconds Timeout for the list/watch call. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public listNamespacedNetworkPolicy (namespace: string, pretty?: string, _continue?: string, fieldSelector?: string, includeUninitialized?: boolean, labelSelector?: string, limit?: number, resourceVersion?: string, timeoutSeconds?: number, watch?: boolean) : Promise<{ response: http.ClientResponse; body: V1NetworkPolicyList; }> { + const localVarPath = this.basePath + '/apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies' + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling listNamespacedNetworkPolicy.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (_continue !== undefined) { + queryParameters['continue'] = _continue; + } + + if (fieldSelector !== undefined) { + queryParameters['fieldSelector'] = fieldSelector; + } + + if (includeUninitialized !== undefined) { + queryParameters['includeUninitialized'] = includeUninitialized; + } + + if (labelSelector !== undefined) { + queryParameters['labelSelector'] = labelSelector; + } + + if (limit !== undefined) { + queryParameters['limit'] = limit; + } + + if (resourceVersion !== undefined) { + queryParameters['resourceVersion'] = resourceVersion; + } + + if (timeoutSeconds !== undefined) { + queryParameters['timeoutSeconds'] = timeoutSeconds; + } + + if (watch !== undefined) { + queryParameters['watch'] = watch; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1NetworkPolicyList; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * list or watch objects of kind NetworkPolicy + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param includeUninitialized If true, partially initialized resources are included in the response. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param pretty If 'true', then the output is pretty printed. + * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + * @param timeoutSeconds Timeout for the list/watch call. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public listNetworkPolicyForAllNamespaces (_continue?: string, fieldSelector?: string, includeUninitialized?: boolean, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, timeoutSeconds?: number, watch?: boolean) : Promise<{ response: http.ClientResponse; body: V1NetworkPolicyList; }> { + const localVarPath = this.basePath + '/apis/networking.k8s.io/v1/networkpolicies'; + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + if (_continue !== undefined) { + queryParameters['continue'] = _continue; + } + + if (fieldSelector !== undefined) { + queryParameters['fieldSelector'] = fieldSelector; + } + + if (includeUninitialized !== undefined) { + queryParameters['includeUninitialized'] = includeUninitialized; + } + + if (labelSelector !== undefined) { + queryParameters['labelSelector'] = labelSelector; + } + + if (limit !== undefined) { + queryParameters['limit'] = limit; + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (resourceVersion !== undefined) { + queryParameters['resourceVersion'] = resourceVersion; + } + + if (timeoutSeconds !== undefined) { + queryParameters['timeoutSeconds'] = timeoutSeconds; + } + + if (watch !== undefined) { + queryParameters['watch'] = watch; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1NetworkPolicyList; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * partially update the specified NetworkPolicy + * @param name name of the NetworkPolicy + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public patchNamespacedNetworkPolicy (name: string, namespace: string, body: any, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1NetworkPolicy; }> { + const localVarPath = this.basePath + '/apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling patchNamespacedNetworkPolicy.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling patchNamespacedNetworkPolicy.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling patchNamespacedNetworkPolicy.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PATCH', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1NetworkPolicy; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * read the specified NetworkPolicy + * @param name name of the NetworkPolicy + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If 'true', then the output is pretty printed. + * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + * @param _export Should this value be exported. Export strips fields that a user can not specify. + */ + public readNamespacedNetworkPolicy (name: string, namespace: string, pretty?: string, exact?: boolean, _export?: boolean) : Promise<{ response: http.ClientResponse; body: V1NetworkPolicy; }> { + const localVarPath = this.basePath + '/apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling readNamespacedNetworkPolicy.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling readNamespacedNetworkPolicy.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (exact !== undefined) { + queryParameters['exact'] = exact; + } + + if (_export !== undefined) { + queryParameters['export'] = _export; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1NetworkPolicy; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * replace the specified NetworkPolicy + * @param name name of the NetworkPolicy + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public replaceNamespacedNetworkPolicy (name: string, namespace: string, body: V1NetworkPolicy, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1NetworkPolicy; }> { + const localVarPath = this.basePath + '/apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling replaceNamespacedNetworkPolicy.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling replaceNamespacedNetworkPolicy.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling replaceNamespacedNetworkPolicy.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PUT', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1NetworkPolicy; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } +} +export enum PolicyApiApiKeys { + BearerToken, +} + +export class PolicyApi { + protected _basePath = defaultBasePath; + protected defaultHeaders : any = {}; + protected _useQuerystring : boolean = false; + + protected authentications = { + 'default': new VoidAuth(), + 'BearerToken': new ApiKeyAuth('header', 'authorization'), + } + + constructor(basePath?: string); + constructor(basePathOrUsername: string, password?: string, basePath?: string) { + if (password) { + if (basePath) { + this.basePath = basePath; + } + } else { + if (basePathOrUsername) { + this.basePath = basePathOrUsername + } + } + } + + set useQuerystring(value: boolean) { + this._useQuerystring = value; + } + + set basePath(basePath: string) { + this._basePath = basePath; + } + + get basePath() { + return this._basePath; + } + + public setDefaultAuthentication(auth: Authentication) { + this.authentications.default = auth; + } + + public setApiKey(key: PolicyApiApiKeys, value: string) { + this.authentications[PolicyApiApiKeys[key]].apiKey = value; + } + /** + * get information of a group + */ + public getAPIGroup () : Promise<{ response: http.ClientResponse; body: V1APIGroup; }> { + const localVarPath = this.basePath + '/apis/policy/'; + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1APIGroup; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } +} +export enum Policy_v1beta1ApiApiKeys { + BearerToken, +} + +export class Policy_v1beta1Api { + protected _basePath = defaultBasePath; + protected defaultHeaders : any = {}; + protected _useQuerystring : boolean = false; + + protected authentications = { + 'default': new VoidAuth(), + 'BearerToken': new ApiKeyAuth('header', 'authorization'), + } + + constructor(basePath?: string); + constructor(basePathOrUsername: string, password?: string, basePath?: string) { + if (password) { + if (basePath) { + this.basePath = basePath; + } + } else { + if (basePathOrUsername) { + this.basePath = basePathOrUsername + } + } + } + + set useQuerystring(value: boolean) { + this._useQuerystring = value; + } + + set basePath(basePath: string) { + this._basePath = basePath; + } + + get basePath() { + return this._basePath; + } + + public setDefaultAuthentication(auth: Authentication) { + this.authentications.default = auth; + } + + public setApiKey(key: Policy_v1beta1ApiApiKeys, value: string) { + this.authentications[Policy_v1beta1ApiApiKeys[key]].apiKey = value; + } + /** + * create a PodDisruptionBudget + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public createNamespacedPodDisruptionBudget (namespace: string, body: V1beta1PodDisruptionBudget, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1beta1PodDisruptionBudget; }> { + const localVarPath = this.basePath + '/apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets' + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling createNamespacedPodDisruptionBudget.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling createNamespacedPodDisruptionBudget.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'POST', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta1PodDisruptionBudget; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * delete collection of PodDisruptionBudget + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If 'true', then the output is pretty printed. + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param includeUninitialized If true, partially initialized resources are included in the response. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + * @param timeoutSeconds Timeout for the list/watch call. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public deleteCollectionNamespacedPodDisruptionBudget (namespace: string, pretty?: string, _continue?: string, fieldSelector?: string, includeUninitialized?: boolean, labelSelector?: string, limit?: number, resourceVersion?: string, timeoutSeconds?: number, watch?: boolean) : Promise<{ response: http.ClientResponse; body: V1Status; }> { + const localVarPath = this.basePath + '/apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets' + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling deleteCollectionNamespacedPodDisruptionBudget.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (_continue !== undefined) { + queryParameters['continue'] = _continue; + } + + if (fieldSelector !== undefined) { + queryParameters['fieldSelector'] = fieldSelector; + } + + if (includeUninitialized !== undefined) { + queryParameters['includeUninitialized'] = includeUninitialized; + } + + if (labelSelector !== undefined) { + queryParameters['labelSelector'] = labelSelector; + } + + if (limit !== undefined) { + queryParameters['limit'] = limit; + } + + if (resourceVersion !== undefined) { + queryParameters['resourceVersion'] = resourceVersion; + } + + if (timeoutSeconds !== undefined) { + queryParameters['timeoutSeconds'] = timeoutSeconds; + } + + if (watch !== undefined) { + queryParameters['watch'] = watch; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'DELETE', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Status; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * delete a PodDisruptionBudget + * @param name name of the PodDisruptionBudget + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. + */ + public deleteNamespacedPodDisruptionBudget (name: string, namespace: string, body: V1DeleteOptions, pretty?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string) : Promise<{ response: http.ClientResponse; body: V1Status; }> { + const localVarPath = this.basePath + '/apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling deleteNamespacedPodDisruptionBudget.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling deleteNamespacedPodDisruptionBudget.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling deleteNamespacedPodDisruptionBudget.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (gracePeriodSeconds !== undefined) { + queryParameters['gracePeriodSeconds'] = gracePeriodSeconds; + } + + if (orphanDependents !== undefined) { + queryParameters['orphanDependents'] = orphanDependents; + } + + if (propagationPolicy !== undefined) { + queryParameters['propagationPolicy'] = propagationPolicy; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'DELETE', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Status; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * get available resources + */ + public getAPIResources () : Promise<{ response: http.ClientResponse; body: V1APIResourceList; }> { + const localVarPath = this.basePath + '/apis/policy/v1beta1/'; + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1APIResourceList; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * list or watch objects of kind PodDisruptionBudget + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If 'true', then the output is pretty printed. + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param includeUninitialized If true, partially initialized resources are included in the response. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + * @param timeoutSeconds Timeout for the list/watch call. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public listNamespacedPodDisruptionBudget (namespace: string, pretty?: string, _continue?: string, fieldSelector?: string, includeUninitialized?: boolean, labelSelector?: string, limit?: number, resourceVersion?: string, timeoutSeconds?: number, watch?: boolean) : Promise<{ response: http.ClientResponse; body: V1beta1PodDisruptionBudgetList; }> { + const localVarPath = this.basePath + '/apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets' + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling listNamespacedPodDisruptionBudget.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (_continue !== undefined) { + queryParameters['continue'] = _continue; + } + + if (fieldSelector !== undefined) { + queryParameters['fieldSelector'] = fieldSelector; + } + + if (includeUninitialized !== undefined) { + queryParameters['includeUninitialized'] = includeUninitialized; + } + + if (labelSelector !== undefined) { + queryParameters['labelSelector'] = labelSelector; + } + + if (limit !== undefined) { + queryParameters['limit'] = limit; + } + + if (resourceVersion !== undefined) { + queryParameters['resourceVersion'] = resourceVersion; + } + + if (timeoutSeconds !== undefined) { + queryParameters['timeoutSeconds'] = timeoutSeconds; + } + + if (watch !== undefined) { + queryParameters['watch'] = watch; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta1PodDisruptionBudgetList; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * list or watch objects of kind PodDisruptionBudget + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param includeUninitialized If true, partially initialized resources are included in the response. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param pretty If 'true', then the output is pretty printed. + * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + * @param timeoutSeconds Timeout for the list/watch call. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public listPodDisruptionBudgetForAllNamespaces (_continue?: string, fieldSelector?: string, includeUninitialized?: boolean, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, timeoutSeconds?: number, watch?: boolean) : Promise<{ response: http.ClientResponse; body: V1beta1PodDisruptionBudgetList; }> { + const localVarPath = this.basePath + '/apis/policy/v1beta1/poddisruptionbudgets'; + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + if (_continue !== undefined) { + queryParameters['continue'] = _continue; + } + + if (fieldSelector !== undefined) { + queryParameters['fieldSelector'] = fieldSelector; + } + + if (includeUninitialized !== undefined) { + queryParameters['includeUninitialized'] = includeUninitialized; + } + + if (labelSelector !== undefined) { + queryParameters['labelSelector'] = labelSelector; + } + + if (limit !== undefined) { + queryParameters['limit'] = limit; + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (resourceVersion !== undefined) { + queryParameters['resourceVersion'] = resourceVersion; + } + + if (timeoutSeconds !== undefined) { + queryParameters['timeoutSeconds'] = timeoutSeconds; + } + + if (watch !== undefined) { + queryParameters['watch'] = watch; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta1PodDisruptionBudgetList; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * partially update the specified PodDisruptionBudget + * @param name name of the PodDisruptionBudget + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public patchNamespacedPodDisruptionBudget (name: string, namespace: string, body: any, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1beta1PodDisruptionBudget; }> { + const localVarPath = this.basePath + '/apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling patchNamespacedPodDisruptionBudget.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling patchNamespacedPodDisruptionBudget.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling patchNamespacedPodDisruptionBudget.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PATCH', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta1PodDisruptionBudget; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * partially update status of the specified PodDisruptionBudget + * @param name name of the PodDisruptionBudget + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public patchNamespacedPodDisruptionBudgetStatus (name: string, namespace: string, body: any, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1beta1PodDisruptionBudget; }> { + const localVarPath = this.basePath + '/apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets/{name}/status' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling patchNamespacedPodDisruptionBudgetStatus.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling patchNamespacedPodDisruptionBudgetStatus.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling patchNamespacedPodDisruptionBudgetStatus.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PATCH', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta1PodDisruptionBudget; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * read the specified PodDisruptionBudget + * @param name name of the PodDisruptionBudget + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If 'true', then the output is pretty printed. + * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + * @param _export Should this value be exported. Export strips fields that a user can not specify. + */ + public readNamespacedPodDisruptionBudget (name: string, namespace: string, pretty?: string, exact?: boolean, _export?: boolean) : Promise<{ response: http.ClientResponse; body: V1beta1PodDisruptionBudget; }> { + const localVarPath = this.basePath + '/apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling readNamespacedPodDisruptionBudget.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling readNamespacedPodDisruptionBudget.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (exact !== undefined) { + queryParameters['exact'] = exact; + } + + if (_export !== undefined) { + queryParameters['export'] = _export; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta1PodDisruptionBudget; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * read status of the specified PodDisruptionBudget + * @param name name of the PodDisruptionBudget + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If 'true', then the output is pretty printed. + */ + public readNamespacedPodDisruptionBudgetStatus (name: string, namespace: string, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1beta1PodDisruptionBudget; }> { + const localVarPath = this.basePath + '/apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets/{name}/status' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling readNamespacedPodDisruptionBudgetStatus.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling readNamespacedPodDisruptionBudgetStatus.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta1PodDisruptionBudget; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * replace the specified PodDisruptionBudget + * @param name name of the PodDisruptionBudget + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public replaceNamespacedPodDisruptionBudget (name: string, namespace: string, body: V1beta1PodDisruptionBudget, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1beta1PodDisruptionBudget; }> { + const localVarPath = this.basePath + '/apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling replaceNamespacedPodDisruptionBudget.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling replaceNamespacedPodDisruptionBudget.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling replaceNamespacedPodDisruptionBudget.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PUT', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta1PodDisruptionBudget; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * replace status of the specified PodDisruptionBudget + * @param name name of the PodDisruptionBudget + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public replaceNamespacedPodDisruptionBudgetStatus (name: string, namespace: string, body: V1beta1PodDisruptionBudget, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1beta1PodDisruptionBudget; }> { + const localVarPath = this.basePath + '/apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets/{name}/status' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling replaceNamespacedPodDisruptionBudgetStatus.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling replaceNamespacedPodDisruptionBudgetStatus.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling replaceNamespacedPodDisruptionBudgetStatus.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PUT', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta1PodDisruptionBudget; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } +} +export enum RbacAuthorizationApiApiKeys { + BearerToken, +} + +export class RbacAuthorizationApi { + protected _basePath = defaultBasePath; + protected defaultHeaders : any = {}; + protected _useQuerystring : boolean = false; + + protected authentications = { + 'default': new VoidAuth(), + 'BearerToken': new ApiKeyAuth('header', 'authorization'), + } + + constructor(basePath?: string); + constructor(basePathOrUsername: string, password?: string, basePath?: string) { + if (password) { + if (basePath) { + this.basePath = basePath; + } + } else { + if (basePathOrUsername) { + this.basePath = basePathOrUsername + } + } + } + + set useQuerystring(value: boolean) { + this._useQuerystring = value; + } + + set basePath(basePath: string) { + this._basePath = basePath; + } + + get basePath() { + return this._basePath; + } + + public setDefaultAuthentication(auth: Authentication) { + this.authentications.default = auth; + } + + public setApiKey(key: RbacAuthorizationApiApiKeys, value: string) { + this.authentications[RbacAuthorizationApiApiKeys[key]].apiKey = value; + } + /** + * get information of a group + */ + public getAPIGroup () : Promise<{ response: http.ClientResponse; body: V1APIGroup; }> { + const localVarPath = this.basePath + '/apis/rbac.authorization.k8s.io/'; + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1APIGroup; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } +} +export enum RbacAuthorization_v1ApiApiKeys { + BearerToken, +} + +export class RbacAuthorization_v1Api { + protected _basePath = defaultBasePath; + protected defaultHeaders : any = {}; + protected _useQuerystring : boolean = false; + + protected authentications = { + 'default': new VoidAuth(), + 'BearerToken': new ApiKeyAuth('header', 'authorization'), + } + + constructor(basePath?: string); + constructor(basePathOrUsername: string, password?: string, basePath?: string) { + if (password) { + if (basePath) { + this.basePath = basePath; + } + } else { + if (basePathOrUsername) { + this.basePath = basePathOrUsername + } + } + } + + set useQuerystring(value: boolean) { + this._useQuerystring = value; + } + + set basePath(basePath: string) { + this._basePath = basePath; + } + + get basePath() { + return this._basePath; + } + + public setDefaultAuthentication(auth: Authentication) { + this.authentications.default = auth; + } + + public setApiKey(key: RbacAuthorization_v1ApiApiKeys, value: string) { + this.authentications[RbacAuthorization_v1ApiApiKeys[key]].apiKey = value; + } + /** + * create a ClusterRole + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public createClusterRole (body: V1ClusterRole, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1ClusterRole; }> { + const localVarPath = this.basePath + '/apis/rbac.authorization.k8s.io/v1/clusterroles'; + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling createClusterRole.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'POST', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1ClusterRole; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * create a ClusterRoleBinding + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public createClusterRoleBinding (body: V1ClusterRoleBinding, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1ClusterRoleBinding; }> { + const localVarPath = this.basePath + '/apis/rbac.authorization.k8s.io/v1/clusterrolebindings'; + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling createClusterRoleBinding.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'POST', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1ClusterRoleBinding; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * create a Role + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public createNamespacedRole (namespace: string, body: V1Role, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1Role; }> { + const localVarPath = this.basePath + '/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/roles' + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling createNamespacedRole.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling createNamespacedRole.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'POST', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Role; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * create a RoleBinding + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public createNamespacedRoleBinding (namespace: string, body: V1RoleBinding, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1RoleBinding; }> { + const localVarPath = this.basePath + '/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/rolebindings' + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling createNamespacedRoleBinding.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling createNamespacedRoleBinding.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'POST', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1RoleBinding; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * delete a ClusterRole + * @param name name of the ClusterRole + * @param body + * @param pretty If 'true', then the output is pretty printed. + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. + */ + public deleteClusterRole (name: string, body: V1DeleteOptions, pretty?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string) : Promise<{ response: http.ClientResponse; body: V1Status; }> { + const localVarPath = this.basePath + '/apis/rbac.authorization.k8s.io/v1/clusterroles/{name}' + .replace('{' + 'name' + '}', String(name)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling deleteClusterRole.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling deleteClusterRole.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (gracePeriodSeconds !== undefined) { + queryParameters['gracePeriodSeconds'] = gracePeriodSeconds; + } + + if (orphanDependents !== undefined) { + queryParameters['orphanDependents'] = orphanDependents; + } + + if (propagationPolicy !== undefined) { + queryParameters['propagationPolicy'] = propagationPolicy; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'DELETE', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Status; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * delete a ClusterRoleBinding + * @param name name of the ClusterRoleBinding + * @param body + * @param pretty If 'true', then the output is pretty printed. + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. + */ + public deleteClusterRoleBinding (name: string, body: V1DeleteOptions, pretty?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string) : Promise<{ response: http.ClientResponse; body: V1Status; }> { + const localVarPath = this.basePath + '/apis/rbac.authorization.k8s.io/v1/clusterrolebindings/{name}' + .replace('{' + 'name' + '}', String(name)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling deleteClusterRoleBinding.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling deleteClusterRoleBinding.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (gracePeriodSeconds !== undefined) { + queryParameters['gracePeriodSeconds'] = gracePeriodSeconds; + } + + if (orphanDependents !== undefined) { + queryParameters['orphanDependents'] = orphanDependents; + } + + if (propagationPolicy !== undefined) { + queryParameters['propagationPolicy'] = propagationPolicy; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'DELETE', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Status; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * delete collection of ClusterRole + * @param pretty If 'true', then the output is pretty printed. + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param includeUninitialized If true, partially initialized resources are included in the response. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + * @param timeoutSeconds Timeout for the list/watch call. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public deleteCollectionClusterRole (pretty?: string, _continue?: string, fieldSelector?: string, includeUninitialized?: boolean, labelSelector?: string, limit?: number, resourceVersion?: string, timeoutSeconds?: number, watch?: boolean) : Promise<{ response: http.ClientResponse; body: V1Status; }> { + const localVarPath = this.basePath + '/apis/rbac.authorization.k8s.io/v1/clusterroles'; + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (_continue !== undefined) { + queryParameters['continue'] = _continue; + } + + if (fieldSelector !== undefined) { + queryParameters['fieldSelector'] = fieldSelector; + } + + if (includeUninitialized !== undefined) { + queryParameters['includeUninitialized'] = includeUninitialized; + } + + if (labelSelector !== undefined) { + queryParameters['labelSelector'] = labelSelector; + } + + if (limit !== undefined) { + queryParameters['limit'] = limit; + } + + if (resourceVersion !== undefined) { + queryParameters['resourceVersion'] = resourceVersion; + } + + if (timeoutSeconds !== undefined) { + queryParameters['timeoutSeconds'] = timeoutSeconds; + } + + if (watch !== undefined) { + queryParameters['watch'] = watch; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'DELETE', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Status; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * delete collection of ClusterRoleBinding + * @param pretty If 'true', then the output is pretty printed. + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param includeUninitialized If true, partially initialized resources are included in the response. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + * @param timeoutSeconds Timeout for the list/watch call. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public deleteCollectionClusterRoleBinding (pretty?: string, _continue?: string, fieldSelector?: string, includeUninitialized?: boolean, labelSelector?: string, limit?: number, resourceVersion?: string, timeoutSeconds?: number, watch?: boolean) : Promise<{ response: http.ClientResponse; body: V1Status; }> { + const localVarPath = this.basePath + '/apis/rbac.authorization.k8s.io/v1/clusterrolebindings'; + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (_continue !== undefined) { + queryParameters['continue'] = _continue; + } + + if (fieldSelector !== undefined) { + queryParameters['fieldSelector'] = fieldSelector; + } + + if (includeUninitialized !== undefined) { + queryParameters['includeUninitialized'] = includeUninitialized; + } + + if (labelSelector !== undefined) { + queryParameters['labelSelector'] = labelSelector; + } + + if (limit !== undefined) { + queryParameters['limit'] = limit; + } + + if (resourceVersion !== undefined) { + queryParameters['resourceVersion'] = resourceVersion; + } + + if (timeoutSeconds !== undefined) { + queryParameters['timeoutSeconds'] = timeoutSeconds; + } + + if (watch !== undefined) { + queryParameters['watch'] = watch; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'DELETE', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Status; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * delete collection of Role + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If 'true', then the output is pretty printed. + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param includeUninitialized If true, partially initialized resources are included in the response. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + * @param timeoutSeconds Timeout for the list/watch call. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public deleteCollectionNamespacedRole (namespace: string, pretty?: string, _continue?: string, fieldSelector?: string, includeUninitialized?: boolean, labelSelector?: string, limit?: number, resourceVersion?: string, timeoutSeconds?: number, watch?: boolean) : Promise<{ response: http.ClientResponse; body: V1Status; }> { + const localVarPath = this.basePath + '/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/roles' + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling deleteCollectionNamespacedRole.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (_continue !== undefined) { + queryParameters['continue'] = _continue; + } + + if (fieldSelector !== undefined) { + queryParameters['fieldSelector'] = fieldSelector; + } + + if (includeUninitialized !== undefined) { + queryParameters['includeUninitialized'] = includeUninitialized; + } + + if (labelSelector !== undefined) { + queryParameters['labelSelector'] = labelSelector; + } + + if (limit !== undefined) { + queryParameters['limit'] = limit; + } + + if (resourceVersion !== undefined) { + queryParameters['resourceVersion'] = resourceVersion; + } + + if (timeoutSeconds !== undefined) { + queryParameters['timeoutSeconds'] = timeoutSeconds; + } + + if (watch !== undefined) { + queryParameters['watch'] = watch; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'DELETE', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Status; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * delete collection of RoleBinding + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If 'true', then the output is pretty printed. + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param includeUninitialized If true, partially initialized resources are included in the response. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + * @param timeoutSeconds Timeout for the list/watch call. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public deleteCollectionNamespacedRoleBinding (namespace: string, pretty?: string, _continue?: string, fieldSelector?: string, includeUninitialized?: boolean, labelSelector?: string, limit?: number, resourceVersion?: string, timeoutSeconds?: number, watch?: boolean) : Promise<{ response: http.ClientResponse; body: V1Status; }> { + const localVarPath = this.basePath + '/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/rolebindings' + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling deleteCollectionNamespacedRoleBinding.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (_continue !== undefined) { + queryParameters['continue'] = _continue; + } + + if (fieldSelector !== undefined) { + queryParameters['fieldSelector'] = fieldSelector; + } + + if (includeUninitialized !== undefined) { + queryParameters['includeUninitialized'] = includeUninitialized; + } + + if (labelSelector !== undefined) { + queryParameters['labelSelector'] = labelSelector; + } + + if (limit !== undefined) { + queryParameters['limit'] = limit; + } + + if (resourceVersion !== undefined) { + queryParameters['resourceVersion'] = resourceVersion; + } + + if (timeoutSeconds !== undefined) { + queryParameters['timeoutSeconds'] = timeoutSeconds; + } + + if (watch !== undefined) { + queryParameters['watch'] = watch; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'DELETE', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Status; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * delete a Role + * @param name name of the Role + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. + */ + public deleteNamespacedRole (name: string, namespace: string, body: V1DeleteOptions, pretty?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string) : Promise<{ response: http.ClientResponse; body: V1Status; }> { + const localVarPath = this.basePath + '/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/roles/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling deleteNamespacedRole.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling deleteNamespacedRole.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling deleteNamespacedRole.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (gracePeriodSeconds !== undefined) { + queryParameters['gracePeriodSeconds'] = gracePeriodSeconds; + } + + if (orphanDependents !== undefined) { + queryParameters['orphanDependents'] = orphanDependents; + } + + if (propagationPolicy !== undefined) { + queryParameters['propagationPolicy'] = propagationPolicy; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'DELETE', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Status; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * delete a RoleBinding + * @param name name of the RoleBinding + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. + */ + public deleteNamespacedRoleBinding (name: string, namespace: string, body: V1DeleteOptions, pretty?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string) : Promise<{ response: http.ClientResponse; body: V1Status; }> { + const localVarPath = this.basePath + '/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/rolebindings/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling deleteNamespacedRoleBinding.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling deleteNamespacedRoleBinding.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling deleteNamespacedRoleBinding.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (gracePeriodSeconds !== undefined) { + queryParameters['gracePeriodSeconds'] = gracePeriodSeconds; + } + + if (orphanDependents !== undefined) { + queryParameters['orphanDependents'] = orphanDependents; + } + + if (propagationPolicy !== undefined) { + queryParameters['propagationPolicy'] = propagationPolicy; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'DELETE', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Status; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * get available resources + */ + public getAPIResources () : Promise<{ response: http.ClientResponse; body: V1APIResourceList; }> { + const localVarPath = this.basePath + '/apis/rbac.authorization.k8s.io/v1/'; + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1APIResourceList; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * list or watch objects of kind ClusterRole + * @param pretty If 'true', then the output is pretty printed. + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param includeUninitialized If true, partially initialized resources are included in the response. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + * @param timeoutSeconds Timeout for the list/watch call. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public listClusterRole (pretty?: string, _continue?: string, fieldSelector?: string, includeUninitialized?: boolean, labelSelector?: string, limit?: number, resourceVersion?: string, timeoutSeconds?: number, watch?: boolean) : Promise<{ response: http.ClientResponse; body: V1ClusterRoleList; }> { + const localVarPath = this.basePath + '/apis/rbac.authorization.k8s.io/v1/clusterroles'; + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (_continue !== undefined) { + queryParameters['continue'] = _continue; + } + + if (fieldSelector !== undefined) { + queryParameters['fieldSelector'] = fieldSelector; + } + + if (includeUninitialized !== undefined) { + queryParameters['includeUninitialized'] = includeUninitialized; + } + + if (labelSelector !== undefined) { + queryParameters['labelSelector'] = labelSelector; + } + + if (limit !== undefined) { + queryParameters['limit'] = limit; + } + + if (resourceVersion !== undefined) { + queryParameters['resourceVersion'] = resourceVersion; + } + + if (timeoutSeconds !== undefined) { + queryParameters['timeoutSeconds'] = timeoutSeconds; + } + + if (watch !== undefined) { + queryParameters['watch'] = watch; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1ClusterRoleList; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * list or watch objects of kind ClusterRoleBinding + * @param pretty If 'true', then the output is pretty printed. + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param includeUninitialized If true, partially initialized resources are included in the response. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + * @param timeoutSeconds Timeout for the list/watch call. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public listClusterRoleBinding (pretty?: string, _continue?: string, fieldSelector?: string, includeUninitialized?: boolean, labelSelector?: string, limit?: number, resourceVersion?: string, timeoutSeconds?: number, watch?: boolean) : Promise<{ response: http.ClientResponse; body: V1ClusterRoleBindingList; }> { + const localVarPath = this.basePath + '/apis/rbac.authorization.k8s.io/v1/clusterrolebindings'; + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (_continue !== undefined) { + queryParameters['continue'] = _continue; + } + + if (fieldSelector !== undefined) { + queryParameters['fieldSelector'] = fieldSelector; + } + + if (includeUninitialized !== undefined) { + queryParameters['includeUninitialized'] = includeUninitialized; + } + + if (labelSelector !== undefined) { + queryParameters['labelSelector'] = labelSelector; + } + + if (limit !== undefined) { + queryParameters['limit'] = limit; + } + + if (resourceVersion !== undefined) { + queryParameters['resourceVersion'] = resourceVersion; + } + + if (timeoutSeconds !== undefined) { + queryParameters['timeoutSeconds'] = timeoutSeconds; + } + + if (watch !== undefined) { + queryParameters['watch'] = watch; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1ClusterRoleBindingList; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * list or watch objects of kind Role + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If 'true', then the output is pretty printed. + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param includeUninitialized If true, partially initialized resources are included in the response. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + * @param timeoutSeconds Timeout for the list/watch call. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public listNamespacedRole (namespace: string, pretty?: string, _continue?: string, fieldSelector?: string, includeUninitialized?: boolean, labelSelector?: string, limit?: number, resourceVersion?: string, timeoutSeconds?: number, watch?: boolean) : Promise<{ response: http.ClientResponse; body: V1RoleList; }> { + const localVarPath = this.basePath + '/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/roles' + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling listNamespacedRole.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (_continue !== undefined) { + queryParameters['continue'] = _continue; + } + + if (fieldSelector !== undefined) { + queryParameters['fieldSelector'] = fieldSelector; + } + + if (includeUninitialized !== undefined) { + queryParameters['includeUninitialized'] = includeUninitialized; + } + + if (labelSelector !== undefined) { + queryParameters['labelSelector'] = labelSelector; + } + + if (limit !== undefined) { + queryParameters['limit'] = limit; + } + + if (resourceVersion !== undefined) { + queryParameters['resourceVersion'] = resourceVersion; + } + + if (timeoutSeconds !== undefined) { + queryParameters['timeoutSeconds'] = timeoutSeconds; + } + + if (watch !== undefined) { + queryParameters['watch'] = watch; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1RoleList; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * list or watch objects of kind RoleBinding + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If 'true', then the output is pretty printed. + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param includeUninitialized If true, partially initialized resources are included in the response. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + * @param timeoutSeconds Timeout for the list/watch call. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public listNamespacedRoleBinding (namespace: string, pretty?: string, _continue?: string, fieldSelector?: string, includeUninitialized?: boolean, labelSelector?: string, limit?: number, resourceVersion?: string, timeoutSeconds?: number, watch?: boolean) : Promise<{ response: http.ClientResponse; body: V1RoleBindingList; }> { + const localVarPath = this.basePath + '/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/rolebindings' + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling listNamespacedRoleBinding.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (_continue !== undefined) { + queryParameters['continue'] = _continue; + } + + if (fieldSelector !== undefined) { + queryParameters['fieldSelector'] = fieldSelector; + } + + if (includeUninitialized !== undefined) { + queryParameters['includeUninitialized'] = includeUninitialized; + } + + if (labelSelector !== undefined) { + queryParameters['labelSelector'] = labelSelector; + } + + if (limit !== undefined) { + queryParameters['limit'] = limit; + } + + if (resourceVersion !== undefined) { + queryParameters['resourceVersion'] = resourceVersion; + } + + if (timeoutSeconds !== undefined) { + queryParameters['timeoutSeconds'] = timeoutSeconds; + } + + if (watch !== undefined) { + queryParameters['watch'] = watch; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1RoleBindingList; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * list or watch objects of kind RoleBinding + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param includeUninitialized If true, partially initialized resources are included in the response. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param pretty If 'true', then the output is pretty printed. + * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + * @param timeoutSeconds Timeout for the list/watch call. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public listRoleBindingForAllNamespaces (_continue?: string, fieldSelector?: string, includeUninitialized?: boolean, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, timeoutSeconds?: number, watch?: boolean) : Promise<{ response: http.ClientResponse; body: V1RoleBindingList; }> { + const localVarPath = this.basePath + '/apis/rbac.authorization.k8s.io/v1/rolebindings'; + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + if (_continue !== undefined) { + queryParameters['continue'] = _continue; + } + + if (fieldSelector !== undefined) { + queryParameters['fieldSelector'] = fieldSelector; + } + + if (includeUninitialized !== undefined) { + queryParameters['includeUninitialized'] = includeUninitialized; + } + + if (labelSelector !== undefined) { + queryParameters['labelSelector'] = labelSelector; + } + + if (limit !== undefined) { + queryParameters['limit'] = limit; + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (resourceVersion !== undefined) { + queryParameters['resourceVersion'] = resourceVersion; + } + + if (timeoutSeconds !== undefined) { + queryParameters['timeoutSeconds'] = timeoutSeconds; + } + + if (watch !== undefined) { + queryParameters['watch'] = watch; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1RoleBindingList; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * list or watch objects of kind Role + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param includeUninitialized If true, partially initialized resources are included in the response. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param pretty If 'true', then the output is pretty printed. + * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + * @param timeoutSeconds Timeout for the list/watch call. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public listRoleForAllNamespaces (_continue?: string, fieldSelector?: string, includeUninitialized?: boolean, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, timeoutSeconds?: number, watch?: boolean) : Promise<{ response: http.ClientResponse; body: V1RoleList; }> { + const localVarPath = this.basePath + '/apis/rbac.authorization.k8s.io/v1/roles'; + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + if (_continue !== undefined) { + queryParameters['continue'] = _continue; + } + + if (fieldSelector !== undefined) { + queryParameters['fieldSelector'] = fieldSelector; + } + + if (includeUninitialized !== undefined) { + queryParameters['includeUninitialized'] = includeUninitialized; + } + + if (labelSelector !== undefined) { + queryParameters['labelSelector'] = labelSelector; + } + + if (limit !== undefined) { + queryParameters['limit'] = limit; + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (resourceVersion !== undefined) { + queryParameters['resourceVersion'] = resourceVersion; + } + + if (timeoutSeconds !== undefined) { + queryParameters['timeoutSeconds'] = timeoutSeconds; + } + + if (watch !== undefined) { + queryParameters['watch'] = watch; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1RoleList; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * partially update the specified ClusterRole + * @param name name of the ClusterRole + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public patchClusterRole (name: string, body: any, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1ClusterRole; }> { + const localVarPath = this.basePath + '/apis/rbac.authorization.k8s.io/v1/clusterroles/{name}' + .replace('{' + 'name' + '}', String(name)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling patchClusterRole.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling patchClusterRole.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PATCH', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1ClusterRole; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * partially update the specified ClusterRoleBinding + * @param name name of the ClusterRoleBinding + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public patchClusterRoleBinding (name: string, body: any, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1ClusterRoleBinding; }> { + const localVarPath = this.basePath + '/apis/rbac.authorization.k8s.io/v1/clusterrolebindings/{name}' + .replace('{' + 'name' + '}', String(name)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling patchClusterRoleBinding.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling patchClusterRoleBinding.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PATCH', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1ClusterRoleBinding; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * partially update the specified Role + * @param name name of the Role + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public patchNamespacedRole (name: string, namespace: string, body: any, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1Role; }> { + const localVarPath = this.basePath + '/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/roles/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling patchNamespacedRole.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling patchNamespacedRole.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling patchNamespacedRole.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PATCH', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Role; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * partially update the specified RoleBinding + * @param name name of the RoleBinding + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public patchNamespacedRoleBinding (name: string, namespace: string, body: any, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1RoleBinding; }> { + const localVarPath = this.basePath + '/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/rolebindings/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling patchNamespacedRoleBinding.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling patchNamespacedRoleBinding.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling patchNamespacedRoleBinding.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PATCH', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1RoleBinding; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * read the specified ClusterRole + * @param name name of the ClusterRole + * @param pretty If 'true', then the output is pretty printed. + */ + public readClusterRole (name: string, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1ClusterRole; }> { + const localVarPath = this.basePath + '/apis/rbac.authorization.k8s.io/v1/clusterroles/{name}' + .replace('{' + 'name' + '}', String(name)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling readClusterRole.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1ClusterRole; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * read the specified ClusterRoleBinding + * @param name name of the ClusterRoleBinding + * @param pretty If 'true', then the output is pretty printed. + */ + public readClusterRoleBinding (name: string, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1ClusterRoleBinding; }> { + const localVarPath = this.basePath + '/apis/rbac.authorization.k8s.io/v1/clusterrolebindings/{name}' + .replace('{' + 'name' + '}', String(name)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling readClusterRoleBinding.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1ClusterRoleBinding; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * read the specified Role + * @param name name of the Role + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If 'true', then the output is pretty printed. + */ + public readNamespacedRole (name: string, namespace: string, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1Role; }> { + const localVarPath = this.basePath + '/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/roles/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling readNamespacedRole.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling readNamespacedRole.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Role; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * read the specified RoleBinding + * @param name name of the RoleBinding + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If 'true', then the output is pretty printed. + */ + public readNamespacedRoleBinding (name: string, namespace: string, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1RoleBinding; }> { + const localVarPath = this.basePath + '/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/rolebindings/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling readNamespacedRoleBinding.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling readNamespacedRoleBinding.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1RoleBinding; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * replace the specified ClusterRole + * @param name name of the ClusterRole + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public replaceClusterRole (name: string, body: V1ClusterRole, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1ClusterRole; }> { + const localVarPath = this.basePath + '/apis/rbac.authorization.k8s.io/v1/clusterroles/{name}' + .replace('{' + 'name' + '}', String(name)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling replaceClusterRole.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling replaceClusterRole.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PUT', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1ClusterRole; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * replace the specified ClusterRoleBinding + * @param name name of the ClusterRoleBinding + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public replaceClusterRoleBinding (name: string, body: V1ClusterRoleBinding, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1ClusterRoleBinding; }> { + const localVarPath = this.basePath + '/apis/rbac.authorization.k8s.io/v1/clusterrolebindings/{name}' + .replace('{' + 'name' + '}', String(name)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling replaceClusterRoleBinding.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling replaceClusterRoleBinding.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PUT', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1ClusterRoleBinding; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * replace the specified Role + * @param name name of the Role + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public replaceNamespacedRole (name: string, namespace: string, body: V1Role, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1Role; }> { + const localVarPath = this.basePath + '/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/roles/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling replaceNamespacedRole.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling replaceNamespacedRole.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling replaceNamespacedRole.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PUT', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Role; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * replace the specified RoleBinding + * @param name name of the RoleBinding + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public replaceNamespacedRoleBinding (name: string, namespace: string, body: V1RoleBinding, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1RoleBinding; }> { + const localVarPath = this.basePath + '/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/rolebindings/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling replaceNamespacedRoleBinding.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling replaceNamespacedRoleBinding.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling replaceNamespacedRoleBinding.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PUT', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1RoleBinding; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } +} +export enum RbacAuthorization_v1alpha1ApiApiKeys { + BearerToken, +} + +export class RbacAuthorization_v1alpha1Api { + protected _basePath = defaultBasePath; + protected defaultHeaders : any = {}; + protected _useQuerystring : boolean = false; + + protected authentications = { + 'default': new VoidAuth(), + 'BearerToken': new ApiKeyAuth('header', 'authorization'), + } + + constructor(basePath?: string); + constructor(basePathOrUsername: string, password?: string, basePath?: string) { + if (password) { + if (basePath) { + this.basePath = basePath; + } + } else { + if (basePathOrUsername) { + this.basePath = basePathOrUsername + } + } + } + + set useQuerystring(value: boolean) { + this._useQuerystring = value; + } + + set basePath(basePath: string) { + this._basePath = basePath; + } + + get basePath() { + return this._basePath; + } + + public setDefaultAuthentication(auth: Authentication) { + this.authentications.default = auth; + } + + public setApiKey(key: RbacAuthorization_v1alpha1ApiApiKeys, value: string) { + this.authentications[RbacAuthorization_v1alpha1ApiApiKeys[key]].apiKey = value; + } + /** + * create a ClusterRole + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public createClusterRole (body: V1alpha1ClusterRole, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1alpha1ClusterRole; }> { + const localVarPath = this.basePath + '/apis/rbac.authorization.k8s.io/v1alpha1/clusterroles'; + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling createClusterRole.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'POST', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1alpha1ClusterRole; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * create a ClusterRoleBinding + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public createClusterRoleBinding (body: V1alpha1ClusterRoleBinding, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1alpha1ClusterRoleBinding; }> { + const localVarPath = this.basePath + '/apis/rbac.authorization.k8s.io/v1alpha1/clusterrolebindings'; + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling createClusterRoleBinding.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'POST', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1alpha1ClusterRoleBinding; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * create a Role + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public createNamespacedRole (namespace: string, body: V1alpha1Role, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1alpha1Role; }> { + const localVarPath = this.basePath + '/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/roles' + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling createNamespacedRole.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling createNamespacedRole.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'POST', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1alpha1Role; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * create a RoleBinding + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public createNamespacedRoleBinding (namespace: string, body: V1alpha1RoleBinding, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1alpha1RoleBinding; }> { + const localVarPath = this.basePath + '/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/rolebindings' + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling createNamespacedRoleBinding.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling createNamespacedRoleBinding.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'POST', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1alpha1RoleBinding; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * delete a ClusterRole + * @param name name of the ClusterRole + * @param body + * @param pretty If 'true', then the output is pretty printed. + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. + */ + public deleteClusterRole (name: string, body: V1DeleteOptions, pretty?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string) : Promise<{ response: http.ClientResponse; body: V1Status; }> { + const localVarPath = this.basePath + '/apis/rbac.authorization.k8s.io/v1alpha1/clusterroles/{name}' + .replace('{' + 'name' + '}', String(name)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling deleteClusterRole.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling deleteClusterRole.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (gracePeriodSeconds !== undefined) { + queryParameters['gracePeriodSeconds'] = gracePeriodSeconds; + } + + if (orphanDependents !== undefined) { + queryParameters['orphanDependents'] = orphanDependents; + } + + if (propagationPolicy !== undefined) { + queryParameters['propagationPolicy'] = propagationPolicy; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'DELETE', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Status; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * delete a ClusterRoleBinding + * @param name name of the ClusterRoleBinding + * @param body + * @param pretty If 'true', then the output is pretty printed. + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. + */ + public deleteClusterRoleBinding (name: string, body: V1DeleteOptions, pretty?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string) : Promise<{ response: http.ClientResponse; body: V1Status; }> { + const localVarPath = this.basePath + '/apis/rbac.authorization.k8s.io/v1alpha1/clusterrolebindings/{name}' + .replace('{' + 'name' + '}', String(name)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling deleteClusterRoleBinding.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling deleteClusterRoleBinding.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (gracePeriodSeconds !== undefined) { + queryParameters['gracePeriodSeconds'] = gracePeriodSeconds; + } + + if (orphanDependents !== undefined) { + queryParameters['orphanDependents'] = orphanDependents; + } + + if (propagationPolicy !== undefined) { + queryParameters['propagationPolicy'] = propagationPolicy; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'DELETE', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Status; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * delete collection of ClusterRole + * @param pretty If 'true', then the output is pretty printed. + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param includeUninitialized If true, partially initialized resources are included in the response. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + * @param timeoutSeconds Timeout for the list/watch call. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public deleteCollectionClusterRole (pretty?: string, _continue?: string, fieldSelector?: string, includeUninitialized?: boolean, labelSelector?: string, limit?: number, resourceVersion?: string, timeoutSeconds?: number, watch?: boolean) : Promise<{ response: http.ClientResponse; body: V1Status; }> { + const localVarPath = this.basePath + '/apis/rbac.authorization.k8s.io/v1alpha1/clusterroles'; + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (_continue !== undefined) { + queryParameters['continue'] = _continue; + } + + if (fieldSelector !== undefined) { + queryParameters['fieldSelector'] = fieldSelector; + } + + if (includeUninitialized !== undefined) { + queryParameters['includeUninitialized'] = includeUninitialized; + } + + if (labelSelector !== undefined) { + queryParameters['labelSelector'] = labelSelector; + } + + if (limit !== undefined) { + queryParameters['limit'] = limit; + } + + if (resourceVersion !== undefined) { + queryParameters['resourceVersion'] = resourceVersion; + } + + if (timeoutSeconds !== undefined) { + queryParameters['timeoutSeconds'] = timeoutSeconds; + } + + if (watch !== undefined) { + queryParameters['watch'] = watch; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'DELETE', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Status; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * delete collection of ClusterRoleBinding + * @param pretty If 'true', then the output is pretty printed. + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param includeUninitialized If true, partially initialized resources are included in the response. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + * @param timeoutSeconds Timeout for the list/watch call. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public deleteCollectionClusterRoleBinding (pretty?: string, _continue?: string, fieldSelector?: string, includeUninitialized?: boolean, labelSelector?: string, limit?: number, resourceVersion?: string, timeoutSeconds?: number, watch?: boolean) : Promise<{ response: http.ClientResponse; body: V1Status; }> { + const localVarPath = this.basePath + '/apis/rbac.authorization.k8s.io/v1alpha1/clusterrolebindings'; + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (_continue !== undefined) { + queryParameters['continue'] = _continue; + } + + if (fieldSelector !== undefined) { + queryParameters['fieldSelector'] = fieldSelector; + } + + if (includeUninitialized !== undefined) { + queryParameters['includeUninitialized'] = includeUninitialized; + } + + if (labelSelector !== undefined) { + queryParameters['labelSelector'] = labelSelector; + } + + if (limit !== undefined) { + queryParameters['limit'] = limit; + } + + if (resourceVersion !== undefined) { + queryParameters['resourceVersion'] = resourceVersion; + } + + if (timeoutSeconds !== undefined) { + queryParameters['timeoutSeconds'] = timeoutSeconds; + } + + if (watch !== undefined) { + queryParameters['watch'] = watch; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'DELETE', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Status; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * delete collection of Role + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If 'true', then the output is pretty printed. + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param includeUninitialized If true, partially initialized resources are included in the response. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + * @param timeoutSeconds Timeout for the list/watch call. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public deleteCollectionNamespacedRole (namespace: string, pretty?: string, _continue?: string, fieldSelector?: string, includeUninitialized?: boolean, labelSelector?: string, limit?: number, resourceVersion?: string, timeoutSeconds?: number, watch?: boolean) : Promise<{ response: http.ClientResponse; body: V1Status; }> { + const localVarPath = this.basePath + '/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/roles' + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling deleteCollectionNamespacedRole.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (_continue !== undefined) { + queryParameters['continue'] = _continue; + } + + if (fieldSelector !== undefined) { + queryParameters['fieldSelector'] = fieldSelector; + } + + if (includeUninitialized !== undefined) { + queryParameters['includeUninitialized'] = includeUninitialized; + } + + if (labelSelector !== undefined) { + queryParameters['labelSelector'] = labelSelector; + } + + if (limit !== undefined) { + queryParameters['limit'] = limit; + } + + if (resourceVersion !== undefined) { + queryParameters['resourceVersion'] = resourceVersion; + } + + if (timeoutSeconds !== undefined) { + queryParameters['timeoutSeconds'] = timeoutSeconds; + } + + if (watch !== undefined) { + queryParameters['watch'] = watch; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'DELETE', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Status; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * delete collection of RoleBinding + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If 'true', then the output is pretty printed. + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param includeUninitialized If true, partially initialized resources are included in the response. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + * @param timeoutSeconds Timeout for the list/watch call. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public deleteCollectionNamespacedRoleBinding (namespace: string, pretty?: string, _continue?: string, fieldSelector?: string, includeUninitialized?: boolean, labelSelector?: string, limit?: number, resourceVersion?: string, timeoutSeconds?: number, watch?: boolean) : Promise<{ response: http.ClientResponse; body: V1Status; }> { + const localVarPath = this.basePath + '/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/rolebindings' + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling deleteCollectionNamespacedRoleBinding.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (_continue !== undefined) { + queryParameters['continue'] = _continue; + } + + if (fieldSelector !== undefined) { + queryParameters['fieldSelector'] = fieldSelector; + } + + if (includeUninitialized !== undefined) { + queryParameters['includeUninitialized'] = includeUninitialized; + } + + if (labelSelector !== undefined) { + queryParameters['labelSelector'] = labelSelector; + } + + if (limit !== undefined) { + queryParameters['limit'] = limit; + } + + if (resourceVersion !== undefined) { + queryParameters['resourceVersion'] = resourceVersion; + } + + if (timeoutSeconds !== undefined) { + queryParameters['timeoutSeconds'] = timeoutSeconds; + } + + if (watch !== undefined) { + queryParameters['watch'] = watch; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'DELETE', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Status; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * delete a Role + * @param name name of the Role + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. + */ + public deleteNamespacedRole (name: string, namespace: string, body: V1DeleteOptions, pretty?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string) : Promise<{ response: http.ClientResponse; body: V1Status; }> { + const localVarPath = this.basePath + '/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/roles/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling deleteNamespacedRole.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling deleteNamespacedRole.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling deleteNamespacedRole.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (gracePeriodSeconds !== undefined) { + queryParameters['gracePeriodSeconds'] = gracePeriodSeconds; + } + + if (orphanDependents !== undefined) { + queryParameters['orphanDependents'] = orphanDependents; + } + + if (propagationPolicy !== undefined) { + queryParameters['propagationPolicy'] = propagationPolicy; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'DELETE', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Status; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * delete a RoleBinding + * @param name name of the RoleBinding + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. + */ + public deleteNamespacedRoleBinding (name: string, namespace: string, body: V1DeleteOptions, pretty?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string) : Promise<{ response: http.ClientResponse; body: V1Status; }> { + const localVarPath = this.basePath + '/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/rolebindings/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling deleteNamespacedRoleBinding.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling deleteNamespacedRoleBinding.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling deleteNamespacedRoleBinding.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (gracePeriodSeconds !== undefined) { + queryParameters['gracePeriodSeconds'] = gracePeriodSeconds; + } + + if (orphanDependents !== undefined) { + queryParameters['orphanDependents'] = orphanDependents; + } + + if (propagationPolicy !== undefined) { + queryParameters['propagationPolicy'] = propagationPolicy; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'DELETE', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Status; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * get available resources + */ + public getAPIResources () : Promise<{ response: http.ClientResponse; body: V1APIResourceList; }> { + const localVarPath = this.basePath + '/apis/rbac.authorization.k8s.io/v1alpha1/'; + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1APIResourceList; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * list or watch objects of kind ClusterRole + * @param pretty If 'true', then the output is pretty printed. + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param includeUninitialized If true, partially initialized resources are included in the response. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + * @param timeoutSeconds Timeout for the list/watch call. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public listClusterRole (pretty?: string, _continue?: string, fieldSelector?: string, includeUninitialized?: boolean, labelSelector?: string, limit?: number, resourceVersion?: string, timeoutSeconds?: number, watch?: boolean) : Promise<{ response: http.ClientResponse; body: V1alpha1ClusterRoleList; }> { + const localVarPath = this.basePath + '/apis/rbac.authorization.k8s.io/v1alpha1/clusterroles'; + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (_continue !== undefined) { + queryParameters['continue'] = _continue; + } + + if (fieldSelector !== undefined) { + queryParameters['fieldSelector'] = fieldSelector; + } + + if (includeUninitialized !== undefined) { + queryParameters['includeUninitialized'] = includeUninitialized; + } + + if (labelSelector !== undefined) { + queryParameters['labelSelector'] = labelSelector; + } + + if (limit !== undefined) { + queryParameters['limit'] = limit; + } + + if (resourceVersion !== undefined) { + queryParameters['resourceVersion'] = resourceVersion; + } + + if (timeoutSeconds !== undefined) { + queryParameters['timeoutSeconds'] = timeoutSeconds; + } + + if (watch !== undefined) { + queryParameters['watch'] = watch; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1alpha1ClusterRoleList; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * list or watch objects of kind ClusterRoleBinding + * @param pretty If 'true', then the output is pretty printed. + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param includeUninitialized If true, partially initialized resources are included in the response. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + * @param timeoutSeconds Timeout for the list/watch call. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public listClusterRoleBinding (pretty?: string, _continue?: string, fieldSelector?: string, includeUninitialized?: boolean, labelSelector?: string, limit?: number, resourceVersion?: string, timeoutSeconds?: number, watch?: boolean) : Promise<{ response: http.ClientResponse; body: V1alpha1ClusterRoleBindingList; }> { + const localVarPath = this.basePath + '/apis/rbac.authorization.k8s.io/v1alpha1/clusterrolebindings'; + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (_continue !== undefined) { + queryParameters['continue'] = _continue; + } + + if (fieldSelector !== undefined) { + queryParameters['fieldSelector'] = fieldSelector; + } + + if (includeUninitialized !== undefined) { + queryParameters['includeUninitialized'] = includeUninitialized; + } + + if (labelSelector !== undefined) { + queryParameters['labelSelector'] = labelSelector; + } + + if (limit !== undefined) { + queryParameters['limit'] = limit; + } + + if (resourceVersion !== undefined) { + queryParameters['resourceVersion'] = resourceVersion; + } + + if (timeoutSeconds !== undefined) { + queryParameters['timeoutSeconds'] = timeoutSeconds; + } + + if (watch !== undefined) { + queryParameters['watch'] = watch; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1alpha1ClusterRoleBindingList; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * list or watch objects of kind Role + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If 'true', then the output is pretty printed. + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param includeUninitialized If true, partially initialized resources are included in the response. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + * @param timeoutSeconds Timeout for the list/watch call. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public listNamespacedRole (namespace: string, pretty?: string, _continue?: string, fieldSelector?: string, includeUninitialized?: boolean, labelSelector?: string, limit?: number, resourceVersion?: string, timeoutSeconds?: number, watch?: boolean) : Promise<{ response: http.ClientResponse; body: V1alpha1RoleList; }> { + const localVarPath = this.basePath + '/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/roles' + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling listNamespacedRole.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (_continue !== undefined) { + queryParameters['continue'] = _continue; + } + + if (fieldSelector !== undefined) { + queryParameters['fieldSelector'] = fieldSelector; + } + + if (includeUninitialized !== undefined) { + queryParameters['includeUninitialized'] = includeUninitialized; + } + + if (labelSelector !== undefined) { + queryParameters['labelSelector'] = labelSelector; + } + + if (limit !== undefined) { + queryParameters['limit'] = limit; + } + + if (resourceVersion !== undefined) { + queryParameters['resourceVersion'] = resourceVersion; + } + + if (timeoutSeconds !== undefined) { + queryParameters['timeoutSeconds'] = timeoutSeconds; + } + + if (watch !== undefined) { + queryParameters['watch'] = watch; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1alpha1RoleList; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * list or watch objects of kind RoleBinding + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If 'true', then the output is pretty printed. + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param includeUninitialized If true, partially initialized resources are included in the response. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + * @param timeoutSeconds Timeout for the list/watch call. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public listNamespacedRoleBinding (namespace: string, pretty?: string, _continue?: string, fieldSelector?: string, includeUninitialized?: boolean, labelSelector?: string, limit?: number, resourceVersion?: string, timeoutSeconds?: number, watch?: boolean) : Promise<{ response: http.ClientResponse; body: V1alpha1RoleBindingList; }> { + const localVarPath = this.basePath + '/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/rolebindings' + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling listNamespacedRoleBinding.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (_continue !== undefined) { + queryParameters['continue'] = _continue; + } + + if (fieldSelector !== undefined) { + queryParameters['fieldSelector'] = fieldSelector; + } + + if (includeUninitialized !== undefined) { + queryParameters['includeUninitialized'] = includeUninitialized; + } + + if (labelSelector !== undefined) { + queryParameters['labelSelector'] = labelSelector; + } + + if (limit !== undefined) { + queryParameters['limit'] = limit; + } + + if (resourceVersion !== undefined) { + queryParameters['resourceVersion'] = resourceVersion; + } + + if (timeoutSeconds !== undefined) { + queryParameters['timeoutSeconds'] = timeoutSeconds; + } + + if (watch !== undefined) { + queryParameters['watch'] = watch; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1alpha1RoleBindingList; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * list or watch objects of kind RoleBinding + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param includeUninitialized If true, partially initialized resources are included in the response. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param pretty If 'true', then the output is pretty printed. + * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + * @param timeoutSeconds Timeout for the list/watch call. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public listRoleBindingForAllNamespaces (_continue?: string, fieldSelector?: string, includeUninitialized?: boolean, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, timeoutSeconds?: number, watch?: boolean) : Promise<{ response: http.ClientResponse; body: V1alpha1RoleBindingList; }> { + const localVarPath = this.basePath + '/apis/rbac.authorization.k8s.io/v1alpha1/rolebindings'; + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + if (_continue !== undefined) { + queryParameters['continue'] = _continue; + } + + if (fieldSelector !== undefined) { + queryParameters['fieldSelector'] = fieldSelector; + } + + if (includeUninitialized !== undefined) { + queryParameters['includeUninitialized'] = includeUninitialized; + } + + if (labelSelector !== undefined) { + queryParameters['labelSelector'] = labelSelector; + } + + if (limit !== undefined) { + queryParameters['limit'] = limit; + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (resourceVersion !== undefined) { + queryParameters['resourceVersion'] = resourceVersion; + } + + if (timeoutSeconds !== undefined) { + queryParameters['timeoutSeconds'] = timeoutSeconds; + } + + if (watch !== undefined) { + queryParameters['watch'] = watch; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1alpha1RoleBindingList; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * list or watch objects of kind Role + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param includeUninitialized If true, partially initialized resources are included in the response. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param pretty If 'true', then the output is pretty printed. + * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + * @param timeoutSeconds Timeout for the list/watch call. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public listRoleForAllNamespaces (_continue?: string, fieldSelector?: string, includeUninitialized?: boolean, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, timeoutSeconds?: number, watch?: boolean) : Promise<{ response: http.ClientResponse; body: V1alpha1RoleList; }> { + const localVarPath = this.basePath + '/apis/rbac.authorization.k8s.io/v1alpha1/roles'; + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + if (_continue !== undefined) { + queryParameters['continue'] = _continue; + } + + if (fieldSelector !== undefined) { + queryParameters['fieldSelector'] = fieldSelector; + } + + if (includeUninitialized !== undefined) { + queryParameters['includeUninitialized'] = includeUninitialized; + } + + if (labelSelector !== undefined) { + queryParameters['labelSelector'] = labelSelector; + } + + if (limit !== undefined) { + queryParameters['limit'] = limit; + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (resourceVersion !== undefined) { + queryParameters['resourceVersion'] = resourceVersion; + } + + if (timeoutSeconds !== undefined) { + queryParameters['timeoutSeconds'] = timeoutSeconds; + } + + if (watch !== undefined) { + queryParameters['watch'] = watch; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1alpha1RoleList; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * partially update the specified ClusterRole + * @param name name of the ClusterRole + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public patchClusterRole (name: string, body: any, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1alpha1ClusterRole; }> { + const localVarPath = this.basePath + '/apis/rbac.authorization.k8s.io/v1alpha1/clusterroles/{name}' + .replace('{' + 'name' + '}', String(name)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling patchClusterRole.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling patchClusterRole.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PATCH', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1alpha1ClusterRole; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * partially update the specified ClusterRoleBinding + * @param name name of the ClusterRoleBinding + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public patchClusterRoleBinding (name: string, body: any, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1alpha1ClusterRoleBinding; }> { + const localVarPath = this.basePath + '/apis/rbac.authorization.k8s.io/v1alpha1/clusterrolebindings/{name}' + .replace('{' + 'name' + '}', String(name)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling patchClusterRoleBinding.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling patchClusterRoleBinding.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PATCH', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1alpha1ClusterRoleBinding; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * partially update the specified Role + * @param name name of the Role + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public patchNamespacedRole (name: string, namespace: string, body: any, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1alpha1Role; }> { + const localVarPath = this.basePath + '/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/roles/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling patchNamespacedRole.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling patchNamespacedRole.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling patchNamespacedRole.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PATCH', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1alpha1Role; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * partially update the specified RoleBinding + * @param name name of the RoleBinding + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public patchNamespacedRoleBinding (name: string, namespace: string, body: any, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1alpha1RoleBinding; }> { + const localVarPath = this.basePath + '/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/rolebindings/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling patchNamespacedRoleBinding.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling patchNamespacedRoleBinding.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling patchNamespacedRoleBinding.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PATCH', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1alpha1RoleBinding; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * read the specified ClusterRole + * @param name name of the ClusterRole + * @param pretty If 'true', then the output is pretty printed. + */ + public readClusterRole (name: string, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1alpha1ClusterRole; }> { + const localVarPath = this.basePath + '/apis/rbac.authorization.k8s.io/v1alpha1/clusterroles/{name}' + .replace('{' + 'name' + '}', String(name)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling readClusterRole.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1alpha1ClusterRole; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * read the specified ClusterRoleBinding + * @param name name of the ClusterRoleBinding + * @param pretty If 'true', then the output is pretty printed. + */ + public readClusterRoleBinding (name: string, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1alpha1ClusterRoleBinding; }> { + const localVarPath = this.basePath + '/apis/rbac.authorization.k8s.io/v1alpha1/clusterrolebindings/{name}' + .replace('{' + 'name' + '}', String(name)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling readClusterRoleBinding.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1alpha1ClusterRoleBinding; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * read the specified Role + * @param name name of the Role + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If 'true', then the output is pretty printed. + */ + public readNamespacedRole (name: string, namespace: string, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1alpha1Role; }> { + const localVarPath = this.basePath + '/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/roles/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling readNamespacedRole.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling readNamespacedRole.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1alpha1Role; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * read the specified RoleBinding + * @param name name of the RoleBinding + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If 'true', then the output is pretty printed. + */ + public readNamespacedRoleBinding (name: string, namespace: string, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1alpha1RoleBinding; }> { + const localVarPath = this.basePath + '/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/rolebindings/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling readNamespacedRoleBinding.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling readNamespacedRoleBinding.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1alpha1RoleBinding; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * replace the specified ClusterRole + * @param name name of the ClusterRole + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public replaceClusterRole (name: string, body: V1alpha1ClusterRole, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1alpha1ClusterRole; }> { + const localVarPath = this.basePath + '/apis/rbac.authorization.k8s.io/v1alpha1/clusterroles/{name}' + .replace('{' + 'name' + '}', String(name)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling replaceClusterRole.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling replaceClusterRole.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PUT', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1alpha1ClusterRole; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * replace the specified ClusterRoleBinding + * @param name name of the ClusterRoleBinding + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public replaceClusterRoleBinding (name: string, body: V1alpha1ClusterRoleBinding, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1alpha1ClusterRoleBinding; }> { + const localVarPath = this.basePath + '/apis/rbac.authorization.k8s.io/v1alpha1/clusterrolebindings/{name}' + .replace('{' + 'name' + '}', String(name)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling replaceClusterRoleBinding.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling replaceClusterRoleBinding.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PUT', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1alpha1ClusterRoleBinding; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * replace the specified Role + * @param name name of the Role + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public replaceNamespacedRole (name: string, namespace: string, body: V1alpha1Role, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1alpha1Role; }> { + const localVarPath = this.basePath + '/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/roles/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling replaceNamespacedRole.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling replaceNamespacedRole.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling replaceNamespacedRole.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PUT', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1alpha1Role; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * replace the specified RoleBinding + * @param name name of the RoleBinding + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public replaceNamespacedRoleBinding (name: string, namespace: string, body: V1alpha1RoleBinding, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1alpha1RoleBinding; }> { + const localVarPath = this.basePath + '/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/rolebindings/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling replaceNamespacedRoleBinding.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling replaceNamespacedRoleBinding.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling replaceNamespacedRoleBinding.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PUT', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1alpha1RoleBinding; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } +} +export enum RbacAuthorization_v1beta1ApiApiKeys { + BearerToken, +} + +export class RbacAuthorization_v1beta1Api { + protected _basePath = defaultBasePath; + protected defaultHeaders : any = {}; + protected _useQuerystring : boolean = false; + + protected authentications = { + 'default': new VoidAuth(), + 'BearerToken': new ApiKeyAuth('header', 'authorization'), + } + + constructor(basePath?: string); + constructor(basePathOrUsername: string, password?: string, basePath?: string) { + if (password) { + if (basePath) { + this.basePath = basePath; + } + } else { + if (basePathOrUsername) { + this.basePath = basePathOrUsername + } + } + } + + set useQuerystring(value: boolean) { + this._useQuerystring = value; + } + + set basePath(basePath: string) { + this._basePath = basePath; + } + + get basePath() { + return this._basePath; + } + + public setDefaultAuthentication(auth: Authentication) { + this.authentications.default = auth; + } + + public setApiKey(key: RbacAuthorization_v1beta1ApiApiKeys, value: string) { + this.authentications[RbacAuthorization_v1beta1ApiApiKeys[key]].apiKey = value; + } + /** + * create a ClusterRole + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public createClusterRole (body: V1beta1ClusterRole, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1beta1ClusterRole; }> { + const localVarPath = this.basePath + '/apis/rbac.authorization.k8s.io/v1beta1/clusterroles'; + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling createClusterRole.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'POST', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta1ClusterRole; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * create a ClusterRoleBinding + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public createClusterRoleBinding (body: V1beta1ClusterRoleBinding, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1beta1ClusterRoleBinding; }> { + const localVarPath = this.basePath + '/apis/rbac.authorization.k8s.io/v1beta1/clusterrolebindings'; + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling createClusterRoleBinding.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'POST', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta1ClusterRoleBinding; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * create a Role + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public createNamespacedRole (namespace: string, body: V1beta1Role, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1beta1Role; }> { + const localVarPath = this.basePath + '/apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/roles' + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling createNamespacedRole.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling createNamespacedRole.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'POST', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta1Role; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * create a RoleBinding + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public createNamespacedRoleBinding (namespace: string, body: V1beta1RoleBinding, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1beta1RoleBinding; }> { + const localVarPath = this.basePath + '/apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/rolebindings' + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling createNamespacedRoleBinding.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling createNamespacedRoleBinding.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'POST', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta1RoleBinding; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * delete a ClusterRole + * @param name name of the ClusterRole + * @param body + * @param pretty If 'true', then the output is pretty printed. + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. + */ + public deleteClusterRole (name: string, body: V1DeleteOptions, pretty?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string) : Promise<{ response: http.ClientResponse; body: V1Status; }> { + const localVarPath = this.basePath + '/apis/rbac.authorization.k8s.io/v1beta1/clusterroles/{name}' + .replace('{' + 'name' + '}', String(name)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling deleteClusterRole.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling deleteClusterRole.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (gracePeriodSeconds !== undefined) { + queryParameters['gracePeriodSeconds'] = gracePeriodSeconds; + } + + if (orphanDependents !== undefined) { + queryParameters['orphanDependents'] = orphanDependents; + } + + if (propagationPolicy !== undefined) { + queryParameters['propagationPolicy'] = propagationPolicy; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'DELETE', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Status; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * delete a ClusterRoleBinding + * @param name name of the ClusterRoleBinding + * @param body + * @param pretty If 'true', then the output is pretty printed. + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. + */ + public deleteClusterRoleBinding (name: string, body: V1DeleteOptions, pretty?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string) : Promise<{ response: http.ClientResponse; body: V1Status; }> { + const localVarPath = this.basePath + '/apis/rbac.authorization.k8s.io/v1beta1/clusterrolebindings/{name}' + .replace('{' + 'name' + '}', String(name)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling deleteClusterRoleBinding.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling deleteClusterRoleBinding.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (gracePeriodSeconds !== undefined) { + queryParameters['gracePeriodSeconds'] = gracePeriodSeconds; + } + + if (orphanDependents !== undefined) { + queryParameters['orphanDependents'] = orphanDependents; + } + + if (propagationPolicy !== undefined) { + queryParameters['propagationPolicy'] = propagationPolicy; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'DELETE', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Status; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * delete collection of ClusterRole + * @param pretty If 'true', then the output is pretty printed. + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param includeUninitialized If true, partially initialized resources are included in the response. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + * @param timeoutSeconds Timeout for the list/watch call. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public deleteCollectionClusterRole (pretty?: string, _continue?: string, fieldSelector?: string, includeUninitialized?: boolean, labelSelector?: string, limit?: number, resourceVersion?: string, timeoutSeconds?: number, watch?: boolean) : Promise<{ response: http.ClientResponse; body: V1Status; }> { + const localVarPath = this.basePath + '/apis/rbac.authorization.k8s.io/v1beta1/clusterroles'; + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (_continue !== undefined) { + queryParameters['continue'] = _continue; + } + + if (fieldSelector !== undefined) { + queryParameters['fieldSelector'] = fieldSelector; + } + + if (includeUninitialized !== undefined) { + queryParameters['includeUninitialized'] = includeUninitialized; + } + + if (labelSelector !== undefined) { + queryParameters['labelSelector'] = labelSelector; + } + + if (limit !== undefined) { + queryParameters['limit'] = limit; + } + + if (resourceVersion !== undefined) { + queryParameters['resourceVersion'] = resourceVersion; + } + + if (timeoutSeconds !== undefined) { + queryParameters['timeoutSeconds'] = timeoutSeconds; + } + + if (watch !== undefined) { + queryParameters['watch'] = watch; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'DELETE', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Status; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * delete collection of ClusterRoleBinding + * @param pretty If 'true', then the output is pretty printed. + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param includeUninitialized If true, partially initialized resources are included in the response. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + * @param timeoutSeconds Timeout for the list/watch call. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public deleteCollectionClusterRoleBinding (pretty?: string, _continue?: string, fieldSelector?: string, includeUninitialized?: boolean, labelSelector?: string, limit?: number, resourceVersion?: string, timeoutSeconds?: number, watch?: boolean) : Promise<{ response: http.ClientResponse; body: V1Status; }> { + const localVarPath = this.basePath + '/apis/rbac.authorization.k8s.io/v1beta1/clusterrolebindings'; + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (_continue !== undefined) { + queryParameters['continue'] = _continue; + } + + if (fieldSelector !== undefined) { + queryParameters['fieldSelector'] = fieldSelector; + } + + if (includeUninitialized !== undefined) { + queryParameters['includeUninitialized'] = includeUninitialized; + } + + if (labelSelector !== undefined) { + queryParameters['labelSelector'] = labelSelector; + } + + if (limit !== undefined) { + queryParameters['limit'] = limit; + } + + if (resourceVersion !== undefined) { + queryParameters['resourceVersion'] = resourceVersion; + } + + if (timeoutSeconds !== undefined) { + queryParameters['timeoutSeconds'] = timeoutSeconds; + } + + if (watch !== undefined) { + queryParameters['watch'] = watch; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'DELETE', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Status; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * delete collection of Role + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If 'true', then the output is pretty printed. + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param includeUninitialized If true, partially initialized resources are included in the response. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + * @param timeoutSeconds Timeout for the list/watch call. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public deleteCollectionNamespacedRole (namespace: string, pretty?: string, _continue?: string, fieldSelector?: string, includeUninitialized?: boolean, labelSelector?: string, limit?: number, resourceVersion?: string, timeoutSeconds?: number, watch?: boolean) : Promise<{ response: http.ClientResponse; body: V1Status; }> { + const localVarPath = this.basePath + '/apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/roles' + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling deleteCollectionNamespacedRole.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (_continue !== undefined) { + queryParameters['continue'] = _continue; + } + + if (fieldSelector !== undefined) { + queryParameters['fieldSelector'] = fieldSelector; + } + + if (includeUninitialized !== undefined) { + queryParameters['includeUninitialized'] = includeUninitialized; + } + + if (labelSelector !== undefined) { + queryParameters['labelSelector'] = labelSelector; + } + + if (limit !== undefined) { + queryParameters['limit'] = limit; + } + + if (resourceVersion !== undefined) { + queryParameters['resourceVersion'] = resourceVersion; + } + + if (timeoutSeconds !== undefined) { + queryParameters['timeoutSeconds'] = timeoutSeconds; + } + + if (watch !== undefined) { + queryParameters['watch'] = watch; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'DELETE', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Status; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * delete collection of RoleBinding + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If 'true', then the output is pretty printed. + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param includeUninitialized If true, partially initialized resources are included in the response. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + * @param timeoutSeconds Timeout for the list/watch call. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public deleteCollectionNamespacedRoleBinding (namespace: string, pretty?: string, _continue?: string, fieldSelector?: string, includeUninitialized?: boolean, labelSelector?: string, limit?: number, resourceVersion?: string, timeoutSeconds?: number, watch?: boolean) : Promise<{ response: http.ClientResponse; body: V1Status; }> { + const localVarPath = this.basePath + '/apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/rolebindings' + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling deleteCollectionNamespacedRoleBinding.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (_continue !== undefined) { + queryParameters['continue'] = _continue; + } + + if (fieldSelector !== undefined) { + queryParameters['fieldSelector'] = fieldSelector; + } + + if (includeUninitialized !== undefined) { + queryParameters['includeUninitialized'] = includeUninitialized; + } + + if (labelSelector !== undefined) { + queryParameters['labelSelector'] = labelSelector; + } + + if (limit !== undefined) { + queryParameters['limit'] = limit; + } + + if (resourceVersion !== undefined) { + queryParameters['resourceVersion'] = resourceVersion; + } + + if (timeoutSeconds !== undefined) { + queryParameters['timeoutSeconds'] = timeoutSeconds; + } + + if (watch !== undefined) { + queryParameters['watch'] = watch; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'DELETE', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Status; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * delete a Role + * @param name name of the Role + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. + */ + public deleteNamespacedRole (name: string, namespace: string, body: V1DeleteOptions, pretty?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string) : Promise<{ response: http.ClientResponse; body: V1Status; }> { + const localVarPath = this.basePath + '/apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/roles/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling deleteNamespacedRole.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling deleteNamespacedRole.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling deleteNamespacedRole.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (gracePeriodSeconds !== undefined) { + queryParameters['gracePeriodSeconds'] = gracePeriodSeconds; + } + + if (orphanDependents !== undefined) { + queryParameters['orphanDependents'] = orphanDependents; + } + + if (propagationPolicy !== undefined) { + queryParameters['propagationPolicy'] = propagationPolicy; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'DELETE', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Status; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * delete a RoleBinding + * @param name name of the RoleBinding + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. + */ + public deleteNamespacedRoleBinding (name: string, namespace: string, body: V1DeleteOptions, pretty?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string) : Promise<{ response: http.ClientResponse; body: V1Status; }> { + const localVarPath = this.basePath + '/apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/rolebindings/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling deleteNamespacedRoleBinding.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling deleteNamespacedRoleBinding.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling deleteNamespacedRoleBinding.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (gracePeriodSeconds !== undefined) { + queryParameters['gracePeriodSeconds'] = gracePeriodSeconds; + } + + if (orphanDependents !== undefined) { + queryParameters['orphanDependents'] = orphanDependents; + } + + if (propagationPolicy !== undefined) { + queryParameters['propagationPolicy'] = propagationPolicy; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'DELETE', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Status; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * get available resources + */ + public getAPIResources () : Promise<{ response: http.ClientResponse; body: V1APIResourceList; }> { + const localVarPath = this.basePath + '/apis/rbac.authorization.k8s.io/v1beta1/'; + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1APIResourceList; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * list or watch objects of kind ClusterRole + * @param pretty If 'true', then the output is pretty printed. + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param includeUninitialized If true, partially initialized resources are included in the response. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + * @param timeoutSeconds Timeout for the list/watch call. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public listClusterRole (pretty?: string, _continue?: string, fieldSelector?: string, includeUninitialized?: boolean, labelSelector?: string, limit?: number, resourceVersion?: string, timeoutSeconds?: number, watch?: boolean) : Promise<{ response: http.ClientResponse; body: V1beta1ClusterRoleList; }> { + const localVarPath = this.basePath + '/apis/rbac.authorization.k8s.io/v1beta1/clusterroles'; + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (_continue !== undefined) { + queryParameters['continue'] = _continue; + } + + if (fieldSelector !== undefined) { + queryParameters['fieldSelector'] = fieldSelector; + } + + if (includeUninitialized !== undefined) { + queryParameters['includeUninitialized'] = includeUninitialized; + } + + if (labelSelector !== undefined) { + queryParameters['labelSelector'] = labelSelector; + } + + if (limit !== undefined) { + queryParameters['limit'] = limit; + } + + if (resourceVersion !== undefined) { + queryParameters['resourceVersion'] = resourceVersion; + } + + if (timeoutSeconds !== undefined) { + queryParameters['timeoutSeconds'] = timeoutSeconds; + } + + if (watch !== undefined) { + queryParameters['watch'] = watch; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta1ClusterRoleList; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * list or watch objects of kind ClusterRoleBinding + * @param pretty If 'true', then the output is pretty printed. + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param includeUninitialized If true, partially initialized resources are included in the response. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + * @param timeoutSeconds Timeout for the list/watch call. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public listClusterRoleBinding (pretty?: string, _continue?: string, fieldSelector?: string, includeUninitialized?: boolean, labelSelector?: string, limit?: number, resourceVersion?: string, timeoutSeconds?: number, watch?: boolean) : Promise<{ response: http.ClientResponse; body: V1beta1ClusterRoleBindingList; }> { + const localVarPath = this.basePath + '/apis/rbac.authorization.k8s.io/v1beta1/clusterrolebindings'; + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (_continue !== undefined) { + queryParameters['continue'] = _continue; + } + + if (fieldSelector !== undefined) { + queryParameters['fieldSelector'] = fieldSelector; + } + + if (includeUninitialized !== undefined) { + queryParameters['includeUninitialized'] = includeUninitialized; + } + + if (labelSelector !== undefined) { + queryParameters['labelSelector'] = labelSelector; + } + + if (limit !== undefined) { + queryParameters['limit'] = limit; + } + + if (resourceVersion !== undefined) { + queryParameters['resourceVersion'] = resourceVersion; + } + + if (timeoutSeconds !== undefined) { + queryParameters['timeoutSeconds'] = timeoutSeconds; + } + + if (watch !== undefined) { + queryParameters['watch'] = watch; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta1ClusterRoleBindingList; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * list or watch objects of kind Role + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If 'true', then the output is pretty printed. + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param includeUninitialized If true, partially initialized resources are included in the response. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + * @param timeoutSeconds Timeout for the list/watch call. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public listNamespacedRole (namespace: string, pretty?: string, _continue?: string, fieldSelector?: string, includeUninitialized?: boolean, labelSelector?: string, limit?: number, resourceVersion?: string, timeoutSeconds?: number, watch?: boolean) : Promise<{ response: http.ClientResponse; body: V1beta1RoleList; }> { + const localVarPath = this.basePath + '/apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/roles' + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling listNamespacedRole.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (_continue !== undefined) { + queryParameters['continue'] = _continue; + } + + if (fieldSelector !== undefined) { + queryParameters['fieldSelector'] = fieldSelector; + } + + if (includeUninitialized !== undefined) { + queryParameters['includeUninitialized'] = includeUninitialized; + } + + if (labelSelector !== undefined) { + queryParameters['labelSelector'] = labelSelector; + } + + if (limit !== undefined) { + queryParameters['limit'] = limit; + } + + if (resourceVersion !== undefined) { + queryParameters['resourceVersion'] = resourceVersion; + } + + if (timeoutSeconds !== undefined) { + queryParameters['timeoutSeconds'] = timeoutSeconds; + } + + if (watch !== undefined) { + queryParameters['watch'] = watch; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta1RoleList; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * list or watch objects of kind RoleBinding + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If 'true', then the output is pretty printed. + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param includeUninitialized If true, partially initialized resources are included in the response. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + * @param timeoutSeconds Timeout for the list/watch call. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public listNamespacedRoleBinding (namespace: string, pretty?: string, _continue?: string, fieldSelector?: string, includeUninitialized?: boolean, labelSelector?: string, limit?: number, resourceVersion?: string, timeoutSeconds?: number, watch?: boolean) : Promise<{ response: http.ClientResponse; body: V1beta1RoleBindingList; }> { + const localVarPath = this.basePath + '/apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/rolebindings' + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling listNamespacedRoleBinding.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (_continue !== undefined) { + queryParameters['continue'] = _continue; + } + + if (fieldSelector !== undefined) { + queryParameters['fieldSelector'] = fieldSelector; + } + + if (includeUninitialized !== undefined) { + queryParameters['includeUninitialized'] = includeUninitialized; + } + + if (labelSelector !== undefined) { + queryParameters['labelSelector'] = labelSelector; + } + + if (limit !== undefined) { + queryParameters['limit'] = limit; + } + + if (resourceVersion !== undefined) { + queryParameters['resourceVersion'] = resourceVersion; + } + + if (timeoutSeconds !== undefined) { + queryParameters['timeoutSeconds'] = timeoutSeconds; + } + + if (watch !== undefined) { + queryParameters['watch'] = watch; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta1RoleBindingList; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * list or watch objects of kind RoleBinding + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param includeUninitialized If true, partially initialized resources are included in the response. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param pretty If 'true', then the output is pretty printed. + * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + * @param timeoutSeconds Timeout for the list/watch call. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public listRoleBindingForAllNamespaces (_continue?: string, fieldSelector?: string, includeUninitialized?: boolean, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, timeoutSeconds?: number, watch?: boolean) : Promise<{ response: http.ClientResponse; body: V1beta1RoleBindingList; }> { + const localVarPath = this.basePath + '/apis/rbac.authorization.k8s.io/v1beta1/rolebindings'; + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + if (_continue !== undefined) { + queryParameters['continue'] = _continue; + } + + if (fieldSelector !== undefined) { + queryParameters['fieldSelector'] = fieldSelector; + } + + if (includeUninitialized !== undefined) { + queryParameters['includeUninitialized'] = includeUninitialized; + } + + if (labelSelector !== undefined) { + queryParameters['labelSelector'] = labelSelector; + } + + if (limit !== undefined) { + queryParameters['limit'] = limit; + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (resourceVersion !== undefined) { + queryParameters['resourceVersion'] = resourceVersion; + } + + if (timeoutSeconds !== undefined) { + queryParameters['timeoutSeconds'] = timeoutSeconds; + } + + if (watch !== undefined) { + queryParameters['watch'] = watch; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta1RoleBindingList; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * list or watch objects of kind Role + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param includeUninitialized If true, partially initialized resources are included in the response. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param pretty If 'true', then the output is pretty printed. + * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + * @param timeoutSeconds Timeout for the list/watch call. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public listRoleForAllNamespaces (_continue?: string, fieldSelector?: string, includeUninitialized?: boolean, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, timeoutSeconds?: number, watch?: boolean) : Promise<{ response: http.ClientResponse; body: V1beta1RoleList; }> { + const localVarPath = this.basePath + '/apis/rbac.authorization.k8s.io/v1beta1/roles'; + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + if (_continue !== undefined) { + queryParameters['continue'] = _continue; + } + + if (fieldSelector !== undefined) { + queryParameters['fieldSelector'] = fieldSelector; + } + + if (includeUninitialized !== undefined) { + queryParameters['includeUninitialized'] = includeUninitialized; + } + + if (labelSelector !== undefined) { + queryParameters['labelSelector'] = labelSelector; + } + + if (limit !== undefined) { + queryParameters['limit'] = limit; + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (resourceVersion !== undefined) { + queryParameters['resourceVersion'] = resourceVersion; + } + + if (timeoutSeconds !== undefined) { + queryParameters['timeoutSeconds'] = timeoutSeconds; + } + + if (watch !== undefined) { + queryParameters['watch'] = watch; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta1RoleList; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * partially update the specified ClusterRole + * @param name name of the ClusterRole + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public patchClusterRole (name: string, body: any, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1beta1ClusterRole; }> { + const localVarPath = this.basePath + '/apis/rbac.authorization.k8s.io/v1beta1/clusterroles/{name}' + .replace('{' + 'name' + '}', String(name)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling patchClusterRole.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling patchClusterRole.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PATCH', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta1ClusterRole; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * partially update the specified ClusterRoleBinding + * @param name name of the ClusterRoleBinding + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public patchClusterRoleBinding (name: string, body: any, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1beta1ClusterRoleBinding; }> { + const localVarPath = this.basePath + '/apis/rbac.authorization.k8s.io/v1beta1/clusterrolebindings/{name}' + .replace('{' + 'name' + '}', String(name)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling patchClusterRoleBinding.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling patchClusterRoleBinding.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PATCH', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta1ClusterRoleBinding; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * partially update the specified Role + * @param name name of the Role + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public patchNamespacedRole (name: string, namespace: string, body: any, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1beta1Role; }> { + const localVarPath = this.basePath + '/apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/roles/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling patchNamespacedRole.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling patchNamespacedRole.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling patchNamespacedRole.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PATCH', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta1Role; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * partially update the specified RoleBinding + * @param name name of the RoleBinding + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public patchNamespacedRoleBinding (name: string, namespace: string, body: any, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1beta1RoleBinding; }> { + const localVarPath = this.basePath + '/apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/rolebindings/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling patchNamespacedRoleBinding.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling patchNamespacedRoleBinding.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling patchNamespacedRoleBinding.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PATCH', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta1RoleBinding; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * read the specified ClusterRole + * @param name name of the ClusterRole + * @param pretty If 'true', then the output is pretty printed. + */ + public readClusterRole (name: string, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1beta1ClusterRole; }> { + const localVarPath = this.basePath + '/apis/rbac.authorization.k8s.io/v1beta1/clusterroles/{name}' + .replace('{' + 'name' + '}', String(name)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling readClusterRole.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta1ClusterRole; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * read the specified ClusterRoleBinding + * @param name name of the ClusterRoleBinding + * @param pretty If 'true', then the output is pretty printed. + */ + public readClusterRoleBinding (name: string, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1beta1ClusterRoleBinding; }> { + const localVarPath = this.basePath + '/apis/rbac.authorization.k8s.io/v1beta1/clusterrolebindings/{name}' + .replace('{' + 'name' + '}', String(name)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling readClusterRoleBinding.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta1ClusterRoleBinding; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * read the specified Role + * @param name name of the Role + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If 'true', then the output is pretty printed. + */ + public readNamespacedRole (name: string, namespace: string, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1beta1Role; }> { + const localVarPath = this.basePath + '/apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/roles/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling readNamespacedRole.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling readNamespacedRole.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta1Role; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * read the specified RoleBinding + * @param name name of the RoleBinding + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If 'true', then the output is pretty printed. + */ + public readNamespacedRoleBinding (name: string, namespace: string, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1beta1RoleBinding; }> { + const localVarPath = this.basePath + '/apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/rolebindings/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling readNamespacedRoleBinding.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling readNamespacedRoleBinding.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta1RoleBinding; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * replace the specified ClusterRole + * @param name name of the ClusterRole + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public replaceClusterRole (name: string, body: V1beta1ClusterRole, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1beta1ClusterRole; }> { + const localVarPath = this.basePath + '/apis/rbac.authorization.k8s.io/v1beta1/clusterroles/{name}' + .replace('{' + 'name' + '}', String(name)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling replaceClusterRole.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling replaceClusterRole.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PUT', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta1ClusterRole; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * replace the specified ClusterRoleBinding + * @param name name of the ClusterRoleBinding + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public replaceClusterRoleBinding (name: string, body: V1beta1ClusterRoleBinding, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1beta1ClusterRoleBinding; }> { + const localVarPath = this.basePath + '/apis/rbac.authorization.k8s.io/v1beta1/clusterrolebindings/{name}' + .replace('{' + 'name' + '}', String(name)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling replaceClusterRoleBinding.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling replaceClusterRoleBinding.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PUT', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta1ClusterRoleBinding; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * replace the specified Role + * @param name name of the Role + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public replaceNamespacedRole (name: string, namespace: string, body: V1beta1Role, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1beta1Role; }> { + const localVarPath = this.basePath + '/apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/roles/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling replaceNamespacedRole.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling replaceNamespacedRole.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling replaceNamespacedRole.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PUT', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta1Role; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * replace the specified RoleBinding + * @param name name of the RoleBinding + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public replaceNamespacedRoleBinding (name: string, namespace: string, body: V1beta1RoleBinding, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1beta1RoleBinding; }> { + const localVarPath = this.basePath + '/apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/rolebindings/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling replaceNamespacedRoleBinding.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling replaceNamespacedRoleBinding.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling replaceNamespacedRoleBinding.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PUT', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta1RoleBinding; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } +} +export enum SchedulingApiApiKeys { + BearerToken, +} + +export class SchedulingApi { + protected _basePath = defaultBasePath; + protected defaultHeaders : any = {}; + protected _useQuerystring : boolean = false; + + protected authentications = { + 'default': new VoidAuth(), + 'BearerToken': new ApiKeyAuth('header', 'authorization'), + } + + constructor(basePath?: string); + constructor(basePathOrUsername: string, password?: string, basePath?: string) { + if (password) { + if (basePath) { + this.basePath = basePath; + } + } else { + if (basePathOrUsername) { + this.basePath = basePathOrUsername + } + } + } + + set useQuerystring(value: boolean) { + this._useQuerystring = value; + } + + set basePath(basePath: string) { + this._basePath = basePath; + } + + get basePath() { + return this._basePath; + } + + public setDefaultAuthentication(auth: Authentication) { + this.authentications.default = auth; + } + + public setApiKey(key: SchedulingApiApiKeys, value: string) { + this.authentications[SchedulingApiApiKeys[key]].apiKey = value; + } + /** + * get information of a group + */ + public getAPIGroup () : Promise<{ response: http.ClientResponse; body: V1APIGroup; }> { + const localVarPath = this.basePath + '/apis/scheduling.k8s.io/'; + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1APIGroup; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } +} +export enum Scheduling_v1alpha1ApiApiKeys { + BearerToken, +} + +export class Scheduling_v1alpha1Api { + protected _basePath = defaultBasePath; + protected defaultHeaders : any = {}; + protected _useQuerystring : boolean = false; + + protected authentications = { + 'default': new VoidAuth(), + 'BearerToken': new ApiKeyAuth('header', 'authorization'), + } + + constructor(basePath?: string); + constructor(basePathOrUsername: string, password?: string, basePath?: string) { + if (password) { + if (basePath) { + this.basePath = basePath; + } + } else { + if (basePathOrUsername) { + this.basePath = basePathOrUsername + } + } + } + + set useQuerystring(value: boolean) { + this._useQuerystring = value; + } + + set basePath(basePath: string) { + this._basePath = basePath; + } + + get basePath() { + return this._basePath; + } + + public setDefaultAuthentication(auth: Authentication) { + this.authentications.default = auth; + } + + public setApiKey(key: Scheduling_v1alpha1ApiApiKeys, value: string) { + this.authentications[Scheduling_v1alpha1ApiApiKeys[key]].apiKey = value; + } + /** + * create a PriorityClass + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public createPriorityClass (body: V1alpha1PriorityClass, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1alpha1PriorityClass; }> { + const localVarPath = this.basePath + '/apis/scheduling.k8s.io/v1alpha1/priorityclasses'; + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling createPriorityClass.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'POST', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1alpha1PriorityClass; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * delete collection of PriorityClass + * @param pretty If 'true', then the output is pretty printed. + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param includeUninitialized If true, partially initialized resources are included in the response. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + * @param timeoutSeconds Timeout for the list/watch call. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public deleteCollectionPriorityClass (pretty?: string, _continue?: string, fieldSelector?: string, includeUninitialized?: boolean, labelSelector?: string, limit?: number, resourceVersion?: string, timeoutSeconds?: number, watch?: boolean) : Promise<{ response: http.ClientResponse; body: V1Status; }> { + const localVarPath = this.basePath + '/apis/scheduling.k8s.io/v1alpha1/priorityclasses'; + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (_continue !== undefined) { + queryParameters['continue'] = _continue; + } + + if (fieldSelector !== undefined) { + queryParameters['fieldSelector'] = fieldSelector; + } + + if (includeUninitialized !== undefined) { + queryParameters['includeUninitialized'] = includeUninitialized; + } + + if (labelSelector !== undefined) { + queryParameters['labelSelector'] = labelSelector; + } + + if (limit !== undefined) { + queryParameters['limit'] = limit; + } + + if (resourceVersion !== undefined) { + queryParameters['resourceVersion'] = resourceVersion; + } + + if (timeoutSeconds !== undefined) { + queryParameters['timeoutSeconds'] = timeoutSeconds; + } + + if (watch !== undefined) { + queryParameters['watch'] = watch; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'DELETE', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Status; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * delete a PriorityClass + * @param name name of the PriorityClass + * @param body + * @param pretty If 'true', then the output is pretty printed. + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. + */ + public deletePriorityClass (name: string, body: V1DeleteOptions, pretty?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string) : Promise<{ response: http.ClientResponse; body: V1Status; }> { + const localVarPath = this.basePath + '/apis/scheduling.k8s.io/v1alpha1/priorityclasses/{name}' + .replace('{' + 'name' + '}', String(name)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling deletePriorityClass.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling deletePriorityClass.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (gracePeriodSeconds !== undefined) { + queryParameters['gracePeriodSeconds'] = gracePeriodSeconds; + } + + if (orphanDependents !== undefined) { + queryParameters['orphanDependents'] = orphanDependents; + } + + if (propagationPolicy !== undefined) { + queryParameters['propagationPolicy'] = propagationPolicy; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'DELETE', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Status; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * get available resources + */ + public getAPIResources () : Promise<{ response: http.ClientResponse; body: V1APIResourceList; }> { + const localVarPath = this.basePath + '/apis/scheduling.k8s.io/v1alpha1/'; + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1APIResourceList; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * list or watch objects of kind PriorityClass + * @param pretty If 'true', then the output is pretty printed. + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param includeUninitialized If true, partially initialized resources are included in the response. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + * @param timeoutSeconds Timeout for the list/watch call. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public listPriorityClass (pretty?: string, _continue?: string, fieldSelector?: string, includeUninitialized?: boolean, labelSelector?: string, limit?: number, resourceVersion?: string, timeoutSeconds?: number, watch?: boolean) : Promise<{ response: http.ClientResponse; body: V1alpha1PriorityClassList; }> { + const localVarPath = this.basePath + '/apis/scheduling.k8s.io/v1alpha1/priorityclasses'; + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (_continue !== undefined) { + queryParameters['continue'] = _continue; + } + + if (fieldSelector !== undefined) { + queryParameters['fieldSelector'] = fieldSelector; + } + + if (includeUninitialized !== undefined) { + queryParameters['includeUninitialized'] = includeUninitialized; + } + + if (labelSelector !== undefined) { + queryParameters['labelSelector'] = labelSelector; + } + + if (limit !== undefined) { + queryParameters['limit'] = limit; + } + + if (resourceVersion !== undefined) { + queryParameters['resourceVersion'] = resourceVersion; + } + + if (timeoutSeconds !== undefined) { + queryParameters['timeoutSeconds'] = timeoutSeconds; + } + + if (watch !== undefined) { + queryParameters['watch'] = watch; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1alpha1PriorityClassList; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * partially update the specified PriorityClass + * @param name name of the PriorityClass + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public patchPriorityClass (name: string, body: any, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1alpha1PriorityClass; }> { + const localVarPath = this.basePath + '/apis/scheduling.k8s.io/v1alpha1/priorityclasses/{name}' + .replace('{' + 'name' + '}', String(name)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling patchPriorityClass.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling patchPriorityClass.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PATCH', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1alpha1PriorityClass; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * read the specified PriorityClass + * @param name name of the PriorityClass + * @param pretty If 'true', then the output is pretty printed. + * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + * @param _export Should this value be exported. Export strips fields that a user can not specify. + */ + public readPriorityClass (name: string, pretty?: string, exact?: boolean, _export?: boolean) : Promise<{ response: http.ClientResponse; body: V1alpha1PriorityClass; }> { + const localVarPath = this.basePath + '/apis/scheduling.k8s.io/v1alpha1/priorityclasses/{name}' + .replace('{' + 'name' + '}', String(name)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling readPriorityClass.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (exact !== undefined) { + queryParameters['exact'] = exact; + } + + if (_export !== undefined) { + queryParameters['export'] = _export; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1alpha1PriorityClass; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * replace the specified PriorityClass + * @param name name of the PriorityClass + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public replacePriorityClass (name: string, body: V1alpha1PriorityClass, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1alpha1PriorityClass; }> { + const localVarPath = this.basePath + '/apis/scheduling.k8s.io/v1alpha1/priorityclasses/{name}' + .replace('{' + 'name' + '}', String(name)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling replacePriorityClass.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling replacePriorityClass.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PUT', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1alpha1PriorityClass; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } +} +export enum SettingsApiApiKeys { + BearerToken, +} + +export class SettingsApi { + protected _basePath = defaultBasePath; + protected defaultHeaders : any = {}; + protected _useQuerystring : boolean = false; + + protected authentications = { + 'default': new VoidAuth(), + 'BearerToken': new ApiKeyAuth('header', 'authorization'), + } + + constructor(basePath?: string); + constructor(basePathOrUsername: string, password?: string, basePath?: string) { + if (password) { + if (basePath) { + this.basePath = basePath; + } + } else { + if (basePathOrUsername) { + this.basePath = basePathOrUsername + } + } + } + + set useQuerystring(value: boolean) { + this._useQuerystring = value; + } + + set basePath(basePath: string) { + this._basePath = basePath; + } + + get basePath() { + return this._basePath; + } + + public setDefaultAuthentication(auth: Authentication) { + this.authentications.default = auth; + } + + public setApiKey(key: SettingsApiApiKeys, value: string) { + this.authentications[SettingsApiApiKeys[key]].apiKey = value; + } + /** + * get information of a group + */ + public getAPIGroup () : Promise<{ response: http.ClientResponse; body: V1APIGroup; }> { + const localVarPath = this.basePath + '/apis/settings.k8s.io/'; + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1APIGroup; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } +} +export enum Settings_v1alpha1ApiApiKeys { + BearerToken, +} + +export class Settings_v1alpha1Api { + protected _basePath = defaultBasePath; + protected defaultHeaders : any = {}; + protected _useQuerystring : boolean = false; + + protected authentications = { + 'default': new VoidAuth(), + 'BearerToken': new ApiKeyAuth('header', 'authorization'), + } + + constructor(basePath?: string); + constructor(basePathOrUsername: string, password?: string, basePath?: string) { + if (password) { + if (basePath) { + this.basePath = basePath; + } + } else { + if (basePathOrUsername) { + this.basePath = basePathOrUsername + } + } + } + + set useQuerystring(value: boolean) { + this._useQuerystring = value; + } + + set basePath(basePath: string) { + this._basePath = basePath; + } + + get basePath() { + return this._basePath; + } + + public setDefaultAuthentication(auth: Authentication) { + this.authentications.default = auth; + } + + public setApiKey(key: Settings_v1alpha1ApiApiKeys, value: string) { + this.authentications[Settings_v1alpha1ApiApiKeys[key]].apiKey = value; + } + /** + * create a PodPreset + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public createNamespacedPodPreset (namespace: string, body: V1alpha1PodPreset, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1alpha1PodPreset; }> { + const localVarPath = this.basePath + '/apis/settings.k8s.io/v1alpha1/namespaces/{namespace}/podpresets' + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling createNamespacedPodPreset.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling createNamespacedPodPreset.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'POST', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1alpha1PodPreset; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * delete collection of PodPreset + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If 'true', then the output is pretty printed. + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param includeUninitialized If true, partially initialized resources are included in the response. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + * @param timeoutSeconds Timeout for the list/watch call. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public deleteCollectionNamespacedPodPreset (namespace: string, pretty?: string, _continue?: string, fieldSelector?: string, includeUninitialized?: boolean, labelSelector?: string, limit?: number, resourceVersion?: string, timeoutSeconds?: number, watch?: boolean) : Promise<{ response: http.ClientResponse; body: V1Status; }> { + const localVarPath = this.basePath + '/apis/settings.k8s.io/v1alpha1/namespaces/{namespace}/podpresets' + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling deleteCollectionNamespacedPodPreset.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (_continue !== undefined) { + queryParameters['continue'] = _continue; + } + + if (fieldSelector !== undefined) { + queryParameters['fieldSelector'] = fieldSelector; + } + + if (includeUninitialized !== undefined) { + queryParameters['includeUninitialized'] = includeUninitialized; + } + + if (labelSelector !== undefined) { + queryParameters['labelSelector'] = labelSelector; + } + + if (limit !== undefined) { + queryParameters['limit'] = limit; + } + + if (resourceVersion !== undefined) { + queryParameters['resourceVersion'] = resourceVersion; + } + + if (timeoutSeconds !== undefined) { + queryParameters['timeoutSeconds'] = timeoutSeconds; + } + + if (watch !== undefined) { + queryParameters['watch'] = watch; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'DELETE', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Status; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * delete a PodPreset + * @param name name of the PodPreset + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. + */ + public deleteNamespacedPodPreset (name: string, namespace: string, body: V1DeleteOptions, pretty?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string) : Promise<{ response: http.ClientResponse; body: V1Status; }> { + const localVarPath = this.basePath + '/apis/settings.k8s.io/v1alpha1/namespaces/{namespace}/podpresets/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling deleteNamespacedPodPreset.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling deleteNamespacedPodPreset.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling deleteNamespacedPodPreset.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (gracePeriodSeconds !== undefined) { + queryParameters['gracePeriodSeconds'] = gracePeriodSeconds; + } + + if (orphanDependents !== undefined) { + queryParameters['orphanDependents'] = orphanDependents; + } + + if (propagationPolicy !== undefined) { + queryParameters['propagationPolicy'] = propagationPolicy; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'DELETE', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Status; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * get available resources + */ + public getAPIResources () : Promise<{ response: http.ClientResponse; body: V1APIResourceList; }> { + const localVarPath = this.basePath + '/apis/settings.k8s.io/v1alpha1/'; + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1APIResourceList; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * list or watch objects of kind PodPreset + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If 'true', then the output is pretty printed. + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param includeUninitialized If true, partially initialized resources are included in the response. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + * @param timeoutSeconds Timeout for the list/watch call. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public listNamespacedPodPreset (namespace: string, pretty?: string, _continue?: string, fieldSelector?: string, includeUninitialized?: boolean, labelSelector?: string, limit?: number, resourceVersion?: string, timeoutSeconds?: number, watch?: boolean) : Promise<{ response: http.ClientResponse; body: V1alpha1PodPresetList; }> { + const localVarPath = this.basePath + '/apis/settings.k8s.io/v1alpha1/namespaces/{namespace}/podpresets' + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling listNamespacedPodPreset.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (_continue !== undefined) { + queryParameters['continue'] = _continue; + } + + if (fieldSelector !== undefined) { + queryParameters['fieldSelector'] = fieldSelector; + } + + if (includeUninitialized !== undefined) { + queryParameters['includeUninitialized'] = includeUninitialized; + } + + if (labelSelector !== undefined) { + queryParameters['labelSelector'] = labelSelector; + } + + if (limit !== undefined) { + queryParameters['limit'] = limit; + } + + if (resourceVersion !== undefined) { + queryParameters['resourceVersion'] = resourceVersion; + } + + if (timeoutSeconds !== undefined) { + queryParameters['timeoutSeconds'] = timeoutSeconds; + } + + if (watch !== undefined) { + queryParameters['watch'] = watch; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1alpha1PodPresetList; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * list or watch objects of kind PodPreset + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param includeUninitialized If true, partially initialized resources are included in the response. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param pretty If 'true', then the output is pretty printed. + * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + * @param timeoutSeconds Timeout for the list/watch call. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public listPodPresetForAllNamespaces (_continue?: string, fieldSelector?: string, includeUninitialized?: boolean, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, timeoutSeconds?: number, watch?: boolean) : Promise<{ response: http.ClientResponse; body: V1alpha1PodPresetList; }> { + const localVarPath = this.basePath + '/apis/settings.k8s.io/v1alpha1/podpresets'; + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + if (_continue !== undefined) { + queryParameters['continue'] = _continue; + } + + if (fieldSelector !== undefined) { + queryParameters['fieldSelector'] = fieldSelector; + } + + if (includeUninitialized !== undefined) { + queryParameters['includeUninitialized'] = includeUninitialized; + } + + if (labelSelector !== undefined) { + queryParameters['labelSelector'] = labelSelector; + } + + if (limit !== undefined) { + queryParameters['limit'] = limit; + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (resourceVersion !== undefined) { + queryParameters['resourceVersion'] = resourceVersion; + } + + if (timeoutSeconds !== undefined) { + queryParameters['timeoutSeconds'] = timeoutSeconds; + } + + if (watch !== undefined) { + queryParameters['watch'] = watch; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1alpha1PodPresetList; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * partially update the specified PodPreset + * @param name name of the PodPreset + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public patchNamespacedPodPreset (name: string, namespace: string, body: any, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1alpha1PodPreset; }> { + const localVarPath = this.basePath + '/apis/settings.k8s.io/v1alpha1/namespaces/{namespace}/podpresets/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling patchNamespacedPodPreset.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling patchNamespacedPodPreset.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling patchNamespacedPodPreset.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PATCH', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1alpha1PodPreset; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * read the specified PodPreset + * @param name name of the PodPreset + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If 'true', then the output is pretty printed. + * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + * @param _export Should this value be exported. Export strips fields that a user can not specify. + */ + public readNamespacedPodPreset (name: string, namespace: string, pretty?: string, exact?: boolean, _export?: boolean) : Promise<{ response: http.ClientResponse; body: V1alpha1PodPreset; }> { + const localVarPath = this.basePath + '/apis/settings.k8s.io/v1alpha1/namespaces/{namespace}/podpresets/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling readNamespacedPodPreset.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling readNamespacedPodPreset.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (exact !== undefined) { + queryParameters['exact'] = exact; + } + + if (_export !== undefined) { + queryParameters['export'] = _export; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1alpha1PodPreset; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * replace the specified PodPreset + * @param name name of the PodPreset + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public replaceNamespacedPodPreset (name: string, namespace: string, body: V1alpha1PodPreset, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1alpha1PodPreset; }> { + const localVarPath = this.basePath + '/apis/settings.k8s.io/v1alpha1/namespaces/{namespace}/podpresets/{name}' + .replace('{' + 'name' + '}', String(name)) + .replace('{' + 'namespace' + '}', String(namespace)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling replaceNamespacedPodPreset.'); + } + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new Error('Required parameter namespace was null or undefined when calling replaceNamespacedPodPreset.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling replaceNamespacedPodPreset.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PUT', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1alpha1PodPreset; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } +} +export enum StorageApiApiKeys { + BearerToken, +} + +export class StorageApi { + protected _basePath = defaultBasePath; + protected defaultHeaders : any = {}; + protected _useQuerystring : boolean = false; + + protected authentications = { + 'default': new VoidAuth(), + 'BearerToken': new ApiKeyAuth('header', 'authorization'), + } + + constructor(basePath?: string); + constructor(basePathOrUsername: string, password?: string, basePath?: string) { + if (password) { + if (basePath) { + this.basePath = basePath; + } + } else { + if (basePathOrUsername) { + this.basePath = basePathOrUsername + } + } + } + + set useQuerystring(value: boolean) { + this._useQuerystring = value; + } + + set basePath(basePath: string) { + this._basePath = basePath; + } + + get basePath() { + return this._basePath; + } + + public setDefaultAuthentication(auth: Authentication) { + this.authentications.default = auth; + } + + public setApiKey(key: StorageApiApiKeys, value: string) { + this.authentications[StorageApiApiKeys[key]].apiKey = value; + } + /** + * get information of a group + */ + public getAPIGroup () : Promise<{ response: http.ClientResponse; body: V1APIGroup; }> { + const localVarPath = this.basePath + '/apis/storage.k8s.io/'; + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1APIGroup; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } +} +export enum Storage_v1ApiApiKeys { + BearerToken, +} + +export class Storage_v1Api { + protected _basePath = defaultBasePath; + protected defaultHeaders : any = {}; + protected _useQuerystring : boolean = false; + + protected authentications = { + 'default': new VoidAuth(), + 'BearerToken': new ApiKeyAuth('header', 'authorization'), + } + + constructor(basePath?: string); + constructor(basePathOrUsername: string, password?: string, basePath?: string) { + if (password) { + if (basePath) { + this.basePath = basePath; + } + } else { + if (basePathOrUsername) { + this.basePath = basePathOrUsername + } + } + } + + set useQuerystring(value: boolean) { + this._useQuerystring = value; + } + + set basePath(basePath: string) { + this._basePath = basePath; + } + + get basePath() { + return this._basePath; + } + + public setDefaultAuthentication(auth: Authentication) { + this.authentications.default = auth; + } + + public setApiKey(key: Storage_v1ApiApiKeys, value: string) { + this.authentications[Storage_v1ApiApiKeys[key]].apiKey = value; + } + /** + * create a StorageClass + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public createStorageClass (body: V1StorageClass, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1StorageClass; }> { + const localVarPath = this.basePath + '/apis/storage.k8s.io/v1/storageclasses'; + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling createStorageClass.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'POST', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1StorageClass; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * delete collection of StorageClass + * @param pretty If 'true', then the output is pretty printed. + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param includeUninitialized If true, partially initialized resources are included in the response. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + * @param timeoutSeconds Timeout for the list/watch call. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public deleteCollectionStorageClass (pretty?: string, _continue?: string, fieldSelector?: string, includeUninitialized?: boolean, labelSelector?: string, limit?: number, resourceVersion?: string, timeoutSeconds?: number, watch?: boolean) : Promise<{ response: http.ClientResponse; body: V1Status; }> { + const localVarPath = this.basePath + '/apis/storage.k8s.io/v1/storageclasses'; + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (_continue !== undefined) { + queryParameters['continue'] = _continue; + } + + if (fieldSelector !== undefined) { + queryParameters['fieldSelector'] = fieldSelector; + } + + if (includeUninitialized !== undefined) { + queryParameters['includeUninitialized'] = includeUninitialized; + } + + if (labelSelector !== undefined) { + queryParameters['labelSelector'] = labelSelector; + } + + if (limit !== undefined) { + queryParameters['limit'] = limit; + } + + if (resourceVersion !== undefined) { + queryParameters['resourceVersion'] = resourceVersion; + } + + if (timeoutSeconds !== undefined) { + queryParameters['timeoutSeconds'] = timeoutSeconds; + } + + if (watch !== undefined) { + queryParameters['watch'] = watch; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'DELETE', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Status; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * delete a StorageClass + * @param name name of the StorageClass + * @param body + * @param pretty If 'true', then the output is pretty printed. + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. + */ + public deleteStorageClass (name: string, body: V1DeleteOptions, pretty?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string) : Promise<{ response: http.ClientResponse; body: V1Status; }> { + const localVarPath = this.basePath + '/apis/storage.k8s.io/v1/storageclasses/{name}' + .replace('{' + 'name' + '}', String(name)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling deleteStorageClass.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling deleteStorageClass.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (gracePeriodSeconds !== undefined) { + queryParameters['gracePeriodSeconds'] = gracePeriodSeconds; + } + + if (orphanDependents !== undefined) { + queryParameters['orphanDependents'] = orphanDependents; + } + + if (propagationPolicy !== undefined) { + queryParameters['propagationPolicy'] = propagationPolicy; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'DELETE', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Status; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * get available resources + */ + public getAPIResources () : Promise<{ response: http.ClientResponse; body: V1APIResourceList; }> { + const localVarPath = this.basePath + '/apis/storage.k8s.io/v1/'; + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1APIResourceList; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * list or watch objects of kind StorageClass + * @param pretty If 'true', then the output is pretty printed. + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param includeUninitialized If true, partially initialized resources are included in the response. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + * @param timeoutSeconds Timeout for the list/watch call. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public listStorageClass (pretty?: string, _continue?: string, fieldSelector?: string, includeUninitialized?: boolean, labelSelector?: string, limit?: number, resourceVersion?: string, timeoutSeconds?: number, watch?: boolean) : Promise<{ response: http.ClientResponse; body: V1StorageClassList; }> { + const localVarPath = this.basePath + '/apis/storage.k8s.io/v1/storageclasses'; + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (_continue !== undefined) { + queryParameters['continue'] = _continue; + } + + if (fieldSelector !== undefined) { + queryParameters['fieldSelector'] = fieldSelector; + } + + if (includeUninitialized !== undefined) { + queryParameters['includeUninitialized'] = includeUninitialized; + } + + if (labelSelector !== undefined) { + queryParameters['labelSelector'] = labelSelector; + } + + if (limit !== undefined) { + queryParameters['limit'] = limit; + } + + if (resourceVersion !== undefined) { + queryParameters['resourceVersion'] = resourceVersion; + } + + if (timeoutSeconds !== undefined) { + queryParameters['timeoutSeconds'] = timeoutSeconds; + } + + if (watch !== undefined) { + queryParameters['watch'] = watch; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1StorageClassList; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * partially update the specified StorageClass + * @param name name of the StorageClass + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public patchStorageClass (name: string, body: any, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1StorageClass; }> { + const localVarPath = this.basePath + '/apis/storage.k8s.io/v1/storageclasses/{name}' + .replace('{' + 'name' + '}', String(name)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling patchStorageClass.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling patchStorageClass.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PATCH', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1StorageClass; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * read the specified StorageClass + * @param name name of the StorageClass + * @param pretty If 'true', then the output is pretty printed. + * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + * @param _export Should this value be exported. Export strips fields that a user can not specify. + */ + public readStorageClass (name: string, pretty?: string, exact?: boolean, _export?: boolean) : Promise<{ response: http.ClientResponse; body: V1StorageClass; }> { + const localVarPath = this.basePath + '/apis/storage.k8s.io/v1/storageclasses/{name}' + .replace('{' + 'name' + '}', String(name)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling readStorageClass.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (exact !== undefined) { + queryParameters['exact'] = exact; + } + + if (_export !== undefined) { + queryParameters['export'] = _export; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1StorageClass; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * replace the specified StorageClass + * @param name name of the StorageClass + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public replaceStorageClass (name: string, body: V1StorageClass, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1StorageClass; }> { + const localVarPath = this.basePath + '/apis/storage.k8s.io/v1/storageclasses/{name}' + .replace('{' + 'name' + '}', String(name)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling replaceStorageClass.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling replaceStorageClass.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PUT', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1StorageClass; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } +} +export enum Storage_v1beta1ApiApiKeys { + BearerToken, +} + +export class Storage_v1beta1Api { + protected _basePath = defaultBasePath; + protected defaultHeaders : any = {}; + protected _useQuerystring : boolean = false; + + protected authentications = { + 'default': new VoidAuth(), + 'BearerToken': new ApiKeyAuth('header', 'authorization'), + } + + constructor(basePath?: string); + constructor(basePathOrUsername: string, password?: string, basePath?: string) { + if (password) { + if (basePath) { + this.basePath = basePath; + } + } else { + if (basePathOrUsername) { + this.basePath = basePathOrUsername + } + } + } + + set useQuerystring(value: boolean) { + this._useQuerystring = value; + } + + set basePath(basePath: string) { + this._basePath = basePath; + } + + get basePath() { + return this._basePath; + } + + public setDefaultAuthentication(auth: Authentication) { + this.authentications.default = auth; + } + + public setApiKey(key: Storage_v1beta1ApiApiKeys, value: string) { + this.authentications[Storage_v1beta1ApiApiKeys[key]].apiKey = value; + } + /** + * create a StorageClass + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public createStorageClass (body: V1beta1StorageClass, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1beta1StorageClass; }> { + const localVarPath = this.basePath + '/apis/storage.k8s.io/v1beta1/storageclasses'; + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling createStorageClass.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'POST', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta1StorageClass; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * delete collection of StorageClass + * @param pretty If 'true', then the output is pretty printed. + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param includeUninitialized If true, partially initialized resources are included in the response. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + * @param timeoutSeconds Timeout for the list/watch call. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public deleteCollectionStorageClass (pretty?: string, _continue?: string, fieldSelector?: string, includeUninitialized?: boolean, labelSelector?: string, limit?: number, resourceVersion?: string, timeoutSeconds?: number, watch?: boolean) : Promise<{ response: http.ClientResponse; body: V1Status; }> { + const localVarPath = this.basePath + '/apis/storage.k8s.io/v1beta1/storageclasses'; + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (_continue !== undefined) { + queryParameters['continue'] = _continue; + } + + if (fieldSelector !== undefined) { + queryParameters['fieldSelector'] = fieldSelector; + } + + if (includeUninitialized !== undefined) { + queryParameters['includeUninitialized'] = includeUninitialized; + } + + if (labelSelector !== undefined) { + queryParameters['labelSelector'] = labelSelector; + } + + if (limit !== undefined) { + queryParameters['limit'] = limit; + } + + if (resourceVersion !== undefined) { + queryParameters['resourceVersion'] = resourceVersion; + } + + if (timeoutSeconds !== undefined) { + queryParameters['timeoutSeconds'] = timeoutSeconds; + } + + if (watch !== undefined) { + queryParameters['watch'] = watch; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'DELETE', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Status; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * delete a StorageClass + * @param name name of the StorageClass + * @param body + * @param pretty If 'true', then the output is pretty printed. + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. + */ + public deleteStorageClass (name: string, body: V1DeleteOptions, pretty?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string) : Promise<{ response: http.ClientResponse; body: V1Status; }> { + const localVarPath = this.basePath + '/apis/storage.k8s.io/v1beta1/storageclasses/{name}' + .replace('{' + 'name' + '}', String(name)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling deleteStorageClass.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling deleteStorageClass.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (gracePeriodSeconds !== undefined) { + queryParameters['gracePeriodSeconds'] = gracePeriodSeconds; + } + + if (orphanDependents !== undefined) { + queryParameters['orphanDependents'] = orphanDependents; + } + + if (propagationPolicy !== undefined) { + queryParameters['propagationPolicy'] = propagationPolicy; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'DELETE', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1Status; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * get available resources + */ + public getAPIResources () : Promise<{ response: http.ClientResponse; body: V1APIResourceList; }> { + const localVarPath = this.basePath + '/apis/storage.k8s.io/v1beta1/'; + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1APIResourceList; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * list or watch objects of kind StorageClass + * @param pretty If 'true', then the output is pretty printed. + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param includeUninitialized If true, partially initialized resources are included in the response. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + * @param timeoutSeconds Timeout for the list/watch call. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public listStorageClass (pretty?: string, _continue?: string, fieldSelector?: string, includeUninitialized?: boolean, labelSelector?: string, limit?: number, resourceVersion?: string, timeoutSeconds?: number, watch?: boolean) : Promise<{ response: http.ClientResponse; body: V1beta1StorageClassList; }> { + const localVarPath = this.basePath + '/apis/storage.k8s.io/v1beta1/storageclasses'; + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (_continue !== undefined) { + queryParameters['continue'] = _continue; + } + + if (fieldSelector !== undefined) { + queryParameters['fieldSelector'] = fieldSelector; + } + + if (includeUninitialized !== undefined) { + queryParameters['includeUninitialized'] = includeUninitialized; + } + + if (labelSelector !== undefined) { + queryParameters['labelSelector'] = labelSelector; + } + + if (limit !== undefined) { + queryParameters['limit'] = limit; + } + + if (resourceVersion !== undefined) { + queryParameters['resourceVersion'] = resourceVersion; + } + + if (timeoutSeconds !== undefined) { + queryParameters['timeoutSeconds'] = timeoutSeconds; + } + + if (watch !== undefined) { + queryParameters['watch'] = watch; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta1StorageClassList; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * partially update the specified StorageClass + * @param name name of the StorageClass + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public patchStorageClass (name: string, body: any, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1beta1StorageClass; }> { + const localVarPath = this.basePath + '/apis/storage.k8s.io/v1beta1/storageclasses/{name}' + .replace('{' + 'name' + '}', String(name)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling patchStorageClass.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling patchStorageClass.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PATCH', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta1StorageClass; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * read the specified StorageClass + * @param name name of the StorageClass + * @param pretty If 'true', then the output is pretty printed. + * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + * @param _export Should this value be exported. Export strips fields that a user can not specify. + */ + public readStorageClass (name: string, pretty?: string, exact?: boolean, _export?: boolean) : Promise<{ response: http.ClientResponse; body: V1beta1StorageClass; }> { + const localVarPath = this.basePath + '/apis/storage.k8s.io/v1beta1/storageclasses/{name}' + .replace('{' + 'name' + '}', String(name)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling readStorageClass.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + if (exact !== undefined) { + queryParameters['exact'] = exact; + } + + if (_export !== undefined) { + queryParameters['export'] = _export; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta1StorageClass; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * replace the specified StorageClass + * @param name name of the StorageClass + * @param body + * @param pretty If 'true', then the output is pretty printed. + */ + public replaceStorageClass (name: string, body: V1beta1StorageClass, pretty?: string) : Promise<{ response: http.ClientResponse; body: V1beta1StorageClass; }> { + const localVarPath = this.basePath + '/apis/storage.k8s.io/v1beta1/storageclasses/{name}' + .replace('{' + 'name' + '}', String(name)); + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new Error('Required parameter name was null or undefined when calling replaceStorageClass.'); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling replaceStorageClass.'); + } + + if (pretty !== undefined) { + queryParameters['pretty'] = pretty; + } + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'PUT', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: body, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: V1beta1StorageClass; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } +} +export enum VersionApiApiKeys { + BearerToken, +} + +export class VersionApi { + protected _basePath = defaultBasePath; + protected defaultHeaders : any = {}; + protected _useQuerystring : boolean = false; + + protected authentications = { + 'default': new VoidAuth(), + 'BearerToken': new ApiKeyAuth('header', 'authorization'), + } + + constructor(basePath?: string); + constructor(basePathOrUsername: string, password?: string, basePath?: string) { + if (password) { + if (basePath) { + this.basePath = basePath; + } + } else { + if (basePathOrUsername) { + this.basePath = basePathOrUsername + } + } + } + + set useQuerystring(value: boolean) { + this._useQuerystring = value; + } + + set basePath(basePath: string) { + this._basePath = basePath; + } + + get basePath() { + return this._basePath; + } + + public setDefaultAuthentication(auth: Authentication) { + this.authentications.default = auth; + } + + public setApiKey(key: VersionApiApiKeys, value: string) { + this.authentications[VersionApiApiKeys[key]].apiKey = value; + } + /** + * get the code version + */ + public getCode () : Promise<{ response: http.ClientResponse; body: VersionInfo; }> { + const localVarPath = this.basePath + '/version/'; + let queryParameters: any = {}; + let headerParams: any = (Object).assign({}, this.defaultHeaders); + let formParams: any = {}; + + + let useFormData = false; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParameters, + headers: headerParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.BearerToken.applyToRequest(requestOptions); + + this.authentications.default.applyToRequest(requestOptions); + + if (Object.keys(formParams).length) { + if (useFormData) { + (requestOptions).formData = formParams; + } else { + requestOptions.form = formParams; + } + } + return new Promise<{ response: http.ClientResponse; body: VersionInfo; }>((resolve, reject) => { + request(requestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } +} diff --git a/node/attach.ts b/node/attach.ts new file mode 100644 index 0000000000..012e79c7d1 --- /dev/null +++ b/node/attach.ts @@ -0,0 +1,28 @@ +import querystring = require('querystring'); +import stream = require('stream'); + +import { WebSocketHandler } from './web-socket-handler'; +import { KubeConfig } from '@kubernetes/client-node'; + +export class Attach { + 'handler': WebSocketHandler; + + public constructor(config: KubeConfig) { + this.handler = new WebSocketHandler(config); + } + + public attach(namespace: string, podName: string, containerName: string, stdout: stream.Writable | any, stderr: stream.Writable | any, stdin: stream.Readable | any, tty: boolean) { + var query = { + stdout: stdout != null, + stderr: stderr != null, + stdin: stdin != null, + tty: tty, + container: containerName + } + var queryStr = querystring.stringify(query); + var path = `/api/v1/namespaces/${namespace}/pods/${podName}/attach?${queryStr}`; + this.handler.connect(path, null, (stream: number, buff: Buffer) => { + WebSocketHandler.handleStandardStreams(stream, buff, stdout, stderr); + }); + } +} diff --git a/node/auth-wrapper.ts b/node/auth-wrapper.ts new file mode 100644 index 0000000000..3a3c9cd80f --- /dev/null +++ b/node/auth-wrapper.ts @@ -0,0 +1,25 @@ +import api = require('./api'); + +// These wrappers are needed until we update the swagger->TypeScript generator + +// Add the ability to extend auth. +export class Core_v1Api extends api.Core_v1Api { + constructor(baseUri: string) { + super(baseUri); + } + public setDefaultAuthentication(auth: api.Authentication) { + this.authentications.default = auth; + } +} + +export class Extensions_v1beta1Api extends api.Extensions_v1beta1Api { + constructor(baseUri: string) { + super(baseUri); + } + public setDefaultAuthentication(auth: api.Authentication) { + this.authentications.default = auth; + } +} + +// TODO: Add other API objects here + diff --git a/node/config.ts b/node/config.ts new file mode 100644 index 0000000000..a5abe983e0 --- /dev/null +++ b/node/config.ts @@ -0,0 +1,231 @@ +import fs = require('fs'); +import os = require('os'); +import path = require('path'); + +import base64 = require('base-64'); +import jsonpath = require('jsonpath'); +import request = require('request'); +import shelljs = require('shelljs'); +import yaml = require('js-yaml'); +import api = require('./api'); +import { Cluster, newClusters, User, newUsers, Context, newContexts } from './config_types'; + +import client = require('./auth-wrapper'); + +export class KubeConfig { + /** + * The list of all known clusters + */ + 'clusters': Cluster[]; + + /** + * The list of all known users + */ + 'users': User[]; + + /** + * The list of all known contexts + */ + 'contexts': Context[]; + + /** + * The name of the current context + */ + 'currentContext': string; + + constructor() { } + + public getContexts() { + return this.contexts; + } + + public getClusters() { + return this.clusters; + } + + public getUsers() { + return this.users; + } + + public getCurrentContext() { + return this.currentContext; + } + + public setCurrentContext(context: string) { + this.currentContext = context; + } + + // Only really public for testing... + public static findObject(list: Object[], name: string, key: string) { + for (let obj of list) { + if (obj['name'] == name) { + if (obj[key]) { + return obj[key]; + } + return obj; + } + } + return null; + } + + private getCurrentContextObject() { + return this.getContextObject(this.currentContext); + } + + public getContextObject(name: string) { + return KubeConfig.findObject(this.contexts, name, 'context'); + } + + public getCurrentCluster() { + return this.getCluster(this.getCurrentContextObject()['cluster']); + } + + public getCluster(name: string) { + return KubeConfig.findObject(this.clusters, name, 'cluster'); + } + + public getCurrentUser() { + return this.getUser(this.getCurrentContextObject()['user']); + } + + public getUser(name: string) { + return KubeConfig.findObject(this.users, name, 'user'); + } + + public loadFromFile(file: string) { + this.loadFromString(fs.readFileSync(file, 'utf8')); + } + + private bufferFromFileOrString(file: string, data: string) { + if (file) { + return fs.readFileSync(file); + } + if (data) { + return new Buffer(base64.decode(data), 'utf-8'); + } + return null; + } + + public applyToRequest(opts: request.Options) { + let cluster = this.getCurrentCluster(); + let user = this.getCurrentUser(); + + if (cluster.skipTLSVerify) { + opts.strictSSL = false + } + opts.ca = this.bufferFromFileOrString(cluster.caFile, cluster.caData); + opts.cert = this.bufferFromFileOrString(user.certFile, user.certData); + opts.key = this.bufferFromFileOrString(user.keyFile, user.keyData); + let token = null; + if (user['auth-provider'] && user['auth-provider']['config']) { + let config = user['auth-provider']['config']; + // This should probably be extracted as auth-provider specific plugins... + token = 'Bearer ' + config['access-token']; + let expiry = config['expiry']; + if (expiry) { + let expiration = Date.parse(expiry); + if (expiration < Date.now()) { + if (config['cmd-path']) { + let cmd = config['cmd-path']; + if (config['cmd-args']) { + cmd = cmd + ' ' + config['cmd-args']; + } + // TODO: Cache to file? + let result = shelljs.exec(cmd, { silent: true }); + if (result['code'] != 0) { + throw new Error('Failed to refresh token: ' + result); + } + let resultObj = JSON.parse(result.stdout.toString()); + + let path = config['token-key']; + // Format in file is {}, so slice it out and add '$' + path = '$' + path.slice(1, -1); + + config['access-token'] = jsonpath.query(resultObj, path); + token = 'Bearer ' + config['access-token']; + } else { + throw new Error('Token is expired!'); + } + } + } + } + if (user.token) { + token = 'Bearer ' + user.token; + } + if (token) { + opts.headers['Authorization'] = token; + } + if (user.username) { + opts.auth = { + username: user.username, + password: user.password + } + } + } + + public loadFromString(config: string) { + var obj = yaml.safeLoad(config); + if (obj.apiVersion != 'v1') { + throw new TypeError('unknown version: ' + obj.apiVersion); + } + this.clusters = newClusters(obj.clusters); + this.contexts = newContexts(obj.contexts); + this.users = newUsers(obj.users); + this.currentContext = obj['current-context']; + } +} + +export class Config { + public static SERVICEACCOUNT_ROOT = + '/var/run/secrets/kubernetes.io/serviceaccount'; + public static SERVICEACCOUNT_CA_PATH = + Config.SERVICEACCOUNT_ROOT + '/ca.crt'; + public static SERVICEACCOUNT_TOKEN_PATH = + Config.SERVICEACCOUNT_ROOT + '/token'; + + public static fromFile(filename: string): api.Core_v1Api { + let kc = new KubeConfig(); + kc.loadFromFile(filename); + + let k8sApi = new client.Core_v1Api(kc.getCurrentCluster()['server']); + k8sApi.setDefaultAuthentication(kc); + + return k8sApi; + } + + public static fromCluster(): api.Core_v1Api { + let host = process.env.KUBERNETES_SERVICE_HOST + let port = process.env.KUBERNETES_SERVICE_PORT + + // TODO: better error checking here. + let caCert = fs.readFileSync(Config.SERVICEACCOUNT_CA_PATH); + let token = fs.readFileSync(Config.SERVICEACCOUNT_TOKEN_PATH); + + let k8sApi = new client.Core_v1Api('https://' + host + ':' + port); + k8sApi.setDefaultAuthentication({ + 'applyToRequest': (opts) => { + opts.ca = caCert; + opts.headers['Authorization'] = 'Bearer ' + token; + } + }); + + return k8sApi; + } + + public static defaultClient(): api.Core_v1Api { + if (process.env.KUBECONFIG) { + return Config.fromFile(process.env.KUBECONFIG); + } + + let config = path.join(process.env.HOME, ".kube", "config"); + if (fs.existsSync(config)) { + return Config.fromFile(config); + } + + if (fs.existsSync(Config.SERVICEACCOUNT_TOKEN_PATH)) { + return Config.fromCluster(); + } + + return new client.Core_v1Api('http://localhost:8080/'); + } +} diff --git a/node/config_test.ts b/node/config_test.ts new file mode 100644 index 0000000000..d889165847 --- /dev/null +++ b/node/config_test.ts @@ -0,0 +1,88 @@ +import { KubeConfig, Config } from './config'; +import { expect } from 'chai'; +import { describe, it } from 'jasmine'; + +const kcFileName = "testdata/kubeconfig.yaml"; + +describe("Config", () => { +}); + + +describe("KubeConfig", () => { + describe("findObject", () => { + it("should find objects", () => { + let list = [ + { + name: "foo", + "cluster": { + some: "sub-object" + }, + some: "object" + }, + { + name: "bar", + some: "object", + cluster: { + sone: "sub-object" + } + } + ]; + + // Validate that if the named object ('cluster' in this case) is inside we pick it out + let obj1 = KubeConfig.findObject(list, "foo", "cluster"); + expect(obj1.some).to.equal("sub-object"); + + // Validate that if the named object is missing, we just return the full object + let obj2 = KubeConfig.findObject(list, "bar", "context"); + expect(obj2.some).to.equal("object"); + + // validate that we do the right thing if it is missing + let obj3 = KubeConfig.findObject(list, "nonexistent", "context"); + expect(obj3).to.equal(null); + }); + }); + describe("loadFromFile", () => { + it("should load the kubeconfig file properly", () => { + let kc = new KubeConfig(); + kc.loadFromFile(kcFileName); + + // check clusters + expect(kc.clusters.length).to.equal(2); + let cluster1 = kc.clusters[0]; + let cluster2 = kc.clusters[1]; + expect(cluster1.name).to.equal("cluster1"); + expect(cluster1.caData).to.equal("CADATA"); + expect(cluster1.server).to.equal("http://example.com/"); + expect(cluster2.name).to.equal("cluster2"); + expect(cluster2.caData).to.equal("CADATA"); + expect(cluster2.server).to.equal("http://example.com/"); + + // check users + expect(kc.users.length).to.equal(2); + let user1 = kc.users[0]; + let user2 = kc.users[1]; + expect(user1.name).to.equal("user1"); + expect(user1.certData).to.equal("CADATA"); + expect(user1.keyData).to.equal("CKDATA"); + expect(user2.name).to.equal("user2"); + expect(user2.certData).to.equal("CADATA"); + expect(user2.keyData).to.equal("CKDATA"); + + // check contexts + expect(kc.contexts.length).to.equal(2); + let context1 = kc.contexts[0]; + let context2 = kc.contexts[1]; + expect(context1.name).to.equal("context1"); + expect(context1.user).to.equal("user1"); + expect(context1.cluster).to.equal("cluster1"); + expect(context2.name).to.equal("context2"); + expect(context2.user).to.equal("user2"); + expect(context2.cluster).to.equal("cluster2") + }); + it("should fail to load a missing kubeconfig file", () => { + // TODO: make the error check work + // let kc = new KubeConfig(); + // expect(kc.loadFromFile("missing.yaml")).to.throw(); + }); + }); +}); diff --git a/node/config_types.ts b/node/config_types.ts new file mode 100644 index 0000000000..c3b8acd07d --- /dev/null +++ b/node/config_types.ts @@ -0,0 +1,106 @@ +import * as u from 'underscore'; +import * as fs from 'fs'; + +export interface Cluster { + readonly name: string; + readonly caData: string; + readonly caFile: string; + readonly server: string; + readonly skipTLSVerify: boolean; +} + +export function newClusters(a: any): Cluster[] { + return u.map(a, clusterIterator()) +} + +function clusterIterator(): u.ListIterator { + return function (elt: any, i: number, list: u.List): Cluster { + if (!elt['name']) { + throw new Error(`clusters${i}.name is missing`); + } + if (!elt.cluster['certificate-authority-data'] && !elt.cluster['certificate-authority']) { + throw new Error(`clusters[${i}].cluster.[certificate-authority-data, certificate-authority] is missing`); + } + if (!elt.cluster['server']) { + throw new Error(`clusters[${i}].cluster.server is missing`); + } + return { + name: elt['name'], + caData: elt.cluster['certificate-authority-data'], + caFile: elt.cluster['certificate-authority'], + server: elt.cluster['server'], + skipTLSVerify: elt.cluster['insecure-skip-tls-verify'] == 'true' + }; + } +} + +export interface User { + readonly name: string + readonly certData: string + readonly certFile: string + readonly keyData: string + readonly keyFile: string + readonly authProvider: Object + readonly token: string + readonly username: string + readonly password: string +} + +export function newUsers(a: any): User[] { + return u.map(a, userIterator()); +} + +function userIterator(): u.ListIterator { + return function (elt: any, i: number, list: u.List): User { + if (!elt.name) { + throw new Error(`users[${i}].name is missing`); + } + let token = null; + if (elt.user["token"]) { + token = elt.user["token"]; + } + if (elt.user["token-file"]) { + token = fs.readFileSync(elt.user["token-file"]); + } + return { + name: elt.name, + certData: elt.user["client-certificate-data"], + certFile: elt.user["client-certificate"], + keyData: elt.user["client-key-data"], + keyFile: elt.user["client-key"], + authProvider: elt.user["auth-provider"], + token: token, + username: elt.user["username"], + password: elt.user["password"] + } + } +} + +export interface Context { + readonly cluster: string + readonly user: string + readonly name: string +} + +export function newContexts(a: any): Context[] { + return u.map(a, contextIterator()); +} + +function contextIterator(): u.ListIterator { + return function (elt: any, i: number, list: u.List): Context { + if (!elt.name) { + throw new Error(`contexts[${i}].name is missing`); + } + if (!elt.context["cluster"]) { + throw new Error(`contexts[${i}].context.cluster is missing`); + } + if (!elt.context["user"]) { + throw new Error(`context[${i}].context.user is missing`); + } + return { + cluster: elt.context['cluster'], + user: elt.context["user"], + name: elt.name + }; + } +} diff --git a/node/exec.ts b/node/exec.ts new file mode 100644 index 0000000000..a3eeb9ac3d --- /dev/null +++ b/node/exec.ts @@ -0,0 +1,34 @@ +import querystring = require('querystring'); +import stream = require('stream'); + +import { WebSocketHandler } from './web-socket-handler'; +import { KubeConfig } from '@kubernetes/client-node'; + +export class Exec { + 'handler': WebSocketHandler; + + public constructor(config: KubeConfig) { + this.handler = new WebSocketHandler(config); + } + + // TODO: make command an array and support multiple args + public async exec(namespace: string, podName: string, containerName: string, command: string, stdout: stream.Writable | any, stderr: stream.Writable | any, stdin: stream.Readable | any, tty: boolean): Promise { + var query = { + stdout: stdout != null, + stderr: stderr != null, + stdin: stdin != null, + tty: tty, + command: command, + container: containerName + } + var queryStr = querystring.stringify(query); + var path = `/api/v1/namespaces/${namespace}/pods/${podName}/exec?${queryStr}`; + var conn = await this.handler.connect(path, null, (stream: number, buff: Buffer) => { + WebSocketHandler.handleStandardStreams(stream, buff, stdout, stderr); + }); + if (stdin != null) { + WebSocketHandler.handleStandardInput(conn, stdin); + } + return conn as WebSocket; + } +} diff --git a/node/index.ts b/node/index.ts new file mode 100644 index 0000000000..2b5bdf033d --- /dev/null +++ b/node/index.ts @@ -0,0 +1,5 @@ +export * from './config'; +export * from './api'; +export * from './attach'; +export * from './watch'; +export * from './exec'; diff --git a/node/package-lock.json b/node/package-lock.json new file mode 100644 index 0000000000..34ca216946 --- /dev/null +++ b/node/package-lock.json @@ -0,0 +1,1182 @@ +{ + "name": "@kubernetes/client-node", + "version": "0.1.1", + "lockfileVersion": 1, + "requires": true, + "dependencies": { + "@types/base-64": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/@types/base-64/-/base-64-0.1.2.tgz", + "integrity": "sha1-Y6wxgwLNq7XwToripW5U1IMhB+I=", + "dev": true + }, + "@types/bluebird": { + "version": "3.5.18", + "resolved": "https://registry.npmjs.org/@types/bluebird/-/bluebird-3.5.18.tgz", + "integrity": "sha512-OTPWHmsyW18BhrnG5x8F7PzeZ2nFxmHGb42bZn79P9hl+GI5cMzyPgQTwNjbem0lJhoru/8vtjAFCUOu3+gE2w==", + "dev": true + }, + "@types/chai": { + "version": "4.0.10", + "resolved": "https://registry.npmjs.org/@types/chai/-/chai-4.0.10.tgz", + "integrity": "sha512-Ejh1AXTY8lm+x91X/yar3G2z4x9RyKwdTVdyyu7Xj3dNB35fMNCnEWqTO9FgS3zjzlRNqk1MruYhgb8yhRN9rA==", + "dev": true + }, + "@types/js-yaml": { + "version": "3.10.1", + "resolved": "https://registry.npmjs.org/@types/js-yaml/-/js-yaml-3.10.1.tgz", + "integrity": "sha512-IpKg0KGIUNcydttaGURhSLrq1eSNoSjN7T1MokAuasIPBKzsHxcz3MAdFGzasmYQVWf6XxG+jQTJ9UFOL29Ubg==", + "dev": true + }, + "@types/mocha": { + "version": "2.2.44", + "resolved": "https://registry.npmjs.org/@types/mocha/-/mocha-2.2.44.tgz", + "integrity": "sha512-k2tWTQU8G4+iSMvqKi0Q9IIsWAp/n8xzdZS4Q4YVIltApoMA00wFBFdlJnmoaK1/z7B0Cy0yPe6GgXteSmdUNw==", + "dev": true + }, + "@types/node": { + "version": "8.5.1", + "resolved": "https://registry.npmjs.org/@types/node/-/node-8.5.1.tgz", + "integrity": "sha512-SrmAO+NhnsuG/6TychSl2VdxBZiw/d6V+8j+DFo8O3PwFi+QeYXWHhAw+b170aSc6zYab6/PjEWRZHIDN9mNUw==", + "dev": true + }, + "@types/underscore": { + "version": "1.8.6", + "resolved": "https://registry.npmjs.org/@types/underscore/-/underscore-1.8.6.tgz", + "integrity": "sha512-9r3G/aelGEmiGT6DKmvPvMxPQG387pQpS6gDuylq/oUZ7n1XkyRe/I+Kiln6Up9pjtIreusWJ8OjbczGX5g6Qg==", + "dev": true + }, + "JSONSelect": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/JSONSelect/-/JSONSelect-0.4.0.tgz", + "integrity": "sha1-oI7cxn6z/L6Z7WMIVTRKDPKCu40=" + }, + "ajv": { + "version": "5.5.1", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-5.5.1.tgz", + "integrity": "sha1-s4u4h22ehr7plJVqBOch6IskjrI=", + "requires": { + "co": "4.6.0", + "fast-deep-equal": "1.0.0", + "fast-json-stable-stringify": "2.0.0", + "json-schema-traverse": "0.3.1" + } + }, + "ansi-styles": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.0.tgz", + "integrity": "sha512-NnSOmMEYtVR2JVMIGTzynRkkaxtiq1xnFBcdQD/DnNCYPoEPsVJhM98BDyaoNOQIi7p4okdi3E27eN7GQbsUug==", + "dev": true, + "requires": { + "color-convert": "1.9.1" + } + }, + "argparse": { + "version": "1.0.9", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.9.tgz", + "integrity": "sha1-c9g7wmP4bpf4zE9rrhsOkKfSLIY=", + "requires": { + "sprintf-js": "1.0.3" + } + }, + "arrify": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/arrify/-/arrify-1.0.1.tgz", + "integrity": "sha1-iYUI2iIm84DfkEcoRWhJwVAaSw0=", + "dev": true + }, + "asn1": { + "version": "0.2.3", + "resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.3.tgz", + "integrity": "sha1-2sh4dxPJlmhJ/IGAd36+nB3fO4Y=" + }, + "assert-plus": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz", + "integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU=" + }, + "assertion-error": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/assertion-error/-/assertion-error-1.0.2.tgz", + "integrity": "sha1-E8pRXYYgbaC6xm6DTdOX2HWBCUw=" + }, + "asynckit": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", + "integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k=" + }, + "aws-sign2": { + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.7.0.tgz", + "integrity": "sha1-tG6JCTSpWR8tL2+G1+ap8bP+dqg=" + }, + "aws4": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.6.0.tgz", + "integrity": "sha1-g+9cqGCysy5KDe7e6MdxudtXRx4=" + }, + "balanced-match": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", + "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=" + }, + "base-64": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/base-64/-/base-64-0.1.0.tgz", + "integrity": "sha1-eAqZyE59YAJgNhURxId2E78k9rs=" + }, + "bcrypt-pbkdf": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.1.tgz", + "integrity": "sha1-Y7xdy2EzG5K8Bf1SiVPDNGKgb40=", + "optional": true, + "requires": { + "tweetnacl": "0.14.5" + } + }, + "bluebird": { + "version": "3.5.1", + "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.5.1.tgz", + "integrity": "sha512-MKiLiV+I1AA596t9w1sQJ8jkiSr5+ZKi0WKrYGUn6d1Fx+Ij4tIj+m2WMQSGczs5jZVxV339chE8iwk6F64wjA==" + }, + "boom": { + "version": "4.3.1", + "resolved": "https://registry.npmjs.org/boom/-/boom-4.3.1.tgz", + "integrity": "sha1-T4owBctKfjiJ90kDD9JbluAdLjE=", + "requires": { + "hoek": "4.2.0" + } + }, + "brace-expansion": { + "version": "1.1.8", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.8.tgz", + "integrity": "sha1-wHshHHyVLsH479Uad+8NHTmQopI=", + "requires": { + "balanced-match": "1.0.0", + "concat-map": "0.0.1" + } + }, + "browser-stdout": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/browser-stdout/-/browser-stdout-1.3.0.tgz", + "integrity": "sha1-81HTKWnTL6XXpVZxVCY9korjvR8=" + }, + "byline": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/byline/-/byline-5.0.0.tgz", + "integrity": "sha1-dBxSFkaOrcRXsDQQEYrXfejB3bE=" + }, + "caseless": { + "version": "0.12.0", + "resolved": "https://registry.npmjs.org/caseless/-/caseless-0.12.0.tgz", + "integrity": "sha1-G2gcIf+EAzyCZUMJBolCDRhxUdw=" + }, + "chai": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chai/-/chai-4.1.2.tgz", + "integrity": "sha1-D2RYS6ZC8PKs4oBiefTwbKI61zw=", + "requires": { + "assertion-error": "1.0.2", + "check-error": "1.0.2", + "deep-eql": "3.0.1", + "get-func-name": "2.0.0", + "pathval": "1.1.0", + "type-detect": "4.0.5" + } + }, + "chalk": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.3.0.tgz", + "integrity": "sha512-Az5zJR2CBujap2rqXGaJKaPHyJ0IrUimvYNX+ncCy8PJP4ltOGTrHUIo097ZaL2zMeKYpiCdqDvS6zdrTFok3Q==", + "dev": true, + "requires": { + "ansi-styles": "3.2.0", + "escape-string-regexp": "1.0.5", + "supports-color": "4.5.0" + }, + "dependencies": { + "has-flag": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-2.0.0.tgz", + "integrity": "sha1-6CB68cx7MNRGzHC3NLXovhj4jVE=", + "dev": true + }, + "supports-color": { + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-4.5.0.tgz", + "integrity": "sha1-vnoN5ITexcXN34s9WRJQRJEvY1s=", + "dev": true, + "requires": { + "has-flag": "2.0.0" + } + } + } + }, + "check-error": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/check-error/-/check-error-1.0.2.tgz", + "integrity": "sha1-V00xLt2Iu13YkS6Sht1sCu1KrII=" + }, + "cjson": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/cjson/-/cjson-0.2.1.tgz", + "integrity": "sha1-c82KrWXZ4VBfmvF0TTt5wVJ2gqU=" + }, + "co": { + "version": "4.6.0", + "resolved": "https://registry.npmjs.org/co/-/co-4.6.0.tgz", + "integrity": "sha1-bqa989hTrlTMuOR7+gvz+QMfsYQ=" + }, + "color-convert": { + "version": "1.9.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.1.tgz", + "integrity": "sha512-mjGanIiwQJskCC18rPR6OmrZ6fm2Lc7PeGFYwCmy5J34wC6F1PzdGL6xeMfmgicfYcNLGuVFA3WzXtIDCQSZxQ==", + "dev": true, + "requires": { + "color-name": "1.1.3" + } + }, + "color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=", + "dev": true + }, + "colors": { + "version": "0.5.1", + "resolved": "https://registry.npmjs.org/colors/-/colors-0.5.1.tgz", + "integrity": "sha1-fQAj6usVTo7p/Oddy5I9DtFmd3Q=" + }, + "combined-stream": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.5.tgz", + "integrity": "sha1-k4NwpXtKUd6ix3wV1cX9+JUWQAk=", + "requires": { + "delayed-stream": "1.0.0" + } + }, + "commander": { + "version": "2.9.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-2.9.0.tgz", + "integrity": "sha1-nJkJQXbhIkDLItbFFGCYQA/g99Q=", + "requires": { + "graceful-readlink": "1.0.1" + } + }, + "concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=" + }, + "core-util-is": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", + "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=" + }, + "cryptiles": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/cryptiles/-/cryptiles-3.1.2.tgz", + "integrity": "sha1-qJ+7Ig9c4l7FboxKqKT9e1sNKf4=", + "requires": { + "boom": "5.2.0" + }, + "dependencies": { + "boom": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/boom/-/boom-5.2.0.tgz", + "integrity": "sha512-Z5BTk6ZRe4tXXQlkqftmsAUANpXmuwlsF5Oov8ThoMbQRzdGTA1ngYRW160GexgOgjsFOKJz0LYhoNi+2AMBUw==", + "requires": { + "hoek": "4.2.0" + } + } + } + }, + "dashdash": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/dashdash/-/dashdash-1.14.1.tgz", + "integrity": "sha1-hTz6D3y+L+1d4gMmuN1YEDX24vA=", + "requires": { + "assert-plus": "1.0.0" + } + }, + "debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "requires": { + "ms": "2.0.0" + } + }, + "deep-eql": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/deep-eql/-/deep-eql-3.0.1.tgz", + "integrity": "sha512-+QeIQyN5ZuO+3Uk5DYh6/1eKO0m0YmJFGNmFHGACpf1ClL1nmlV/p4gNgbl2pJGxgXb4faqo6UE+M5ACEMyVcw==", + "requires": { + "type-detect": "4.0.5" + } + }, + "delayed-stream": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", + "integrity": "sha1-3zrhmayt+31ECqrgsp4icrJOxhk=" + }, + "diff": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/diff/-/diff-3.2.0.tgz", + "integrity": "sha1-yc45Okt8vQsFinJck98pkCeGj/k=" + }, + "ebnf-parser": { + "version": "0.1.10", + "resolved": "https://registry.npmjs.org/ebnf-parser/-/ebnf-parser-0.1.10.tgz", + "integrity": "sha1-zR9rpHfFY4xAyX7ZtXLbW6tdgzE=" + }, + "ecc-jsbn": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/ecc-jsbn/-/ecc-jsbn-0.1.1.tgz", + "integrity": "sha1-D8c6ntXw1Tw4GTOYUj735UN3dQU=", + "optional": true, + "requires": { + "jsbn": "0.1.1" + } + }, + "escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=" + }, + "escodegen": { + "version": "0.0.21", + "resolved": "https://registry.npmjs.org/escodegen/-/escodegen-0.0.21.tgz", + "integrity": "sha1-U9ZSz6EDA4gnlFilJmxf/HCcY8M=", + "requires": { + "esprima": "1.0.4", + "estraverse": "0.0.4", + "source-map": "0.6.1" + }, + "dependencies": { + "esprima": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/esprima/-/esprima-1.0.4.tgz", + "integrity": "sha1-n1V+CPw7TSbs6d00+Pv0drYlha0=" + } + } + }, + "esprima": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.0.tgz", + "integrity": "sha512-oftTcaMu/EGrEIu904mWteKIv8vMuOgGYo7EhVJJN00R/EED9DCua/xxHRdYnKtcECzVg7xOWhflvJMnqcFZjw==" + }, + "estraverse": { + "version": "0.0.4", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-0.0.4.tgz", + "integrity": "sha1-AaCTLf7ldGhKWYr1pnw7+bZCjbI=" + }, + "exit": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/exit/-/exit-0.1.2.tgz", + "integrity": "sha1-BjJjj42HfMghB9MKD/8aF8uhzQw=", + "dev": true + }, + "extend": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.1.tgz", + "integrity": "sha1-p1Xqe8Gt/MWjHOfnYtuq3F5jZEQ=" + }, + "extsprintf": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.3.0.tgz", + "integrity": "sha1-lpGEQOMEGnpBT4xS48V06zw+HgU=" + }, + "fast-deep-equal": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-1.0.0.tgz", + "integrity": "sha1-liVqO8l1WV6zbYLpkp0GDYk0Of8=" + }, + "fast-json-stable-stringify": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.0.0.tgz", + "integrity": "sha1-1RQsDK7msRifh9OnYREGT4bIu/I=" + }, + "forever-agent": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/forever-agent/-/forever-agent-0.6.1.tgz", + "integrity": "sha1-+8cfDEGt6zf5bFd60e1C2P2sypE=" + }, + "form-data": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.3.1.tgz", + "integrity": "sha1-b7lPvXGIUwbXPRXMSX/kzE7NRL8=", + "requires": { + "asynckit": "0.4.0", + "combined-stream": "1.0.5", + "mime-types": "2.1.17" + } + }, + "fs.realpath": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", + "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=" + }, + "get-func-name": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/get-func-name/-/get-func-name-2.0.0.tgz", + "integrity": "sha1-6td0q+5y4gQJQzoGY2YCPdaIekE=" + }, + "getpass": { + "version": "0.1.7", + "resolved": "https://registry.npmjs.org/getpass/-/getpass-0.1.7.tgz", + "integrity": "sha1-Xv+OPmhNVprkyysSgmBOi6YhSfo=", + "requires": { + "assert-plus": "1.0.0" + } + }, + "glob": { + "version": "7.1.2", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.2.tgz", + "integrity": "sha512-MJTUg1kjuLeQCJ+ccE4Vpa6kKVXkPYJ2mOCQyUuKLcLQsdrMCpBPUi8qVE6+YuaJkozeA9NusTAw3hLr8Xe5EQ==", + "requires": { + "fs.realpath": "1.0.0", + "inflight": "1.0.6", + "inherits": "2.0.3", + "minimatch": "3.0.4", + "once": "1.4.0", + "path-is-absolute": "1.0.1" + } + }, + "graceful-readlink": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/graceful-readlink/-/graceful-readlink-1.0.1.tgz", + "integrity": "sha1-TK+tdrxi8C+gObL5Tpo906ORpyU=" + }, + "growl": { + "version": "1.9.2", + "resolved": "https://registry.npmjs.org/growl/-/growl-1.9.2.tgz", + "integrity": "sha1-Dqd0NxXbjY3ixe3hd14bRayFwC8=" + }, + "har-schema": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/har-schema/-/har-schema-2.0.0.tgz", + "integrity": "sha1-qUwiJOvKwEeCoNkDVSHyRzW37JI=" + }, + "har-validator": { + "version": "5.0.3", + "resolved": "https://registry.npmjs.org/har-validator/-/har-validator-5.0.3.tgz", + "integrity": "sha1-ukAsJmGU8VlW7xXg/PJCmT9qff0=", + "requires": { + "ajv": "5.5.1", + "har-schema": "2.0.0" + } + }, + "has-flag": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-1.0.0.tgz", + "integrity": "sha1-nZ55MWXOAXoA8AQYxD+UKnsdEfo=" + }, + "hawk": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/hawk/-/hawk-6.0.2.tgz", + "integrity": "sha512-miowhl2+U7Qle4vdLqDdPt9m09K6yZhkLDTWGoUiUzrQCn+mHHSmfJgAyGaLRZbPmTqfFFjRV1QWCW0VWUJBbQ==", + "requires": { + "boom": "4.3.1", + "cryptiles": "3.1.2", + "hoek": "4.2.0", + "sntp": "2.1.0" + } + }, + "he": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/he/-/he-1.1.1.tgz", + "integrity": "sha1-k0EP0hsAlzUVH4howvJx80J+I/0=" + }, + "hoek": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/hoek/-/hoek-4.2.0.tgz", + "integrity": "sha512-v0XCLxICi9nPfYrS9RL8HbYnXi9obYAeLbSP00BmnZwCK9+Ih9WOjoZ8YoHCoav2csqn4FOz4Orldsy2dmDwmQ==" + }, + "homedir-polyfill": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/homedir-polyfill/-/homedir-polyfill-1.0.1.tgz", + "integrity": "sha1-TCu8inWJmP7r9e1oWA921GdotLw=", + "dev": true, + "requires": { + "parse-passwd": "1.0.0" + } + }, + "http-signature": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/http-signature/-/http-signature-1.2.0.tgz", + "integrity": "sha1-muzZJRFHcvPZW2WmCruPfBj7rOE=", + "requires": { + "assert-plus": "1.0.0", + "jsprim": "1.4.1", + "sshpk": "1.13.1" + } + }, + "inflight": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", + "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", + "requires": { + "once": "1.4.0", + "wrappy": "1.0.2" + } + }, + "inherits": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", + "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=" + }, + "interpret": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/interpret/-/interpret-1.1.0.tgz", + "integrity": "sha1-ftGxQQxqDg94z5XTuEQMY/eLhhQ=" + }, + "is-typedarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz", + "integrity": "sha1-5HnICFjfDBsR3dppQPlgEfzaSpo=" + }, + "isstream": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/isstream/-/isstream-0.1.2.tgz", + "integrity": "sha1-R+Y/evVa+m+S4VAOaQ64uFKcCZo=" + }, + "jasmine": { + "version": "2.8.0", + "resolved": "https://registry.npmjs.org/jasmine/-/jasmine-2.8.0.tgz", + "integrity": "sha1-awicChFXax8W3xG4AUbZHU6Lij4=", + "dev": true, + "requires": { + "exit": "0.1.2", + "glob": "7.1.2", + "jasmine-core": "2.8.0" + } + }, + "jasmine-core": { + "version": "2.8.0", + "resolved": "https://registry.npmjs.org/jasmine-core/-/jasmine-core-2.8.0.tgz", + "integrity": "sha1-vMl5rh+f0FcB5F5S5l06XWPxok4=", + "dev": true + }, + "jison": { + "version": "0.4.13", + "resolved": "https://registry.npmjs.org/jison/-/jison-0.4.13.tgz", + "integrity": "sha1-kEFwfWIkE2f1iDRTK58ZwsNvrHg=", + "requires": { + "JSONSelect": "0.4.0", + "cjson": "0.2.1", + "ebnf-parser": "0.1.10", + "escodegen": "0.0.21", + "esprima": "1.0.4", + "jison-lex": "0.2.1", + "lex-parser": "0.1.4", + "nomnom": "1.5.2" + }, + "dependencies": { + "esprima": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/esprima/-/esprima-1.0.4.tgz", + "integrity": "sha1-n1V+CPw7TSbs6d00+Pv0drYlha0=" + } + } + }, + "jison-lex": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/jison-lex/-/jison-lex-0.2.1.tgz", + "integrity": "sha1-rEuBXozOUTLrErXfz+jXB7iETf4=", + "requires": { + "lex-parser": "0.1.4", + "nomnom": "1.5.2" + } + }, + "js-yaml": { + "version": "3.10.0", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.10.0.tgz", + "integrity": "sha512-O2v52ffjLa9VeM43J4XocZE//WT9N0IiwDa3KSHH7Tu8CtH+1qM8SIZvnsTh6v+4yFy5KUY3BHUVwjpfAWsjIA==", + "requires": { + "argparse": "1.0.9", + "esprima": "4.0.0" + } + }, + "jsbn": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz", + "integrity": "sha1-peZUwuWi3rXyAdls77yoDA7y9RM=", + "optional": true + }, + "json-schema": { + "version": "0.2.3", + "resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.2.3.tgz", + "integrity": "sha1-tIDIkuWaLwWVTOcnvT8qTogvnhM=" + }, + "json-schema-traverse": { + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.3.1.tgz", + "integrity": "sha1-NJptRMU6Ud6JtAgFxdXlm0F9M0A=" + }, + "json-stringify-safe": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz", + "integrity": "sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus=" + }, + "json3": { + "version": "3.3.2", + "resolved": "https://registry.npmjs.org/json3/-/json3-3.3.2.tgz", + "integrity": "sha1-PAQ0dD35Pi9cQq7nsZvLSDV19OE=" + }, + "jsonpath": { + "version": "0.2.12", + "resolved": "https://registry.npmjs.org/jsonpath/-/jsonpath-0.2.12.tgz", + "integrity": "sha1-W/nZEftGFsHjNwvs658NskrjTNI=", + "requires": { + "esprima": "1.2.2", + "jison": "0.4.13", + "static-eval": "0.2.3", + "underscore": "1.7.0" + }, + "dependencies": { + "esprima": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/esprima/-/esprima-1.2.2.tgz", + "integrity": "sha1-dqD9Zvz+FU/SkmZ9wmQBl1CxZXs=" + }, + "underscore": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/underscore/-/underscore-1.7.0.tgz", + "integrity": "sha1-a7rwh3UA02vjTsqlhODbn+8DUgk=" + } + } + }, + "jsprim": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/jsprim/-/jsprim-1.4.1.tgz", + "integrity": "sha1-MT5mvB5cwG5Di8G3SZwuXFastqI=", + "requires": { + "assert-plus": "1.0.0", + "extsprintf": "1.3.0", + "json-schema": "0.2.3", + "verror": "1.10.0" + } + }, + "lex-parser": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/lex-parser/-/lex-parser-0.1.4.tgz", + "integrity": "sha1-ZMTwJfF/1Tv7RXY/rrFvAVp0dVA=" + }, + "lodash._baseassign": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/lodash._baseassign/-/lodash._baseassign-3.2.0.tgz", + "integrity": "sha1-jDigmVAPIVrQnlnxci/QxSv+Ck4=", + "requires": { + "lodash._basecopy": "3.0.1", + "lodash.keys": "3.1.2" + } + }, + "lodash._basecopy": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/lodash._basecopy/-/lodash._basecopy-3.0.1.tgz", + "integrity": "sha1-jaDmqHbPNEwK2KVIghEd08XHyjY=" + }, + "lodash._basecreate": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/lodash._basecreate/-/lodash._basecreate-3.0.3.tgz", + "integrity": "sha1-G8ZhYU2qf8MRt9A78WgGoCE8+CE=" + }, + "lodash._getnative": { + "version": "3.9.1", + "resolved": "https://registry.npmjs.org/lodash._getnative/-/lodash._getnative-3.9.1.tgz", + "integrity": "sha1-VwvH3t5G1hzc3mh9ZdPuy6o6r/U=" + }, + "lodash._isiterateecall": { + "version": "3.0.9", + "resolved": "https://registry.npmjs.org/lodash._isiterateecall/-/lodash._isiterateecall-3.0.9.tgz", + "integrity": "sha1-UgOte6Ql+uhCRg5pbbnPPmqsBXw=" + }, + "lodash.create": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/lodash.create/-/lodash.create-3.1.1.tgz", + "integrity": "sha1-1/KEnw29p+BGgruM1yqwIkYd6+c=", + "requires": { + "lodash._baseassign": "3.2.0", + "lodash._basecreate": "3.0.3", + "lodash._isiterateecall": "3.0.9" + } + }, + "lodash.isarguments": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/lodash.isarguments/-/lodash.isarguments-3.1.0.tgz", + "integrity": "sha1-L1c9hcaiQon/AGY7SRwdM4/zRYo=" + }, + "lodash.isarray": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/lodash.isarray/-/lodash.isarray-3.0.4.tgz", + "integrity": "sha1-eeTriMNqgSKvhvhEqpvNhRtfu1U=" + }, + "lodash.keys": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/lodash.keys/-/lodash.keys-3.1.2.tgz", + "integrity": "sha1-TbwEcrFWvlCgsoaFXRvQsMZWCYo=", + "requires": { + "lodash._getnative": "3.9.1", + "lodash.isarguments": "3.1.0", + "lodash.isarray": "3.0.4" + } + }, + "make-error": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.0.tgz", + "integrity": "sha1-Uq06M5zPEM5itAQLcI/nByRLi5Y=", + "dev": true + }, + "mime-db": { + "version": "1.30.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.30.0.tgz", + "integrity": "sha1-dMZD2i3Z1qRTmZY0ZbJtXKfXHwE=" + }, + "mime-types": { + "version": "2.1.17", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.17.tgz", + "integrity": "sha1-Cdejk/A+mVp5+K+Fe3Cp4KsWVXo=", + "requires": { + "mime-db": "1.30.0" + } + }, + "minimatch": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", + "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", + "requires": { + "brace-expansion": "1.1.8" + } + }, + "minimist": { + "version": "0.0.8", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz", + "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=" + }, + "mkdirp": { + "version": "0.5.1", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz", + "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=", + "requires": { + "minimist": "0.0.8" + } + }, + "mocha": { + "version": "3.5.3", + "resolved": "https://registry.npmjs.org/mocha/-/mocha-3.5.3.tgz", + "integrity": "sha512-/6na001MJWEtYxHOV1WLfsmR4YIynkUEhBwzsb+fk2qmQ3iqsi258l/Q2MWHJMImAcNpZ8DEdYAK72NHoIQ9Eg==", + "requires": { + "browser-stdout": "1.3.0", + "commander": "2.9.0", + "debug": "2.6.8", + "diff": "3.2.0", + "escape-string-regexp": "1.0.5", + "glob": "7.1.1", + "growl": "1.9.2", + "he": "1.1.1", + "json3": "3.3.2", + "lodash.create": "3.1.1", + "mkdirp": "0.5.1", + "supports-color": "3.1.2" + }, + "dependencies": { + "debug": { + "version": "2.6.8", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.8.tgz", + "integrity": "sha1-5zFTHKLt4n0YgiJCfaF4IdaP9Pw=", + "requires": { + "ms": "2.0.0" + } + }, + "glob": { + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.1.tgz", + "integrity": "sha1-gFIR3wT6rxxjo2ADBs31reULLsg=", + "requires": { + "fs.realpath": "1.0.0", + "inflight": "1.0.6", + "inherits": "2.0.3", + "minimatch": "3.0.4", + "once": "1.4.0", + "path-is-absolute": "1.0.1" + } + } + } + }, + "ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=" + }, + "nan": { + "version": "2.8.0", + "resolved": "https://registry.npmjs.org/nan/-/nan-2.8.0.tgz", + "integrity": "sha1-7XFfP+neArV6XmJS2QqWZ14fCFo=" + }, + "nomnom": { + "version": "1.5.2", + "resolved": "https://registry.npmjs.org/nomnom/-/nomnom-1.5.2.tgz", + "integrity": "sha1-9DRUSKhTz71cDSYyDyR3qwUm/i8=", + "requires": { + "colors": "0.5.1", + "underscore": "1.1.7" + }, + "dependencies": { + "underscore": { + "version": "1.1.7", + "resolved": "https://registry.npmjs.org/underscore/-/underscore-1.1.7.tgz", + "integrity": "sha1-QLq4S60Z0jAJbo1u9ii/8FXYPbA=" + } + } + }, + "oauth-sign": { + "version": "0.8.2", + "resolved": "https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.8.2.tgz", + "integrity": "sha1-Rqarfwrq2N6unsBWV4C31O/rnUM=" + }, + "once": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", + "requires": { + "wrappy": "1.0.2" + } + }, + "parse-passwd": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/parse-passwd/-/parse-passwd-1.0.0.tgz", + "integrity": "sha1-bVuTSkVpk7I9N/QKOC1vFmao5cY=", + "dev": true + }, + "path-is-absolute": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", + "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=" + }, + "path-parse": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.5.tgz", + "integrity": "sha1-PBrfhx6pzWyUMbbqK9dKD/BVxME=" + }, + "pathval": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/pathval/-/pathval-1.1.0.tgz", + "integrity": "sha1-uULm1L3mUwBe9rcTYd74cn0GReA=" + }, + "performance-now": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/performance-now/-/performance-now-2.1.0.tgz", + "integrity": "sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns=" + }, + "punycode": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.4.1.tgz", + "integrity": "sha1-wNWmOycYgArY4esPpSachN1BhF4=" + }, + "qs": { + "version": "6.5.1", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.5.1.tgz", + "integrity": "sha512-eRzhrN1WSINYCDCbrz796z37LOe3m5tmW7RQf6oBntukAG1nmovJvhnwHHRMAfeoItc1m2Hk02WER2aQ/iqs+A==" + }, + "rechoir": { + "version": "0.6.2", + "resolved": "https://registry.npmjs.org/rechoir/-/rechoir-0.6.2.tgz", + "integrity": "sha1-hSBLVNuoLVdC4oyWdW70OvUOM4Q=", + "requires": { + "resolve": "1.5.0" + } + }, + "request": { + "version": "2.83.0", + "resolved": "https://registry.npmjs.org/request/-/request-2.83.0.tgz", + "integrity": "sha512-lR3gD69osqm6EYLk9wB/G1W/laGWjzH90t1vEa2xuxHD5KUrSzp9pUSfTm+YC5Nxt2T8nMPEvKlhbQayU7bgFw==", + "requires": { + "aws-sign2": "0.7.0", + "aws4": "1.6.0", + "caseless": "0.12.0", + "combined-stream": "1.0.5", + "extend": "3.0.1", + "forever-agent": "0.6.1", + "form-data": "2.3.1", + "har-validator": "5.0.3", + "hawk": "6.0.2", + "http-signature": "1.2.0", + "is-typedarray": "1.0.0", + "isstream": "0.1.2", + "json-stringify-safe": "5.0.1", + "mime-types": "2.1.17", + "oauth-sign": "0.8.2", + "performance-now": "2.1.0", + "qs": "6.5.1", + "safe-buffer": "5.1.1", + "stringstream": "0.0.5", + "tough-cookie": "2.3.3", + "tunnel-agent": "0.6.0", + "uuid": "3.1.0" + } + }, + "resolve": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.5.0.tgz", + "integrity": "sha512-hgoSGrc3pjzAPHNBg+KnFcK2HwlHTs/YrAGUr6qgTVUZmXv1UEXXl0bZNBKMA9fud6lRYFdPGz0xXxycPzmmiw==", + "requires": { + "path-parse": "1.0.5" + } + }, + "safe-buffer": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.1.tgz", + "integrity": "sha512-kKvNJn6Mm93gAczWVJg7wH+wGYWNrDHdWvpUmHyEsgCtIwwo3bqPtV4tR5tuPaUhTOo/kvhVwd8XwwOllGYkbg==" + }, + "shelljs": { + "version": "0.7.8", + "resolved": "https://registry.npmjs.org/shelljs/-/shelljs-0.7.8.tgz", + "integrity": "sha1-3svPh0sNHl+3LhSxZKloMEjprLM=", + "requires": { + "glob": "7.1.2", + "interpret": "1.1.0", + "rechoir": "0.6.2" + } + }, + "sntp": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/sntp/-/sntp-2.1.0.tgz", + "integrity": "sha512-FL1b58BDrqS3A11lJ0zEdnJ3UOKqVxawAkF3k7F0CVN7VQ34aZrV+G8BZ1WC9ZL7NyrwsW0oviwsWDgRuVYtJg==", + "requires": { + "hoek": "4.2.0" + } + }, + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "optional": true + }, + "source-map-support": { + "version": "0.4.18", + "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.4.18.tgz", + "integrity": "sha512-try0/JqxPLF9nOjvSta7tVondkP5dwgyLDjVoyMDlmjugT2lRZ1OfsrYTkCd2hkDnJTKRbO/Rl3orm8vlsUzbA==", + "dev": true, + "requires": { + "source-map": "0.5.7" + }, + "dependencies": { + "source-map": { + "version": "0.5.7", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", + "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", + "dev": true + } + } + }, + "sprintf-js": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", + "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=" + }, + "sshpk": { + "version": "1.13.1", + "resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.13.1.tgz", + "integrity": "sha1-US322mKHFEMW3EwY/hzx2UBzm+M=", + "requires": { + "asn1": "0.2.3", + "assert-plus": "1.0.0", + "bcrypt-pbkdf": "1.0.1", + "dashdash": "1.14.1", + "ecc-jsbn": "0.1.1", + "getpass": "0.1.7", + "jsbn": "0.1.1", + "tweetnacl": "0.14.5" + } + }, + "static-eval": { + "version": "0.2.3", + "resolved": "https://registry.npmjs.org/static-eval/-/static-eval-0.2.3.tgz", + "integrity": "sha1-Aj8XrJ/uQm6niMEuo5IG3Bdfiyo=", + "requires": { + "escodegen": "0.0.28" + }, + "dependencies": { + "escodegen": { + "version": "0.0.28", + "resolved": "https://registry.npmjs.org/escodegen/-/escodegen-0.0.28.tgz", + "integrity": "sha1-Dk/xcV8yh3XWyrUaxEpAbNer/9M=", + "requires": { + "esprima": "1.0.4", + "estraverse": "1.3.2", + "source-map": "0.6.1" + } + }, + "esprima": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/esprima/-/esprima-1.0.4.tgz", + "integrity": "sha1-n1V+CPw7TSbs6d00+Pv0drYlha0=" + }, + "estraverse": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-1.3.2.tgz", + "integrity": "sha1-N8K4k+8T1yPydth41g2FNRUqbEI=" + } + } + }, + "stringstream": { + "version": "0.0.5", + "resolved": "https://registry.npmjs.org/stringstream/-/stringstream-0.0.5.tgz", + "integrity": "sha1-TkhM1N5aC7vuGORjB3EKioFiGHg=" + }, + "strip-bom": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", + "integrity": "sha1-IzTBjpx1n3vdVv3vfprj1YjmjtM=", + "dev": true + }, + "strip-json-comments": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", + "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=", + "dev": true + }, + "supports-color": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-3.1.2.tgz", + "integrity": "sha1-cqJiiU2dQIuVbKBf83su2KbiotU=", + "requires": { + "has-flag": "1.0.0" + } + }, + "tough-cookie": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.3.3.tgz", + "integrity": "sha1-C2GKVWW23qkL80JdBNVe3EdadWE=", + "requires": { + "punycode": "1.4.1" + } + }, + "ts-node": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/ts-node/-/ts-node-3.3.0.tgz", + "integrity": "sha1-wTxqMCTjC+EYDdUwOPwgkonUv2k=", + "dev": true, + "requires": { + "arrify": "1.0.1", + "chalk": "2.3.0", + "diff": "3.2.0", + "make-error": "1.3.0", + "minimist": "1.2.0", + "mkdirp": "0.5.1", + "source-map-support": "0.4.18", + "tsconfig": "6.0.0", + "v8flags": "3.0.1", + "yn": "2.0.0" + }, + "dependencies": { + "minimist": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz", + "integrity": "sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ=", + "dev": true + } + } + }, + "tsconfig": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/tsconfig/-/tsconfig-6.0.0.tgz", + "integrity": "sha1-aw6DdgA9evGGT434+J3QBZ/80DI=", + "dev": true, + "requires": { + "strip-bom": "3.0.0", + "strip-json-comments": "2.0.1" + } + }, + "tunnel-agent": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz", + "integrity": "sha1-J6XeoGs2sEoKmWZ3SykIaPD8QP0=", + "requires": { + "safe-buffer": "5.1.1" + } + }, + "tweetnacl": { + "version": "0.14.5", + "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-0.14.5.tgz", + "integrity": "sha1-WuaBd/GS1EViadEIr6k/+HQ/T2Q=", + "optional": true + }, + "type-detect": { + "version": "4.0.5", + "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.5.tgz", + "integrity": "sha512-N9IvkQslUGYGC24RkJk1ba99foK6TkwC2FHAEBlQFBP0RxQZS8ZpJuAZcwiY/w9ZJHFQb1aOXBI60OdxhTrwEQ==" + }, + "typedarray-to-buffer": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/typedarray-to-buffer/-/typedarray-to-buffer-3.1.2.tgz", + "integrity": "sha1-EBezLZhP9VbroQD1AViauhrOLgQ=", + "requires": { + "is-typedarray": "1.0.0" + } + }, + "typescript": { + "version": "2.6.2", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-2.6.2.tgz", + "integrity": "sha1-PFtv1/beCRQmkCfwPAlGdY92c6Q=", + "dev": true + }, + "underscore": { + "version": "1.8.3", + "resolved": "https://registry.npmjs.org/underscore/-/underscore-1.8.3.tgz", + "integrity": "sha1-Tz+1OxBuYJf8+ctBCfKl6b36UCI=" + }, + "uuid": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.1.0.tgz", + "integrity": "sha512-DIWtzUkw04M4k3bf1IcpS2tngXEL26YUD2M0tMDUpnUrz2hgzUBlD55a4FjdLGPvfHxS6uluGWvaVEqgBcVa+g==" + }, + "v8flags": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/v8flags/-/v8flags-3.0.1.tgz", + "integrity": "sha1-3Oj8N5wX2fLJ6e142JzgAFKxt2s=", + "dev": true, + "requires": { + "homedir-polyfill": "1.0.1" + } + }, + "verror": { + "version": "1.10.0", + "resolved": "https://registry.npmjs.org/verror/-/verror-1.10.0.tgz", + "integrity": "sha1-OhBcoXBTr1XW4nDB+CiGguGNpAA=", + "requires": { + "assert-plus": "1.0.0", + "core-util-is": "1.0.2", + "extsprintf": "1.3.0" + } + }, + "websocket": { + "version": "1.0.25", + "resolved": "https://registry.npmjs.org/websocket/-/websocket-1.0.25.tgz", + "integrity": "sha512-M58njvi6ZxVb5k7kpnHh2BvNKuBWiwIYvsToErBzWhvBZYwlEiLcyLrG41T1jRcrY9ettqPYEqduLI7ul54CVQ==", + "requires": { + "debug": "2.6.9", + "nan": "2.8.0", + "typedarray-to-buffer": "3.1.2", + "yaeti": "0.0.6" + } + }, + "wrappy": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=" + }, + "yaeti": { + "version": "0.0.6", + "resolved": "https://registry.npmjs.org/yaeti/-/yaeti-0.0.6.tgz", + "integrity": "sha1-8m9ITXJoTPQr7ft2lwqhYI+/lXc=" + }, + "yn": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/yn/-/yn-2.0.0.tgz", + "integrity": "sha1-5a2ryKz0CPY4X8dklWhMiOavaJo=", + "dev": true + } + } +} diff --git a/node/package.json b/node/package.json new file mode 100644 index 0000000000..e0e69feab7 --- /dev/null +++ b/node/package.json @@ -0,0 +1,56 @@ +{ + "name": "@kubernetes/client-node", + "version": "0.1.3", + "description": "NodeJS client for kubernetes", + "repository": { + "type": "git", + "url": "git+https://github.com/kubernetes-client/javascript.git" + }, + "files": [ + "*.ts", + "*.js" + ], + "main": "index.js", + "scripts": { + "clean": "rm -Rf node_modules/ dist/", + "build": "tsc", + "test": "mocha -r ts-node/register *_test.ts" + }, + "author": "Kubernetes Authors", + "license": "Apache-2.0", + "dependencies": { + "base-64": "^0.1.0", + "bluebird": "^3.3.5", + "byline": "^5.0.0", + "chai": "^4.1.0", + "js-yaml": "^3.5.2", + "jsonpath": "^0.2.11", + "mocha": "^3.4.2", + "request": "^2.72.0", + "shelljs": "^0.7.8 ", + "underscore": "^1.8.3", + "websocket": "^1.0.25" + }, + "devDependencies": { + "@types/base-64": "^0.1.2", + "@types/bluebird": "^3.5.7", + "@types/chai": "^4.0.1", + "@types/js-yaml": "^3.5.31", + "@types/mocha": "^2.2.41", + "@types/node": "^8.0.2", + "@types/underscore": "^1.8.1", + "chai": "^4.0.2", + "jasmine": "^2.8.0", + "mocha": "^3.4.2", + "ts-node": "^3.1.0", + "typescript": "^2.3.4" + }, + "bugs": { + "url": "https://github.com/kubernetes-client/javascript/issues" + }, + "homepage": "https://github.com/kubernetes-client/javascript#readme", + "keywords": [ + "kubernetes", + "client" + ] +} diff --git a/node/tsconfig.json b/node/tsconfig.json new file mode 100644 index 0000000000..878b643a04 --- /dev/null +++ b/node/tsconfig.json @@ -0,0 +1,23 @@ +{ + "compilerOptions": { + "module": "commonjs", + "noImplicitAny": false, + "suppressImplicitAnyIndexErrors": true, + "target": "es6", + "moduleResolution": "node", + "removeComments": true, + "sourceMap": true, + "noLib": false, + "declaration": true, + "outDir": "dist" + }, + "exclude": [ + "node_modules", + "dist" + ], + "include": [ + "*.ts", + "src/**/*" + ] +} + diff --git a/node/watch.ts b/node/watch.ts new file mode 100644 index 0000000000..a28db6be7f --- /dev/null +++ b/node/watch.ts @@ -0,0 +1,52 @@ +import request = require('request'); +import { LineStream } from 'byline'; +import { KubeConfig } from '@kubernetes/client-node'; + +export class Watch { + 'config': KubeConfig; + + public constructor(config: KubeConfig) { + this.config = config; + } + + public watch(path: string, queryParams: any, callback: (phase: string, obj: any) => void, done: (err: any) => void): any { + let url = this.config.getCurrentCluster().server + path; + + queryParams['watch'] = true; + let headerParams: any = {}; + + let requestOptions: request.Options = { + method: 'GET', + qs: queryParams, + headers: headerParams, + uri: url, + useQuerystring: true, + json: true + }; + this.config.applyToRequest(requestOptions); + + let stream = new LineStream(); + stream.on('data', (data) => { + let obj = null; + if (data instanceof Buffer) { + obj = JSON.parse(data.toString()); + } else { + obj = JSON.parse(data); + } + if (obj['type'] && obj['object']) { + callback(obj['type'], obj['object']); + } else { + console.log('unexpected object: ' + obj); + } + }); + + let req = request(requestOptions, (error, response, body) => { + if (error) { + done(error); + } + done(null); + }); + req.pipe(stream); + return req; + } +} diff --git a/node/web-socket-handler.ts b/node/web-socket-handler.ts new file mode 100644 index 0000000000..69f560cd93 --- /dev/null +++ b/node/web-socket-handler.ts @@ -0,0 +1,105 @@ +import stream = require('stream'); + +import ws = require('websocket'); +import { KubeConfig } from '@kubernetes/client-node'; +import { V1Status } from '@kubernetes/client-node'; + +const protocols = [ + "v4.channel.k8s.io", + "v3.channel.k8s.io", + "v2.channel.k8s.io", + "channel.k8s.io" +] + +export class WebSocketHandler { + 'config': KubeConfig; + + public static readonly StdinStream = 0; + public static readonly StdoutStream = 1; + public static readonly StderrStream = 2; + public static readonly StatusStream = 3; + + public constructor(config: KubeConfig) { + this.config = config; + } + + public connect(path: string, + textHandler: (text: string) => void, + binaryHandler: (stream: number, buff: Buffer) => void): Promise { + let opts = {}; + this.config.applyToRequest(opts); + let client = new ws.client({ 'tlsOptions': opts }); + + return new Promise((resolve, reject) => { + client.on('connect', (connection) => { + connection.on('message', function(message) { + if (message.type === 'utf8') { + if (textHandler) { + textHandler(message.utf8Data); + } + } + else if (message.type === 'binary') { + if (binaryHandler) { + let stream = message.binaryData.readInt8(); + binaryHandler(stream, message.binaryData.slice(1)); + } + } + }); + resolve(connection); + }); + + client.on('connectFailed', (err) => { + reject(err); + }); + + var url; + var server = this.config.getCurrentCluster().server; + if (server.startsWith('https://')) { + url = 'wss://' + server.substr(8) + path; + } else { + url = 'ws://' + server.substr(7) + path; + } + client.connect(url, protocols); + }); + } + + public static handleStandardStreams(stream: number, buff: Buffer, stdout: any, stderr: any): V1Status { + if (buff.length < 1) { + return null; + } + if (stream == WebSocketHandler.StdoutStream) { + stdout.write(buff); + } else if (stream == WebSocketHandler.StderrStream) { + stderr.write(buff); + } else if (stream == WebSocketHandler.StatusStream) { + // stream closing. + if (stdout) { + stdout.end(); + } + if (stderr) { + stderr.end(); + } + return JSON.parse(buff.toString('utf8')) as V1Status; + } else { + console.log("Unknown stream: " + stream); + } + return null; + } + + public static handleStandardInput(conn: ws.connection, stdin: stream.Readable | any) { + stdin.on('data', (data) => { + let buff = new Buffer(data.length + 1); + buff.writeInt8(0, 0); + if (data instanceof Buffer) { + data.copy(buff, 1); + } else { + buff.write(data, 1); + } + conn.send(buff); + }); + + stdin.on('end', () => { + conn.close(ws.connection.CLOSE_REASON_NORMAL); + }); + } +} diff --git a/settings b/settings deleted file mode 100644 index 3a60d73cc4..0000000000 --- a/settings +++ /dev/null @@ -1,26 +0,0 @@ -#!/bin/bash - -# Copyright 2015 The Kubernetes Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Kubernetes branch to get the OpenAPI spec from. -export KUBERNETES_BRANCH="release-1.6" - -# client version for packaging and releasing. It can -# be different than SPEC_VERSION. -export CLIENT_VERSION="1.0.0-snapshot" - -# Name of the release package -export PACKAGE_NAME="io.kubernetes.js" -